Problem query routines and methods are used to access information about a problem object once 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 general integer variables |
IloCplex.getNintVars |
IloCplex::getNintVars |
|
Accesses number of binary integer variables |
IloCplex.getNbinVars |
IloCplex::getNbinVars |
|
Accesses a range of variable types |
IloNumVar.getType |
IloNumVar::getType |
|
Accesses a priority order |
IloCplex.getDirections IloCplex.getPriorities |
IloCplex::getDirections IloCplex::getPriorities |
|
Accesses number of Special Ordered Sets |
IloCplex.getNSOS1, IloCplex.getNSOS2, IloCplex.getNSOSs |
IloCplex::getNSOSs |
|
Accesses contents of Special Ordered Sets |
IloSOS1.getValues and IloSOS1.getNumVars IloSOS2.getValues and IloSOS2.getNumVars |
||
Accesses the number of semi-continuous variables |
IloCplex.getNsemiContVars |
IloCplex::getNsemiContVars |
|
Accesses the number of semi-integer variables |
IloCplex.getNsemiIntVars |
IloCplex::getNsemiIntVars |