Export (0) Print
Expand All

Model.Sos1 Method

Solver Foundation 3.0

[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 static Term Sos1(
	Term referenceRow


Type: Microsoft.SolverFoundation.Services.Term
A reference row.

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.

© 2014 Microsoft