PGASetMaxNoChangeValue8
Specifiy maximum number of iterations of no change in the evaluation function value of the best string before stopping.
Usage
void PGASetMaxNoChangeValue(ctx,
max_no_change)
PGAContext *ctx
int max_no_change
Overview
The default value is 50. The stopping rule PGA_STOP_NOCHANGE must have been set by PGASetStoppingRuleType for this function call to have any effect.
Input parameters
- ctx
-
- context variable
- maxiter
-
- the maximum number of GA iterations allowed with no change in the best evaluation function value.
Output parameters
- none
Location
stop.c
Examples
Example: PGAContext *ctx; : PGASetMaxGAIterValue(ctx,5000);
Releases
Unchanged in 4 releases since Debian 5.0 (Lenny).