Package es.urjc.etsii.grafo.improve.sa
Interface AcceptanceCriteria<M extends Move<S,I>,S extends Solution<S,I>,I extends Instance>
- Type Parameters:
M
- Move classS
- Solution classI
- Instance class
- All Known Implementing Classes:
MetropolisAcceptanceCriteria
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface
public interface AcceptanceCriteria<M extends Move<S,I>,S extends Solution<S,I>,I extends Instance>
Simulated annealing acceptance criteria. A move can be applied if it either improves the objective function score
or if the acceptance function returns true.
-
Method Summary
-
Method Details
-
accept
Simulated annealing acceptance criteria. A move can be applied if it either improves the objective function score or if the acceptance function returns true.- Parameters:
move
- move to test if acceptedcurrentTemperature
- current temperature- Returns:
- true to accept, false to reject
-