Function PGAIndividualHashIndex

Function Documentation

size_t PGAIndividualHashIndex(PGAContext *ctx, int p, int pop)

Compute Hash for individual in given population.

Description

Call the hash user function, by default PGACreate() makes sure the correct one is set for the data type.

Parameters
  • ctx – context variable

  • p – string index

  • pop – symbolic constant of the population containing string p

Returns

Hash of given individual