Function PGASetPrintFrequencyValue

Function Documentation

void PGASetPrintFrequencyValue(PGAContext *ctx, int print_freq)

Specify the frequency with which genetic algorithm statistics are reported.

Description

The default is every 10 GA iterations. Used only if PGARun() is used to run the GA.

Example

PGAContext *ctx;

...
PGASetPrintFrequencyValue (ctx, 1);

Parameters
  • ctx – context variable

  • print_freq – print frequency (in generations)

Returns

None