Function PGAUpdateAverage

Function Documentation

void PGAUpdateAverage(PGAContext *ctx, int pop)

Update the average fitness statistic for reporting.

Description

Note that in the presence of constraints only the unconstrained function evaluations are averaged, except for the constraint-functions, these are averaged unconditionally.

Parameters
  • ctx – context variable

  • pop – symbolic constant of the population

Returns

None