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

# PGASetPrintFrequencyValue(3)

Specifies the frequency with which genetic algorithm statistics are reported. The default is every 10 GA iterations. Used only if PGARun() is used to run the GA.

## NAME

PGASetPrintFrequencyValue - Specifies the frequency with which genetic algorithm statistics are reported.  The default is every 10 GA iterations. Used only if PGARun() is used to run the GA.

## INPUT PARAMETERS

- ctx

  \- context variable

- print\_freq

  \- the genetic algorithm population size to use

## OUTPUT PARAMETERS

- none

  ## SYNOPSIS

```
#include "pgapack.h"
void  PGASetPrintFrequencyValue(ctx, print_freq)
PGAContext *ctx
int print_freq
```

## LOCATION

report.c

## EXAMPLE

```
Example:
PGAContext *ctx;
:
PGASetPrintFrequencyValue(ctx,1);
```
