Interface INeighbor
-
- All Known Implementing Classes:
AdaptiveNeighborhood,ExplainingCut,ExplainingObjective,PropagationGuidedNeighborhood,RandomNeighborhood,ReversePropagationGuidedNeighborhood,SequenceNeighborhood
public interface INeighborAn interface defining services required for the LNS to select variables to freeze-unfreeze.- Since:
- 18/06/13
- Author:
- Charles Prud'homme
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidfixSomeVariables(DecisionPath decisionPath)Freezes some variables in order to have a fast computation.voidinit()Initialize this neighborbooleanisSearchComplete()voidloadFromSolution(Solution solution)Load a solution and record itvoidrecordSolution()Record values of decision variables to freeze some ones during the next LNS runvoidrestrictLess()Use less restriction at the beginning of a LNS run in order to get better solutions Called when no solution was found during a LNS run (trapped into a local optimum)
-
-
-
Method Detail
-
init
void init()
Initialize this neighbor
-
recordSolution
void recordSolution()
Record values of decision variables to freeze some ones during the next LNS run
-
fixSomeVariables
void fixSomeVariables(DecisionPath decisionPath)
Freezes some variables in order to have a fast computation. The fixed variables are declared as decisions in the decision path.- Parameters:
decisionPath- the decision path in which declaring variable to freeze
-
restrictLess
void restrictLess()
Use less restriction at the beginning of a LNS run in order to get better solutions Called when no solution was found during a LNS run (trapped into a local optimum)
-
isSearchComplete
boolean isSearchComplete()
- Returns:
- true iff the search is in a complete mode (no fixed variable)
-
loadFromSolution
void loadFromSolution(Solution solution)
Load a solution and record it- Parameters:
solution- a solution to record
-
-