/** * Compare one member to another. This requires knowledge of the fitness function which cannot be * supplied here, hence must be provided in a subclass. * * @returns 1 if member indexed a is greater than b, 0 if they are equal, -1 if member indexed by * a is less than b. */ public int compareSolutions(Solution a, Solution b) { double af = ((SOSolution) a).getObjective(); double bf = ((SOSolution) b).getObjective(); return objConstraints.compare(af, bf); }