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 name of problem |
IloModel.getName IloModel implements the interface IloAddable and thus inherits its method. |
IloModel::getName |
|
Accesses name of objective function |
IloObjective.getName IloObjective implements the interface IloAddable and thus inherits its method. |
IloObjective::getName |
|
Accesses variable (column) names |
IloNumVar.getName |
IloNumVar::getName |
|
Accesses constraint (row) names |
IloRange.getName IloRange implements the interface IloAddable and thus inherits its method. |
IloRange::getName |
|
Accesses variable (column) index number with a specific name |
IloLPMatrix.getIndex accesses an index for an instance of IloNumVar |
---- |
|
Accesses constraint (row) index number with a specific name |
IloLPMatrix.getIndex accesses an index for an instance of IloRange |
---- |
|
Accesses number of variables in the problem |
IloCplex::getNcols |
||
Accesses number of constraints in the problem |
IloCplex::getNrows |
||
Accesses number of non-zeros in the problem |
IloCplex::getNNZs |
||
Accesses objective sense |
IloObjective.getSense |
IloObjective::getSense |
|
Accesses objective coefficient values |
IloObjective.getExpr |
IloObjective::getExpr |
|
Accesses righthand side values |
|||
Accesses sense of constraint |
|||
Accesses a range of lower bounds |
IloNumVar.getLB,
|
IloNumVar, IloIntVar, IloBoolVar, or IloSemiContVar method
getLB
|
|
Accesses a range of upper bounds |
IloNumVar, IloIntVar, IloBooVar or IloSemiContVar method getUB |
||
Accesses a range of columns |
IloLPMatrix.getCols |
---- |
|
Accesses a range of rows |
IloRange::getExpr |
||
Accesses a coefficient value |
IloRange::getExpr |
||
Accesses values for RHS ranged constraints |
|||
Accesses the kind of problem |
IloCplex.isMIP IloCplex.isQO IloCplex.isQC |
IloCplex::isMIP IloCplex::isQO IloCplex::isQC |