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
FieldsModifier and TypeFieldDescriptionprotected intprotected intprotected doubleFields inherited from class org.opt4j.start.Opt4JModule
SINGLETON -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidconfig()Configure the module.intgetAlpha()Returns the alpha.intReturns the generations.doubleReturns the scaling factor.voidsetAlpha(int alpha) Sets the alpha.voidsetGenerations(int generations) Sets the generations.voidsetScalingFactor(double scalingFactor) Sets the scaling factor.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
-
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:Opt4JModuleConfigure the module. Bind constants, listeners, and bind arbitrary classes.- Specified by:
configin classOpt4JModule- See Also:
-
Binder
-