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

# PGAGetMaxGAIterValue(3)

Returns the maximum number of iterations to run

Part of [PGAGetMaxGAIterValue(8)](/man/PGAGetMaxGAIterValue/8.md).

## NAME

PGAGetMaxGAIterValue - Returns the maximum number of iterations to run

## INPUT PARAMETERS

- ctx

  \- context variable

## OUTPUT PARAMETERS

- none

  ## SYNOPSIS

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

## LOCATION

stop.c

## EXAMPLE

```
Example:
PGAContext *ctx;
int maxiter;
:
maxiter = PGAGetMaxGAIterValue(ctx);
```
