Function PGASelectSUS

Function Documentation

static void PGASelectSUS(PGAContext *ctx, PGAIndividual *pop)

A select routine using stochastic universal sampling.

Description

Perform stochastic universal sampling selection [Bak87], p. 16. This routine creates the entire selected population with one call.

Example

PGAContext *ctx,

...
PGASelectSUS (ctx, PGA_OLDPOP);

Parameters
  • ctx – context variable

  • pop – pointer to first individual of population

Returns

the array ga.selected [] created via side effect.