Usage
Mixed Integer Users OnlyCPXgetnumsos() 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);
CPXENVptr envThe pointer to the CPLEX environment as returned by one of the
CPXopenCPLEX routines.
CPXLPptr lpA pointer to a CPLEX LP problem object as returned by
CPXcreateprob().
numsos = CPXgetnumsos (env, lp);