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)


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


  • 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.


Exception Condition

No solver can accept the model.


This method is a blocking call.

.NET Framework Security

See Also


SolverContext Class

Solve Overload

Microsoft.SolverFoundation.Services Namespace