Package es.urjc.etsii.grafo.improve.sa
Interface TerminationCriteria<M extends Move<S,I>,S extends Solution<S,I>,I extends Instance>
- 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 TerminationCriteria<M extends Move<S,I>,S extends Solution<S,I>,I extends Instance>
Determines when the Simulated Annealing stops.
-
Method Summary
-
Method Details
-
terminate
boolean terminate(S solution, Neighborhood<M, S, I> neighborhood, double currentTemperature, int iteration) terminate.
- Parameters:
solution
- a S object.neighborhood
- aNeighborhood
object.currentTemperature
- a double.iteration
- a int.- Returns:
- a boolean.
-