.TH PGASetStoppingRuleType 8 "05/01/95" " " "PGAPack" .SH NAME PGASetStoppingRuleType \- specify a stopping criterion. .SH DESCRIPTION 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 is reached (by default, 1000 iterations). .SH INPUT PARAMETERS .PD 0 .TP ctx - context variable .PD 0 .TP stoprule - symbolic constant to specify stopping rule .PD 1 .SH OUTPUT PARAMETERS .PD 0 .TP none .PD 1 .SH SYNOPSIS .nf #include "pgapack.h" void PGASetStoppingRuleType(ctx, stoprule) PGAContext *ctx int stoprule .fi .SH LOCATION stop.c .SH EXAMPLE .nf Example: PGAContext *ctx; : PGASetStoppingRuleType(ctx, PGA_STOP_TOOSIMILAR); .fi