Fitness function interface.

Namespace:  AForge.Genetic
Assembly:  AForge.Genetic (in AForge.Genetic.dll) Version: 2.2.4.0 (2.2.4.0)

Syntax

C#
public interface IFitnessFunction

Remarks

The interface should be implemented by all fitness function classes, which are supposed to be used for calculation of chromosomes fitness values. All fitness functions should return positive (greater then zero) value, which indicates how good is the evaluated chromosome - the greater the value, the better the chromosome.

See Also