public class BasicCrossoverModule extends CrossoverModule
BasicCrossoverModule
.Modifier and Type | Class and Description |
---|---|
static class |
BasicCrossoverModule.BooleanType
Type of
Crossover operator for the BooleanGenotype . |
static class |
BasicCrossoverModule.DoubleType
Type of
Crossover operator for the DoubleGenotype . |
static class |
BasicCrossoverModule.IntegerType
Type of
Crossover operator for the IntegerGenotype . |
static class |
BasicCrossoverModule.PermutationType
Type of
Crossover operator for the PermutationGenotype . |
Modifier and Type | Field and Description |
---|---|
protected double |
alpha |
protected double |
booleanRate |
protected BasicCrossoverModule.BooleanType |
booleanType |
protected int |
booleanXPoints |
protected BasicCrossoverModule.DoubleType |
doubleType |
protected double |
integerRate |
protected BasicCrossoverModule.IntegerType |
integerType |
protected int |
integerXPoints |
protected double |
nu |
protected BasicCrossoverModule.PermutationType |
permutationType |
protected boolean |
rotation |
Constructor and Description |
---|
BasicCrossoverModule()
Constructs a
BasicCrossoverModule . |
Modifier and Type | Method and Description |
---|---|
void |
config() |
double |
getAlpha()
Returns the alpha value of the
CrossoverDoubleBLX or
CrossoverDoubleUnfairAverage , respectively. |
double |
getBooleanRate()
Returns the rate of the
CrossoverBooleanRate . |
BasicCrossoverModule.BooleanType |
getBooleanType()
Return the
Operator for BooleanGenotype . |
int |
getBooleanXPoints()
Returns the number of crossover points of the
CrossoverBooleanXPoint . |
BasicCrossoverModule.DoubleType |
getDoubleType()
Return the
Operator for DoubleGenotype . |
double |
getIntegerRate()
Returns the rate of the
CrossoverIntegerRate . |
BasicCrossoverModule.IntegerType |
getIntegerType()
Return the
Operator for IntegerGenotype . |
int |
getIntegerXPoints()
Returns the number of crossover points of the
CrossoverIntegerXPoint . |
double |
getNu()
Returns the nu value of the
CrossoverDoubleSBX . |
BasicCrossoverModule.PermutationType |
getPermutationType()
Returns the
BasicCrossoverModule.PermutationType . |
boolean |
isRotation()
|
void |
setAlpha(double alpha)
Sets the alpha value of the
CrossoverDoubleBLX or
CrossoverDoubleUnfairAverage , respectively. |
void |
setBooleanRate(double booleanRate)
Sets the rate of the
CrossoverBooleanRate . |
void |
setBooleanType(BasicCrossoverModule.BooleanType booleanType)
Sets the
Operator for BooleanGenotype . |
void |
setBooleanXPoints(int booleanXPoints)
Sets the number of crossover points of the
CrossoverBooleanXPoint
. |
void |
setDoubleType(BasicCrossoverModule.DoubleType doubleType)
Sets the
Operator for DoubleGenotype . |
void |
setIntegerRate(double integerRate)
Sets the rate of the
CrossoverIntegerRate . |
void |
setIntegerType(BasicCrossoverModule.IntegerType integerType)
Sets the
Operator for IntegerGenotype . |
void |
setIntegerXPoints(int integerXPoint)
Sets the number of crossover points of the
CrossoverIntegerXPoint
. |
void |
setNu(double nu)
Sets the nu value of the
CrossoverDoubleSBX . |
void |
setPermutationType(BasicCrossoverModule.PermutationType permutationType)
Sets the
BasicCrossoverModule.PermutationType . |
void |
setRotation(boolean rotation)
Sets the rotation value for the
Crossover operator for the
PermutationGenotype . |
getOperatorTypeLiteral
addOperator, addOperator, addOperator, addOperatorSelector, addOperatorSelectorInstance
addControlListener, addIndividualStateListener, addOptimizerIterationListener, addOptimizerStateListener, bindConstant, bindConstant, bindConstant, bindConstant, configure, constant, multi
addError, addError, addError, bind, bind, bind, bindConstant, binder, bindInterceptor, bindListener, bindListener, bindScope, configure, convertToTypes, currentStage, getMembersInjector, getMembersInjector, getProvider, getProvider, install, requestInjection, requestStaticInjection, requireBinding, requireBinding
protected BasicCrossoverModule.BooleanType booleanType
protected double booleanRate
protected int booleanXPoints
protected BasicCrossoverModule.DoubleType doubleType
protected double alpha
protected double nu
protected BasicCrossoverModule.PermutationType permutationType
protected boolean rotation
protected BasicCrossoverModule.IntegerType integerType
protected double integerRate
protected int integerXPoints
public BasicCrossoverModule()
BasicCrossoverModule
.public double getIntegerRate()
CrossoverIntegerRate
.public void setIntegerRate(double integerRate)
CrossoverIntegerRate
.integerRate
- the ratepublic int getIntegerXPoints()
CrossoverIntegerXPoint
.public void setIntegerXPoints(int integerXPoint)
CrossoverIntegerXPoint
.integerXPoint
- the number of crossover pointspublic BasicCrossoverModule.IntegerType getIntegerType()
Operator
for IntegerGenotype
.public void setIntegerType(BasicCrossoverModule.IntegerType integerType)
Operator
for IntegerGenotype
.integerType
- the operatorpublic double getBooleanRate()
CrossoverBooleanRate
.public void setBooleanRate(double booleanRate)
CrossoverBooleanRate
.booleanRate
- the ratepublic int getBooleanXPoints()
CrossoverBooleanXPoint
.public void setBooleanXPoints(int booleanXPoints)
CrossoverBooleanXPoint
.booleanXPoints
- the number of crossover pointspublic BasicCrossoverModule.BooleanType getBooleanType()
Operator
for BooleanGenotype
.public void setBooleanType(BasicCrossoverModule.BooleanType booleanType)
Operator
for BooleanGenotype
.booleanType
- the operatorpublic double getAlpha()
CrossoverDoubleBLX
or
CrossoverDoubleUnfairAverage
, respectively.public void setAlpha(double alpha)
CrossoverDoubleBLX
or
CrossoverDoubleUnfairAverage
, respectively.alpha
- the alpha valuepublic double getNu()
CrossoverDoubleSBX
.public void setNu(double nu)
CrossoverDoubleSBX
.nu
- the nu valuepublic BasicCrossoverModule.DoubleType getDoubleType()
Operator
for DoubleGenotype
.public void setDoubleType(BasicCrossoverModule.DoubleType doubleType)
Operator
for DoubleGenotype
.doubleType
- the operatorpublic BasicCrossoverModule.PermutationType getPermutationType()
BasicCrossoverModule.PermutationType
.public void setPermutationType(BasicCrossoverModule.PermutationType permutationType)
BasicCrossoverModule.PermutationType
.permutationType
- the permutation typepublic boolean isRotation()
true
if rotation is usedpublic void setRotation(boolean rotation)
Crossover
operator for the
PermutationGenotype
.rotation
- the rotation valuepublic void config()
config
in class org.opt4j.core.start.Opt4JModule