ILOG CPLEX 11.0 User's Manual > Languages and APIs > ILOG CPLEX Callable Library > Example: Using Query Routines lpex7.c

This example uses the ILOG CPLEX Callable Library query routine CPXgetcolname to get the column names from a problem object. To do so, it applies the programming pattern just outlined in Using Surplus Arguments for Array Allocations. It derives from the example lpex2.c from the ILOG CPLEX Getting Started manual. This query-routine example differs from that simpler example in several ways:

This example assumes that the current problem has been read from a file by CPXreadcopyprob. You can adapt the example to use other ILOG CPLEX query routines to get information about any problem read from a file.

The complete program lpex7.c appears online in the standard distribution at yourCPLEXinstallation/examples/src.