> Languages and APIs > ILOG Concert Technology for C++ Users > Accessing Solution Information > Solution Quality |
Solution Quality |
INDEX PREVIOUS NEXT |
The ILOG CPLEX optimizer uses finite precision arithmetic to compute solutions. To compensate for numerical errors due to this convention, tolerances are used by which the computed solution is allowed to violate feasibility or optimality conditions. Thus the solution computed by the solve
method may in fact slightly violate the bounds specified in the model, for example. You can call:
to query the maximum bound violation among all variables and slacks. If you are also interested in the variable or constraint where the maximum violation occurs, call instead:
ILOG CPLEX will copy the variable or constraint handle in which the maximum violation occurs to maxvar
or maxrange
and make the other handle an empty one. The maximum primal infeasibility is only one example of a wealth of quality measures. The full list is defined by the nested enumeration type IloCplex::Quality
. All of these can be used as a parameter for the getQuality
methods, though some measures are not available for all optimizer option choices. A list of solution qualities appears in the ILOG CPLEX Reference Manual, Callable Library and C++ API, as the group optim.cplex.solutionquality
.
Copyright © 1987-2003 ILOG, S.A. All rights reserved. Legal terms. | PREVIOUS NEXT |