PGASetStoppingRule(8)

NAME
PGASetStoppingRule - specify a stopping criterion. If called more than once the different stopping criterion are ORed together. Valid choices are PGA_STOP_MAXITER, PGA_STOP_TOOSIMILAR, or PGA_STOP_NOCHANGE to specify iteration limit reached, population too similar, or no change in the best solution found in a given number of iterations, respectively. The default is to stop when a maximum iteration limit (which by default is 1000) is reached.

INPUT PARAMETERS
ctx - context variable
stoprule
    - symbolic constant to specify stopping rule

OUTPUT PARAMETERS
none

SYNOPSIS
#include "pgapack.h"
void  PGASetStoppingRule(ctx, stoprule)
PGAContext *ctx
int stoprule

LOCATION
set.c

EXAMPLE
Example:
PGAContext *ctx;
:
PGASetStoppingRule(ctx,PGA_STOP_TOOSIMILAR);