Doc and tests added
git-svn-id: svn://scm.gforge.inria.fr/svnroot/paradiseo@1706 331e1502-861f-0410-8da2-ba01fb791d7f
This commit is contained in:
parent
6cb6070df4
commit
baf31d0c30
25 changed files with 159 additions and 26 deletions
|
|
@ -45,6 +45,8 @@ int main(){
|
|||
dummyEvalOneMax eval2(4);
|
||||
moSolNeighborComparator<bitNeighbor> sncomp;
|
||||
|
||||
//test avec la fonction d'eval classique
|
||||
//on verifie qu'on ne trouve pas de voisin de mm fitness
|
||||
moRandomNeutralWalkExplorer<bitNeighborhood> test(nh, eval, sncomp, 3);
|
||||
|
||||
test.initParam(sol);
|
||||
|
|
@ -52,6 +54,8 @@ int main(){
|
|||
assert(!test.accept(sol));
|
||||
assert(!test.isContinue(sol));
|
||||
|
||||
//test avec une fonction d'eval bidon qui renvoie toujours la mm fitness
|
||||
//on peut donc verifier qu'on s'arette au bout des 3 itérations.
|
||||
moRandomNeutralWalkExplorer<bitNeighborhood> test2(nh, eval2, sncomp, 3);
|
||||
|
||||
sol.fitness(2);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue