Accessing MIP problem data

These MIP problem query routines and methods access information about a problem object after it has been created.

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 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, AddCols according to Microsoft practice.

Purpose Java API C++ API C API
Accesses number of general integer variables IloCplex. getNintVars IloCplex:: getNintVars CPXXgetnumint and CPXgetnumint
Accesses number of binary integer variables IloCplex. getNbinVars IloCplex:: getNbinVars CPXXgetnumbin and CPXgetnumbin
Accesses a range of variable types IloNumVar. getType IloNumVar:: getType CPXXgetctype and CPXgetctype
Accesses a priority order

IloCplex. getDirections

IloCplex. getPriorities

IloCplex:: getDirections

IloCplex:: getPriorities

CPXXgetorder and CPXgetorder
Accesses number of Special Ordered Sets

IloCplex. getNSOS1

IloCplex. getNSOS2

IloCplex. getNSOSs

IloCplex:: getNSOSs CPXXgetnumsos and CPXgetnumsos
Accesses contents of Special Ordered Sets

IloSOS1. getValues and

IloSOS1. getNumVars

IloSOS2. getValues and

IloSOS2. getNumVars

IloSOS1:: getValues

IloSOS1:: getNumVars

IloSOS2:: getValues

IloSOS2:: getNumVars

CPXXgetsos and CPXgetsos
Accesses the number of semi-continuous variables IloCplex. getNsemiContVars IloCplex:: getNsemiContVars CPXXgetnumsemicont and CPXgetnumsemicont
Accesses the number of semi-integer variables IloCplex. getNsemiIntVars IloCplex:: getNsemiIntVars CPXXgetnumsemiint and CPXgetnumsemiint