ILOG CPLEX .NET Reference Manual

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

Creates an SOS of type 2 with the specified variables and weights and adds the new SOS to the invoking model.

ISOS2 AddSOS2(
   INumVar[] var,
   double[] val
);

Parameters

var
The variables in the new SOS.
val
The weight values for the variables in the new SOS.

Return Value

The new ISOS2 object.

See Also

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