Function PGAFitnessLinearNormal
Defined in File fitness.c
Function Documentation
-
static void PGAFitnessLinearNormal(PGAContext *ctx, int popindex)
Calculates fitness using a ranking method and linear ordering.
Description
The fitness function is of the form \(u(x) = K - (\text{rank} \cdot \sigma)\) with the constant \(K\) equal to the mean of the evaluation functions, and the decrement \(\sigma\) equal to the standard deviation of the same as defined by Davis [Dav91], p.33.
- Parameters:
ctx – context variable
popindex – population index to calculate fitness for
- Returns:
Calculates the fitness for each string in the population via side effect