Function PGASetTruncationProportion
Defined in File select.c
Function Documentation
-
void PGASetTruncationProportion(PGAContext *ctx, double proportion)
Specify the proportion of selected individuals for truncation selection.
Description
This function will have no effect unless
PGA_SELECT_TRUNCATION
was specified as the type of selection to use withPGASetSelectType()
. The default value is 0.5.Example
PGAContext *ctx; ... PGASetTruncationProportion (ctx, 0.7);
- Parameters:
ctx – context variable
proportion – The value, 0 < proportion <= 1
- Returns:
None