How to: Add a Directive
You can add an optional directive to customize the behavior of a solver. For example, you can adjust the arithmetic precision of the solver or set the time limit. You can also use the directive to generate reports.
Note
|
|---|
|
If a directive field is not filled, the field is set to its default value. |
To add a constraint satisfaction directive
-
In the Modeling Pane, click the Directives tab.
-
Click New, and then click Constraint Satisfaction Directive.
-
In the Name field, type a unique name.
-
For the Algorithm field, select Default, Tree Search, or Local Search.
-
For the Time Limit (ms) field, type in the time limit in milliseconds.
-
For the Move Selection field, select Default, Greedy, Simulated Annealing, Greedy Noise, Tabu, or Gradients.
-
In the Value Selection field, select Default, Success Prediction, Forward Order, or Random Order.
-
In the Variable Selection field, select Default, Minimal Domain First, Declaration Order, Dynamic Weighting, Conflict Driven, Impact Prediction, or Domain Over Weighted Degree.
To add an interior point method directive
-
In the Modeling Pane, click the Directives tab.
-
Click New, and then click Interior Point Method Directive.
-
In the Name field, type a unique name.
-
For the Algorithm field, select Default, Predictor Corrector, or Homogenous Self Dual.
-
For the Arithmetic field, select Default, Exact, or Double.
-
For the Time Limit (ms) field, type in the time limit in milliseconds.
-
For the Wait Limit (ms) field, type in the wait limit in milliseconds.
-
For the Maximum Goal Count field, type in the number of goals. Use -1 for an infinite number of goals.
-
For the Iteration Limit field, type in the maximum number of iterations. Use -1 for an infinite number of iterations.
To add a mixed integer programming directive
-
In the Modeling Pane, click the Directives tab.
-
Click New, and then click Mixed Integer Programming Directive.
-
In the Name field, type a unique name.
-
For the Basis field, select Default, Crash, Slack, or Freedom.
-
For the Time Limit (ms) field, type in the time limit in milliseconds.
-
For the Wait Limit (ms) field, type in the wait limit in milliseconds.
-
For the Maximum Goal Count field, type in the number of goals. Use -1 for an infinite number of goals.
-
For the Pricing field, select Default, Steepest Edge, Reduced Cost, or Partial.
-
For the Pricing Tolerance field, type in the pricing tolerance.
-
For the Variable Tolerance field, type in the variable tolerance.
-
For the Iteration Limit field, type in the maximum number of iterations. Use -1 for an infinite number of iterations.
-
For the Gap Tolerance field, type in the gap tolerance.
-
Select the Get Infeasibilty checkbox to generate the infeasibility report.
To add a simplex directive
-
In the Modeling Pane, click the Directives tab.
-
Click New, and then click Simplex Directive.
-
In the Name field, type a unique name.
-
For the Algorithm field, select Default, Primal, or Dual.
-
For the Arithmetic field, select Default, Exact, or Double.
-
For the Basis field, select Default, Crash, Slack, or Freedom.
-
For the Time Limit (ms) field, type in the time limit in milliseconds.
-
For the Maximum Goal count field, type in the number of goals. Use -1 for an infinite number of goals.
-
For the Pricing field, select Default, Steepest Edge, Reduced Cost, or Partial.
-
For the Pricing Tolerance field, type in the pricing tolerance.
-
For the Variable Tolerance field, type in the variable tolerance.
-
For the Iteration Limit field, type in the maximum number of iterations. Use -1 for an infinite number of iterations.
-
Select the Get Infeasibilty checkbox to generate the infeasibility report.
To add a stochastic directive
-
In the Modeling Pane, click the Directives tab.
-
Click New, and then click Stochastic Directive.
-
In the Name field, type a unique name.
-
For the Arithmetic field, select Default, Exact, or Double.
-
For the Decomposition field, select Automatic, Disabled, or Enabled.
-
For the Time Limit (ms) field, type in the time limit in milliseconds.
-
For the Wait Limit (ms) field, type in the wait limit in milliseconds.
-
For the Maximum Goal Count field, type in the number of goals. Use -1 for an infinite number of goals.
-
For the Maximum Scenario Count Before Sampling field, type in the number of goals. Use -1 for an infinite number of goals.
To add a hybrid local search directive
-
In the Modeling Pane, click the Directives tab.
-
Click New, and then click Hybrid Local Search Directive.
-
In the Name field, type a unique name.
-
For the Time Limit (ms) field, type in the time limit in milliseconds.
-
Select the Search Until Time Limit checkbox to continue searching for better solutions until the time limit expires.
Note