---
name: "PGAPrintReport"
section: "3"
platform: "linux"
package: "pgapack"
version: "1.0.0.1-3"
release: "Debian 3.1 (Sarge)"
platforms: ["linux"]
url: "https://new.carta.tech/PGAPrintReport"
---

# PGAPrintReport(3)

prints genetic algorithm statistics. The statistics that are printed are determined by PGASetPrintOptions().

## NAME

PGAPrintReport - prints genetic algorithm statistics.  The statistics that are printed are determined by PGASetPrintOptions().

## INPUT PARAMETERS

- ctx

  \- context variable

- fp

  \- file pointer to print the output to

- pop

  \- symbolic constant of the population whose statistics are printed

## OUTPUT PARAMETERS

- none

  ## SYNOPSIS

```
#include "pgapack.h"
void  PGAPrintReport(ctx, fp, pop)
PGAContext *ctx
FILE *fp
int pop
```

## LOCATION

report.c

## EXAMPLE

```
Example:
PGAContext *ctx;
int p;
:
PGAPrintReport(ctx, stdout, PGA_NEWPOP);
```
