Computation
Visualization
Programming
For Use with MATLAB
®
Model Predictive Control
Toolbox
User’s Guide
Version 1
Manfred Morari
N. Lawrence Ricker
How to Contact The MathWorks:
508-647-7 000 Ph one
508-647-7 001 Fax
The M ath Wor ks , Inc. M ail
24 Prime Par k Way
Natick, M A 01760-150 0
http://www.mathworks.com Web
ftp.mathworks.com Anonymous FTP server
comp.soft-sys.matlab Newsgr ou p
support@mathworks.com Tech nical support
suggest@mathworks.com Product enhancement suggestions
bugs@mathworks.com Bug reports
doc@mathworks.com D ocumen t a t i on erro r reports
subscribe@mathworks.com Subscribing user registration
service@mathworks.com O rde r status , license re newals, passcod e s
info@mathworks.com S ale s, pri cin g, an d g ene ral in for m ation
Model Predictive Control Toolbox User’s Guide
COPYRIGHT 1984 - 1998 by The MathWorks, Inc.
The software described in this document is furnished under a license agreement. The softwaremay be used
or copied only under the terms of the license agreement. No part of this manual may be photocopied or repro-
duced in any f orm without prior written consent from The MathWorks, Inc.
U.S. GOVERNMENT: If Licensee is acquiring the Programs on behalf of any unit or agency of the U.S.
Government, the following shall apply: (a) For units o f the Department of Defense: the Government shall
have only the rights specified in the license under which the commercial co mputer software or commercial
software do cumentation wa s obtained, as se t forth in subparagraph (a) of the Rights in Comme rcial
Computer Software or Commercial Software Documentation C lause at DFARS 227.7202-3, there fore the
rights set forth herein shall a pply; and (b) For any other unit or agency: NOTICE: Notw ithstanding any
other lease or license a greement that may pertain to, o r accom pany the delivery o f, the computer software
and accompanying documentation, the rights of the Governme nt regarding its us e, reproduction, and disclo-
sure are as set forth in Clause 52.227-19 (c)(2) of the FA R.
MATLAB, Simulink, Handle Graphics, a nd Real-Time Workshop are registered trademarks and S tateflow
and Target Language Compiler are trademarks of The MathWorks, Inc.
Other product o r brand names are trademarks or registered trademarks of their respective holders.
Printing H istory: January 1995 First printing
Novem ber 1995 Reprint
October 1998 Revisions
October 1998 Online
☎
PHONE
FAX
✉
MAIL
INTERNET
@
E-MAIL
i
Contents
Preface
1
Tutorial
Introduction ......................................... 1-2
TargetAudiencefortheMPCToolbox .................... 1-3
SystemRequirements ................................. 1-3
2
MPC Based on Step Response Models
Step Respon se Models ................................. 2-2
Model Identification .................................. 2-6
Unconstrained Model Predictive Control .............. 2-11
Closed-Loop Analysis ................................ 2-18
Constrained Model Predictive Control ................. 2-20
Application: Idle Speed Control ....................... 2-22
ProcessDescription .................................. 2-22
ControlProblemFormulation.......................... 2-22
Simulations ........................................ 2-24
Application: Control of a Fluid Catalytic Cracking Unit . 2-31
ProcessDescription .................................. 2-31
ControlProblemFormulation.......................... 2-33
ii Cont e nts
Simulations ........................................ 2-34
StepResponseModel............................... 2-34
AssociatedVariables ............................... 2-36
UnconstrainedControlLaw ......................... 2-36
ConstrainedControlLaw ........................... 2-36
3
MPC Based on State-Space Models
State-Space Models .................................... 3-2
ModFormat ......................................... 3-3
SISO Continuous-Time Transfer Function to Mod Format . . . . 3-3
SISO Discrete-Time Trans fer Funct ion to M od For mat . . . . . . 3-6
MIMOTransferFunctionDescriptiontoModFormat ....... 3-7
ContinuousorDiscreteState-SpacetoModFormat ......... 3-9
Identification Too lbox (“Theta”) Format to Mod Format . . . . . . 3-9
CombinationofModelsinModFormat .................. 3-10
ConvertingModFormattoOtherModelFormats.......... 3-10
Unconstrai ned MPC Using S tate-Space Models ......... 3-12
State-Spa ce MPC with Constrai nts .................... 3-20
Application: Paper Machine Headbox Control .......... 3-26
MPCDesignBasedonNominalLinearModel............. 3-27
MPCofNonlinearPlant .............................. 3-38
4
Command Reference
Commands Grouped by Function ....................... 4-2
Index
Preface