Function PGASetCrossoverBoundedFlag

Function Documentation

void PGASetCrossoverBoundedFlag(PGAContext *ctx, int flag)

If this flag is set to true, then for Integer and Real strings with simulated binary crossover (SBX) crossed over values that exceed the bounds are confined to the bounds by setting them to the boundary.

Example

PGAContext *ctx;

...
PGASetCrossoverBoundedFlag (ctx, PGA_TRUE);

Parameters
  • ctx – context variable

  • flag – to indicate if strings should be constrained to boundary

Returns

None