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:
parent
f22c862d1c
commit
5e35350068
3 changed files with 79 additions and 0 deletions
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue