Add the include moEvalsContinuator.h into mo.h
git-svn-id: svn://scm.gforge.inria.fr/svnroot/paradiseo@1995 331e1502-861f-0410-8da2-ba01fb791d7f
This commit is contained in:
parent
d2f533d04b
commit
83e167a74b
1 changed files with 3 additions and 1 deletions
|
|
@ -78,11 +78,13 @@ public:
|
|||
virtual bool operator()(EOT & _solution) {
|
||||
if (solComparator(_solution, bestSol) || solComparator.equals(_solution, bestSol))
|
||||
cpt++;
|
||||
else
|
||||
cpt = 0;
|
||||
|
||||
bool res = (cpt < maxNoImprove);
|
||||
|
||||
if (!res && verbose)
|
||||
std::cout << "STOP in moBestNoImproveContinuator: Reached maximum number of iterations [" << cpt << "/" << maxNoImprove << "]" << std::endl;
|
||||
std::cout << "STOP in moBestNoImproveContinuator: Reached maximum number of iterations without improvement [" << cpt << "/" << maxNoImprove << "]" << std::endl;
|
||||
|
||||
return res;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue