PGASetMaxSimilarityValue(3)

PGASetMaxSimilarityValue3

Specifiy the maximum percent of homogeneity of the population before stopping. 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.

Usage

void PGASetMaxSimilarityValue(ctx, max_similarity)

PGAContext *ctx

int max_similarity

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

8 releases since Debian 1.1 (Buzz); the text changed 1 time.

  1. 1.1
  2. 1.2–3.1

From pgapack 1.0.0.1-3 in Debian 3.1 (Sarge). Parsed by carta from the page's man source.