NO FRAMES

CPXgetnumsos

public int CPXgetnumsos(CPXCENVptr env, CPXCLPptr lp)
Definition file: cplex.h

The routine CPXgetnumsos accesses the number of special ordered sets (SOS) 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 (SOS) in the problem object.