Function PGAGetGAIterValue

Function Documentation

int PGAGetGAIterValue(PGAContext *ctx)

Return the number of the current genetic algorithm generation.

Example

PGAContext *ctx;
int g;

...
g = PGAGetGAIterValue (ctx);

Parameters
  • ctx – context variable

Returns

The genetic algorithm generation number