Function PGASetDEDitherPerIndividual

Function Documentation

void PGASetDEDitherPerIndividual(PGAContext *ctx, int val)

Set if Differential Evolution dither is per individual.

Description

If this is set to PGA_TRUE, then for Differential Evolution if the dither value is non-zero we produce a new random value to add to the scale factor \(F\) for each individual. Otherwise if the flag is not set (PGA_FALSE), then we produce a new value in each generation, the same value for all individuals.

Example

PGAContext *ctx;

...
PGASetDEDitherPerIndividual (ctx, PGA_TRUE);

Parameters
  • ctx – context variable

  • val – boolean flag

Returns

None