Function PGAGetFitness
Defined in File fitness.c
Function Documentation
-
double PGAGetFitness(PGAContext *ctx, int p, int pop)
Return the fitness value for a string.
Example
PGAContext *ctx; int p; double fit; ... fit = PGAGetFitness (ctx, p, PGA_NEWPOP);
- Parameters:
ctx – context variable
p – string index
pop – symbolic constant of the population the string is in
- Returns:
The fitness value for string p in population pop