Interface FitnessFunction.Integer<T extends Copyable<T>>
- Type Parameters:
T- The type of object under optimization.
- All Superinterfaces:
- All Known Implementing Classes:
Fitness function interface for int-valued fitnesses. Implement this interface to provide a fitness function for use by genetic algorithms and other forms of evolutionary computation. Some of the
SelectionOperatorclasses of this library assume that fitness values are positive, so for maximal compatibility, you should design your fitness function such that fitness values are always positive.
Nested Class Summary
(T candidate)Computes the fitness of a candidate solution to a problem, for use by genetic algorithms and other evolutionary algorithms.
candidate- The solution whose fitness is to be evaluated.
- the fitness of candidate