Function PGAUpdateOnline

Function Documentation

void PGAUpdateOnline(PGAContext *ctx, int pop)

Update the online value based on the results in the new generation.

Description

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

Example

PGAContext *ctx;

...
PGAUpdateOnline (ctx, PGA_NEWPOP);

Parameters
  • ctx – context variable

  • pop – symbolic constant of the population whose statistics to use

Returns

Updates an internal field in the context variable