Export (0) Print
Expand All

SolverContext.Solve Method (Func, Void)

Solver Foundation 3.0

[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 Solution Solve(
	Func queryAbort,
	params void directives
)

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.

ExceptionCondition
UnsolvableModelException

No solver can accept the model.

This method is a blocking call.

Show:
© 2014 Microsoft