Function PGASelectNextIndex
Defined in File select.c
Function Documentation
-
int PGASelectNextIndex(PGAContext *ctx, int popix)
Return the index of next individual in internal array.
Description
The internal array used contains the indices determined by
PGASelect()
.Example
PGAContext *ctx; int l; ... l = PGASelectNextIndex (ctx, PGA_OLDPOP);
- Parameters:
ctx – context variable
popix – the population index, typically PGA_OLDPOP
- Returns:
A population index for the next selected creature