Specifies the probability that a given allele will be mutated.
If this is called without calling PGASetMutationType(), the default mutation type is PGA_MUTATION_FIXED. The default probability is the reciprocal of the string length.
ctx
- context variable
p
- the mutation probability
none
#include "pgapack.h" void PGASetMutationProb(ctx, mutation_prob) PGAContext *ctx double mutation_prob
mutation.c
Example: PGAContext *ctx; : PGASetMutationProb(ctx,0.001);