Package org.opt4j.optimizer.de
Class DifferentialEvolutionModule
java.lang.Object
com.google.inject.AbstractModule
org.opt4j.start.Opt4JModule
org.opt4j.core.optimizer.OptimizerModule
org.opt4j.optimizer.de.DifferentialEvolutionModule
- All Implemented Interfaces:
com.google.inject.Module
-
Field Summary
Modifier and TypeFieldDescriptionprotected int
protected int
protected double
Fields inherited from class org.opt4j.start.Opt4JModule
SINGLETON
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
config()
Configure the module.int
getAlpha()
Returns the alpha.int
Returns the generations.double
Returns the scaling factor.void
setAlpha
(int alpha) Sets the alpha.void
setGenerations
(int generations) Sets the generations.void
setScalingFactor
(double scalingFactor) Sets the scaling factor.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
-
generations
protected int generations -
alpha
protected int alpha -
scalingFactor
protected double scalingFactor
-
-
Constructor Details
-
DifferentialEvolutionModule
public DifferentialEvolutionModule()
-
-
Method Details
-
getAlpha
public int getAlpha()Returns the alpha.- Returns:
- the alpha
- See Also:
-
setAlpha
public void setAlpha(int alpha) Sets the alpha.- Parameters:
alpha
- the alpha to set- See Also:
-
getGenerations
public int getGenerations()Returns the generations.- Returns:
- the generations
- See Also:
-
setGenerations
public void setGenerations(int generations) Sets the generations.- Parameters:
generations
- the generations to set- See Also:
-
getScalingFactor
public double getScalingFactor()Returns the scaling factor.- Returns:
- the scalingFactor
- See Also:
-
setScalingFactor
public void setScalingFactor(double scalingFactor) Sets the scaling factor.- Parameters:
scalingFactor
- the scalingFactor to set- See Also:
-
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
-