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

# PGASetPrintOptions(3)

set flags to indicate what GA statistics should be printed whenever output is printed. May be called more than once to specify different report options. Valid choices are PGA\_REPORT\_AVERAGE, PGA\_REPORT\_OFFLINE, PGA\_REPORT\_ONLINE, PGA\_REPORT\_WORST, PGA\_REPORT\_HAMMING, and PGA\_REPORT\_STRING to specify offline analysis, online analysis, the worst string in the population, the Hamming distance of the population, and the actual allele values of the best string. The best string is always printed.

## NAME

PGASetPrintOptions - set flags to indicate what GA statistics should be printed whenever output is printed.  May be called more than once to specify different report options.  Valid choices are PGA\_REPORT\_AVERAGE, PGA\_REPORT\_OFFLINE, PGA\_REPORT\_ONLINE, PGA\_REPORT\_WORST, PGA\_REPORT\_HAMMING, and PGA\_REPORT\_STRING to specify offline analysis, online analysis, the worst string in the population, the Hamming distance of the population, and the actual allele values of the best string.  The best string is always printed.

## INPUT PARAMETERS

- ctx

  \- context variable

- option

  \- symbolic constant to specify a print option

## OUTPUT PARAMETERS

- none

  ## SYNOPSIS

```
#include "pgapack.h"
void  PGASetPrintOptions(ctx, option)
PGAContext *ctx
int option
```

## LOCATION

report.c

## EXAMPLE

```
Example:
PGAContext *ctx;
:
PGASetPrintOptions(ctx, PGA_REPORT_WORST);
```
