diff --git a/trunk/paradiseo-mo/src/moILS.h b/trunk/paradiseo-mo/src/moILS.h index 448b7eb93..ed48907c2 100644 --- a/trunk/paradiseo-mo/src/moILS.h +++ b/trunk/paradiseo-mo/src/moILS.h @@ -157,8 +157,14 @@ class moILS:public moAlgo < typename M::EOType > */ bool operator()(EOT & _solution) { + if ( _solution.invalid() ) + { + full_evaluation(_solution); + } + EOT _solution_saved=_solution; + continu.init (); // some code has been duplicated in order to avoid one perturbation and one evaluation without adding a test in the loop.