| java.lang.Object org.jgap.gp.GPFitnessFunction
All known Subclasses: examples.grid.mathProblemDistributed.SampleFitnessFunction, org.jgap.gp.impl.StaticGPFitnessFunction,
GPFitnessFunction | abstract public class GPFitnessFunction implements java.io.Serializable(Code) | | Fitness function for GP-Programs.
author: Klaus Meffert since: 3.0 |
MAX_FITNESS_VALUE | final public static double MAX_FITNESS_VALUE(Code) | | |
NO_FITNESS_VALUE | final public static double NO_FITNESS_VALUE(Code) | | |
GPFitnessFunction | public void GPFitnessFunction()(Code) | | Default constructor, may be needed for dynamic instantiation.
author: Klaus Meffert since: 3.3.1 |
evaluate | abstract protected double evaluate(IGPProgram a_subject)(Code) | | Determine the fitness of the given GPProgram instance. The higher the
return value, the more fit the instance. This method should always
return the same fitness value for two equivalent GPProgram instances.
Parameters: a_subject - the GPProgram instance to evaluate positive double reflecting the fitness rating of the givenGPProgram. Note that if a non-positive double is returned, aRuntimeException should be generated author: Klaus Meffert since: 3.0 |
getFitnessValue | final public double getFitnessValue(IGPProgram a_program)(Code) | | Retrieves the fitness value of the given GPProgram. The fitness
value will be a positive double.
Parameters: a_program - the GPProgram for which to compute and return thefitness value the fitness value of the given GPProgram author: Klaus Meffert since: 3.0 |
getLastComputedFitnessValue | public double getLastComputedFitnessValue()(Code) | | the last fitness value computed via method getFitnessValue(Chromosome), or NO_FITNES_VALUE if the former method has not been calledyet author: Klaus Meffert since: 2.4 |
|
|