Main Content

Set Options

Set optimization options

Modify the optimization process, or monitor the optimization, by setting appropriate options.

Functions

optimoptionsCreate optimization options
optimsetCreate or edit optimization options structure
resetoptionsReset options

Live Editor Tasks

OptimizeOptimize or solve equations in the Live Editor

Topics

Option Basics

What Are Options?

Options are the controls for optimization.

Set and Change Options

How to use options.

Choose Between optimoptions and optimset

Choose between the two functions that create options.

View Options

How to review your options.

Optimization App Alternatives

Optimize without using the Optimization app.

Common Options Details

Options in Common Use: Tuning and Troubleshooting

Overview of the most common options.

Tolerances and Stopping Criteria

Control when the solver stops.

Tolerance Details

Describes which tolerances are relative and which absolute for four common tolerances.

Checking Validity of Gradients or Jacobians

Check whether a derivative function matches finite difference estimates.

Output Function and Plot Function Syntax

How to monitor the progress of your optimization at the command line and stop the solver.

Plot Functions

Describes plot functions for displaying information on solver iterations.

intlinprog Output Function and Plot Function Syntax

How to monitor the progress of the intlinprog solution process.

Comprehensive Options Details

Optimization Options Reference

Explore optimization options.

Current and Legacy Option Names

Gives the former and current option names that changed in R2016a.