Previous Page: CPXgetnumquadFirst PageNext Page: CPXgetnumsos

CPXgetnumrows


Description

The routine CPXgetnumrows() is used to access the number of rows in the constraint matrix, not including the objective function or the bounds constraints on the variables.

Return Value

If the CPLEX LP problem object or environment does not exist, CPXgetnumrows() returns the value 0; otherwise, it returns the number of rows.

Synopsis

int CPXgetnumrows (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_numrows = CPXgetnumrows (env, lp);

See Also

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

Previous Page: CPXgetnumquadFirst PageNext Page: CPXgetnumsos