Function PGAPrintPopulation

Function Documentation

void PGAPrintPopulation(PGAContext *ctx, FILE *fp, int pop)

Print each member of a population.

Description

Call PGAPrintIndividual() to print each member of a population.

Example

PGAContext *ctx;

...
PGAPrintPopulation (ctx, stdout, PGA_NEWPOP);

Parameters
  • ctx – context variable

  • fp – file pointer to print the output to

  • pop – symbolic constant of the population to be printed

Returns

The strings and associated fields that make up a population member are printed to fp