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

# PGASetNoDuplicatesFlag(8)

A boolean flag to indicate if duplicate strings are allowed in the population.

## NAME

PGASetNoDuplicatesFlag - A boolean flag to indicate if duplicate strings are allowed in the population.

## DESCRIPTION

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