---
name: "PGAGetGAIterValue"
section: "8"
platform: "linux"
package: "pgapack"
version: "1.1.1-3"
release: "Debian 8 (Jessie)"
platforms: ["linux"]
url: "https://new.carta.tech/PGAGetGAIterValue"
---

# PGAGetGAIterValue(8)

returns the number of the current genetic algorithm generation

## NAME

PGAGetGAIterValue - returns the number of the current genetic algorithm generation

## INPUT PARAMETERS

- ctx

  \- context variable

## OUTPUT PARAMETERS

- none

  ## SYNOPSIS

```
#include "pgapack.h"
int  PGAGetGAIterValue(ctx)
PGAContext *ctx
```

## LOCATION

pga.c

## EXAMPLE

```
Example:
PGAContext *ctx;
int g;
:
g = PGAGetGAIterValue(ctx);
```
