Ajout d'un simple HC tenant du cas d'égalité dans les best

git-svn-id: svn://scm.gforge.inria.fr/svnroot/paradiseo@1671 331e1502-861f-0410-8da2-ba01fb791d7f
This commit is contained in:
verel 2010-01-25 09:16:11 +00:00
commit 7544e86af6
5 changed files with 409 additions and 0 deletions

View file

@ -60,6 +60,16 @@ public:
return (_sol.fitness() < _neighbor.fitness());
}
/**
* Compare two neighbors
* @param _sol the solution
* @param _neighbor the neighbor
* @return true if the neighbor is equal to the solution
*/
virtual bool equals(const EOT& _sol, const Neighbor& _neighbor) {
return (_sol.fitness() == _neighbor.fitness());
}
/**
* Return the class id.
* @return the class name as a std::string