Tsp fitness has been changed and moSA.h has been updated

git-svn-id: svn://scm.gforge.inria.fr/svnroot/paradiseo@813 331e1502-861f-0410-8da2-ba01fb791d7f
This commit is contained in:
jboisson 2007-11-26 08:46:41 +00:00
commit e0b82a27d1
6 changed files with 29 additions and 24 deletions

View file

@ -40,11 +40,11 @@
void RouteEval :: operator () (Route & __route)
{
float len = 0 ;
float len = 0.0 ;
for (unsigned int i = 0 ; i < Graph :: size () ; i ++)
{
len -= Graph :: distance (__route [i], __route [(i + 1) % Graph :: size ()]) ;
len += Graph :: distance (__route [i], __route [(i + 1) % Graph :: size ()]) ;
}
__route.fitness (len) ;