Function PGASetTruncationProportion

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 with PGASetSelectType(). 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