Overview | Group | Index | Concepts |
The routine CPXgetnumnz
accesses the number of
nonzero elements in the constraint matrix of a CPLEX problem object, not
including the objective function, quadratic constraints,
or the bounds constraints on the variables.
Example
cur_numnz = CPXgetnumnz (env, lp);
env | A pointer to the CPLEX environment as returned by |
lp | A pointer to a CPLEX problem object as returned by |
CPXgetnumnz
returns the value 0 (zero); otherwise, it returns the number of nonzero elements.