View License

Download apps, toolboxes, and other File Exchange content using Add-On Explorer in MATLAB.

» Watch video

Highlights from
MPC Tutorial II: Multivariable and State Space MPC V2.0

4.8 | 6 ratings Rate this file 27 Downloads (last 30 days) File Size: 36.5 KB File ID: #19650 Version: 1.1
image thumbnail

MPC Tutorial II: Multivariable and State Space MPC V2.0


Yi Cao (view profile)


21 Apr 2008 (Updated )

A tool and tutorial for multivariable state space MPC

| Watch this File

File Information

As planned, this is the second part of the MPC series. To dealing with multivariable, state-space model is most convenient. In this part, a tool to setup the state-space model based predictive controller is provided. The setup program returns a function handle for the online MPC controller.

The online controller is implemented as a nested function, hence the internal model, internal states, control parameters are all stored inside of the workspace of the setup program so that the interface of the online controller is significantly simplified.

A 2-CSTR example is included to demonstrate the usage of this tool.

The tool also provides an example for beginners to learn how to use nested function to replace persistent variables.


Model Based Predictive Control: A Practical Approach and Mpc Tutorial I: Dynamic Matrix Control inspired this file.

This file inspired Mpc Tutorial Iv State Space Mpc With Input Increment and Mpc Tutorial Iii: Mpc In Simulink V2.

MATLAB release MATLAB 7.12 (R2011a)
Tags for This File   Please login to tag files.
Please login to add a comment or rating.
Comments and Ratings (7)
22 Feb 2015 sam

sam (view profile)

16 Nov 2014 sam

sam (view profile)


Comment only
08 Apr 2013 pedro rivera

nice, im doing an mpc multivariable work on my work degree, i want to ask you about mpc tuning methodology, i mean, i tune weights just making system stable and simulating all operation points i´ll need, but i want to do a better job.

06 Jul 2012 dinesh singh


09 Aug 2011 Jingyun

05 Apr 2009 V. Poor

30 Aug 2008 Siddhi Adhikihal

Well,its a good tutorial. Just need more example to make it perfect.

02 Jul 2011 1.1

A bug removed. Now different output can follow different setpoint properly.

Contact us