Function PGASetRandomizeSelect
Defined in File select.c
Function Documentation
-
void PGASetRandomizeSelect(PGAContext *ctx, int v)
Specify if during PGASelect the chosen individuals should be randomized again.
Description
All selection schemes except
PGA_SELECT_SUS
already return the individuals in randomized order, previously this was randomized again. With this method you can re-enable the randomization for selection schemes other thanPGA_SELECT_SUS
(for which a randomization step is always performed).Example
PGAContext *ctx; ... PGASetRandomizeSelect (ctx, PGA_TRUE);
- Parameters:
ctx – context variable
v – flag, true if randomized again
- Returns:
None