Function PGASetMaxNoChangeValue
Defined in File stop.c
Function Documentation
-
void PGASetMaxNoChangeValue(PGAContext *ctx, int max_no_change)
Specify maximum number of iterations of no change in the evaluation function value of the best string before stopping.
Description
The default value is 100. The stopping rule
PGA_STOP_NOCHANGE
must have been set byPGASetStoppingRuleType()
for this function call to have any effect.Example
PGAContext *ctx; ... PGASetMaxNoChangeValue (ctx, 100);
- Parameters:
ctx – context variable
max_no_change – the maximum number of GA iterations allowed with no change in the best evaluation function value
- Returns:
None