Module org.chocosolver
Class SetRandomNeighbor
- java.lang.Object
-
- org.chocosolver.solver.search.loop.lns.neighbors.SetRandomNeighbor
-
-
Constructor Summary
Constructors Constructor Description SetRandomNeighbor(SetVar variable)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
fixSomeVariables()
Freezes some variables in order to have a fast computation.void
loadFromSolution(Solution solution)
Load a solution and record itvoid
recordSolution()
Record values of decision variables to freeze some ones during the next LNS run-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.chocosolver.solver.ICause
explain, forEachIntVar
-
Methods inherited from interface org.chocosolver.solver.search.loop.lns.neighbors.INeighbor
init, isSearchComplete, restrictLess
-
-
-
-
Constructor Detail
-
SetRandomNeighbor
public SetRandomNeighbor(SetVar variable)
-
-
Method Detail
-
recordSolution
public void recordSolution()
Description copied from interface:INeighbor
Record values of decision variables to freeze some ones during the next LNS run- Specified by:
recordSolution
in interfaceINeighbor
-
fixSomeVariables
public void fixSomeVariables() throws ContradictionException
Description copied from interface:INeighbor
Freezes some variables in order to have a fast computation. The fixed variables are declared as decisions in the decision path.- Specified by:
fixSomeVariables
in interfaceINeighbor
- Throws:
ContradictionException
-
loadFromSolution
public void loadFromSolution(Solution solution)
Description copied from interface:INeighbor
Load a solution and record it- Specified by:
loadFromSolution
in interfaceINeighbor
- Parameters:
solution
- a solution to record
-
-