In the TSP, the fitness has to be minimized ... with all the needed modification (for example, moSA.h)

git-svn-id: svn://scm.gforge.inria.fr/svnroot/paradiseo@587 331e1502-861f-0410-8da2-ba01fb791d7f
This commit is contained in:
jboisson 2007-08-03 14:28:06 +00:00
commit 1d94071693
170 changed files with 748 additions and 837 deletions

View file

@ -91,13 +91,13 @@ moTS (moMoveExpl < M > &__move_expl, moSolContinue < EOT > &__cont, eoEvalFunc <
M move;
EOT best_sol = __sol, new_sol;
EOT best_sol, new_sol;
best_sol = __sol;
cont.init ();
do
{
new_sol = __sol;
try
@ -112,8 +112,7 @@ moTS (moMoveExpl < M > &__move_expl, moSolContinue < EOT > &__cont, eoEvalFunc <
break;
}
/* Updating the best solution
found until now ? */
/* Updating the best solution found until now ? */
if (new_sol.fitness () > __sol.fitness ())
{
best_sol = new_sol;