Function PGAGetMutationOrCrossoverFlag

Function Documentation

int PGAGetMutationOrCrossoverFlag(PGAContext *ctx)

Return true if mutation only occurs when crossover does not.

Description

Note: This is a legacy interface. If mixing types other than PGA_MIX_MUTATE_OR_CROSS and PGA_MIX_MUTATE_AND_CROSS have been set this might return wrong values, use PGAGetMixingType() instead. Do not use this for new code.

Parameters
  • ctx – context variable

Returns

Return true if mutation only occurs when crossover does not