Function PGASetUniformCrossoverProb
Defined in File cross.c
Function Documentation
-
void PGASetUniformCrossoverProb(PGAContext *ctx, double p)
Set probability used in uniform crossover to specify that an allele value value be selected from a particular parent.
Description
The default is 0.6. The crossover type must have been set to
PGA_CROSSOVER_UNIFORM
withPGASetCrossoverType()
for this function call to have any effect.Example
PGAContext *ctx; ... PGASetUniformCrossoverProb (ctx, 0.9);
- Parameters:
ctx – context variable
p – the crossover probability
- Returns:
None