Package org.opt4j.optimizer.ea
Enum EvolutionaryAlgorithmModule.CrossoverRateType
- java.lang.Object
-
- java.lang.Enum<EvolutionaryAlgorithmModule.CrossoverRateType>
-
- org.opt4j.optimizer.ea.EvolutionaryAlgorithmModule.CrossoverRateType
-
- All Implemented Interfaces:
Serializable
,Comparable<EvolutionaryAlgorithmModule.CrossoverRateType>
- Enclosing class:
- EvolutionaryAlgorithmModule
public static enum EvolutionaryAlgorithmModule.CrossoverRateType extends Enum<EvolutionaryAlgorithmModule.CrossoverRateType>
TheEvolutionaryAlgorithmModule.CrossoverRateType
allows to choose between different types of crossover rates.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CONSTANT
Use a constant crossover rate.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static EvolutionaryAlgorithmModule.CrossoverRateType
valueOf(String name)
Returns the enum constant of this type with the specified name.static EvolutionaryAlgorithmModule.CrossoverRateType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
CONSTANT
public static final EvolutionaryAlgorithmModule.CrossoverRateType CONSTANT
Use a constant crossover rate.
-
-
Method Detail
-
values
public static EvolutionaryAlgorithmModule.CrossoverRateType[] 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 (EvolutionaryAlgorithmModule.CrossoverRateType c : EvolutionaryAlgorithmModule.CrossoverRateType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static EvolutionaryAlgorithmModule.CrossoverRateType 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
-
-