Function PGAGetWorstIndex
Defined in File utility.c
Function Documentation
-
int PGAGetWorstIndex(PGAContext *ctx, int pop)
Return the index of the string with the worst evaluation function value in population pop.
Example
PGAContext *ctx; int worst; ... worst = PGAGetWorstIndex (ctx, PGA_OLDPOP);
- Parameters:
ctx – context variable
pop – symbolic constant of the population to find the worst string in
- Returns:
Index of the string with the worst evaluation function value