ConstraintSystem.CreateSolver Method (Func<Boolean>, IEqualityComparer<Object>, Int32)

Creates an instance of a solver.

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

Syntax

'Declaration
Public Shared Function CreateSolver ( _
    fnQueryAbort As Func(Of Boolean), _
    cmp As IEqualityComparer(Of Object), _
    precision As Integer _
) As ConstraintSystem
public static ConstraintSystem CreateSolver(
    Func<bool> fnQueryAbort,
    IEqualityComparer<Object> cmp,
    int precision
)
public:
static ConstraintSystem^ CreateSolver(
    Func<bool>^ fnQueryAbort, 
    IEqualityComparer<Object^>^ cmp, 
    int precision
)
static member CreateSolver : 
        fnQueryAbort:Func<bool> * 
        cmp:IEqualityComparer<Object> * 
        precision:int -> ConstraintSystem 
public static function CreateSolver(
    fnQueryAbort : Func<boolean>, 
    cmp : IEqualityComparer<Object>, 
    precision : int
) : ConstraintSystem

Parameters

  • fnQueryAbort
    Type: System.Func<Boolean>
    A function that is called periodically through the computation to determine if the user has cancelled the operation.

Return Value

Type: Microsoft.SolverFoundation.Solvers.ConstraintSystem
An instance of a solver.

.NET Framework Security

See Also

Reference

ConstraintSystem Class

ConstraintSystem Members

CreateSolver Overload

Microsoft.SolverFoundation.Solvers Namespace