SolverContext.Solve Method (Func, Void)

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

Solves a model that has been created and loaded.

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

Syntax

'Declaration
Public Function Solve ( _
    queryAbort As Func, _
    ParamArray directives As Void _
) As Solution
public Solution Solve(
    Func queryAbort,
    params void directives
)
public:
Solution^ Solve(
    Func^ queryAbort, 
    ... void directives
)
member Solve : 
        queryAbort:Func * 
        directives:unit -> Solution 
public function Solve(
    queryAbort : Func, 
    ... directives : Void
) : Solution

Parameters

  • queryAbort
    Type: System.Func<TResult>
    A function that is called periodically during the computation to determine whether the user has canceled the operation.
  • directives
    Type: System.Void
    A set of directives to use during the solve process.

Return Value

Type: Microsoft.SolverFoundation.Services.Solution
A solution to the model.

Exceptions

Exception Condition
UnsolvableModelException

No solver can accept the model.

Remarks

This method is a blocking call.

.NET Framework Security

See Also

Reference

SolverContext Class

Solve Overload

Microsoft.SolverFoundation.Services Namespace