FUNCTION REFERENCE
mpcDesigner
Open the native MPC Designer to tune and compare linear controllers.
Open the native MPC Designer to tune and compare linear controllers.
Syntax
mpcDesigner; mpcDesigner(plant); mpcDesigner(mpcobj)Choose a workspace ss, tf, zpk or mpc variable. Create, duplicate and rename controllers; edit physical signal roles, sample time, horizons, weights and MV/OV constraints, then Apply controller. Run scenario uses accepted controllers. Invalid edits, errors and cancellation retain the last completed results.
Scenarios support 1..10000 stored samples (default 30), finite literal reference and measured-disturbance rows or time-row matrices, optional plant initial state, and reference/MD lookahead. Physical reference columns include all outputs; disturbance columns follow physical MD order. Short signals hold their final row. Empty reference/MD inputs resolve from the selected controller nominal signals and are shared by both alternatives; empty plant state uses each plant nominal X. Duration is (samples-1)*Ts; returned time, physical outputs and MV channels come from sim. Unmeasured outputs are labeled and are not measured feedback.
Compare one other accepted controller with identical physical channel roles/counts and Ts; no resampling. Runs use fresh independent controller state. Outputs and Manipulated variables show one selected channel, controller identities with solid/dashed curves, neutral reference and finite scalar bounds; Data shows numeric time and both alternatives. Horizon-varying bounds remain controller settings, not simulation-time overlays.
Generate script and workspace export share one builder and reproduce the completed run snapshot, its accepted controllers, reference, disturbances, initial state and lookahead options, even after draft edits. Source workspace variables are explicit dependencies and must retain their accepted values. Choose a checked scenario prefix for r/v/x0/options/y/t/u (and y2/t2/u2 when comparing). Existing workspace names are replaced transactionally; invalid names, errors and cancellation publish no partial export. Controller only preserves construction-only export; All controllers includes the accepted list in that mode.
Differences from MATLAB: requires the MatRust desktop and named workspace sources. At most 16 controllers, 128 channels/states, 10000 prediction steps, literal fields of 32768 bytes/10000 entries and a 1 MiB generated script; engine memory and cancellation limits also apply. Session files, nonlinear, adaptive/gain-scheduled and explicit MPC, code generation, simulation plant mismatch, noise/UD scenario editors and custom controller initial states are not exposed in this app. Review diagnostics are independent of scenario execution.
Reference: https://www.mathworks.com/help/mpc/ref/mpcdesigner-app.html
These are the engine’s help pages. Each page keeps its compatibility notes. File operations are unavailable in the browser.