V
- VariableT
- Valuepublic static interface LazyNeighbour.LazyNeighbourAcceptanceCriterion<V extends Variable<V,T>,T extends Value<V,T>>
LazyNeighbour
.
It is also required to call LazyNeighbour.setAcceptanceCriterion(LazyNeighbour.LazyNeighbourAcceptanceCriterion)
before the neighbour is accepted by the search strategy.Modifier and Type | Method and Description |
---|---|
boolean |
accept(Assignment<V,T> assignment,
LazyNeighbour<V,T> neighbour,
double value)
True when the currently assigned neighbour should be accepted (false means
that the change will be undone
|
boolean accept(Assignment<V,T> assignment, LazyNeighbour<V,T> neighbour, double value)
assignment
- current assignmentneighbour
- neighbour that was assignedvalue
- change in overall solution value