Function PGAFitnessMinReciprocal
Defined in File fitness.c
Function Documentation
-
static void PGAFitnessMinReciprocal(PGAContext *ctx, PGAIndividual *pop)
Calculate fitness in the case of a minimization problem using the reciprocal of the evaluation function.
Description
This is a power law \(u(x) = (a f(x) + b)^k\) with \(a=1, b=0, k=-1\).
- Parameters:
ctx – context variable
pop – population pointer to calculate fitness for
- Returns:
Calculates the fitness for each string in the population via side effect