[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)
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.
- 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.