Data Types

In the Callable Library, ILOG CPLEX defines a few special data types for specific ILOG CPLEX objects, as you see in Table 2.1.

Table 2.1 Special data types in the ILOG CPLEX Callable Library

Data type 
Is a pointer to 
Declaration 
Set by calling 
CPXENVptr 
ILOG CPLEX environment 
CPXENVptr env; 
CPXLPptr 
problem object 
CPXLPptr lp; 
CPXNETptr 
problem object 
CPXNETptr net; 
CPXCHANNELptr 
message channel 
CPXCHANNELptr channel; 

When any of these special variables are set to a value returned by an appropriate routine, that value can be passed directly to other ILOG CPLEX routines that require such parameters. The actual internal type of these variables is a memory address (that is, a pointer); this address uniquely identifies the corresponding object. If you are programming in a language other than C, you should choose an appropriate integer type or pointer type to hold the values of these variables.


Previous Page: Variable Names and Calling Conventions  Return to Top Next Page: Ownership of Problem Data