Package org.opt4j.optimizer.rs
Class RandomSearchModule
java.lang.Object
com.google.inject.AbstractModule
org.opt4j.start.Opt4JModule
org.opt4j.core.optimizer.OptimizerModule
org.opt4j.optimizer.rs.RandomSearchModule
- All Implemented Interfaces:
com.google.inject.Module
The
RandomSearchModule
.- See Also:
-
Field Summary
Fields inherited from class org.opt4j.start.Opt4JModule
SINGLETON
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
config()
Configure the module.int
Returns the number of batched individuals for the evaluation.int
Returns the number of iterations.void
setBatchsize
(int batchsize) Sets the number of batched individuals for the evaluation.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
-
Field Details
-
iterations
protected int iterations -
batchsize
protected int batchsize
-
-
Constructor Details
-
RandomSearchModule
public RandomSearchModule()
-
-
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:
-
getBatchsize
public int getBatchsize()Returns the number of batched individuals for the evaluation.- Returns:
- the batchsize
- See Also:
-
setBatchsize
public void setBatchsize(int batchsize) Sets the number of batched individuals for the evaluation.- Parameters:
batchsize
- the batchsize to set- See Also:
-
config
protected 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
-