JavaGenes, NASA Ames. Written largely by Al Globus

gov.nasa.javaGenes.core
Class FitnessFunctionBadSize

java.lang.Object
  extended bygov.nasa.javaGenes.core.FitnessFunction
      extended bygov.nasa.javaGenes.core.FitnessFunctionBadSize
All Implemented Interfaces:
java.io.Serializable

public class FitnessFunctionBadSize
extends FitnessFunction

See Also:
Serialized Form

Field Summary
protected  IntegerInterval goodSize
           
 
Fields inherited from class gov.nasa.javaGenes.core.FitnessFunction
name
 
Constructor Summary
FitnessFunctionBadSize(IntegerInterval goodSize)
           
 
Method Summary
 Fitness evaluateFitness(Evolvable evolvable)
           
 java.lang.String toString()
           
 
Methods inherited from class gov.nasa.javaGenes.core.FitnessFunction
bestDouble, getFunction, getName, getNameArray, isNewFunction, makeFiles, numberOfObjectives, report, setName, worstDouble
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

goodSize

protected IntegerInterval goodSize
Constructor Detail

FitnessFunctionBadSize

public FitnessFunctionBadSize(IntegerInterval goodSize)
Method Detail

evaluateFitness

public Fitness evaluateFitness(Evolvable evolvable)
Specified by:
evaluateFitness in class FitnessFunction
Returns:
the fitness. Low values are fitter than high values.

toString

public java.lang.String toString()

JavaGenes, NASA Ames. Written largely by Al Globus