PGASetCrossoverProb3
Probability that a selected string will undergo crossover.
Usage
#include "pgapack.h" void PGASetCrossoverProb(ctx, crossover_prob) PGAContext *ctx double crossover_prob
Overview
The default is 0.85.
Input parameters
ctx
|
- context variable |
|---|---|
p
|
- the crossover probability |
Output parameters
- none
Location
cross.c
Examples
Example: Make crossover happen infrequently. PGAContext *ctx; : PGASetCrossoverProb(ctx,0.001);
Releases
12 releases since Debian 1.1 (Buzz); the text changed 1 time.