ec.coevolve
Interface IncrementalFitness
- All Known Implementing Classes:
- IncrementalAveragedFitness
- public interface IncrementalFitness
IncrementalFitness.java
Incremental Fitness is an interface which defines a way that a fitness can be based
on more than one assessment. Before assessments for an individual begin,
preprocessFitness() is called. Then updateFitness() is called for each assessment.
after all assessments are made, postprocessFitness() is then called.
Method Summary |
void |
postprocessFitness()
A function to be called for finalizing the calculation of the fitness. |
void |
preprocessFitness()
A function to be called before the repeated fitness assessment starts. |
void |
updateFitness(float newFitness)
Update the cumulative fitness of the individual |
preprocessFitness
public void preprocessFitness()
- A function to be called before the repeated fitness assessment starts.
postprocessFitness
public void postprocessFitness()
- A function to be called for finalizing the calculation of the fitness.
updateFitness
public void updateFitness(float newFitness)
- Update the cumulative fitness of the individual