SolverContext.Solve Method (array<Directive[])

[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. Solves the model using the specified directives.

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

Syntax

'Declaration
Public Function Solve ( _
    ParamArray directives As Directive() _
) As Solution
public Solution Solve(
    params Directive[] directives
)
public:
Solution^ Solve(
    ... array<Directive^>^ directives
)
member Solve : 
        directives:Directive[] -> Solution 
public function Solve(
    ... directives : Directive[]
) : Solution

Parameters

Return Value

Type: Microsoft.SolverFoundation.Services.Solution
A solution of 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