Function PGASetMutationRealValue

Function Documentation

void PGASetMutationRealValue(PGAContext *ctx, double val)

Set multiplier to mutate strings of data type real with.

Description

The use of this value depends on the type of mutation being used. The default value is 0.1 unless the mutation type is PGA_MUTATION_CONSTANT in which case the default is 0.01. See section Mutation in the user guide for more details.

Example

PGAContext *ctx;

...
PGASetMutationRealValue (ctx, 50.0);

Parameters
  • ctx – context variable

  • val – the mutation value to use for Real mutation

Returns

None