PGASetMaxSimilarity(8)

NAME
PGASetMaxSimilarity - 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 PGASetStoppingRule for this function call to have any effect.

INPUT PARAMETERS
ctx - context variable
maxiter
    - the maximum number of GA iterations to run before stopping

OUTPUT PARAMETERS
none

SYNOPSIS
#include "pgapack.h"
void  PGASetMaxSimilarity(ctx, max_similarity)
PGAContext *ctx
int max_similarity

LOCATION
set.c

EXAMPLE
Example:
PGAContext *ctx;
:
PGASetMaxSimilarity(ctx,99);