CspComposite.AtMostMofN Method

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

Syntax

'Declaration
Public Function AtMostMofN ( _
    m As Integer, _
    ParamArray inputs As CspTerm() _
) As CspTerm
public CspTerm AtMostMofN(
    int m,
    params CspTerm[] inputs
)
public:
CspTerm^ AtMostMofN(
    int m, 
    ... array<CspTerm^>^ inputs
)
member AtMostMofN : 
        m:int * 
        inputs:CspTerm[] -> CspTerm 
public function AtMostMofN(
    m : int, 
    ... inputs : CspTerm[]
) : CspTerm

Parameters

  • m
    Type: System.Int32
    The maximum number of inputs that are true.

Return Value

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

.NET Framework Security

See Also

Reference

CspComposite Class

Microsoft.SolverFoundation.Solvers Namespace