Function PGASetRestartAlleleChangeProb

Function Documentation

void PGASetRestartAlleleChangeProb(PGAContext *ctx, double prob)

Specify the probability with which an allele will be mutated during a restart.

Description

By default the change probability for allele mutations during restart is 0.5.

Example

PGAContext *ctx;

...
PGASetRestartAlleleChangeProb (ctx, 0.7);

Parameters:
  • ctx – context variable

  • prob – probability of mutation

Returns:

None