public class ReversePropagationGuidedNeighborhood extends PropagationGuidedNeighborhood
all, bestSolution, candidates, dsize, epsilon, fgmtSize, fragment, listSize, logSum, mModel, n, rd, vars
Constructor and Description |
---|
ReversePropagationGuidedNeighborhood(IntVar[] vars,
int fgmtSize,
int listSize,
long seed)
Create a neighbor for LNS based on PGLNS, which selects variables to not be part of a fragment
|
Modifier and Type | Method and Description |
---|---|
protected void |
update(DecisionPath decisionPath)
Create the fragment
|
fixSomeVariables, impose, init, isSearchComplete, loadFromSolution, recordSolution, restrictLess, selectVariable
public ReversePropagationGuidedNeighborhood(IntVar[] vars, int fgmtSize, int listSize, long seed)
vars
- variables to considerfgmtSize
- initial size of the fragmentlistSize
- number of modified variable to store while propagatingseed
- for randomnessprotected void update(DecisionPath decisionPath) throws ContradictionException
PropagationGuidedNeighborhood
update
in class PropagationGuidedNeighborhood
decisionPath
- the decision path to feedContradictionException
- if the fragment is trivially infeasibleCopyright © 2018. All rights reserved.