AtMostMofN Method

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


Type: System.Int32
The maximum number of inputs that are true.
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.

© 2015 Microsoft