public class GreatDeluge<V extends Variable<V,T>,T extends Value<V,T>> extends NeighbourSearch<V,T>
NeighbourSelection. By default, each neighbour selection is selected with the same probability (each has 1 point in a roulette wheel selection). It can be changed by adding @n at the end of the name of the class, for example:
Selector RandomSwapMove is 10× less probable to be selected than other selectors. When GreatDeluge.Random is true, all selectors are selected with the same probability, ignoring these weights.
NeighbourSelector.update(Assignment, Neighbour, long)is called after each iteration (on the selector that was used) and roulette wheel selection that is using
NeighbourSelector.getPoints()is used to pick a selector in each iteration. See
NeighbourSelectorfor more details.
|Modifier and Type||Class and Description|
|Constructor and Description|
|Modifier and Type||Method and Description|
Create a new assignment context for the given assignment.
Parameter base name.
accept, accept, addNeighbourSelection, bestCleared, bestRestored, bestSaved, generateMove, getInfo, getInfo, getNeighbours, info, init, isMaster, logNeibourStatus, nextNeighbourSelection, selectNeighbour, setHCMode, setProgress, setProgressPhase, solutionUpdated
getAssignmentContextReference, getContext, getContext, hasContextOverride, isSingleContextSolver, setAssignmentContextReference
public GreatDeluge(DataProperties properties)
NeighbourSelector.getPoints()weights (roulette wheel selection)
properties- problem properties
public String getParameterBaseName()
public NeighbourSearch.NeighbourSearchContext createAssignmentContext(Assignment<V,T> assignment)
assignment- an assignment for which there needs to be an assignment context