Function PGASetNoDuplicatesFlag

Function Documentation

void PGASetNoDuplicatesFlag(PGAContext *ctx, int no_dup)

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.

Example

Set the NoDuplicates flag to require that all strings are unique.

PGAContext *ctx;

...
PGASetNoDuplicatesFlag (ctx, PGA_TRUE);

Parameters
  • ctx – context variable

  • no_dup – PGA_TRUE or PGA_FALSE

Returns

None