Description
The routine CPXgetnumcols() is used to access the number of columns in the constraint matrix, or equivalently, the number of variables in the LP problem object.Return Value
If the problem object or environment does not exist, CPXgetnumcols() returns the value 0; otherwise, it returns the number of columns (variables).Synopsis
int CPXgetnumcols (CPXENVptr env,
CPXLPptr lp);
CPXENVptr envThe pointer to the CPLEX environment as returned by one of the
CPXopenCPLEX routines.
CPXLPptr lpA pointer to a CPLEX LP problem object as returned by
CPXcreateprob().
cur_numcols = CPXgetnumcols (env, lp);