Package org.opt4j.optimizer.sa
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 commonCoolingSchedules for theSimulatedAnnealing.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classCoolingSchedulesModule.TypeType ofCoolingScheduleto use.
-
Field Summary
Fields Modifier and Type Field Description protected doublealphaprotected doublefinalTemperatureprotected doubleinitialTemperatureprotected CoolingSchedulesModule.Typetype-
Fields inherited from class org.opt4j.start.Opt4JModule
SINGLETON
-
-
Constructor Summary
Constructors Constructor Description CoolingSchedulesModule()Constructs aCoolingSchedulesModule.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidconfig()Configure the module.doublegetAlpha()Returns the alpha value.doublegetFinalTemperature()Returns the final temperature.doublegetInitialTemperature()Returns the initial temperature.CoolingSchedulesModule.TypegetType()Returns the type of cooling schedule.voidsetAlpha(double alpha)Sets the alpha value.voidsetFinalTemperature(double finalTemperature)Sets the final temperature.voidsetInitialTemperature(double initialTemperature)Sets the initial temperature.voidsetType(CoolingSchedulesModule.Type type)Sets the type of cooling schedule.-
Methods inherited from class org.opt4j.optimizer.sa.CoolingScheduleModule
bindCoolingSchedule
-
Methods inherited from class org.opt4j.start.Opt4JModule
addControlListener, addIndividualStateListener, addOptimizerIterationListener, addOptimizerStateListener, bindConstant, bindConstant, bindConstant, bindConstant, configure, constant, multi
-
Methods inherited from class com.google.inject.AbstractModule
addError, addError, addError, bind, bind, bind, bindConstant, binder, bindInterceptor, bindListener, bindScope, configure, convertToTypes, currentStage, getMembersInjector, getMembersInjector, getProvider, getProvider, install, requestInjection, requestStaticInjection, requireBinding, requireBinding
-
-
-
-
Field Detail
-
initialTemperature
protected double initialTemperature
-
finalTemperature
protected double finalTemperature
-
alpha
protected double alpha
-
type
protected CoolingSchedulesModule.Type type
-
-
Constructor Detail
-
CoolingSchedulesModule
public CoolingSchedulesModule()
Constructs aCoolingSchedulesModule.
-
-
Method Detail
-
getFinalTemperature
public double getFinalTemperature()
Returns the final temperature.- Returns:
- the final temperature
- See Also:
setFinalTemperature(double)
-
setFinalTemperature
public void setFinalTemperature(double finalTemperature)
Sets the final temperature.- Parameters:
finalTemperature- the final temperature- See Also:
getFinalTemperature()
-
getInitialTemperature
public double getInitialTemperature()
Returns the initial temperature.- Returns:
- the initial temperature
- See Also:
setInitialTemperature(double)
-
setInitialTemperature
public void setInitialTemperature(double initialTemperature)
Sets the initial temperature.- Parameters:
initialTemperature- the initial temperature- See Also:
getInitialTemperature()
-
getType
public CoolingSchedulesModule.Type getType()
Returns the type of cooling schedule.- Returns:
- the type of cooling schedule
- See Also:
setType(org.opt4j.optimizer.sa.CoolingSchedulesModule.Type)
-
setType
public void setType(CoolingSchedulesModule.Type type)
Sets the type of cooling schedule.- Parameters:
type- the type of cooling schedule- See Also:
getType()
-
getAlpha
public double getAlpha()
Returns the alpha value.- Returns:
- the alpha value
- See Also:
setAlpha(double)
-
setAlpha
public void setAlpha(double alpha)
Sets the alpha value.- Parameters:
alpha- the alpha value- See Also:
getAlpha()
-
config
public void config()
Description copied from class:Opt4JModuleConfigure the module. Bind constants, listeners, and bind arbitrary classes.- Specified by:
configin classOpt4JModule- See Also:
Binder
-
-