|
JavaGenes, NASA Ames. Written largely by Al Globus | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgov.nasa.javaGenes.core.FitnessFunction
gov.nasa.javaGenes.forceFields.PotentialEnergyFitness
fitness function based on RMS distance of potential energies between the target and candidate Chromosome
Field Summary | |
protected Potential |
potential
|
protected Chromosome |
target
|
protected java.util.Vector |
testCases
|
Fields inherited from class gov.nasa.javaGenes.core.FitnessFunction |
name |
Constructor Summary | |
PotentialEnergyFitness(Potential p,
Chromosome t)
|
Method Summary | |
void |
add(Bodies[] bodies)
add a set of multi-bodies to create one test case |
void |
add(Bodies[][] bodies)
create multiple test cases (the first dimension of array bodies) |
void |
add(java.util.Vector bodies)
add a set of bodies to create one test case |
Fitness |
evaluateFitness(Evolvable evolvable)
|
void |
makeFiles()
creative fall column target.tsd with the target chromosome it and a file testCases.tsd with all the test cases in it |
void |
report(Population population)
Prints out a file called difference.tsd with the target chromosome in it and the difference between the best and target chromosomes. |
java.lang.String |
toString()
|
Methods inherited from class gov.nasa.javaGenes.core.FitnessFunction |
bestDouble, getFunction, getName, getNameArray, isNewFunction, numberOfObjectives, setName, worstDouble |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
protected Potential potential
protected java.util.Vector testCases
protected Chromosome target
Constructor Detail |
public PotentialEnergyFitness(Potential p, Chromosome t)
p
- the potential energy functiont
- the target chromosomeMethod Detail |
public void add(Bodies[] bodies)
public void add(Bodies[][] bodies)
public void add(java.util.Vector bodies)
bodies
- must consist of Bodies[] objectspublic Fitness evaluateFitness(Evolvable evolvable)
evaluateFitness
in class FitnessFunction
public void report(Population population)
report
in class FitnessFunction
public void makeFiles()
makeFiles
in class FitnessFunction
public java.lang.String toString()
|
JavaGenes, NASA Ames. Written largely by Al Globus | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |