Function PGAGetNoDuplicatesFlag

Function Documentation

int PGAGetNoDuplicatesFlag(PGAContext *ctx)

Return PGA_TRUE if duplicates are not allowed, else return PGA_FALSE.

Example

PGAContext *ctx;

...
if (PGAGetNoDuplicatesFlag (ctx)) {
    printf ("Duplicate strings not allowed in population\n");
} else {
    printf ("Duplicate strings allowed in population\n");
}

Parameters
  • ctx – context variable

Returns

The value of the NoDuplicates flag