Accessing QP problem data
These QP problem query routines and methods access information about a problem object after it has been created.
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.
Names of classes, methods, and symbolic constants in the C#.NET API correspond very closely to those in the Java API with these systematic exceptions:
-
In the Java API, the names of classes begin with the prefix Ilo, whereas in C#.NET they do not.
-
In the Java API, the names of methods conventionally begin with a lowercase letter, for example,
addCols, whereas in the C#.NET API, the names of methods conventionally begin with an uppercase (that is, capital) letter, for example,AddColsaccording to Microsoft practice.
| Purpose | Java API | C++ API | C API |
|---|---|---|---|
| Accesses number of quadratic nonzeros | ---- | ---- |
CPXXgetnumqpnz and CPXgetnumqpnz
|
| Accesses number of quadratic variables | ---- | ---- |
CPXXgetnumquad and CPXgetnumquad
|
| Accesses a quadratic coefficient value | IloQuadIntExpr. quadIterator IloQuadNumExpr. quadIterator | IloRange:: getQuadIterator |
CPXXgetqpcoef and CPXgetqpcoef
|