Specify the probability of initializing an allele to "1" when creating a pga_datatype_binary string.
The default value is 0.5.
ctx
- context variable
p
- the binary initialization probability
none
#include "pgapack.h" void PGASetBinaryInitProb(ctx, probability) PGAContext *ctx double probability
binary.c
Example: Set approximately 1 percent of all binary alleles to "1" when randomly initializing the population. PGAContext *ctx; : PGASetBinaryInitProb(ctx, 0.01);