Serialized Form


Package gpsys

Class gpsys.ADFunction implements Serializable

Serialized Fields

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

Class gpsys.ADTerminal implements Serializable

Serialized Fields

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

Class gpsys.Chromosome implements Serializable

Serialized Fields

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

Class gpsys.ChromosomeParameters implements Serializable

Serialized Fields

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.

Class gpsys.DivideByZeroException implements Serializable

Class gpsys.EvaluationException implements Serializable

Class gpsys.Fitness implements Serializable

Class gpsys.Function implements Serializable

Serialized Fields

argTypes

Type[] argTypes
The types of each argument that this function takes. The length of this array therefore specifies the number of arguments.

Class gpsys.Gene implements Serializable

Serialized Fields

p

Primitive p
The primitive associated with this Gene which is either a Function or a Terminal.

Class gpsys.GeneFunction implements Serializable

Serialized Fields

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.

Class gpsys.GeneFunctionFull implements Serializable

Class gpsys.GeneFunctionGrow implements Serializable

Class gpsys.GeneTerminal implements Serializable

Class gpsys.GPException implements Serializable

Class gpsys.GPParameters implements Serializable

Serialized Fields

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.

Class gpsys.Individual implements Serializable

Serialized Fields

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.

Class gpsys.MissingEvaluatorException implements Serializable

Class gpsys.Population implements Serializable

Serialized Fields

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.

Class gpsys.Primitive implements Serializable

Serialized Fields

type

Type type
The type returned by this primitive.

Class gpsys.Terminal implements Serializable

Class gpsys.Type implements Serializable

Serialized Fields

typeID

int typeID
The typeID uniquely identifies the Type.

typeName

java.lang.String typeName
The name given to the type.

Class gpsys.TypeException implements Serializable

Class gpsys.TypeToFunctionsTable implements Serializable

Serialized Fields

theTable

java.util.Hashtable theTable
The hash table used to store the Function arrays. The key used is the return type of the Functions.

Class gpsys.TypeToTerminalsTable implements Serializable

Serialized Fields

theTable

java.util.Hashtable theTable


Package gpsys.lawnmower

Class gpsys.lawnmower.AddVector2Mod8 implements Serializable

Class gpsys.lawnmower.ADF1 implements Serializable

Class gpsys.lawnmower.ADF2 implements Serializable

Serialized Fields

arg0

ADF2Arg0 arg0
A reference to the Terminal defining the argument to this Function.

Class gpsys.lawnmower.ADF2Arg0 implements Serializable

Serialized Fields

value

Vector2Mod8 value
The value of the argument.

Class gpsys.lawnmower.ConstantVector2Mod8 implements Serializable

Serialized Fields

rng

java.util.Random rng
The random number generator.

v

Vector2Mod8 v
The value of this constant.

Class gpsys.lawnmower.Frog implements Serializable

Serialized Fields

mower

Mower mower

Class gpsys.lawnmower.Lawn implements Serializable

Serialized Fields

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.

Class gpsys.lawnmower.LawnMower implements Serializable

Serialized Fields

filePrefix

java.lang.String filePrefix
The file prefix to use for saving generations and writing reports.

lawn

Lawn lawn
The lawn being mowed.

Class gpsys.lawnmower.LawnMowerChromosomeParametersADF0 implements Serializable

Class gpsys.lawnmower.LawnMowerChromosomeParametersADF1 implements Serializable

Class gpsys.lawnmower.LawnMowerChromosomeParametersADF2 implements Serializable

Serialized Fields

arg0

ADF2Arg0 arg0

Class gpsys.lawnmower.LawnMowerFitness implements Serializable

Serialized Fields

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

Class gpsys.lawnmower.LawnMowerGPParameters implements Serializable

Serialized Fields

lawn

Lawn lawn
The lawn to be mowed.

mower

Mower mower
The mower to be controlled.

Class gpsys.lawnmower.LawnMowerTypes implements Serializable

Class gpsys.lawnmower.LawnViewer implements Serializable

Serialized Fields

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.

Class gpsys.lawnmower.Left implements Serializable

Serialized Fields

mower

Mower mower
The lawnmower being controlled.

Class gpsys.lawnmower.Mow implements Serializable

Serialized Fields

mower

Mower mower
The lawnmower being controlled.

Class gpsys.lawnmower.Mower implements Serializable

Serialized Fields

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.

Class gpsys.lawnmower.Vector2Mod8 implements Serializable

Serialized Fields

x

int x
The first element of the vector.

y

int y
The second element of the vector.


Package gpsys.primitives

Class gpsys.primitives.Add implements Serializable

Class gpsys.primitives.And implements Serializable

Class gpsys.primitives.ConstantDouble implements Serializable

Serialized Fields

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.

Class gpsys.primitives.ConstantFloat implements Serializable

Serialized Fields

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.

Class gpsys.primitives.Div implements Serializable

Class gpsys.primitives.EQ implements Serializable

Class gpsys.primitives.False implements Serializable

Class gpsys.primitives.GE implements Serializable

Class gpsys.primitives.GT implements Serializable

Class gpsys.primitives.If implements Serializable

Class gpsys.primitives.LE implements Serializable

Class gpsys.primitives.LT implements Serializable

Class gpsys.primitives.MemBoolean implements Serializable

Serialized Fields

memory

boolean[] memory
The array used to implement the memory.

Class gpsys.primitives.MemByte implements Serializable

Serialized Fields

memory

byte[] memory
The array used to implement the memory.

Class gpsys.primitives.MemChar implements Serializable

Serialized Fields

memory

char[] memory
The array used to implement the memory.

Class gpsys.primitives.MemDouble implements Serializable

Serialized Fields

memory

double[] memory
The array used to implement the memory.

Class gpsys.primitives.MemFloat implements Serializable

Serialized Fields

memory

float[] memory
The array used to implement the memory.

Class gpsys.primitives.MemGet implements Serializable

Class gpsys.primitives.MemInt implements Serializable

Serialized Fields

memory

int[] memory
The array used to implement the memory.

Class gpsys.primitives.MemLong implements Serializable

Serialized Fields

memory

long[] memory
The array used to implement the memory.

Class gpsys.primitives.MemObject implements Serializable

Serialized Fields

memory

java.lang.Object[] memory
The array used to implement the memory.

Class gpsys.primitives.MemSet implements Serializable

Class gpsys.primitives.MemShort implements Serializable

Serialized Fields

memory

short[] memory
The array used to implement the memory.

Class gpsys.primitives.Mul implements Serializable

Class gpsys.primitives.Not implements Serializable

Class gpsys.primitives.One implements Serializable

Class gpsys.primitives.Or implements Serializable

Class gpsys.primitives.ProgN implements Serializable

Class gpsys.primitives.Sub implements Serializable

Class gpsys.primitives.True implements Serializable

Class gpsys.primitives.XBoolean implements Serializable

Serialized Fields

bvalue

boolean bvalue
Holds the value of the variable.

Class gpsys.primitives.XByte implements Serializable

Serialized Fields

bvalue

byte bvalue
Holds the value of the variable.

Class gpsys.primitives.XChar implements Serializable

Serialized Fields

cvalue

char cvalue
Holds the value of the variable.

Class gpsys.primitives.XDouble implements Serializable

Serialized Fields

dvalue

double dvalue
Holds the value of the variable.

Class gpsys.primitives.XFloat implements Serializable

Serialized Fields

fvalue

float fvalue
Holds the value of the variable.

Class gpsys.primitives.XInt implements Serializable

Serialized Fields

ivalue

int ivalue
Holds the value of the variable.

Class gpsys.primitives.XLong implements Serializable

Serialized Fields

lvalue

long lvalue
Holds the value of the variable.

Class gpsys.primitives.XObject implements Serializable

Serialized Fields

ovalue

java.lang.Object ovalue
Holds the value of the variable.

Class gpsys.primitives.Xor implements Serializable

Class gpsys.primitives.XShort implements Serializable

Serialized Fields

svalue

short svalue
Holds the value of the variable.

Class gpsys.primitives.Zero implements Serializable


Package gpsys.symreg

Class gpsys.symreg.SymRegChromosomeParametersADF0 implements Serializable

Class gpsys.symreg.SymRegFitness implements Serializable

Serialized Fields

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.

Class gpsys.symreg.SymRegGPParameters implements Serializable