NO FRAMES

CPXgetnumrows

public int CPXgetnumrows(CPXCENVptr env, CPXCLPptr lp)
Definition file: cplex.h

The routine CPXgetnumrows accesses the number of rows in the constraint matrix, not including the objective function, quadratic constraints, or the bounds constraints on the variables.

Example

 cur_numrows = CPXgetnumrows (env, lp);
 

See also the example lpex1.c in the ILOG CPLEX User's Manual and in the standard distribution.

Parameters:

env

A pointer to the CPLEX environment as returned by CPXopenCPLEX.

lp

A pointer to a CPLEX problem object as returned by CPXcreateprob.

Returns:

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