PGASetNoDuplicatesFlag(8)

PGASetNoDuplicatesFlag8

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

Usage

void PGASetNoDuplicatesFlag(ctx, no_dup)

PGAContext *ctx

int no_dup

Overview

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

Location

duplcate.c

Examples

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

Releases

Unchanged in 4 releases since Debian 5.0 (Lenny).

  1. 5.0–8

From pgapack 1.1.1-3 in Debian 8 (Jessie). Parsed by carta from the page's man source.