Function PGAUpdateBest

Function Documentation

void PGAUpdateBest(PGAContext *ctx, int popix)

Updates the best fitness statistic for reporting.

Description

Note that in the presence of constraints if no individual without constraints is found, the best value (for all functions except constraint functions) is NAN.

Parameters
  • ctx – context variable

  • popix – symbolic constant of the population

Returns

None