Share via


Model.ExactlyMofN Method

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

Tests whether exactly a specified number of inputs are true.

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

Syntax

'Declaration
Public Shared Function ExactlyMofN ( _
    m As Integer, _
    ParamArray terms As Term() _
) As Term
public static Term ExactlyMofN(
    int m,
    params Term[] terms
)
public:
static Term^ ExactlyMofN(
    int m, 
    ... array<Term^>^ terms
)
static member ExactlyMofN : 
        m:int * 
        terms:Term[] -> Term 
public static function ExactlyMofN(
    m : int, 
    ... terms : Term[]
) : Term

Parameters

Return Value

Type: Microsoft.SolverFoundation.Services.Term
1 if exactly m of the inputs are true (nonzero), 0 otherwise.

Exceptions

Exception Condition
ArgumentException

The operation is not valid for the given inputs.

.NET Framework Security

See Also

Reference

Model Class

Microsoft.SolverFoundation.Services Namespace