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