Function PGAGetAuxTotal

Function Documentation

double PGAGetAuxTotal(PGAContext *ctx, int p, int pop)

Compute total value over all constraint violations.

Description

This returns the sum of all positive individual aux evaluations that are used for constraints. The semantics is a total value of all constraint violations.

Example

PGAContext *ctx;
double result;

...
result = PGAGetAuxTotal (ctx, p, PGA_OLDPOP);

Parameters
  • ctx – context variable

  • p – index of individual

  • pop – population

Returns

Computed or cached total value over all constraint violations