git-svn-id: svn://scm.gforge.inria.fr/svnroot/paradiseo@1918 331e1502-861f-0410-8da2-ba01fb791d7f
This commit is contained in:
parent
71273f1344
commit
2b1b02f162
1 changed files with 10 additions and 0 deletions
|
|
@ -62,6 +62,14 @@ public:
|
|||
_solution.invalidate();
|
||||
}
|
||||
|
||||
/**
|
||||
* Return the class Name
|
||||
* @return the class name as a std::string
|
||||
*/
|
||||
virtual std::string className() const {
|
||||
return "moIndexedSwapNeighbor";
|
||||
}
|
||||
|
||||
/**
|
||||
* apply the swap to restore the solution (use by moFullEvalByModif)
|
||||
* @param _solution the solution to move back
|
||||
|
|
@ -90,6 +98,8 @@ public:
|
|||
_first = key - (n - 1) * n / 2;
|
||||
_second = N - 1 - (n - 1 - _first);
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue