Function PGASetTournamentWithReplacement

Function Documentation

void PGASetTournamentWithReplacement(PGAContext *ctx, int v)

Specify if tournament is with or without replacement.

Description

This function will have no effect unless PGA_SELECT_TOURNAMENT was specified as the type of selection to use with PGASetSelectType(). The default value is PGA_TRUE indicating tournament with replacement.

Example

PGAContext *ctx;

...
PGASetTournamentWithReplacement (ctx, PGA_FALSE);

Parameters
  • ctx – context variable

  • v – flag indicating if replacement is used

Returns

None