Interface AcceptanceCriteria<M extends Move<S,I>,S extends Solution<S,I>,I extends Instance>

Type Parameters:
M - Move class
S - Solution class
I - 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

    Modifier and Type
    Method
    Description
    boolean
    accept(M move, double currentTemperature)
    Simulated annealing acceptance criteria.
  • Method Details

    • accept

      boolean accept(M move, double currentTemperature)
      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 accepted
      currentTemperature - current temperature
      Returns:
      true to accept, false to reject