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:
parent
8b913ed52f
commit
7544e86af6
5 changed files with 409 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue