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:
Ilo
, whereas in .NET they do not.
addCols
,
whereas in the .NET API, the names of methods conventionally
begin with an uppercase (that is, capital) letter, for example,
AddCols
according to Microsoft practice.
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 |