Serialized Form
adfIndex
int adfIndex
- should be set to the index corresponding to this ADF in the adf array
defined in your GPParameters extension.
- See Also:
GPParameters
adfIndex
int adfIndex
- should be set to the index corresponding to this ADF in the adf array
defined in your GPParameters extension.
- See Also:
GPParameters
adf
int adf
- index into the adf array in the gpParameters. It is used to acces the
ChromosomeParameters associated with this chromosome.
complexity
int complexity
- A count of the total number of nodes in this tree.
gpParameters
GPParameters gpParameters
- The GPParameters used to create this chromosome
- See Also:
GPParameters
treeTop
Gene treeTop
- The Gene at the top of the tree.
this gene is evaulated when this ADF needs evaluation
- See Also:
Gene
createMethod
int createMethod
- The method of Chromosome creation, this can be initialised to any
of the following constants.
functions
Function[] functions
- The table of available functions.
functionsOfTypeAtDepthFull
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.
functionsOfTypeAtDepthGrow
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.
maxDepth
int maxDepth
- The maximum depth of the Gene tree.
maxDepthAtCreation
int maxDepthAtCreation
- The maximum depth at creation of the Gene tree.
maxDepthMutation
int maxDepthMutation
- The maximum depth of tree created to mutate the Gene tree.
terminals
Terminal[] terminals
- The table of available terminals.
terminalsOfType
TypeToTerminalsTable terminalsOfType
- A hash table mapping a given Type to an array of terminals of that
Type.
type
Type type
- The type to be returned by the Chromosome.
- See Also:
Type
types
Type[] types
- The table of available types.
argTypes
Type[] argTypes
- The types of each argument that this function takes. The length of
this array therefore specifies the number of arguments.
p
Primitive p
- The primitive associated with this Gene which is either a Function or a
Terminal.
arguments
Gene[] arguments
- The arguments for this function call. The length of this array is
equal to the number of arguments taken by the function referenced by
this Gene.
adf
ChromosomeParameters[] adf
- Parameters for each ADF to be evolved. The length of this array is
effectively the number of ADFs required.
creationIndex
int creationIndex
- Used during the generation of the initial popupation. It is the index
of the current Individual being created.
engine
int engine
- The engine to be used for evolution. The value of this variable must
be set to one of the class constants beggining with ENGINE_ such as
ENGINE_STEADYSTATE.
fitness
Fitness fitness
- The Fitness definition for the problem.
generations
int generations
- The number of generations to evolve.
pMutation
double pMutation
- The probability of mutation. This needs to be a number between 0 and 1.
population
Population population
- The population. This field is filled in automatically by the GP system.
populationSize
int populationSize
- How many Individuals there are in the population.
pReproduction
double pReproduction
- The probability of Reproduction. This needs to be a number between 0 and
1.
rng
java.util.Random rng
- The random number generator. This should have been created with the
above seed.
rngSeed
long rngSeed
- The random number generator seed.
tournamentSize
int tournamentSize
- The tournament size to be used for tournament selection during crossover
and mutation.
adf
Chromosome[] adf
- An Individual has a number of Chromosomes. The chromosome are Gene
trees representing automatically defined functions.
complexity
int complexity
- The total number of Genes used across all Chromosomes.
fitness
Fitness fitness
- An Individual has Fitness which is a measure of the suitability of the
for solving the problem for which it was evolved.
averageComplexity
double averageComplexity
- The average number of nodes in the Individuals of the Population.
averageFitness
Fitness averageFitness
- The average fitness of the Population.
bestGeneration
Individual bestGeneration
- The fittest Individual in the Population.
bestRun
Individual bestRun
- The fittest Individual of the Run.
crossovers
long crossovers
- Total number of crossovers performed.
generation
int generation
- The current generation number.
gpParameters
GPParameters gpParameters
- The GP parameters for the problem.
mutations
long mutations
- Total number of mutations performed.
p
Individual[] p
- The Individuals in this population.
reproductions
long reproductions
- Total number of reproductions performed.
type
Type type
- The type returned by this primitive.
typeID
int typeID
- The typeID uniquely identifies the Type.
typeName
java.lang.String typeName
- The name given to the type.
theTable
java.util.Hashtable theTable
- The hash table used to store the Function arrays. The key used is the
return type of the Functions.
theTable
java.util.Hashtable theTable
arg0
ADF2Arg0 arg0
- A reference to the Terminal defining the argument to this Function.
value
Vector2Mod8 value
- The value of the argument.
rng
java.util.Random rng
- The random number generator.
v
Vector2Mod8 v
- The value of this constant.
mower
Mower mower
cutCount
int cutCount
- Used to keep a count of how many squares have been cut.
lawn
int[][] lawn
- Used to hold the state of each square of the lawn.
filePrefix
java.lang.String filePrefix
- The file prefix to use for saving generations and writing reports.
lawn
Lawn lawn
- The lawn being mowed.
arg0
ADF2Arg0 arg0
complexity
int complexity
- The complexity of the individual i.e. the number of Genes it contains.
fitness
int fitness
- The number of uncut squares left on the lawn.
lawn
Lawn lawn
- The lawn to be cut.
mower
Mower mower
lawn
Lawn lawn
- The lawn to be mowed.
mower
Mower mower
- The mower to be controlled.
lawn
Lawn lawn
- The lawn being monitored.
mowerX
int mowerX
- The current X-coordinate of the lawnmower.
mowerY
int mowerY
- The current Y-coordinate of the lawnmower.
mower
Mower mower
- The lawnmower being controlled.
mower
Mower mower
- The lawnmower being controlled.
direction
int direction
- The current direction of the mower, can be one of NORTH, EAST, SOUTH or
WEST.
lawn
Lawn lawn
- The lawn to be mowed.
leftTurnsAvailable
int leftTurnsAvailable
- The ration of left turn operations available.
movementAvailable
int movementAvailable
- The ration of movement operations available.
x
int x
- The X corrdinate of the mower on the lawn.
y
int y
- The Y corrdinate of the mower on the lawn.
x
int x
- The first element of the vector.
y
int y
- The second element of the vector.
d
double d
- The value of this constant.
from
double from
- The smallest value that this constant can take.
rng
java.util.Random rng
- The random number generator used to create this constant.
to
double to
- The largest value that this constant can take.
f
float f
- The value of this constant.
from
float from
- The smallest value that this constant can take.
rng
java.util.Random rng
- The random number generator used to create this constant.
to
float to
- The largest value that this constant can take.
memory
boolean[] memory
- The array used to implement the memory.
memory
byte[] memory
- The array used to implement the memory.
memory
char[] memory
- The array used to implement the memory.
memory
double[] memory
- The array used to implement the memory.
memory
float[] memory
- The array used to implement the memory.
memory
int[] memory
- The array used to implement the memory.
memory
long[] memory
- The array used to implement the memory.
memory
java.lang.Object[] memory
- The array used to implement the memory.
memory
short[] memory
- The array used to implement the memory.
bvalue
boolean bvalue
- Holds the value of the variable.
bvalue
byte bvalue
- Holds the value of the variable.
cvalue
char cvalue
- Holds the value of the variable.
dvalue
double dvalue
- Holds the value of the variable.
fvalue
float fvalue
- Holds the value of the variable.
ivalue
int ivalue
- Holds the value of the variable.
lvalue
long lvalue
- Holds the value of the variable.
ovalue
java.lang.Object ovalue
- Holds the value of the variable.
svalue
short svalue
- Holds the value of the variable.
complexity
int complexity
- The complexity of the GP i.e. the number of Genes it contains.
fitness
double fitness
- The error between the ideal function and the GP.