public class CoolingSchedulesModule extends CoolingScheduleModule
CoolingSchedule
s for the
SimulatedAnnealing
.Modifier and Type | Class and Description |
---|---|
static class |
CoolingSchedulesModule.Type
Type of
CoolingSchedule to use. |
Modifier and Type | Field and Description |
---|---|
protected double |
alpha |
protected double |
finalTemperature |
protected double |
initialTemperature |
protected CoolingSchedulesModule.Type |
type |
Constructor and Description |
---|
CoolingSchedulesModule()
Constructs a
CoolingSchedulesModule . |
Modifier and Type | Method and Description |
---|---|
void |
config() |
double |
getAlpha()
Returns the alpha value.
|
double |
getFinalTemperature()
Returns the final temperature.
|
double |
getInitialTemperature()
Returns the initial temperature.
|
CoolingSchedulesModule.Type |
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 |
setType(CoolingSchedulesModule.Type type)
Sets the type of cooling schedule.
|
bindCoolingSchedule
addControlListener, addIndividualStateListener, addOptimizerIterationListener, addOptimizerStateListener, bindConstant, bindConstant, bindConstant, bindConstant, configure, constant, multi
addError, addError, addError, bind, bind, bind, bindConstant, binder, bindInterceptor, bindListener, bindListener, bindScope, configure, convertToTypes, currentStage, getMembersInjector, getMembersInjector, getProvider, getProvider, install, requestInjection, requestStaticInjection, requireBinding, requireBinding
protected double initialTemperature
protected double finalTemperature
protected double alpha
protected CoolingSchedulesModule.Type type
public CoolingSchedulesModule()
CoolingSchedulesModule
.public double getFinalTemperature()
setFinalTemperature(double)
public void setFinalTemperature(double finalTemperature)
finalTemperature
- the final temperaturegetFinalTemperature()
public double getInitialTemperature()
setInitialTemperature(double)
public void setInitialTemperature(double initialTemperature)
initialTemperature
- the initial temperaturegetInitialTemperature()
public CoolingSchedulesModule.Type getType()
setType(org.opt4j.optimizers.sa.CoolingSchedulesModule.Type)
public void setType(CoolingSchedulesModule.Type type)
type
- the type of cooling schedulegetType()
public double getAlpha()
setAlpha(double)
public void setAlpha(double alpha)
alpha
- the alpha valuegetAlpha()
public void config()
config
in class org.opt4j.core.start.Opt4JModule