Export (0) Print
Expand All

Model.AllDifferent 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.]

Ensures that all terms in a model are different.

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

public static Term AllDifferent(
	params Term[] terms
)

Parameters

terms
Type: Microsoft.SolverFoundation.Services.Term[]
A decision, formula, goal, or constraint.

Return Value

Type: Microsoft.SolverFoundation.Services.Term
1 if all inputs are pair-wise different; otherwise, 0.

ExceptionCondition
ArgumentException

The operation is not valid for the given inputs.

Show:
© 2014 Microsoft