All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class gpsys.ChromosomeParameters

java.lang.Object
   |
   +----gpsys.ChromosomeParameters

public class ChromosomeParameters
extends Object
implements Serializable
ChromosomeParameters define information needed to construct a chromosome. Users should extend this class for each ADF to be defined.

Version:
1.1, 30th June '97
Author:
Adil Qureshi
Department of Computer Science,
University College London,
Gower St,
London WC1E 6BT,
UK.
See Also:
Chromsome, GPParameters

Variable Index

 o CREATE_FULL
This constant used to initialise the createMethod variable to select the full method of creation.
 o CREATE_GROW
This constant used to initialise the createMethod variable to select the grow method of creation.
 o CREATE_RAMP_HALF_AND_HALF
This constant used to initialise the createMethod variable to select the ramp method of creation.
 o createMethod
The method of Chromosome creation, this can be initialised to any of the following constants.
 o functions
The table of available functions.
 o functionsOfTypeAtDepthFull
Functions of a given return type possible at a given depth for both the FULL creation method.
 o functionsOfTypeAtDepthGrow
Functions of a given return type possible at a given depth for both the GROW creation method.
 o maxDepth
The maximum depth of the Gene tree.
 o maxDepthAtCreation
The maximum depth at creation of the Gene tree.
 o maxDepthMutation
The maximum depth of tree created to mutate the Gene tree.
 o terminals
The table of available terminals.
 o terminalsOfType
A hash table mapping a given Type to an array of terminals of that Type.
 o type
The type to be returned by the Chromosome.
 o types
The table of available types.

Constructor Index

 o ChromosomeParameters()

Method Index

 o initialiseTypeTables(int)
Initialises the type possibilities tables, read the "Strongly Typed Genetic Programing" paper by David J.

Variables

 o type
 public Type type
The type to be returned by the Chromosome.

See Also:
Type
 o maxDepth
 public int maxDepth
The maximum depth of the Gene tree.

 o maxDepthAtCreation
 public int maxDepthAtCreation
The maximum depth at creation of the Gene tree.

 o maxDepthMutation
 public int maxDepthMutation
The maximum depth of tree created to mutate the Gene tree.

 o functions
 public Function functions[]
The table of available functions.

 o terminals
 public Terminal terminals[]
The table of available terminals.

 o types
 public Type types[]
The table of available types.

 o functionsOfTypeAtDepthGrow
 public TypeToFunctionsTable functionsOfTypeAtDepthGrow[]
Functions of a given return type possible at a given depth for both the GROW creation method. The index = the required depth, the array contains a hash table mapping Types to Function arrays - note that not all functions of given return type possible at a given depth.

 o functionsOfTypeAtDepthFull
 public TypeToFunctionsTable functionsOfTypeAtDepthFull[]
Functions of a given return type possible at a given depth for both the FULL creation method. The index = the required depth, the array contains a hash table mapping Types to Function arrays - note that not all functions of given return type possible at a given depth.

 o terminalsOfType
 public TypeToTerminalsTable terminalsOfType
A hash table mapping a given Type to an array of terminals of that Type.

 o createMethod
 public int createMethod
The method of Chromosome creation, this can be initialised to any of the following constants.

 o CREATE_FULL
 public static final int CREATE_FULL
This constant used to initialise the createMethod variable to select the full method of creation. The full method creates Gene trees of the maximum available depth.

 o CREATE_GROW
 public static final int CREATE_GROW
This constant used to initialise the createMethod variable to select the grow method of creation. The grow method creates Gene trees of variable depths.

 o CREATE_RAMP_HALF_AND_HALF
 public static final int CREATE_RAMP_HALF_AND_HALF
This constant used to initialise the createMethod variable to select the ramp method of creation. The ramp half and half method creates Gene trees in the population of which half are created using the full method and the other half are created using the grow method. The depth of these trees is varied between 2 and maxDepthAtCreation.

Constructors

 o ChromosomeParameters
 public ChromosomeParameters()

Methods

 o initialiseTypeTables
 public void initialiseTypeTables(int maxDepthAtCreation)
Initialises the type possibilities tables, read the "Strongly Typed Genetic Programing" paper by David J. Montana.

Parameters:
maxDepthAtCreation - the maximum depth at creation of the Gene trees.

All Packages  Class Hierarchy  This Package  Previous  Next  Index