ec.gp
Class GPInitializer

java.lang.Object
  |
  +--ec.Initializer
        |
        +--ec.simple.SimpleInitializer
              |
              +--ec.gp.GPInitializer

public class GPInitializer
extends SimpleInitializer

GPInitializer is a SimpleInitializer which sets up all the Cliques, ( the initial [tree/node]constraints, types, and function sets) for the GP system.

Note that the Cliques must be set up in a very particular order:

  1. GPType
  2. GPNodeConstraints
  3. GPFunctionSets
  4. GPTreeConstraints

Parameter bases
gp.type GPTypes
gp.nc GPNodeConstraints
gp.tc GPTreeConstraints
gp.fs GPFunctionSets

See Also:
Serialized Form

Field Summary
static java.lang.String P_FUNCTIONSETS
           
static java.lang.String P_NODECONSTRAINTS
           
static java.lang.String P_TREECONSTRAINTS
           
static java.lang.String P_TYPE
           
 
Fields inherited from class ec.Initializer
P_POP
 
Constructor Summary
GPInitializer()
           
 
Method Summary
 void setup(EvolutionState state, Parameter base)
          Sets up the object by reading it from the parameters stored in state, built off of the parameter base base.
 
Methods inherited from class ec.simple.SimpleInitializer
initialPopulation
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

P_TYPE

public static final java.lang.String P_TYPE

P_NODECONSTRAINTS

public static final java.lang.String P_NODECONSTRAINTS

P_TREECONSTRAINTS

public static final java.lang.String P_TREECONSTRAINTS

P_FUNCTIONSETS

public static final java.lang.String P_FUNCTIONSETS
Constructor Detail

GPInitializer

public GPInitializer()
Method Detail

setup

public void setup(EvolutionState state,
                  Parameter base)
Description copied from interface: Setup
Sets up the object by reading it from the parameters stored in state, built off of the parameter base base. If an ancestor implements this method, be sure to call super.setup(state,base); before you do anything else.
Overrides:
setup in class SimpleInitializer