Package org.opt4j.optimizers.rs
Class RandomSearchModule
- java.lang.Object
-
- com.google.inject.AbstractModule
-
- org.opt4j.core.start.Opt4JModule
-
- org.opt4j.core.optimizer.OptimizerModule
-
- org.opt4j.optimizers.rs.RandomSearchModule
-
- All Implemented Interfaces:
com.google.inject.Module
public class RandomSearchModule extends org.opt4j.core.optimizer.OptimizerModule
TheRandomSearchModule
.- See Also:
RandomSearch
-
-
Field Summary
Fields Modifier and Type Field Description protected int
batchsize
protected int
iterations
-
Constructor Summary
Constructors Constructor Description RandomSearchModule()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
config()
int
getBatchsize()
Returns the number of batched individuals for the evaluation.int
getIterations()
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
bindIterativeOptimizer, bindOptimizer
-
Methods inherited from class org.opt4j.core.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, 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()
-
getBatchsize
public int getBatchsize()
Returns the number of batched individuals for the evaluation.- Returns:
- the batchsize
- See Also:
setBatchsize(int)
-
setBatchsize
public void setBatchsize(int batchsize)
Sets the number of batched individuals for the evaluation.- Parameters:
batchsize
- the batchsize to set- See Also:
getBatchsize()
-
config
protected void config()
- Specified by:
config
in classorg.opt4j.core.start.Opt4JModule
-
-