Function PGASetTournamentSize
Defined in File select.c
Function Documentation
-
void PGASetTournamentSize(PGAContext *ctx, double tournament_size)
Specify the number of participants in a non-probabilistic Tournament.
Description
This function will have no effect unless
PGA_SELECT_TOURNAMENT
was specified as the type of selection to use withPGASetSelectType()
. The default value is 2.Example
PGAContext *ctx; ... PGASetTournamentSize (ctx, 3);
- Parameters:
ctx – context variable
tournament_size – the size of the tournament
- Returns:
None