Class CoolingScheduleExponential

java.lang.Object
org.opt4j.optimizers.sa.CoolingScheduleExponential
All Implemented Interfaces:
CoolingSchedule

public class CoolingScheduleExponential extends Object implements CoolingSchedule

The CoolingScheduleExponential is a CoolingSchedule for the SimulatedAnnealing.

tn - final temperature
t0 - initial temperature
i - current iteration
n - maximal number of iterations
a - alpha value

The current temperature is calculated by tn + t0 * a^i.

  • Constructor Details

  • Method Details

    • getTemperature

      public double getTemperature(int i, int n)
      Description copied from interface: CoolingSchedule
      Returns the temperature for the iteration i of the maximal number of iterations n.
      Specified by:
      getTemperature in interface CoolingSchedule
      Parameters:
      i - the current iteration
      n - the maximal number of iterations
      Returns:
      the temperature for the current iteration