IntegerSBXCrossoverWorkingTest.VariableComparator

public static class VariableComparator implements Comparator<IntegerSolution>

Methods

compare

public int compare(IntegerSolution solution1, IntegerSolution solution2)

Compares two solutions according to the first variable value

Parameters:
  • solution1 – Object representing the first Solution.
  • solution2 – Object representing the second Solution.
Returns:

-1, or 0, or 1 if o1 is less than, equal, or greater than o2, respectively.