Function PGASetRestartFrequencyValue

Function Documentation

void PGASetRestartFrequencyValue(PGAContext *ctx, int numiter)

Specify the number of iterations of no change in the best string after which the algorithm should restart.

Description

By default no restarts are performed, see PGASetRestartFlag(). If restarts are performed, the default is after 50 iterations of no change.

Example

PGAContext *ctx;

...
PGASetRestartFrequencyValue (ctx, 100);

Parameters
  • ctx – context variable

  • numiter – number of changeless iterations

Returns

None