Add a sol-sol comparator with egality

git-svn-id: svn://scm.gforge.inria.fr/svnroot/paradiseo@2556 331e1502-861f-0410-8da2-ba01fb791d7f
This commit is contained in:
verel 2011-12-09 10:46:16 +00:00
commit 5e35350068
3 changed files with 79 additions and 0 deletions

View file

@ -78,6 +78,8 @@ public:
// initialization of the external continuator (for example the time, or the number of generations)
cont->init(_solution);
std::cout << _solution.fitness() << std::endl;
bool b;
do {
// explore the neighborhood of the solution
@ -89,6 +91,8 @@ public:
} else
searchExplorer.moveApplied(false);
std::cout << _solution.fitness() << std::endl;
// update the parameter of the search (for ex. Temperature of the SA)
searchExplorer.updateParam(_solution);