Export (0) Print
Expand All

ConstraintSystem.AtMostMofN 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.]

Tests that at most M inputs are true.

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

public CspTerm AtMostMofN(
	int M,
	params CspTerm[] inputs
)

Parameters

M
Type: System.Int32
The maximum number of inputs that are true.
inputs
Type: Microsoft.SolverFoundation.Solvers.CspTerm[]
An array of terms.

Return Value

Type: Microsoft.SolverFoundation.Solvers.CspTerm
true if at most M inputs are true; otherwise, false.

Show:
© 2014 Microsoft