|
JGAP | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jgap.gp.GPFitnessFunction
examples.grid.mathProblemDistributed.SampleFitnessFunction
public class SampleFitnessFunction
Fitness function for our example.
Field Summary |
---|
Fields inherited from class org.jgap.gp.GPFitnessFunction |
---|
MAX_FITNESS_VALUE, NO_FITNESS_VALUE |
Constructor Summary | |
---|---|
SampleFitnessFunction()
|
Method Summary | |
---|---|
double |
computeRawFitness(IGPProgram ind)
|
protected double |
evaluate(IGPProgram a_subject)
Determine the fitness of the given GPProgram instance. |
void |
init()
|
Methods inherited from class org.jgap.gp.GPFitnessFunction |
---|
getFitnessValue, getLastComputedFitnessValue, GPFitnessFunction |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SampleFitnessFunction()
Method Detail |
---|
public void init()
protected double evaluate(IGPProgram a_subject)
GPFitnessFunction
evaluate
in class GPFitnessFunction
a_subject
- the GPProgram instance to evaluate
public double computeRawFitness(IGPProgram ind)
|
JGAP | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |