PGASetMaxSimilarityValue(8)

PGASetMaxSimilarityValue8

Specifiy the maximum percent of homogeneity of the population before stopping.

Usage

void PGASetMaxSimilarityValue(ctx, max_similarity)

PGAContext *ctx

int max_similarity

Overview

The similarity measure is the same evaluation function value. The default value is 95 percent. The stopping rule PGA_STOP_TOOSIMILAR must have been set by PGASetStoppingRuleType for this function call to have any effect.

Input parameters

ctx

- context variable

max_similarity

- the maximum percent of the population that can share the same evaluation function value

Output parameters

none

Location

stop.c

Examples

Example:
PGAContext *ctx;
:
PGASetMaxSimilarityValue(ctx,99);

Releases

Unchanged in 4 releases since Debian 5.0 (Lenny).

  1. 5.0–8

From pgapack 1.1.1-3 in Debian 8 (Jessie). Parsed by carta from the page's man source.