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

  1. In the Modeling Pane, click the Directives tab.

  2. Click New, and then click Constraint Satisfaction Directive.

  3. In the Name field, type a unique name.

  4. For the Algorithm field, select Default, Tree Search, or Local Search.

  5. For the Time Limit (ms) field, type in the time limit in milliseconds.

  6. For the Move Selection field, select Default, Greedy, Simulated Annealing, Greedy Noise, Tabu, or Gradients.

  7. In the Value Selection field, select Default, Success Prediction, Forward Order, or Random Order.

  8. 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

  1. In the Modeling Pane, click the Directives tab.

  2. Click New, and then click Interior Point Method Directive.

  3. In the Name field, type a unique name.

  4. For the Algorithm field, select Default, Predictor Corrector, or Homogenous Self Dual.

  5. For the Arithmetic field, select Default, Exact, or Double.

  6. For the Time Limit (ms) field, type in the time limit in milliseconds.

  7. For the Wait Limit (ms) field, type in the wait limit in milliseconds.

  8. For the Maximum Goal Count field, type in the number of goals. Use -1 for an infinite number of goals.

  9. 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

  1. In the Modeling Pane, click the Directives tab.

  2. Click New, and then click Mixed Integer Programming Directive.

  3. In the Name field, type a unique name.

  4. For the Basis field, select Default, Crash, Slack, or Freedom.

  5. For the Time Limit (ms) field, type in the time limit in milliseconds.

  6. For the Wait Limit (ms) field, type in the wait limit in milliseconds.

  7. For the Maximum Goal Count field, type in the number of goals. Use -1 for an infinite number of goals.

  8. For the Pricing field, select Default, Steepest Edge, Reduced Cost, or Partial.

  9. For the Pricing Tolerance field, type in the pricing tolerance.

  10. For the Variable Tolerance field, type in the variable tolerance.

  11. For the Iteration Limit field, type in the maximum number of iterations. Use -1 for an infinite number of iterations.

  12. For the Gap Tolerance field, type in the gap tolerance.

  13. Select the Get Infeasibilty checkbox to generate the infeasibility report.

To add a simplex directive

  1. In the Modeling Pane, click the Directives tab.

  2. Click New, and then click Simplex Directive.

  3. In the Name field, type a unique name.

  4. For the Algorithm field, select Default, Primal, or Dual.

  5. For the Arithmetic field, select Default, Exact, or Double.

  6. For the Basis field, select Default, Crash, Slack, or Freedom.

  7. For the Time Limit (ms) field, type in the time limit in milliseconds.

  8. For the Maximum Goal count field, type in the number of goals. Use -1 for an infinite number of goals.

  9. For the Pricing field, select Default, Steepest Edge, Reduced Cost, or Partial.

  10. For the Pricing Tolerance field, type in the pricing tolerance.

  11. For the Variable Tolerance field, type in the variable tolerance.

  12. For the Iteration Limit field, type in the maximum number of iterations. Use -1 for an infinite number of iterations.

  13. Select the Get Infeasibilty checkbox to generate the infeasibility report.

To add a stochastic directive

  1. In the Modeling Pane, click the Directives tab.

  2. Click New, and then click Stochastic Directive.

  3. In the Name field, type a unique name.

  4. For the Arithmetic field, select Default, Exact, or Double.

  5. For the Decomposition field, select Automatic, Disabled, or Enabled.

  6. For the Time Limit (ms) field, type in the time limit in milliseconds.

  7. For the Wait Limit (ms) field, type in the wait limit in milliseconds.

  8. For the Maximum Goal Count field, type in the number of goals. Use -1 for an infinite number of goals.

  9. 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

  1. In the Modeling Pane, click the Directives tab.

  2. Click New, and then click Hybrid Local Search Directive.

  3. In the Name field, type a unique name.

  4. For the Time Limit (ms) field, type in the time limit in milliseconds.

  5. Select the Search Until Time Limit checkbox to continue searching for better solutions until the time limit expires.

See Also

Reference

ConstraintProgrammingDirective

InteriorPointMethodDirective

MixedIntegerProgrammingDirective

SimplexDirective

StochasticDirective

Concepts

Modeling in Excel