V
- VariableT
- Valuepublic class LazySwap<V extends Variable<V,T>,T extends Value<V,T>> extends LazyNeighbour<V,T>
LazyNeighbour
.LazyNeighbour.LazyNeighbourAcceptanceCriterion<V extends Variable<V,T>,T extends Value<V,T>>
Modifier and Type | Method and Description |
---|---|
Map<V,T> |
assignments()
Return assignments to be done.
|
protected void |
doAssign(Assignment<V,T> assignment,
long iteration)
Perform swap
|
Model<V,T> |
getModel()
Return problem model
|
String |
toString()
String representation
|
protected void |
undoAssign(Assignment<V,T> assignment,
long iteration)
Undo the swap
|
assign, getAcceptanceCriterion, setAcceptanceCriterion, value
protected void doAssign(Assignment<V,T> assignment, long iteration)
protected void undoAssign(Assignment<V,T> assignment, long iteration)
undoAssign
in class LazyNeighbour<V extends Variable<V,T>,T extends Value<V,T>>
assignment
- current assignmentiteration
- current iterationpublic Map<V,T> assignments()
Neighbour