Class GeometricCoolingSchedule

java.lang.Object
org.moeaframework.algorithm.sa.GeometricCoolingSchedule
All Implemented Interfaces:
CoolingSchedule, Configurable

public class GeometricCoolingSchedule extends Object implements CoolingSchedule
Geometric reduction rule for simulated annealing. The next temperature is calculated as
   t = t * a
 
  • Constructor Details

    • GeometricCoolingSchedule

      public GeometricCoolingSchedule()
      Constructs a new geometric cooling schedule.
    • GeometricCoolingSchedule

      public GeometricCoolingSchedule(double alpha)
      Constructs a new geometric cooling schedule.
      Parameters:
      alpha - the cooling rate
  • Method Details

    • getAlpha

      public double getAlpha()
      Returns the cooling rate.
      Returns:
      the cooling rate
    • setAlpha

      public void setAlpha(double alpha)
      Sets the cooling rate.
      Parameters:
      alpha - the cooling rate
    • nextTemperature

      public double nextTemperature(double currentTemperature)
      Description copied from interface: CoolingSchedule
      Returns the next temperature based on the current temperature.
      Specified by:
      nextTemperature in interface CoolingSchedule
      Parameters:
      currentTemperature - the current temperature
      Returns:
      the next temperature