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

# PGASetNoDuplicatesFlag(3)

A boolean flag to indicate if duplicate strings are allowed in the population. Valid choices are PGA\_TRUE and PGA\_FALSE. The default is PGA\_FALSE -- allow duplicates.

## NAME

PGASetNoDuplicatesFlag - A boolean flag to indicate if duplicate strings are allowed in the population. Valid choices are PGA\_TRUE and PGA\_FALSE.  The default is PGA\_FALSE -- allow duplicates.

## INPUT PARAMETERS

- ctx

  \- context variable

- flag

  \- PGA\_TRUE or PGA\_FALSE

## OUTPUT PARAMETERS

- none

  ## SYNOPSIS

```
#include "pgapack.h"
void  PGASetNoDuplicatesFlag(ctx, no_dup)
PGAContext *ctx
int no_dup
```

## LOCATION

duplcate.c

## EXAMPLE

```
Example:
Set the NoDuplicates flag to require that all strings are unique.
PGAContext *ctx;
:
PGASetNoDuplicatesFlag(ctx,PGA_TRUE);
```
