A lot a small change to improve the things, and new moBitsWithReplNeighborhhod
git-svn-id: svn://scm.gforge.inria.fr/svnroot/paradiseo@2564 331e1502-861f-0410-8da2-ba01fb791d7f
This commit is contained in:
parent
95203c6b1b
commit
4b51948118
9 changed files with 470 additions and 175 deletions
|
|
@ -90,6 +90,14 @@ public:
|
|||
explorer(_neighborhood, _eval, _compN, _compSN)
|
||||
{}
|
||||
|
||||
/**
|
||||
* Return the class id.
|
||||
* @return the class name as a std::string
|
||||
*/
|
||||
virtual std::string className() const {
|
||||
return "moFirstImprHV";
|
||||
}
|
||||
|
||||
private:
|
||||
// always true continuator
|
||||
moTrueContinuator<Neighbor> trueCont;
|
||||
|
|
|
|||
|
|
@ -78,8 +78,6 @@ 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
|
||||
|
|
@ -91,8 +89,6 @@ 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