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

# PGASetNumReplaceValue(3)

specifies the number of new strings to create each generation. The default is ten percent of the population size

## NAME

PGASetNumReplaceValue - specifies the number of new strings to create each generation.  The default is ten percent of the population size

## INPUT PARAMETERS

- ctx

  \- context variable

- pop\_replace

  \- the genetic algorithm population size to use

## OUTPUT PARAMETERS

- none

  ## SYNOPSIS

```
#include "pgapack.h"
void  PGASetNumReplaceValue(ctx, pop_replace)
PGAContext *ctx
int pop_replace
```

## LOCATION

pop.c

## EXAMPLE

```
Example:
PGAContext *ctx;
:
PGASetNumReplaceValue(ctx, 35);
```
