Package org.opt4j.optimizer.sa
Class SimulatedAnnealingModule
- java.lang.Object
-
- com.google.inject.AbstractModule
-
- org.opt4j.start.Opt4JModule
-
- org.opt4j.core.optimizer.OptimizerModule
-
- org.opt4j.optimizer.sa.SimulatedAnnealingModule
-
- All Implemented Interfaces:
com.google.inject.Module
public class SimulatedAnnealingModule extends OptimizerModule
This module binds theSimulatedAnnealing
optimizer.
-
-
Field Summary
Fields Modifier and Type Field Description protected int
iterations
-
Fields inherited from class org.opt4j.start.Opt4JModule
SINGLETON
-
-
Constructor Summary
Constructors Constructor Description SimulatedAnnealingModule()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
config()
Configure the module.int
getIterations()
Returns the number of iterations.void
setIterations(int iterations)
Sets the number of iterations.-
Methods inherited from class org.opt4j.core.optimizer.OptimizerModule
bindOptimizer
-
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
-
-
-
-
Method Detail
-
getIterations
public int getIterations()
Returns the number of iterations.- Returns:
- the number of iterations
- See Also:
setIterations(int)
-
setIterations
public void setIterations(int iterations)
Sets the number of iterations.- Parameters:
iterations
- the number of iterations- See Also:
getIterations()
-
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
-
-