org.jgap
Interface BulkFitnessFunction
- All Superinterfaces:
- java.io.Serializable
- All Known Implementing Classes:
- DoublePoleBalanceFitnessFunction, DummyBulkFitnessFunction, ExponentialTargetFitnessFunction, IdentifyImageFitnessFunction, NeatTargetFitnessFunction, RandomFitnessFunction, TargetFitnessFunction, TournamentFitnessFunction
public interface BulkFitnessFunction
- extends java.io.Serializable
Bulk fitness functions are used to determine how optimal a group of solutions are relative to
each other. Bulk fitness functions can be useful (vs. normal fitness functions) when fitness
of a particular solution cannot be easily computed in isolation, but instead is dependent
upon the fitness of its fellow solutions that are also under consideration. This abstract
class should be extended and the evaluate(List)
method implemented to evaluate
each of the Chromosomes given in an array and set their fitness values prior to returning.
Method Summary |
void |
evaluate(java.util.List subjects)
Calculates and sets the fitness values on each of the given Chromosomes via their
setFitnessValue() method. |
int |
getMaxFitnessValue()
|
evaluate
void evaluate(java.util.List subjects)
- Calculates and sets the fitness values on each of the given Chromosomes via their
setFitnessValue() method.
- Parameters:
subjects
- List
contains Chromosome
objects for which
the fitness values must be computed and set.
getMaxFitnessValue
int getMaxFitnessValue()
- Returns:
- int maximum possible fitness value this function will return