Previous Page: CPXgetnumbinFirst PageNext Page: CPXgetnumint

CPXgetnumcols


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);

Arguments


CPXENVptr env
The pointer to the CPLEX environment as returned by one of the CPXopenCPLEX routines.

CPXLPptr lp
A pointer to a CPLEX LP problem object as returned by CPXcreateprob().

Example

cur_numcols = CPXgetnumcols (env, lp);

See Also

Example lpex1.c in the CPLEX User's Manual.

Previous Page: CPXgetnumbinFirst PageNext Page: CPXgetnumint