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
-
CREATE_FULL
- This constant used to initialise the createMethod variable to
select the full method of creation.
-
CREATE_GROW
- This constant used to initialise the createMethod variable to
select the grow method of creation.
-
CREATE_RAMP_HALF_AND_HALF
- This constant used to initialise the createMethod variable to
select the ramp method of creation.
-
createMethod
- The method of Chromosome creation, this can be initialised to any
of the following constants.
-
functions
- The table of available functions.
-
functionsOfTypeAtDepthFull
- Functions of a given return type possible at a given depth
for both the FULL creation method.
-
functionsOfTypeAtDepthGrow
- Functions of a given return type possible at a given depth
for both the GROW creation method.
-
maxDepth
- The maximum depth of the Gene tree.
-
maxDepthAtCreation
- The maximum depth at creation of the Gene tree.
-
maxDepthMutation
- The maximum depth of tree created to mutate the Gene tree.
-
terminals
- The table of available terminals.
-
terminalsOfType
- A hash table mapping a given Type to an array of terminals of that
Type.
-
type
- The type to be returned by the Chromosome.
-
types
- The table of available types.
-
ChromosomeParameters()
-
-
initialiseTypeTables(int)
- Initialises the type possibilities tables, read the
"Strongly Typed Genetic Programing" paper by David J.
type
public Type type
- The type to be returned by the Chromosome.
- See Also:
- Type
maxDepth
public int maxDepth
- The maximum depth of the Gene tree.
maxDepthAtCreation
public int maxDepthAtCreation
- The maximum depth at creation of the Gene tree.
maxDepthMutation
public int maxDepthMutation
- The maximum depth of tree created to mutate the Gene tree.
functions
public Function functions[]
- The table of available functions.
terminals
public Terminal terminals[]
- The table of available terminals.
types
public Type types[]
- The table of available types.
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.
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.
terminalsOfType
public TypeToTerminalsTable terminalsOfType
- A hash table mapping a given Type to an array of terminals of that
Type.
createMethod
public int createMethod
- The method of Chromosome creation, this can be initialised to any
of the following constants.
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.
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.
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.
ChromosomeParameters
public ChromosomeParameters()
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