[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 set reference row.
Assembly: Microsoft.Solver.Foundation (in Microsoft.Solver.Foundation.dll)
The input must be a constraint of the form x == c1 * d1 + c2 * d2 + ...
where cN are constants and dN are decisions. The order of the equality matters. None of the constants can be zero, and the same constant cannot appear more than once. The result of this is the equality constraint given, with additional requirements: the sum of the dN decisions must be 1, at most two of the dN decisions can be nonzero, and any nonzero dN decisions must be adjacent in the list that is produced by sorting the dN decisions by the corresponding cN constraints.
- 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.