IBM ILOG Solver User's Manual > Evolutionary Algorithms > Using More Advanced EA Features > Using listeners and comparators > Suggested Answers |
Suggested Answers |
INDEX
![]() |
A comparator is created as follows, taking care to avoid division by zero:
The comparator is then used in the main body as shown below:
IloComparator<IloPoolProc> opComparator = IloComposeLexical( OperatorImprovementRatioComparator(env), OperatorImprovementComparator(env), OperatorInvocationComparator(env) ); |
© Copyright IBM Corp. 1987, 2009. Legal terms. | PREVIOUS NEXT |