Serialized Form
idx
int idx
- Index in the function set; set by GPProgram.
arg
GPFunction[] arg
- Arguments of the function
father
Ref father
- Reference to the father.
definitive
boolean definitive
- Flag;
true
if the method definitive() has been called.
Only definitive parameters can be used to construct a new GP program.
The ADFs, the function set, the terminal set and the arguments in
definitive parameters can only be modified by mean of a GP population.
functionSet
gap.ClassArray functionSet
- Function set.
Restrictions to the function set: there must be at least one function in the
function set, each function must accept at least one terminal.
terminalSet
gap.ClassArray terminalSet
- Terminal set.
Restrictions to the terminal set: there must be at least one terminal or
argument.
instFSet
GPFunction[] instFSet
- An instance for each function in the function set.
instTSet
GPFunction[] instTSet
- An instance for each terminal in the terminalset.
argTypes
int[] argTypes
- The type of each argument.
exist
boolean[] exist
- Flags;
true
if there exists a function
at the corresponding index.
existADF
boolean[] existADF
- Flags;
true
if there exists an ADF
at the corresponding index.
existTerminal
boolean[] existTerminal
- Flags;
true
if there exists a terminal
at the corresponding index.
existArg
boolean[] existArg
- Flags;
true
if there exists an argument
at the corresponding index.
nFunctions
int nFunctions
- Number of functions.
nPFunctions
int nPFunctions
- Number of functions in the function set, holes included.
nTerminals
int nTerminals
- Number of terminals.
nPTerminals
int nPTerminals
- Number of terminals in the temrminal set, holes included.
nArgs
int nArgs
- Number of arguments of the main program.
nPArgs
int nPArgs
- Number of arguments, holes included.
fct
int[][][] fct
- Function compatibility table.
fct[i][j][] : array of indices of functions compatible with the
j-th argument of the i-th function.
tct
int[][][] tct
- Terminal compatibility table.
tct[i][j][] : array of indices of terminals compatible with the
j-th argument of the i-th function.
root_ct
int[] root_ct
- Root compatibility table.
Array of indices of functions compatible with the root of the main GP program.
root_compatibleTypes
int[] root_compatibleTypes
- Array of types compatible with the root of the main GPProgram.
nADF
int nADF
- Number of Automatically Defined Functions.
nPADF
int nPADF
- Number of ADFs, holes included.
adfTypes
java.util.ArrayList adfTypes
- Type of the root of each ADF.
adf_ct
java.util.ArrayList adf_ct
- ADF compatibility table.
(int[])adf_ct.get(i): Array of types of functions compatible
with the i-th ADF.
adfFSet
java.lang.Class[][] adfFSet
- Function sets of the ADFs, if defined.
null
if the ADF uses the main function set.
adfTSet
java.lang.Class[][] adfTSet
- Terminal sets of the ADFs, if defined.
null
if the ADF uses the main terminal set.
adfLinks
int[][] adfLinks
- Links within the ADFs.
adfLinks[i][]: indices of ADFs accessible from the i-th ADF.
Each index must be < i.
Each array must be sorted in ascending order.
adfParams
gap.GPParamsArray adfParams
- Parameters of each ADF.
adfDescr
java.util.HashMap adfDescr
- Method descriptor of each ADF. For compilation purposes.
cast
java.lang.String cast
- Casting string. For compilation purposes.
depthNewProgram
int depthNewProgram
- Maximum depth for new main programs.
maxDepth
int maxDepth
- Maximum depth for the main program during the run.
depthNewADF
int depthNewADF
- Maximum depth for new ADFs.
maxDepthADF
int maxDepthADF
- Maximum depth for ADFs during the run.
terminalFreq
double terminalFreq
- Probability to choose a terminal while creating a program tree.
Used in the creation of the main program, of the ADFs and
of new branches while mutation or other genetic operations.
mutationDepth
int mutationDepth
- Maximum depth of new branches created during a mutation operation.
geneticOpInADFFreq
double geneticOpInADFFreq
- Probability of applying a genetic operation in an ADF instead of in
the main program.
In mutations the number of the ADF will be chosen in a
size-proportional way, while in cross-overs uniformly over the
numbers of the existing ADFs.
pop
GPProgram[] pop
- The population.
params
GPParams params
- The parameters shared by all the individuals.
judge
Evaluator judge
- The fitness evaluator.
open
boolean open
- Flag, true after actions which invalidate the current state
of the population.
fitness
double[] fitness
- The adjusted fitness for each individual.
The adjusted fitness is 0.0 for the worst individual, 1.0 for the best.
The adjusted fitness is 1.0/(1.0+standarized_fitness).
totFitness
double totFitness
- The sum of all the adjusted fitnesses.
bestOfRun
GPProgram bestOfRun
- Best individual since the creation of the population.
bestOfRunFitness
double bestOfRunFitness
- Fitness of the individual since the creation of the population.
size
int size
- Number of individuals.
pXOver
float pXOver
- Probability of crossover.
pMutation
float pMutation
- Probability of mutation.
overSelection
boolean overSelection
- Flag for over-selection.
Empirical rule: over-select if #individuals >= 1000.
overSelBoundary
float overSelBoundary
- Percent of the population in which to apply over-selection.
INST_EXCEPTION_MSG
java.lang.String INST_EXCEPTION_MSG
root
GPFunction root
- Root of the program tree.
adf
gap.GPProgramArray adf
- "Array" containing the automatically defined functions.
params
GPParams params
- The parameters.
INST_EXCEPTION_MSG
java.lang.String INST_EXCEPTION_MSG
Class gap.Ref implements Serializable |
f
GPFunction f
a
int a