Function PGASetNoDuplicatesFlag
Defined in File duplcate.c
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
andPGA_FALSE
. The default isPGA_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