Function PGASetMaxSimilarityValue
Defined in File stop.c
Function Documentation
-
void PGASetMaxSimilarityValue(PGAContext *ctx, int max_similarity)
Specify the maximum percent of homogeneity of the population before stopping.
Description
The similarity measure is the same evaluation function value. The default value is that 95 percent of the population have the same evaluation function value. The stopping rule
PGA_STOP_TOOSIMILAR
must have been set byPGASetStoppingRuleType()
for this function call to have any effect.Example
PGAContext *ctx; ... PGASetMaxSimilarityValue (ctx, 99);
- Parameters:
ctx – context variable
max_similarity – the maximum percent of the population that can share the same evaluation function value
- Returns:
None