net.sf.cpsolver.ifs.model
Interface LazyNeighbour.LazyNeighbourAcceptanceCriterion<V extends Variable<V,T>,T extends Value<V,T>>
- All Known Implementing Classes:
- ExamGreatDeluge, ExamHillClimbing, ExamSimulatedAnnealing
- Enclosing class:
- LazyNeighbour<V extends Variable<V,T>,T extends Value<V,T>>
public static interface LazyNeighbour.LazyNeighbourAcceptanceCriterion<V extends Variable<V,T>,T extends Value<V,T>>
Neighbour acceptance criterion interface (to be implemented
by search strategies that are using LazyNeighbour
.
It is also required to call LazyNeighbour.setAcceptanceCriterion(LazyNeighbour.LazyNeighbourAcceptanceCriterion)
before the neighbour is accepted by the search strategy.
Method Summary |
boolean |
accept(LazyNeighbour<V,T> neighbour,
double value)
True when the currently assigned neighbour should be accepted (false means
that the change will be undone |
accept
boolean accept(LazyNeighbour<V,T> neighbour,
double value)
- True when the currently assigned neighbour should be accepted (false means
that the change will be undone
- Parameters:
neighbour
- neighbour that was assignedvalue
- change in overall solution value
- Returns:
- true if the neighbour can be accepted (false to undo the assignment)
Copyright © 2014 UniTime LLC. All Rights Reserved.