Function PGASetSelectType

Function Documentation

void PGASetSelectType(PGAContext *ctx, int select_type)

Specify the type of selection to use.

Description

Valid choices are PGA_SELECT_PROPORTIONAL, PGA_SELECT_SUS, PGA_SELECT_TOURNAMENT, PGA_SELECT_PTOURNAMENT, PGA_SELECT_TRUNCATION, and PGA_SELECT_LINEAR for proportional, stochastic universal selection, tournament, probabilistic tournament selection, truncation selection and linear selection, respectively. The default is PGA_SELECT_TOURNAMENT. See Constants for Selection Types for the constants and section Selection in the user guide for details.

Example

PGAContext *ctx;

...
PGASetSelectType (ctx, PGA_SELECT_SUS);

Parameters
  • ctx – context variable

  • select_type – symbolic constant to specify selection type

Returns

None