Function PGASelectLinear

Function Documentation

static int PGASelectLinear(PGAContext *ctx, PGAIndividual *pop)

Choose all strings that are not already copied to the next generation due to elitist strategies.

Description

Note that this ‘selection’ scheme isn’t a selection scheme in the genetic sense, it has no selection pressure. Note that the indeces are not randomized.

Example

PGAContext *ctx,
int l;

...
l = PGASelectLinear (ctx, PGA_OLDPOP);

Parameters
  • ctx – context variable

  • pop – pointer to first individual of population

Returns

index of the selected string