From 66ce199e6a053fbcb7c4cf9f0966ed54bbe048e1 Mon Sep 17 00:00:00 2001 From: verel Date: Wed, 29 Dec 2010 10:51:29 +0000 Subject: [PATCH] Add the include moValueStat in mo.h git-svn-id: svn://scm.gforge.inria.fr/svnroot/paradiseo@2046 331e1502-861f-0410-8da2-ba01fb791d7f --- trunk/paradiseo-mo/src/explorer/moRandomSearchExplorer.h | 3 ++- trunk/paradiseo-mo/src/mo.h | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/trunk/paradiseo-mo/src/explorer/moRandomSearchExplorer.h b/trunk/paradiseo-mo/src/explorer/moRandomSearchExplorer.h index 1a5832e14..0b09da1d9 100644 --- a/trunk/paradiseo-mo/src/explorer/moRandomSearchExplorer.h +++ b/trunk/paradiseo-mo/src/explorer/moRandomSearchExplorer.h @@ -102,7 +102,8 @@ public: init(_solution); //eval the _solution moved with the neighbor and stock the result in the neighbor - fulleval(_solution); + if (_solution.invalid()) + fulleval(_solution); }; /** diff --git a/trunk/paradiseo-mo/src/mo.h b/trunk/paradiseo-mo/src/mo.h index d3f3190cb..6b5a3abff 100755 --- a/trunk/paradiseo-mo/src/mo.h +++ b/trunk/paradiseo-mo/src/mo.h @@ -66,6 +66,7 @@ #include #include #include +#include #include #include #include