public static enum GeneticAlgorithm.Selection extends Enum<GeneticAlgorithm.Selection>
Enum Constant and Description |
---|
RANK
Rank Selection.
|
ROULETTE_WHEEL
Roulette Wheel Selection, also called fitness proportionate selection.
|
SCALED_ROULETTE_WHEEL
Scaled Roulette Wheel Selection.
|
TOURNAMENT
Tournament Selection.
|
Modifier and Type | Method and Description |
---|---|
static GeneticAlgorithm.Selection |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static GeneticAlgorithm.Selection[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final GeneticAlgorithm.Selection ROULETTE_WHEEL
public static final GeneticAlgorithm.Selection SCALED_ROULETTE_WHEEL
public static final GeneticAlgorithm.Selection RANK
public static final GeneticAlgorithm.Selection TOURNAMENT
public static GeneticAlgorithm.Selection[] values()
for (GeneticAlgorithm.Selection c : GeneticAlgorithm.Selection.values()) System.out.println(c);
public static GeneticAlgorithm.Selection valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullCopyright © 2015. All rights reserved.