Function PGASetMutationOnlyFlag

Function Documentation

void PGASetMutationOnlyFlag(PGAContext *ctx, int flag)

Set a boolean flag to indicate that recombination uses mutation only.

Description

Note: This is a legacy interface, use PGASetMixingType() instead. Note: This will override settings of PGASetMutationOrCrossoverFlag() and PGASetMutationAndCrossoverFlag() and will set the default (PGASetMutationOrCrossoverFlag()) when using PGA_FALSE as the flag. Do not use this for new code.

Parameters
  • ctx – context variable

  • flag – to indicate if only mutation is used

Returns

None