ILOG CPLEX .NET Reference Manual

IMPModeler.AddSOS2 Method (INumVar[], Double[], Int32, Int32, String)

Creates an SOS of type 2 with num of the specified variables and weights, starting from the index specified by start, and adds the new SOS along with its name to the invoking model.

ISOS2 AddSOS2(
   INumVar[] var,
   double[] val,
   int start,
   int num,
   string name
);

Parameters

var
An array containing the variables in the new SOS.
val
An array containing the weight values for the variables in the new SOS.
start
The first element in var and val to use for the new SOS.
num
The number of consecutive elements in var and val to use for the new SOS.
name
The name of the new SOS.

Return Value

The new ISOS2 object.

See Also

IMPModeler Interface | ILOG.Concert Namespace | IMPModeler.AddSOS2 Overload List