Package org.opt4j.operator.mutate
Class BasicMutateModule
java.lang.Object
com.google.inject.AbstractModule
org.opt4j.start.Opt4JModule
org.opt4j.operator.OperatorModule<Mutate<?>>
org.opt4j.operator.mutate.MutateModule
org.opt4j.operator.mutate.BasicMutateModule
- All Implemented Interfaces:
com.google.inject.Module
The basic
CopyModule.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumType ofMutateoperator for theDoubleGenotype.static enumThe type of the used mutation rate.static enumType ofMutateoperator for thePermutationGenotype. -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected BasicMutateModule.DoubleTypeprotected doubleprotected doubleprotected BasicMutateModule.MutationRateTypeprotected BasicMutateModule.PermutationTypeprotected doubleFields inherited from class org.opt4j.start.Opt4JModule
SINGLETON -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidconfig()Configure the module.Returns the double type.doublegetEta()Returns the eta.doubleReturns theMutationRateas a double value.Returns theBasicMutateModule.MutationRateType.Returns the permutation mode.doublegetSigma()Returns the sigma value.voidsetDoubleType(BasicMutateModule.DoubleType doubleType) Sets the double type.voidsetEta(double eta) Sets the eta.voidsetMutationRate(double mutationRate) Sets theMutationRate.voidsetMutationRateType(BasicMutateModule.MutationRateType mutationRateType) Sets theBasicMutateModule.MutationRateType.voidsetPermutationType(BasicMutateModule.PermutationType permutationMode) Sets the permutation mode.voidsetSigma(double sigma) Sets the sigma value.Methods inherited from class org.opt4j.operator.mutate.MutateModule
getOperatorTypeLiteralMethods inherited from class org.opt4j.operator.OperatorModule
addOperator, addOperator, addOperatorMethods 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
-
mutationRateType
-
permutationType
-
doubleType
-
eta
protected double eta -
sigma
protected double sigma -
mutationRate
protected double mutationRate
-
-
Constructor Details
-
BasicMutateModule
public BasicMutateModule()Constructs aBasicMutateModule.
-
-
Method Details
-
getMutationRateType
Returns theBasicMutateModule.MutationRateType.- Returns:
- the type of mutation rate
-
setMutationRateType
Sets theBasicMutateModule.MutationRateType.- Parameters:
mutationRateType- the type of mutation rate
-
getMutationRate
public double getMutationRate()Returns theMutationRateas a double value.- Returns:
- the mutation rate
-
setMutationRate
public void setMutationRate(double mutationRate) Sets theMutationRate.- Parameters:
mutationRate- the mutation rate
-
getPermutationType
Returns the permutation mode.- Returns:
- the permutation mode
-
setPermutationType
Sets the permutation mode.- Parameters:
permutationMode- the permutation mode
-
getDoubleType
Returns the double type.- Returns:
- the doubleType
-
setDoubleType
Sets the double type.- Parameters:
doubleType- the doubleType to set
-
getEta
public double getEta()Returns the eta.- Returns:
- the eta
-
setEta
public void setEta(double eta) Sets the eta.- Parameters:
eta- the eta to set
-
getSigma
public double getSigma()Returns the sigma value.- Returns:
- the sigma
-
setSigma
public void setSigma(double sigma) Sets the sigma value.- Parameters:
sigma- the sigma to set
-
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
-