Function PGAEvalSortHelper

Function Documentation

int PGAEvalSortHelper(const void *a1, const void *a2)

Compare two PGAIndividual pointers for qsort.

Description

Used as the comparison function in qsort.

Parameters
  • a1 – void pointer to first individual

  • a2 – void pointer to second individual

Returns

-1 if less, 0 if equal, 1 if greater