Class AdaptiveNeighborhood
- java.lang.Object
-
- org.chocosolver.solver.search.loop.lns.neighbors.SequenceNeighborhood
-
- org.chocosolver.solver.search.loop.lns.neighbors.AdaptiveNeighborhood
-
- All Implemented Interfaces:
INeighbor
public class AdaptiveNeighborhood extends SequenceNeighborhood
- Since:
- 18/06/13
- Author:
- Charles Prud'homme
-
-
Field Summary
-
Fields inherited from class org.chocosolver.solver.search.loop.lns.neighbors.SequenceNeighborhood
count, counters, neighbors, who
-
-
Constructor Summary
Constructors Constructor Description AdaptiveNeighborhood(long seed, INeighbor... neighbors)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidloadFromSolution(Solution solution)Load a solution and record itprotected voidnextNeighbor()voidrecordSolution()Record values of decision variables to freeze some ones during the next LNS run-
Methods inherited from class org.chocosolver.solver.search.loop.lns.neighbors.SequenceNeighborhood
fixSomeVariables, init, isSearchComplete, restrictLess
-
-
-
-
Constructor Detail
-
AdaptiveNeighborhood
public AdaptiveNeighborhood(long seed, INeighbor... neighbors)
-
-
Method Detail
-
recordSolution
public void recordSolution()
Description copied from interface:INeighborRecord values of decision variables to freeze some ones during the next LNS run- Specified by:
recordSolutionin interfaceINeighbor- Overrides:
recordSolutionin classSequenceNeighborhood
-
loadFromSolution
public void loadFromSolution(Solution solution)
Description copied from interface:INeighborLoad a solution and record it- Specified by:
loadFromSolutionin interfaceINeighbor- Overrides:
loadFromSolutionin classSequenceNeighborhood- Parameters:
solution- a solution to record
-
nextNeighbor
protected void nextNeighbor()
- Overrides:
nextNeighborin classSequenceNeighborhood
-
-