ILOG CPLEX .NET Reference Manual

IMPModeler.AddSOS1 Method (INumVar[], Double[], Int32, Int32)

Creates an SOS of type 1 with num of the specified variables and weights, starting from the index specified by start, and adds the SOS to the invoking model.

ISOS1 AddSOS1(
   INumVar[] var,
   double[] val,
   int start,
   int num
);

Parameters

var
The array containing the variables in the new SOS.
val
The 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.

Return Value

The new ISOS1 object.

See Also

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