ILOG CPLEX .NET Reference Manual

Cplex.GetNSOSs Method 

Returns the number of SOSs of both types, 1 and 2 in the active model.

public virtual int GetNSOSs();

Return Value

The number of SOSs in the active model.

See Also

Cplex Class | ILOG.CPLEX Namespace