Interface FitnessFunction<T extends Copyable<T>>
- Type Parameters:
T- The type of object under optimization.
- All Known Implementing Classes:
public interface FitnessFunction<T extends Copyable<T>>Fitness function interfaces. Implement one of the two nested interfaces 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. The difference between the two nested interfaces is only the type of the fitness values (double vs int).
Nested Class Summary
Nested Classes Modifier and Type Interface Description
FitnessFunction.Double<T extends Copyable<T>>Fitness function interface for double-valued fitnesses.
FitnessFunction.Integer<T extends Copyable<T>>Fitness function interface for int-valued fitnesses.