Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
TimeLimitMilliSec Property

ConstraintSolverParams.TimeLimitMilliSec Property

Solver Foundation 3.0

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

Gets or sets the limit for CPU time.

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

public int TimeLimitMilliSec { get; set; }

Property Value

Type: System.Int32
The limit for CPU time.

You can use the TimeLimitMilliSec property as an alternative to starting a separate thread and using the Abort property if the interval is short.

The TimeLimitMilliSec property is also used to set the time limit for a search. After the time limit expires, the solver stops the search and the Quality property is set to Unknown, even after the GetNext method is called.

Show:
© 2015 Microsoft