geneticWedge.gp
Enum Population.PerformanceFunction

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

public static enum Population.PerformanceFunction
extends java.lang.Enum<Population.PerformanceFunction>

PerformanceFunctions are used to create multi-objective evaluation functions. They may be used in addition to a normal FitnessFunction and are applied either in a multi-objective (Pareto-type) manner or in a single objective manner, using a weighted sum of the FitnessFunction and the PerformanceFunctions.


Enum Constant Summary
DIVERSITY_DISTANCE
          Aims to minimise the average genotypic distance of an Individual from all other members of the population
FUNCTION_COMPLEXITY
          Aims to minimise the complexity of functions used by an Individual.
PROGRAM_LENGTH
          Aims to minimise program length (number of nodes)
VARIABLE_MAX
          Aims to maximise the number of different variables (Inputs) used
VARIABLE_MIN
          Aims to minimise the number of different variables (Inputs) used
 
Method Summary
static Population.PerformanceFunction valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static Population.PerformanceFunction[] 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

PROGRAM_LENGTH

public static final Population.PerformanceFunction PROGRAM_LENGTH
Aims to minimise program length (number of nodes)


DIVERSITY_DISTANCE

public static final Population.PerformanceFunction DIVERSITY_DISTANCE
Aims to minimise the average genotypic distance of an Individual from all other members of the population


FUNCTION_COMPLEXITY

public static final Population.PerformanceFunction FUNCTION_COMPLEXITY
Aims to minimise the complexity of functions used by an Individual. Simple arithmetic functions are considered to be of low complexity, whereas higher order functions such as pow and exp are considered to be of high complexity.


VARIABLE_MAX

public static final Population.PerformanceFunction VARIABLE_MAX
Aims to maximise the number of different variables (Inputs) used


VARIABLE_MIN

public static final Population.PerformanceFunction VARIABLE_MIN
Aims to minimise the number of different variables (Inputs) used

Method Detail

values

public static final Population.PerformanceFunction[] 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(Population.PerformanceFunction c : Population.PerformanceFunction.values())
        System.out.println(c);

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

valueOf

public static Population.PerformanceFunction 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