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

# PGASetNumReplaceValue(8)

specifies the number of new strings to create each generation.

## NAME

PGASetNumReplaceValue - specifies the number of new strings to create each generation.

## DESCRIPTION

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);
```
