Function PGASetMaxGAIterValue
Defined in File stop.c
Function Documentation
-
void PGASetMaxGAIterValue(PGAContext *ctx, int maxiter)
Specify the maximum number of iterations.
Description
The stopping rule
PGA_STOP_MAXITER
is the default stopping rule and is always in effect. The default value is 1000 iterations.Example
PGAContext *ctx; ... PGASetMaxGAIterValue (ctx, 5000);
- Parameters:
ctx – context variable
maxiter – the maximum number of GA iterations to run before stopping
- Returns:
None