Previous Page: CPXgetnumrowsFirst PageNext Page: CPXgetobj

CPXgetnumsos


Usage

Mixed Integer Users Only

The CPXgetnumsos() routine is used to access the number of Special Ordered Sets in the CPLEX LP problem object.

Return Value

If the problem object or environment does not exist, or the problem is not a mixed integer problem, the routine returns the value 0; otherwise, it returns the number of Special Ordered Sets in the problem object.

Synopsis

int CPXgetnumsos (CPXENVptr env,
                  CPXLPptr lp);

Arguments


CPXENVptr env
The pointer to the CPLEX environment as returned by one of the CPXopenCPLEX routines.

CPXLPptr lp
A pointer to a CPLEX LP problem object as returned by CPXcreateprob().

Example

numsos = CPXgetnumsos (env, lp);

Previous Page: CPXgetnumrowsFirst PageNext Page: CPXgetobj