PGASetPTournamentProb3
Specifies the probability that the string that wins a binary tournament will be selected.
Usage
#include "pgapack.h" void PGASetPTournamentProb(ctx, ptournament_prob) PGAContext *ctx double ptournament_prob
Overview
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.
Input parameters
ctx
|
- context variable |
|---|---|
p
|
- the probability of selecting the better string |
Output parameters
- none
Location
select.c
Examples
Example: PGAContext *ctx; : PGASetPTournamentProb(ctx,0.8);
Releases
12 releases since Debian 1.1 (Buzz); the text changed 1 time.