Model.Sos1 Method

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

Namespace:  Microsoft.SolverFoundation.Services
Assembly:  Microsoft.Solver.Foundation (in Microsoft.Solver.Foundation.dll)


Public Shared Function Sos1 ( _
    referenceRow As Term _
) As Term
public static Term Sos1(
    Term referenceRow
static Term^ Sos1(
    Term^ referenceRow
static member Sos1 : 
        referenceRow:Term -> Term 
public static function Sos1(
    referenceRow : Term
) : Term


Return Value

Type: Microsoft.SolverFoundation.Services.Term
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

See Also


Model Class

Microsoft.SolverFoundation.Services Namespace