Class CoolingSchedulesModule

java.lang.Object
com.google.inject.AbstractModule
org.opt4j.start.Opt4JModule
org.opt4j.optimizer.sa.CoolingScheduleModule
org.opt4j.optimizer.sa.CoolingSchedulesModule
All Implemented Interfaces:
com.google.inject.Module

public class CoolingSchedulesModule extends CoolingScheduleModule
This module provides several common CoolingSchedules for the SimulatedAnnealing.
  • Field Details

    • initialTemperature

      protected double initialTemperature
    • finalTemperature

      protected double finalTemperature
    • alpha

      protected double alpha
    • type

  • Constructor Details

  • Method Details

    • getFinalTemperature

      public double getFinalTemperature()
      Returns the final temperature.
      Returns:
      the final temperature
      See Also:
    • setFinalTemperature

      public void setFinalTemperature(double finalTemperature)
      Sets the final temperature.
      Parameters:
      finalTemperature - the final temperature
      See Also:
    • getInitialTemperature

      public double getInitialTemperature()
      Returns the initial temperature.
      Returns:
      the initial temperature
      See Also:
    • setInitialTemperature

      public void setInitialTemperature(double initialTemperature)
      Sets the initial temperature.
      Parameters:
      initialTemperature - the initial temperature
      See Also:
    • getType

      public CoolingSchedulesModule.Type getType()
      Returns the type of cooling schedule.
      Returns:
      the type of cooling schedule
      See Also:
    • setType

      public void setType(CoolingSchedulesModule.Type type)
      Sets the type of cooling schedule.
      Parameters:
      type - the type of cooling schedule
      See Also:
    • getAlpha

      public double getAlpha()
      Returns the alpha value.
      Returns:
      the alpha value
      See Also:
    • setAlpha

      public void setAlpha(double alpha)
      Sets the alpha value.
      Parameters:
      alpha - the alpha value
      See Also:
    • config

      public void config()
      Description copied from class: Opt4JModule
      Configure the module. Bind constants, listeners, and bind arbitrary classes.
      Specified by:
      config in class Opt4JModule
      See Also:
      • Binder