Return to revision 1325
git-svn-id: svn://scm.gforge.inria.fr/svnroot/paradiseo@1355 331e1502-861f-0410-8da2-ba01fb791d7f
This commit is contained in:
parent
8e6549d9c0
commit
fd74360137
1 changed files with 6 additions and 8 deletions
|
|
@ -68,7 +68,7 @@ class moImprBestFitAspirCrit:public moAspirCrit < M >
|
||||||
|
|
||||||
\param _move A move.
|
\param _move A move.
|
||||||
\param _fitness A fitness linked to the move.
|
\param _fitness A fitness linked to the move.
|
||||||
\return true The first time and if _fitntess > best_fitness, else false.
|
\return true The first time and if _fitness > best_fitness, else false.
|
||||||
*/
|
*/
|
||||||
bool operator () (const M & _move, const Fitness & _fitness)
|
bool operator () (const M & _move, const Fitness & _fitness)
|
||||||
{
|
{
|
||||||
|
|
@ -83,14 +83,12 @@ class moImprBestFitAspirCrit:public moAspirCrit < M >
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (_fitness < best_fitness)
|
if (_fitness > best_fitness)
|
||||||
{
|
{
|
||||||
return false;
|
best_fitness = _fitness;
|
||||||
}
|
return true;
|
||||||
|
}
|
||||||
best_fitness = _fitness;
|
return false;
|
||||||
|
|
||||||
return true;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue