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
- directives
Type: array<Microsoft.SolverFoundation.Services.Directive[]
A set of directives to use during the solve process.
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
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.