geneticWedge.gp
Enum AbstractPopulation.SelectionMethod

java.lang.Object
  extended by java.lang.Enum<AbstractPopulation.SelectionMethod>
      extended by geneticWedge.gp.AbstractPopulation.SelectionMethod
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<AbstractPopulation.SelectionMethod>
Enclosing class:
AbstractPopulation

public static enum AbstractPopulation.SelectionMethod
extends java.lang.Enum<AbstractPopulation.SelectionMethod>

SelectionMethod determines how Individuals are selected for breeding.


Enum Constant Summary
FITNESS_PROPORTIONAL
          Fitness proportional selection uses a simple roulette wheel technique to select Individuals.
FUSS
          FUSS stands for 'fitness uniform selection scheme'.
RANDOM
          Random selection
RANK
          Rank selection selects Individuals according to their rankings within a Population
TOURNAMENT
          Tournament selection selects the best Individual from within a randomly chosen pool (tournament) of Individuals.
TRUNCATION
          Truncation Selection breeds a number of Individuals using a pool of parents and then selects the best offspring to go into the nexy generation.
 
Method Summary
static AbstractPopulation.SelectionMethod valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static AbstractPopulation.SelectionMethod[] values()
          Returns an array containing the constants of this enum type, in the order they're declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

RANDOM

public static final AbstractPopulation.SelectionMethod RANDOM
Random selection


FITNESS_PROPORTIONAL

public static final AbstractPopulation.SelectionMethod FITNESS_PROPORTIONAL
Fitness proportional selection uses a simple roulette wheel technique to select Individuals.


RANK

public static final AbstractPopulation.SelectionMethod RANK
Rank selection selects Individuals according to their rankings within a Population


TOURNAMENT

public static final AbstractPopulation.SelectionMethod TOURNAMENT
Tournament selection selects the best Individual from within a randomly chosen pool (tournament) of Individuals.


TRUNCATION

public static final AbstractPopulation.SelectionMethod TRUNCATION
Truncation Selection breeds a number of Individuals using a pool of parents and then selects the best offspring to go into the nexy generation.


FUSS

public static final AbstractPopulation.SelectionMethod FUSS
FUSS stands for 'fitness uniform selection scheme'. It selects from sparse regions in order to create a homogeneously distributed population

Method Detail

values

public static final AbstractPopulation.SelectionMethod[] values()
Returns an array containing the constants of this enum type, in the order they're declared. This method may be used to iterate over the constants as follows:
for(AbstractPopulation.SelectionMethod c : AbstractPopulation.SelectionMethod.values())
        System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they're declared

valueOf

public static AbstractPopulation.SelectionMethod valueOf(java.lang.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:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name