Function PGASetTournamentWithReplacement
Defined in File select.c
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 withPGASetSelectType()
. The default value isPGA_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