Model Predictive Control
Manfred Morari
Institut f¨ ur Automatik ETH Z¨ urich
Spring Semester 2014
Manfred Morari Model Predictive Control Spring Semester 2014
Model Predictive Control Manfred Morari Institut f ur Automatik - - PowerPoint PPT Presentation
Model Predictive Control Manfred Morari Institut f ur Automatik ETH Z urich Spring Semester 2014 Manfred Morari Model Predictive Control Spring Semester 2014 Lecturers Prof. Dr. Manfred Morari Prof. Dr. Francesco Borrelli ETH Zurich
Institut f¨ ur Automatik ETH Z¨ urich
Manfred Morari Model Predictive Control Spring Semester 2014
Manfred Morari Model Predictive Control Spring Semester 2014
Manfred Morari Model Predictive Control Spring Semester 2014
Manfred Morari Model Predictive Control Spring Semester 2014
Manfred Morari Model Predictive Control Spring Semester 2014
Manfred Morari Model Predictive Control Spring Semester 2014
Institut f¨ ur Automatik ETH Z¨ urich
∗UC Berkley † EPFL
Model Predictive ControlPart I – Introduction Spring Semester 2014
3 Summary and Outlook 3.2 Literature
Model Predictive ControlPart I – Introduction Spring Semester 2014 3-33
1 Concepts
Model Predictive ControlPart I – Introduction Spring Semester 2014
1 Concepts 1.1 Main Idea
Model Predictive ControlPart I – Introduction Spring Semester 2014 1-2
1 Concepts 1.1 Main Idea
Model Predictive ControlPart I – Introduction Spring Semester 2014 1-3
1 Concepts 1.1 Main Idea
Model Predictive ControlPart I – Introduction Spring Semester 2014 1-3
1 Concepts 1.1 Main Idea
Model Predictive ControlPart I – Introduction Spring Semester 2014 1-3
1 Concepts 1.1 Main Idea
Model Predictive ControlPart I – Introduction Spring Semester 2014 1-4
1 Concepts 1.2 Classical Control vs MPC
Model Predictive ControlPart I – Introduction Spring Semester 2014
1 Concepts 1.2 Classical Control vs MPC
Model Predictive ControlPart I – Introduction Spring Semester 2014 1-5
1 Concepts 1.2 Classical Control vs MPC
constraint set point time
constraint set point time
Model Predictive ControlPart I – Introduction Spring Semester 2014 1-6
1 Concepts 1.3 Mathematical Formulation
Model Predictive ControlPart I – Introduction Spring Semester 2014
1 Concepts 1.3 Mathematical Formulation
t (x(t)) := argmin Ut N−1
k=0
Model Predictive ControlPart I – Introduction Spring Semester 2014 1-7
1 Concepts 1.3 Mathematical Formulation
t = {u∗ t , u∗ t+1, . . . , u∗ t+N−1}
t
Model Predictive ControlPart I – Introduction Spring Semester 2014 1-8
2 Constrained Optimal Control: 2-Norm 2.1 Problem Formulation
NPxN + N≠1
k=0
kQxk + uÕ kRuk
0 (x(0)) =
U0
Model Predictive Control Part II – Constrained Finite Time Optimal Control Spring Semester 2014 2-6
2 Constrained Optimal Control: 2-Norm 2.2 Construction of the QP with substitution
0HU0 + 2x(0)ÕFU0 + x(0)ÕYx(0)
0 x(0)Õ]
F Y
Õ x(0)Õ]Õ
F Y
0 (x(0)) = min U0
0 x(0)Õ]
F Y
Õ x(0)Õ]Õ
Model Predictive Control Part II – Constrained Finite Time Optimal Control Spring Semester 2014 2-7
2 Constrained Optimal Control: 2-Norm 2.2 Construction of the QP with substitution
0 (x(0)) = min U0
0 x(0)Õ]
F Y
Õ x(0)Õ]Õ
0 can be found via a QP solver.
Model Predictive Control Part II – Constrained Finite Time Optimal Control Spring Semester 2014 2-8
3 Summary and Outlook 3.1 Summary
Model Predictive ControlPart I – Introduction Spring Semester 2014 3-30
2 Examples
Model Predictive ControlPart I – Introduction Spring Semester 2014
2 Examples
Model Predictive ControlPart I – Introduction Spring Semester 2014 2-9
3 Summary and Outlook 3.1 Summary
Model Predictive ControlPart I – Introduction Spring Semester 2014 3-31
Institut f¨ ur Automatik ETH Z¨ urich
∗UC Berkley † EPFL
Model Predictive ControlPart III – Feasibility and Stability Spring Semester 2014 revised 29.04.2014
1 Basic Ideas of Predictive Control
0 (x(0)) = min ∞
k=0
Model Predictive ControlPart III – Feasibility and Stability Spring Semester 2014 revised 29.04.2014 1-2
1 Basic Ideas of Predictive Control
t (x(t)) =
Ut
N−1
k=0
Model Predictive ControlPart III – Feasibility and Stability Spring Semester 2014 revised 29.04.2014 1-3
1 Basic Ideas of Predictive Control
!"#"!"$%" &'() #*)*!" &!"+,%)"+-.*)&*)( /'$,&*0')"+-,$&*)( &!"+,%)"+-.*)&*)( /'$,&*0')"+-,$&*)(
1 At each sampling time, solve a CFTOC. 2 Apply the optimal input only during [t, t + 1] 3 At t + 1 solve a CFTOC over a shifted horizon based on new state
4 The resultant controller is referred to as Receding Horizon Controller
Model Predictive ControlPart III – Feasibility and Stability Spring Semester 2014 revised 29.04.2014 1-4
1 Basic Ideas of Predictive Control
t (x(t)) by solving the optimization problem in (1)
t (x(t)) = ∅ THEN ‘problem infeasible’ STOP
t of U ∗ t to the system
Model Predictive ControlPart III – Feasibility and Stability Spring Semester 2014 revised 29.04.2014 1-5
2 History of MPC
Model Predictive ControlPart III – Feasibility and Stability Spring Semester 2014 revised 29.04.2014 2-6
2 History of MPC
Model Predictive ControlPart III – Feasibility and Stability Spring Semester 2014 revised 29.04.2014 2-7
2 History of MPC
Model Predictive ControlPart III – Feasibility and Stability Spring Semester 2014 revised 29.04.2014 2-8
4 MPC Features
Model Predictive ControlPart III – Feasibility and Stability Spring Semester 2014 revised 29.04.2014
4 MPC Features
Model Predictive ControlPart III – Feasibility and Stability Spring Semester 2014 revised 29.04.2014 4-13
4 MPC Features
horizon V
Model Predictive ControlPart III – Feasibility and Stability Spring Semester 2014 revised 29.04.2014 4-14
4 MPC Features
∞
k=0
t Qxt + uT k Ruk
0 (x(t)) = min U0 N−1
k=0
TQxk + uk TRuk
Model Predictive ControlPart III – Feasibility and Stability Spring Semester 2014 revised 29.04.2014 4-15
4 MPC Features
2 4 6 8 10 −200 −100 100 200 Altitude x4 (m) Time (sec) 2 4 6 8 10 −2 −1 1 2 Pitch angle x2 (rad) 2 4 6 8 10 −0.5 0.5 Time (sec) Elevator angle u (rad)
Model Predictive ControlPart III – Feasibility and Stability Spring Semester 2014 revised 29.04.2014 4-16
4 MPC Features
2 4 6 8 10 −40 −20 20 40 Altitude x4 (m) Time (sec) 2 4 6 8 10 −1 −0.5 0.5 1 Pitch angle x2 (rad) 2 4 6 8 10 −0.5 0.5 Time (sec) Elevator angle u (rad)
Model Predictive ControlPart III – Feasibility and Stability Spring Semester 2014 revised 29.04.2014 4-17
4 MPC Features
2 4 6 8 10 −10 10 20 Altitude x4 (m) Time (sec) 2 4 6 8 10 −0.4 −0.2 0.2 Pitch angle x2 (rad) 2 4 6 8 10 −0.2 −0.1 0.1 0.2 Time (sec) Elevator angle u (rad)
Model Predictive ControlPart III – Feasibility and Stability Spring Semester 2014 revised 29.04.2014 4-18
4 MPC Features
2 4 6 8 10 50 50 100 150 Altitude x4 (m) Time (sec) 2 4 6 8 10 1 0.5 0.5 Pitch angle x2 (rad) 2 4 6 8 10 0.5 0.5 Time (sec) Elevator angle u (rad)
Model Predictive ControlPart III – Feasibility and Stability Spring Semester 2014 revised 29.04.2014 4-19
4 MPC Features
2 4 6 8 10 50 50 100 150 Altitude x4 (m) Time (sec) 2 4 6 8 10 0.4 0.2 0.2 0.4 Pitch angle x2 (rad) 2 4 6 8 10 0.5 0.5 Time (sec) Elevator angle u (rad)
Model Predictive ControlPart III – Feasibility and Stability Spring Semester 2014 revised 29.04.2014 4-20
4 MPC Features
2 4 6 8 10 −20 20 Altitude x4 (m) Time (sec) 2 4 6 8 10 −0.5 0.5 Pitch angle x2 (rad) 2 4 6 8 10 −0.5 0.5 Time (sec) Elevator angle u (rad)
Model Predictive ControlPart III – Feasibility and Stability Spring Semester 2014 revised 29.04.2014 4-21
5 Stability and Invariance of MPC
Model Predictive ControlPart III – Feasibility and Stability Spring Semester 2014 revised 29.04.2014 5-22
5 Stability and Invariance of MPC
Model Predictive ControlPart III – Feasibility and Stability Spring Semester 2014 revised 29.04.2014 5-30
5 Stability and Invariance of MPC
0 (x0) =
U0
N−1
k=0
Model Predictive ControlPart III – Feasibility and Stability Spring Semester 2014 revised 29.04.2014 5-31
6 Feasibility and Stability 6.2 General Terminal Sets
Model Predictive ControlPart III – Feasibility and Stability Spring Semester 2014 revised 29.04.2014 6-50
6 Feasibility and Stability 6.3 Example
2 4 6 8 10 −20 20 Altitude x4 (m) Time (sec) 2 4 6 8 10 −0.5 0.5 Pitch angle x2 (rad) 2 4 6 8 10 −0.5 0.5 Time (sec) Elevator angle u (rad)
Model Predictive ControlPart III – Feasibility and Stability Spring Semester 2014 revised 29.04.2014 6-51
6 Feasibility and Stability 6.3 Example
2 4 6 8 10 −10 10 20 Altitude x4 (m) Time (sec) 2 4 6 8 10 −0.4 −0.2 0.2 Pitch angle x2 (rad) 2 4 6 8 10 −0.2 −0.1 0.1 0.2 Time (sec) Elevator angle u (rad)
Model Predictive ControlPart III – Feasibility and Stability Spring Semester 2014 revised 29.04.2014 6-52
6 Feasibility and Stability 6.3 Example
Model Predictive ControlPart III – Feasibility and Stability Spring Semester 2014 revised 29.04.2014 6-53
7 Extension to Nonlinear MPC
0 (x(t)) =
U0
N−1
k=0
Model Predictive ControlPart III – Feasibility and Stability Spring Semester 2014 revised 29.04.2014 7-54
Institut f¨ ur Automatik ETH Z¨ urich
∗UC Berkeley † EPFL
MPC: Tracking, Soft Constraints, Move-Blocking Spring Semester 2014 revised 29.04.2014
MPC: Tracking, Soft Constraints, Move-Blocking Spring Semester 2014 revised 29.04.2014
1 Reference Tracking
MPC: Tracking, Soft Constraints, Move-Blocking Spring Semester 2014 revised 29.04.2014
1 Reference Tracking
MPC: Tracking, Soft Constraints, Move-Blocking Spring Semester 2014 revised 29.04.2014 1-2
1 Reference Tracking 1.1 The Steady-State Problem
MPC: Tracking, Soft Constraints, Move-Blocking Spring Semester 2014 revised 29.04.2014
1 Reference Tracking 1.1 The Steady-State Problem
s Rsus
MPC: Tracking, Soft Constraints, Move-Blocking Spring Semester 2014 revised 29.04.2014 1-3
1 Reference Tracking 1.1 The Steady-State Problem
u0,...,uN−1
P + N−1
k=0
Q + Îuk ≠ usÎ2 R
MPC: Tracking, Soft Constraints, Move-Blocking Spring Semester 2014 revised 29.04.2014 1-4
2 Soft Constraints 2.1 Motivation
MPC: Tracking, Soft Constraints, Move-Blocking Spring Semester 2014 revised 29.04.2014
2 Soft Constraints 2.1 Motivation
MPC: Tracking, Soft Constraints, Move-Blocking Spring Semester 2014 revised 29.04.2014 2-11
2 Soft Constraints 2.2 Mathematical Formulation
MPC: Tracking, Soft Constraints, Move-Blocking Spring Semester 2014 revised 29.04.2014
2 Soft Constraints 2.2 Mathematical Formulation
z
z,‘
MPC: Tracking, Soft Constraints, Move-Blocking Spring Semester 2014 revised 29.04.2014 2-12
2 Soft Constraints 2.2 Mathematical Formulation
r
j=1
j
j and vj > 0 can be used to weight violations (if necessary)
MPC: Tracking, Soft Constraints, Move-Blocking Spring Semester 2014 revised 29.04.2014 2-15
UC Berkeley, EPFL, ETHZ
Explicit Model Predictive Control Spring Semester 2014 revised 29.04.2014
1 Explicit Model Predictive Control 1.1 Introduction
Explicit Model Predictive Control Spring Semester 2014 revised 29.04.2014 1-2
1 Explicit Model Predictive Control 1.1 Introduction
0 (x(t)) = argmin xT N PxN + N≠1
k=0
kQxk + uÕ kRuk
*( ( ))
U x t
*( )
U x
Explicit Model Predictive Control Spring Semester 2014 revised 29.04.2014 1-3
1 Explicit Model Predictive Control 1.5 Online Evaluation: Point Location Problem
1 Point location 2 Evaluation of affine function
Explicit Model Predictive Control Spring Semester 2014 revised 29.04.2014 1-32
1 Explicit Model Predictive Control 1.6 MPT Example
Explicit Model Predictive Control Spring Semester 2014 revised 29.04.2014 1-54
Institut f¨ ur Automatik ETH Z¨ urich
∗UC Berkley † EPFL
Hybrid Model Predictive Control Spring Semester 2014
1 Modeling of Hybrid Systems 1.1 Introduction
1 Continuous dynamics: described by one or more difference (or differential)
2 Discrete events: state variables assume discrete values, e.g.
Hybrid Model Predictive Control Spring Semester 2014 1-3
1 Modeling of Hybrid Systems 1.1 Introduction
Hybrid Model Predictive Control Spring Semester 2014 1-4
1 Modeling of Hybrid Systems 1.2 Examples of Hybrid Systems
Hybrid Model Predictive Control Spring Semester 2014 1-5
1 Modeling of Hybrid Systems 1.2 Examples of Hybrid Systems
Hybrid Model Predictive Control Spring Semester 2014 1-6
1 Modeling of Hybrid Systems 1.4 Mixed Logical Dynamical (MLD) Hybrid Model
1 Translation of Logic Rules into Linear Integer Inequalities 2 Translation continuous and logical components into Linear Mixed-Integer
Hybrid Model Predictive Control Spring Semester 2014 1-12
1 Modeling of Hybrid Systems 1.4 Mixed Logical Dynamical (MLD) Hybrid Model
Hybrid Model Predictive Control Spring Semester 2014 1-21
1 Modeling of Hybrid Systems 1.4 Mixed Logical Dynamical (MLD) Hybrid Model
Hybrid Model Predictive Control Spring Semester 2014 1-23
2 Optimal Control of Hybrid Systems
U0 p(xN) + N−1
k=0
Hybrid Model Predictive Control Spring Semester 2014 2-24
3 Model Predictive Control of Hybrid Systems
t = {u∗ t , u∗ t+1, . . . , u∗ t+N−1}
t
Hybrid Model Predictive Control Spring Semester 2014 3-28