Package org.opt4j.operator.crossover
Enum BasicCrossoverModule.DoubleType
- java.lang.Object
-
- java.lang.Enum<BasicCrossoverModule.DoubleType>
-
- org.opt4j.operator.crossover.BasicCrossoverModule.DoubleType
-
- All Implemented Interfaces:
Serializable
,Comparable<BasicCrossoverModule.DoubleType>
- Enclosing class:
- BasicCrossoverModule
public static enum BasicCrossoverModule.DoubleType extends Enum<BasicCrossoverModule.DoubleType>
Type ofCrossover
operator for theDoubleGenotype
.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description BLX
Use theCrossoverDoubleBLX
.SBX
Use theCrossoverDoubleSBX
.UNFAIR_AVERAGE
Use theCrossoverDoubleUnfairAverage
.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static BasicCrossoverModule.DoubleType
valueOf(String name)
Returns the enum constant of this type with the specified name.static BasicCrossoverModule.DoubleType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
BLX
public static final BasicCrossoverModule.DoubleType BLX
Use theCrossoverDoubleBLX
.
-
SBX
public static final BasicCrossoverModule.DoubleType SBX
Use theCrossoverDoubleSBX
.
-
UNFAIR_AVERAGE
public static final BasicCrossoverModule.DoubleType UNFAIR_AVERAGE
Use theCrossoverDoubleUnfairAverage
.
-
-
Method Detail
-
values
public static BasicCrossoverModule.DoubleType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (BasicCrossoverModule.DoubleType c : BasicCrossoverModule.DoubleType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static BasicCrossoverModule.DoubleType valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
-