Ajout d'un HC tenant compte du cas d'égalité dans les best, et pouvant explorer les plateaux
git-svn-id: svn://scm.gforge.inria.fr/svnroot/paradiseo@1672 331e1502-861f-0410-8da2-ba01fb791d7f
This commit is contained in:
parent
7544e86af6
commit
f0acb7c0ef
6 changed files with 342 additions and 3 deletions
|
|
@ -92,11 +92,13 @@ public:
|
|||
|
||||
/**
|
||||
* test if all neighbors are explore or not,if false, there is no neighbor left to explore
|
||||
* currentIndex is the index which have been used before, it is not the next neighbor which can be possibly evaluated
|
||||
*
|
||||
* @param _solution the solution to explore
|
||||
* @return true if there is again a neighbor to explore
|
||||
*/
|
||||
virtual bool cont(EOT & _solution) {
|
||||
return (currentIndex < neighborhoodSize) ;
|
||||
return (currentIndex < neighborhoodSize - 1) ;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -106,11 +106,12 @@ public:
|
|||
|
||||
/**
|
||||
* test if all neighbors are explore or not,if false, there is no neighbor left to explore
|
||||
* maxIndex is number of neighbors
|
||||
* @param _solution the solution to explore
|
||||
* @return true if there is again a neighbor to explore
|
||||
*/
|
||||
virtual bool cont(EOT & _solution) {
|
||||
return (maxIndex > 0) ;
|
||||
return (maxIndex > 1) ;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Reference in a new issue