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

@ -59,6 +59,16 @@ public:
return (_neighbor1.fitness() < _neighbor2.fitness());
}
/**
* Compare two neighbors
* @param _neighbor1 the first neighbor
* @param _neighbor2 the second neighbor
* @return true if the neighbor2 is equal to neighbor1
*/
virtual bool equals(const Neighbor& _neighbor1, const Neighbor& _neighbor2) {
return (_neighbor1.fitness() == _neighbor2.fitness());
}
/**
* Return the class id.
* @return the class name as a std::string