Function PGASelectTruncation
Defined in File select.c
Function Documentation
-
int PGASelectTruncation(PGAContext *ctx, int pop)
Choose the best k strings and return them in random order.
Description
The value k is (N * TruncationProportion) rounded to the next integer.
Example
PGAContext *ctx, int l; ... l = PGASelectTruncation (ctx, PGA_OLDPOP);
- Parameters:
ctx – context variable
pop – symbolic constant of population to select from
- Returns:
index of the selected string