Originally posted by: SystemAdmin
IloCplex::getValues() gets the primal values for variables.
IloCplex::getReducedCosts() and IloCplex::getDuals() get the dual values for variables and constraints (they are what CPXgetdj() and CPXgetpi() are in the callable library).
Please also refer to the
reference documentation for further details about those functions. You may also look at some of the examples that come with the CPLEX distribution, in particular lpex1.cpp, lpex4.cpp and lpex6.cpp.
#CPLEXOptimizers#DecisionOptimization