Function PGASetPTournamentProb
Defined in File select.c
Function Documentation
-
void PGASetPTournamentProb(PGAContext *ctx, double ptournament_prob)
Specify the probability that the string that wins a binary tournament will be selected.
Description
This function will have no effect unless
PGA_SELECT_PTOURNAMENT
was specified as the type of selection to use withPGASetSelectType()
. The default value is 0.6.Example
PGAContext *ctx; ... PGASetPTournamentProb (ctx, 0.8);
- Parameters:
ctx – context variable
ptournament_prob – the probability of selecting the better string
- Returns:
None