Accessing Results for MIP Models

Solution query methods and routines are used to access information about the results of applying an optimization method to a problem object. For MIP problem objects, you can access the values of variables and constraint slacks. Methods and routines are also available to retrieve other information about the optimization process, for example, the number of nodes used.

Note: Names of classes, methods, and symbolic constants in the .NET API correspond very closely to those in the Java API with these systematic exceptions:

Purpose

Java API

C++ API

C API

Accesses MIP start information

----

----

CPXgetmipstart

Accesses the MIP solution objective value

IloCplex.getObjValue

IloCplex::getObjValue IloCplex derives from IloAlgorithm and thus inherits its methods.

CPXgetobjval

Accesses a range of MIP variable values

IloCplex.getValues

IloCplex::getValues

CPXgetx

Accesses slack values for MIP problem

IloCplex.getSlacks

IloCplex::getSlacks

CPXgetslack

Accesses the number of simplex iterations used to solve the MIP

IloCplex.getNiterations

IloCplex::getNiterations

CPXgetmipitcnt

Accesses the number of nodes used to solve the MIP

IloCplex.getNnodes

IloCplex::getNnodes

CPXgetnodecnt

Accesses objective value of best remaining node

IloCplex.getBestObjValue

IloCplex::getBestObjValue

CPXgetbestobjval

Accesses number of unexplored remaining nodes

IloCplex.getNnodesLeft

IloCplex::getNnodesLeft

CPXgetnodeleftcnt

Accesses the node number of the integer solution

IloCplex.getIncumbentNode

IloCplex::getIncumbentNode

CPXgetnodeint

Accesses the cutoff being used

IloCplex.getCutoff

IloCplex::getCutoff

CPXgetcutoff

Accesses algorithmic status of last subproblem optimization

IloCplex.getCplexSubStatus

IloCplex::getCplexSubStatus

CPXgetsubstat

Accesses solution method of last subproblem optimization

IloCplex.getSubAlgorithm

IloCplex::getSubAlgorithm

CPXgetsubmethod