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
This module provides several common
CoolingSchedule
s for the
SimulatedAnnealing
.-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionprotected double
protected double
protected double
protected CoolingSchedulesModule.Type
Fields inherited from class org.opt4j.start.Opt4JModule
SINGLETON
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
config()
Configure the module.double
getAlpha()
Returns the alpha value.double
Returns the final temperature.double
Returns the initial temperature.getType()
Returns the type of cooling schedule.void
setAlpha
(double alpha) Sets the alpha value.void
setFinalTemperature
(double finalTemperature) Sets the final temperature.void
setInitialTemperature
(double initialTemperature) Sets the initial temperature.void
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 Details
-
initialTemperature
protected double initialTemperature -
finalTemperature
protected double finalTemperature -
alpha
protected double alpha -
type
-
-
Constructor Details
-
CoolingSchedulesModule
public CoolingSchedulesModule()Constructs aCoolingSchedulesModule
.
-
-
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
Returns the type of cooling schedule.- Returns:
- the type of cooling schedule
- See Also:
-
setType
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 classOpt4JModule
- See Also:
-
Binder
-