Use Problem-Based Optimize Live Editor Task Effectively - MATLAB & Simulink (original) (raw)

Main Content

How the Problem-Based Optimize Live Editor Task Works

The Optimize Live Editor task looks in many ways like a Graphical User Interface for optimization. However, it runs differently than you might expect.

What Does Select task mode Do?

The Select task mode section appears at the bottom of the Live Editor task. The two modes are:

Leave Autorun Selected in Define Problem Mode

The Autorun checkbox appears at the top right section of the task, as pictured.

Autorun checkbox

To have the task operate most reliably, keep the Autorun checkbox selected while in Define problem mode. Doing so enables the following behavior:

When the Autorun checkbox is cleared, the task can be in an internally inconsistent state. In this state, the task creates warning labels: Inconsistency notification.

When the Autorun checkbox is cleared, switching the task toSolve problem mode does not run the task, and therefore does not solve the problem. In Solve problem mode, to keep the task from solving the problem every time you change something, clear theAutorun checkbox. In this case, to solve a problem, run the task by pressing Ctrl + Enter or by clicking the blue bar to the left of the section.

See Also

Optimize

Topics