Interface FitnessFunction.Double<T extends Copyable<T>>
- Type Parameters:
T- The type of object under optimization.
- All Superinterfaces:
public static interface FitnessFunction.Double<T extends Copyable<T>> extends FitnessFunction<T>Fitness function interface for double-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.
All Methods Instance Methods Abstract Methods Modifier and Type Method Description
fitness(T candidate)Computes the fitness of a candidate solution to a problem, for use by genetic algorithms and other evolutionary algorithms.
double fitness(T candidate)
candidate- The solution whose fitness is to be evaluated.
- the fitness of candidate