| Overview | Group | Tree | Graph | Index | Concepts | 
The routine CPXgetnumcols is used to access the number of
 columns in the constraint matrix, or equivalently, the number of variables
 in the CPLEX problem object.
Example
cur_numcols = CPXgetnumcols (env, lp);
See also the example lpex1.c in the 
 ILOG CPLEX User's Manual and in the standard distribution.
| env | A pointer to the CPLEX environment as returned by   | 
| lp | A pointer to a CPLEX problem object as returned by  Example cur_numcols = CPXgetnumcols (env, lp); See also the example   | 
CPXgetnumcols returns the value 0 (zero); otherwise, it returns the number of columns (variables).