Function PGASetNumReplaceValue

Function Documentation

void PGASetNumReplaceValue(PGAContext *ctx, int pop_replace)

Specify the number of new strings to create each generation.

Description

The default is ten percent of the population size.

Example

PGAContext *ctx;

...
PGASetNumReplaceValue (ctx, 35);

Parameters
  • ctx – context variable

  • pop_replace – the number of population members to create each generation

Returns

None