Function PGASetCrossoverBounceBackFlag
Defined in File cross.c
Function Documentation
-
void PGASetCrossoverBounceBackFlag(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 bouncing them back to a random value between the boundary and the neares parent.
Example
PGAContext *ctx; ... PGASetCrossoverBounceBackFlag (ctx, PGA_TRUE);
- Parameters:
ctx – context variable
flag – to indicate whether out-of-range values should be bounced
- Returns:
None