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;