gov.nasa.javaGenes.core
Class FitnessFunctionWorstFitness
java.lang.Object
gov.nasa.javaGenes.core.FitnessFunction
gov.nasa.javaGenes.core.FitnessFunctionWorstFitness
- All Implemented Interfaces:
- java.io.Serializable
- Direct Known Subclasses:
- FitnessFunctionWorstFitnessManyTries
- public class FitnessFunctionWorstFitness
- extends FitnessFunction
this fitness function will run another fitness function N times on variations of the Evolvable. Usually the variations
will be in the phenotype. The worst fitness of the variations will be the fitness of the Evolvable.
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
debug
public static boolean debug
debugFilename
public static final java.lang.String debugFilename
- See Also:
- Constant Field Values
fitnessFunction
protected FitnessFunction fitnessFunction
phenotypeChanger
protected PhenotypeChanger phenotypeChanger
FitnessFunctionWorstFitness
public FitnessFunctionWorstFitness(FitnessFunction fitnessFunction,
PhenotypeChanger phenotypeChanger)
evaluateFitness
public Fitness evaluateFitness(Evolvable evolvable)
- Specified by:
evaluateFitness
in class FitnessFunction
- Returns:
- the fitness. Low values are fitter than high values.
getWorst
protected Fitness getWorst(Evolvable[] allEvolvables,
Fitness[] forDebuging)
getFitnessFunction
public FitnessFunction getFitnessFunction()
toString
public java.lang.String toString()