Function PGAGetStoppingRuleType

Function Documentation

int PGAGetStoppingRuleType(PGAContext *ctx)

Return a symbolic constant that defines the termination criteria.

Example

PGAContext *ctx;
int stop;

...
stop = PGAGetStoppingRuleType (ctx);
if (stop & PGA_STOP_MAXITER) {
    printf ("Stopping Rule = PGA_STOP_MAXITER\n");
}
if (stop & PGA_STOP_NOCHANGE) {
    printf ("Stopping Rule = PGA_STOP_NOCHANGE\n");
}
if (stop & PGA_STOP_TOOSIMILAR) {
    printf ("Stopping Rule = PGA_STOP_TOOSIMILAR\n");
}

Parameters
  • ctx – context variable

Returns

Return an integer which is an ORed mask of the symbolic constants used to specify the stopping rule(s).