moveApplied added

git-svn-id: svn://scm.gforge.inria.fr/svnroot/paradiseo@1681 331e1502-861f-0410-8da2-ba01fb791d7f
This commit is contained in:
jhumeau 2010-02-03 17:20:45 +00:00
commit fa8f3a7897

View file

@ -76,10 +76,13 @@ public:
do { do {
// explore the neighborhood of the solution // explore the neighborhood of the solution
searchExplorer(_solution); searchExplorer(_solution);
// if a solution in the neighborhood can be accepted // if a solution in the neighborhood can be accepted
if (searchExplorer.accept(_solution)) if (searchExplorer.accept(_solution)){
searchExplorer.move(_solution); searchExplorer.move(_solution);
searchExplorer.moveApplied(true);
}
else
searchExplorer.moveApplied(false);
// update the parameter of the search (for ex. Temperature of the SA) // update the parameter of the search (for ex. Temperature of the SA)
searchExplorer.updateParam(_solution); searchExplorer.updateParam(_solution);