CPXXgetnumrows and CPXgetnumrows
The routine CPXXgetnumrows/CPXgetnumrows accesses the number of
rows in the constraint matrix, not including the objective function,
quadratic constraints, or the
bounds constraints on the variables.
CPXDIM CPXXgetnumrows( CPXCENVptr env, CPXCLPptr lp )
int CPXgetnumrows( CPXCENVptr env, CPXCLPptr lp )
Description
The routine CPXXgetnumrows/CPXgetnumrows accesses the number of
rows in the constraint matrix, not including the objective function,
quadratic constraints, or the
bounds constraints on the variables.
Arguments
- env
-
A pointer to the CPLEX environment as returned by
CPXXopenCPLEX/CPXopenCPLEX. - lp
-
A pointer to a CPLEX problem object as returned by
CPXXcreateprob/CPXcreateprob.
Return
If the CPLEX problem object or environment does not exist,CPXXgetnumrows/CPXgetnumrows returns the value 0 (zero); otherwise, it returns the number of rows.
Example
cur_numrows = CPXgetnumrows (env, lp);
See also the example lpex1.c in the
CPLEX User's Manual and in the standard distribution.