NO FRAMES

CPXgetnumsos

int CPXPUBLIC CPXgetnumsos(CPXCENVptr env, CPXCLPptr lp)
Definition file: cplex.h
Include files: cplex.h

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

Example

 numsos = CPXgetnumsos (env, lp);

Parameters:

env

A pointer to the CPLEX environment as returned by CPXopenCPLEX.

lp

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

Example

 numsos = CPXgetnumsos (env, lp);

Returns:

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.