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

    Modifier and Type
    Method
    Description
    boolean
    terminate(S solution, Neighborhood<M,S,I> neighborhood, double currentTemperature, int iteration)
    terminate.
  • Method Details

    • terminate

      boolean terminate(S solution, Neighborhood<M,S,I> neighborhood, double currentTemperature, int iteration)

      terminate.

      Parameters:
      solution - a S object.
      neighborhood - a Neighborhood object.
      currentTemperature - a double.
      iteration - a int.
      Returns:
      a boolean.