Ubuntu Manpages

PGASetPTournamentProb

Specifies the probability that the string that wins a binary tournament will be selected.

This function will have no effect unless PGA_SELECT_PTOURNAMENT was specified as the type of selection to use with PGASetSelectType. The default value is 0.6.

- context variable
- the probability of selecting the better string

#include "pgapack.h"
void  PGASetPTournamentProb(ctx, ptournament_prob)
PGAContext *ctx
double ptournament_prob

select.c

Example:
PGAContext *ctx;
:
PGASetPTournamentProb(ctx,0.8);