JavaGenes, NASA Ames. Written largely by Al Globus

gov.nasa.javaGenes.core
Class FitnessFunctionWorstFitnessManyTries

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

public class FitnessFunctionWorstFitnessManyTries
extends FitnessFunctionWorstFitness

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. This version was devised specifically for antennas. It assumes the first evolvable variation is the original. Antennas have the problem that some variations may be unsimulatable or violate physical constraints that wouldn't happen in real manufacturing.

See Also:
Serialized Form

Field Summary
protected  int maxVariationsNeeded
           
protected  Fitness threshold
           
 
Fields inherited from class gov.nasa.javaGenes.core.FitnessFunctionWorstFitness
debug, debugFilename, fitnessFunction, phenotypeChanger
 
Fields inherited from class gov.nasa.javaGenes.core.FitnessFunction
name
 
Constructor Summary
FitnessFunctionWorstFitnessManyTries(int maxVariationsNeeded, Fitness threshold, FitnessFunction fitnessFunction, PhenotypeChanger phenotypeChanger)
           
 
Method Summary
protected  Fitness getWorst(Evolvable[] allEvolvables, Fitness[] forDebuging)
           
 java.lang.String toString()
           
 
Methods inherited from class gov.nasa.javaGenes.core.FitnessFunctionWorstFitness
evaluateFitness, getFitnessFunction
 
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

maxVariationsNeeded

protected int maxVariationsNeeded

threshold

protected Fitness threshold
Constructor Detail

FitnessFunctionWorstFitnessManyTries

public FitnessFunctionWorstFitnessManyTries(int maxVariationsNeeded,
                                            Fitness threshold,
                                            FitnessFunction fitnessFunction,
                                            PhenotypeChanger phenotypeChanger)
Method Detail

getWorst

protected Fitness getWorst(Evolvable[] allEvolvables,
                           Fitness[] forDebuging)
Overrides:
getWorst in class FitnessFunctionWorstFitness

toString

public java.lang.String toString()
Overrides:
toString in class FitnessFunctionWorstFitness

JavaGenes, NASA Ames. Written largely by Al Globus