Accessing QCP Problem Data

These routines and methods access information about quadratically constrained problems (QCPs). Second order cone programming (SOCP) problems are treated as a special case of QCP. For more about that idea, see the chapter about QCP in the ILOG CPLEX User's Manual. Problem query routines and methods access information about a problem object after it has been created. They can be used at any time, even after problem modifications.

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 number of quadratic constraints in a model IloCplex.getNQCs IloCplex::getNQCs CPXgetnumqconstrs
Accesses the index of a quadratic constraint in a model if given the name of the constraint IloLPMatrix.getIndex (no difference between linear and quadratic constraints in this respect)

----

CPXgetqconstrindex
Accesses a specified quadratic constraint in a model IloLPMatrix.getRows or IloRange.getExpr (no difference between linear and quadratic constraints in this respect) IloRange::getExpr (no difference between linear and quadratic constraints in this respect) CPXgetqconstr
Accesses the name of a specified quadratic constraint in a model IloRange.getName IloRange inherits this method from the interface IloAddable. (no difference between linear and quadratic constraints in this respect) IloRange::getName IloRange inherits this method from the class IloExtractable via the class IloConstraint. (no difference between linear and quadratic constraints in this respect) CPXgetqconstrname
Accesses the slack values of a range of quadratic constraints in a model IloCplex.getSlack IloCplex::getSlack CPXgetqconstrslack
Accesses the activity levels of a range of quadratic constraints in a model IloCplex.getAX (no difference between linear and quadratic constraints in this respect) IloCplex::getAX (no difference between linear and quadratic constraints in this respect) CPXgetxqxax