Example: Using Query Routines

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 we just described in Using Surplus Arguments for Array Allocations. It derives from the example lpex2.c, explained in the manual 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.


Previous Page: Using Surplus Arguments for Array Allocations  Return to Top Next Page: Complete Program: ilolpex7.cpp