Function PGAIntegerDuplicate

Function Documentation

int PGAIntegerDuplicate(PGAContext *ctx, int p1, int pop1, int p2, int pop2)

Return true if string a is a duplicate of string b, else returns false.

Description

Note that this function is set in PGASetUp() as the duplicate checking user function for the integer datatype by default.

Parameters
  • ctx – context variable

  • p1 – string index of the first string to compare

  • pop1 – symbolic constant of the population string p1 is in

  • p2 – string index of the second string to compare

  • pop2 – symbolic constant of the population string p2 is in

Returns

Returns true/false if strings are duplicates