Function PGAGetMutationAndCrossoverFlag

Function Documentation

int PGAGetMutationAndCrossoverFlag(PGAContext *ctx)

Return true if mutation occurs only when crossover does.

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 is applied to crossed-over strings