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
This module binds the
SimulatedAnnealing optimizer.-
Field Summary
FieldsFields inherited from class org.opt4j.start.Opt4JModule
SINGLETON -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidconfig()Configure the module.intReturns the number of iterations.voidsetIterations(int iterations) Sets the number of iterations.Methods inherited from class org.opt4j.core.optimizer.OptimizerModule
bindOptimizerMethods inherited from class org.opt4j.start.Opt4JModule
addControlListener, addIndividualStateListener, addOptimizerIterationListener, addOptimizerStateListener, bindConstant, bindConstant, bindConstant, bindConstant, configure, constant, multiMethods 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
-
iterations
protected int iterations
-
-
Constructor Details
-
SimulatedAnnealingModule
public SimulatedAnnealingModule()
-
-
Method Details
-
getIterations
public int getIterations()Returns the number of iterations.- Returns:
- the number of iterations
- See Also:
-
setIterations
public void setIterations(int iterations) Sets the number of iterations.- Parameters:
iterations- the number of iterations- See Also:
-
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
-