IBM ILOG Solver User's Manual > Evolutionary Algorithms > Using More Advanced EA Features > Using listeners and comparators > Review Exercises

  1. Add an element to the lexicographical comparator so that preferred operators are ones with maximal improvement/invocation ratio, then maximum improvements, then minimum invocations. You will need to create a new comparator for the ratio and adjust the definition of the lexicographical comparator.