|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--gpsys.Individual
An Individual is an evolved GP program. It consists of a number of Chromosomes (which are automatically defined functions). An Individual has fitness which measures the suitability of the Individual for solving the problem for which it was evolved.
| Field Summary | |
Chromosome[] |
adf
An Individual has a number of Chromosomes. |
int |
complexity
The total number of Genes used across all Chromosomes. |
Fitness |
fitness
An Individual has Fitness which is a measure of the suitability of the for solving the problem for which it was evolved. |
| Constructor Summary | |
Individual(GPParameters gpParameters)
Create a completely new Individual. |
|
Individual(GPParameters gpParameters,
Individual mum,
boolean mutate)
Create a new Individual via reproduction or mutation of the mother. |
|
Individual(GPParameters gpParameters,
Individual mum,
Individual dad)
Create a new Individual via sexual reproduction (crossover). |
|
| Method Summary | |
int |
complexity()
Get the total number of Genes in this Individual. |
boolean |
evaluateBoolean()
Evaluate this Individual as a program returning a boolean. |
byte |
evaluateByte()
Evaluate this Individual as a program returning a byte. |
char |
evaluateChar()
Evaluate this Individual as a program returning a char. |
double |
evaluateDouble()
Evaluate this Individual as a program returning a double. |
float |
evaluateFloat()
Evaluate this Individual as a program returning a float. |
int |
evaluateInt()
Evaluate this Individual as a program returning an int. |
long |
evaluateLong()
Evaluate this Individual as a program returning a long. |
java.lang.Object |
evaluateObject()
Evaluate this Individual as a program returning an Object reference. |
short |
evaluateShort()
Evaluate this Individual as a program returning a short. |
java.lang.String |
toString()
Create a String representing this Individual. |
| Methods inherited from class java.lang.Object |
|
| Field Detail |
public Chromosome[] adf
public Fitness fitness
public int complexity
| Constructor Detail |
public Individual(GPParameters gpParameters)
gpParameters - the problem specific parameters.
public Individual(GPParameters gpParameters,
Individual mum,
boolean mutate)
gpParameters - the problem specific parameters.mum - the mother.mutate - whether to mutate or just reproduce
public Individual(GPParameters gpParameters,
Individual mum,
Individual dad)
gpParameters - the problem specific parameters.mum - the mother.dad - the father.| Method Detail |
public java.lang.Object evaluateObject()
throws EvaluationException
public byte evaluateByte()
throws EvaluationException
public short evaluateShort()
throws EvaluationException
public int evaluateInt()
throws EvaluationException
public long evaluateLong()
throws EvaluationException
public float evaluateFloat()
throws EvaluationException
public double evaluateDouble()
throws EvaluationException
public char evaluateChar()
throws EvaluationException
public boolean evaluateBoolean()
throws EvaluationException
public int complexity()
public java.lang.String toString()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||