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

# PGASetMaxNoChangeValue(3)

specifiy maximum number of iterations of no change in the evaluation function value of the best string before stopping. The default value is 50. The stopping rule PGA\_STOP\_NOCHANGE must have been set by PGASetStoppingRuleType for this function call to have any effect.

## NAME

PGASetMaxNoChangeValue - specifiy maximum number of iterations of no change in the evaluation function value of the best string before stopping.  The default value is 50.  The stopping rule PGA\_STOP\_NOCHANGE must have been set by PGASetStoppingRuleType for this function call to have any effect.

## INPUT PARAMETERS

- ctx

  \- context variable

- maxiter

  \- the maximum number of GA iterations allowed with no change in the best evaluation function value.

## OUTPUT PARAMETERS

- none

  ## SYNOPSIS

```
#include "pgapack.h"
void  PGASetMaxNoChangeValue(ctx, max_no_change)
PGAContext *ctx
int max_no_change
```

## LOCATION

stop.c

## EXAMPLE

```
Example:
PGAContext *ctx;
:
PGASetMaxGAIterValue(ctx,5000);
```
