CPXXgetnumpwl and CPXgetnumpwl
The routine CPXXgetnumpwl/CPXgetnumpwl accesses the number of
piecewise linear (PWL) constraints in a CPLEX problem object.
CPXDIM CPXXgetnumpwl( CPXCENVptr env, CPXCLPptr lp )
int CPXgetnumpwl( CPXCENVptr env, CPXCLPptr lp )
Description
The routine
CPXXgetnumpwl/CPXgetnumpwl
accesses the number of piecewise linear (PWL) constraints in a
CPLEX problem object.
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 problem object or environment does not exist, the routine returns the value 0; otherwise, it returns the number of piecewise linear (PWL) constraints in the problem object.Example
numpwl = CPXgetnumpwl (env, lp);