Class CoolingScheduleLinear

    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected double t0  
      protected double tn  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      double getTemperature​(int i, int n)
      Returns the temperature for the iteration i of the maximal number of iterations n.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • t0

        protected final double t0
      • tn

        protected final double tn
    • Constructor Detail

      • CoolingScheduleLinear

        @Inject
        public CoolingScheduleLinear​(double t0,
                                     double tn)
        Constructs a new CoolingScheduleLinear.
        Parameters:
        t0 - the initial temperature (using namespace CoolingSchedule)
        tn - the final temperature (using namespace CoolingSchedule )
    • Method Detail

      • 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