From 10ed630d412348963bec7b5d0f064f92e3d264ff Mon Sep 17 00:00:00 2001 From: jhumeau Date: Tue, 18 Nov 2008 13:33:22 +0000 Subject: [PATCH] =?UTF-8?q?Th=C3=A9=20Van=20find=20a=20missing:=20no=20eva?= =?UTF-8?q?luation=20of=20invalid=20solution=20in=20moILS.h?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: svn://scm.gforge.inria.fr/svnroot/paradiseo@1263 331e1502-861f-0410-8da2-ba01fb791d7f --- trunk/paradiseo-mo/src/moILS.h | 6 ++++++ 1 file changed, 6 insertions(+) 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.