[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]
Creates a constraint for a special ordered type 1 set.
Assembly: Microsoft.Solver.Foundation (in Microsoft.Solver.Foundation.dll)
'Declaration Public Shared Function Sos1 ( _ referenceRow As Term _ ) As Term
public static Term Sos1( Term referenceRow )
public: static Term^ Sos1( Term^ referenceRow )
static member Sos1 : referenceRow:Term -> Term
public static function Sos1( referenceRow : Term ) : Term
A reference row.
A constraint for a special ordered type 1 set.
The input must be of the form c1 * d1 + c2 * d2 + ... where cN are constants and dN are decisions. None of the constants can be zero, and the same constant cannot appear more than once. The SOS1 constraint enforces the property that at most one of the given decisions can be nonzero. The constants should be associated with the problem in some natural way. The ordering of the constants is used by the solver to find a solution more quickly.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.