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
public class DifferentialEvolutionModule extends OptimizerModule
-
-
Field Summary
Fields Modifier and Type Field Description protected int
alpha
protected int
generations
protected double
scalingFactor
-
Fields inherited from class org.opt4j.start.Opt4JModule
SINGLETON
-
-
Constructor Summary
Constructors Constructor Description DifferentialEvolutionModule()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
config()
Configure the module.int
getAlpha()
Returns the alpha.int
getGenerations()
Returns the generations.double
getScalingFactor()
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
-
-
-
-
Method Detail
-
getAlpha
public int getAlpha()
Returns the alpha.- Returns:
- the alpha
- See Also:
setAlpha(int)
-
setAlpha
public void setAlpha(int alpha)
Sets the alpha.- Parameters:
alpha
- the alpha to set- See Also:
getAlpha()
-
getGenerations
public int getGenerations()
Returns the generations.- Returns:
- the generations
- See Also:
setGenerations(int)
-
setGenerations
public void setGenerations(int generations)
Sets the generations.- Parameters:
generations
- the generations to set- See Also:
getGenerations()
-
getScalingFactor
public double getScalingFactor()
Returns the scaling factor.- Returns:
- the scalingFactor
- See Also:
setScalingFactor(double)
-
setScalingFactor
public void setScalingFactor(double scalingFactor)
Sets the scaling factor.- Parameters:
scalingFactor
- the scalingFactor to set- See Also:
getScalingFactor()
-
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
-
-