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