From 95bd548f361afe15e5baf5641fcbe29b865c3087 Mon Sep 17 00:00:00 2001 From: jhumeau Date: Thu, 19 Feb 2009 17:04:55 +0000 Subject: [PATCH] git-svn-id: svn://scm.gforge.inria.fr/svnroot/paradiseo@1456 331e1502-861f-0410-8da2-ba01fb791d7f --- contribution/branches/MOLS/src/moeoOneSolOneNeighborExpl.h | 1 + contribution/branches/MOLS/src/moeoUnifiedDominanceBasedLS.h | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/contribution/branches/MOLS/src/moeoOneSolOneNeighborExpl.h b/contribution/branches/MOLS/src/moeoOneSolOneNeighborExpl.h index dd2a64a1e..97bd16a40 100644 --- a/contribution/branches/MOLS/src/moeoOneSolOneNeighborExpl.h +++ b/contribution/branches/MOLS/src/moeoOneSolOneNeighborExpl.h @@ -97,6 +97,7 @@ public: _dest.push_back(_src[i]); move(_dest.back()); _dest.back().objectiveVector(objVec); + _dest.back().flag(0); } } // preparing the next iteration diff --git a/contribution/branches/MOLS/src/moeoUnifiedDominanceBasedLS.h b/contribution/branches/MOLS/src/moeoUnifiedDominanceBasedLS.h index 0081859e8..4acfe3fc7 100644 --- a/contribution/branches/MOLS/src/moeoUnifiedDominanceBasedLS.h +++ b/contribution/branches/MOLS/src/moeoUnifiedDominanceBasedLS.h @@ -102,7 +102,7 @@ protected: bool res = false; unsigned int i=0; while(!res && i < _pop.size()){ - res = (_pop[i].flag() == 0); + res = (_pop[i].flag() != 1); i++; } std::cout << res << std::endl;