Professional Documents
Culture Documents
H0K03a: Advanced Process Control: Model-Based Predictive Control 1: Introduction
H0K03a: Advanced Process Control: Model-Based Predictive Control 1: Introduction
Bert Pluymers
Prof. Bart De Moor
Katholieke Universiteit Leuven, Belgium
Faculty of Engineering Sciences
Department of Electrical Engineering (ESAT)
Research Group SCD-SISTA
Signal processing
Identification
System Theory
Automation 1
bert.pluymers@esat.kuleuven.be H0k03a : Advanced Process Control – Model-based Predictive Control 1 : Introduction
• Overview
• Motivating Example
Overview
• MPC Paradigm
• History
• Mathematical Formulation
• MPC Basics
Lesson 1 : Introduction
• Motivating example
• MPC Paradigm
• History
• Mathematical Formulation
• MPC Basics
Signal processing
Identification
System Theory
Automation 2
bert.pluymers@esat.kuleuven.be H0k03a : Advanced Process Control – Model-based Predictive Control 1 : Introduction
• Overview
• Motivating Example
Motivating Example
• MPC Paradigm
• History
• Mathematical Formulation
• MPC Basics
Consider a linear discrete-time state-space model
System Theory
Automation 3
bert.pluymers@esat.kuleuven.be H0k03a : Advanced Process Control – Model-based Predictive Control 1 : Introduction
• Overview
• Motivating Example
Motivating Example
• MPC Paradigm
• History
• Mathematical Formulation
• MPC Basics
Furthermore, we want the controller to lead to a
minimal control ‘cost’ defined as
Signal processing
Identification
System Theory
Automation 4
bert.pluymers@esat.kuleuven.be H0k03a : Advanced Process Control – Model-based Predictive Control 1 : Introduction
• Overview
• Motivating Example
Motivating Example
• MPC Paradigm
• History
LQR controller
• Mathematical Formulation
• MPC Basics 1
0.5
k,1
x
0
-0.5
0 50 100 150 200 250 300
k
10
0
k
-10
u
-20
-30
0 50 100 150 200 250 300
Signal processing
Identification k
System Theory
Automation 5
bert.pluymers@esat.kuleuven.be H0k03a : Advanced Process Control – Model-based Predictive Control 1 : Introduction
• Overview
• Motivating Example
Motivating Example
• MPC Paradigm
• History
LQR controller with clipped inputs
• Mathematical Formulation
• MPC Basics 1
0.5
k,1
0
x
-0.5
-1
0 50 100 150 200 250 300
k
0.15
0.1
0.05
k
0
u
-0.05
-0.1
System Theory
Automation 6
bert.pluymers@esat.kuleuven.be H0k03a : Advanced Process Control – Model-based Predictive Control 1 : Introduction
• Overview
• Motivating Example
Motivating Example
• MPC Paradigm
• History
LQR controller with R=100
• Mathematical Formulation
• MPC Basics 1
0.5
k,1
x
0
-0.5
0 50 100 150 200 250 300
k
0.1
0.05
k
0
u
-0.05
-0.1
Signal processing 0 50 100 150 200 250 300
Identification k
System Theory
Automation 7
bert.pluymers@esat.kuleuven.be H0k03a : Advanced Process Control – Model-based Predictive Control 1 : Introduction
• Overview
• Motivating Example
Motivating Example
• MPC Paradigm
• History
• Mathematical Formulation waste gas
• MPC Basics
F T Cracking P
Furnace
Feed H condenser
EDC
L
EDC / VC / HCl
superheater evaporato
T r P
Fuel gas
Signal processing
Systematic way to deal with this issue… ?
Identification
System Theory
Automation 8
bert.pluymers@esat.kuleuven.be H0k03a : Advanced Process Control – Model-based Predictive Control 1 : Introduction
• Overview
• Motivating Example
MPC Paradigm
• MPC Paradigm
• History
• Mathematical Formulation
• MPC Basics
Signal processing
Process industry in ’70s : how to control a process ???
Identification
and… easy to understand (i.e. teach) and implement !
System Theory
Automation 9
bert.pluymers@esat.kuleuven.be H0k03a : Advanced Process Control – Model-based Predictive Control 1 : Introduction
• Overview
• Motivating Example
MPC Paradigm
• MPC Paradigm
• History → Modelbased Predictive Control (MPC)
• Mathematical Formulation
• MPC Basics
• Econ. Opt. : optimize profits using market and plant information (~day)
• MPC : steer process to desired trajectory (~minute)
Signal processing • PID : control flows, temp., press., … towards MPC setpoints (~second)
Identification
System Theory
Automation 11
bert.pluymers@esat.kuleuven.be H0k03a : Advanced Process Control – Model-based Predictive Control 1 : Introduction
• Overview
• Motivating Example
History
• MPC Paradigm
• History
• Mathematical Formulation
• MPC Basics
Before 1960’s :
• only input/output models, i.e. transfer functions, FIR
models
• Controllers :
• heuristic (e.g. on/off controllers)
• PID, lead/lag compensators, …
• mostly SISO
• MIMO case : input/output pairing, then SISO control
Signal processing
Identification
System Theory
Automation 12
bert.pluymers@esat.kuleuven.be H0k03a : Advanced Process Control – Model-based Predictive Control 1 : Introduction
• Overview
• Motivating Example
History
• MPC Paradigm
• History
• Mathematical Formulation
• MPC Basics
Early 1960’s : Rudolf Kalman
• Introduction of the State Space model :
• notion of states as ‘internal memory’ of the system
• states not always directly measurable : ‘Kalman’ Filter !
• afterwards LQR (as the dual of Kalman filtering)
• LQG : LQR + Kalman filter
• no model uncertainties
Identification
System Theory
Automation 13
bert.pluymers@esat.kuleuven.be H0k03a : Advanced Process Control – Model-based Predictive Control 1 : Introduction
• Overview
• Motivating Example
History
• MPC Paradigm
• History
• Mathematical Formulation
• MPC Basics
During 1960’s : ‘Receding Horizon’ concept
• Lee, E. B., & Markus, L. (1967). “Foundations of optimal control theory”. New
York: Wiley. :
System Theory
Automation 14
bert.pluymers@esat.kuleuven.be H0k03a : Advanced Process Control – Model-based Predictive Control 1 : Introduction
• Overview
• Motivating Example
History
• MPC Paradigm
• History
• Mathematical Formulation
• MPC Basics
During 1960’s : ‘Receding Horizon’ concept
Signal processing
Identification
System Theory
Automation 15
bert.pluymers@esat.kuleuven.be H0k03a : Advanced Process Control – Model-based Predictive Control 1 : Introduction
• Overview
• Motivating Example
History
• MPC Paradigm
• History
• Mathematical Formulation
• MPC Basics
1970’s : 1st generation MPC
• Extension of the LQR / LQG framework through combination with the
‘receding horizon’ concept
• IDCOM (Richalet et al., 1976) :
• IR models
• quadratic objective
• input / output constraints
• heuristic solution strategy
System Theory
Automation 16
bert.pluymers@esat.kuleuven.be H0k03a : Advanced Process Control – Model-based Predictive Control 1 : Introduction
• Overview
• Motivating Example
History
• MPC Paradigm
• History
• Mathematical Formulation
• MPC Basics
Early 1980’s : 2nd generation MPC
• Improve the rather ad-hoc constraint handling of the 1st generation
MPC algorithms
• QDMC (Shell, 1983) :
• SR models
• quadratic objective
• linear constraints
• solved as a quadratic program (QP)
System Theory
Automation 18
bert.pluymers@esat.kuleuven.be H0k03a : Advanced Process Control – Model-based Predictive Control 1 : Introduction
• Overview
• Motivating Example
MPC Formulation
• MPC Paradigm
• History
• Mathematical Form.
• MPC Basics
Basic ingredients :
• prediction model to predict plant response to future input
sequence
• (finite,) sliding window (receding horizon control)
• parameterization of future input sequence into finite number of
parameters
• discrete-time : inputs at discrete time steps
• continuous-time : weighted sum of basis functions
• optimization of future input sequence
• reference trajectory
• constraints
Signal processing
Identification
System Theory
Automation 19
bert.pluymers@esat.kuleuven.be H0k03a : Advanced Process Control – Model-based Predictive Control 1 : Introduction
• Overview
• Motivating Example
MPC Formulation
• MPC Paradigm
• History
• Mathematical Form.
• MPC Basics
Signal processing
Identification
System Theory
Automation 20
bert.pluymers@esat.kuleuven.be H0k03a : Advanced Process Control – Model-based Predictive Control 1 : Introduction
• Overview
• Motivating Example
MPC Formulation
• MPC Paradigm
• History
• Mathematical Form.
• MPC Basics
Assumptions / simplifications :
• no plant-model mismatch :
• no disturbance inputs
• all states are measured
(or estimation errors are negligible)
• no sensor noise
System Theory
Automation 21
bert.pluymers@esat.kuleuven.be H0k03a : Advanced Process Control – Model-based Predictive Control 1 : Introduction
• Overview
• Motivating Example
Theoretical Formulation (cfr. CACSD)
• MPC Paradigm
• History
• Mathematical Form.
• MPC Basics
System Theory
• Find K by solving Ricatti equation → LQR controller
Automation 23
bert.pluymers@esat.kuleuven.be H0k03a : Advanced Process Control – Model-based Predictive Control 1 : Introduction
• Overview
• Motivating Example
Formulation 1 : LQR
• MPC Paradigm
• History
• Mathematical Form.
• MPC Basics
PRO
• explicit, linear solution
• low online computational complexity
CON
• constraints not taken into account
• linear model assumption
• only quadratic cost functions
• no predictive capacity
Signal processing
Identification
System Theory
Automation 24
bert.pluymers@esat.kuleuven.be H0k03a : Advanced Process Control – Model-based Predictive Control 1 : Introduction
• Overview
• Motivating Example
Formulation 2
• MPC Paradigm
• History
• Mathematical Form.
• MPC Basics
• changes :
• keep all constraints etc.
• reduce horizon to length N
System Theory
Automation 25
bert.pluymers@esat.kuleuven.be H0k03a : Advanced Process Control – Model-based Predictive Control 1 : Introduction
• Overview
• Motivating Example
Formulation 2 : Classic MPC
• MPC Paradigm
• History
• Mathematical Form.
PRO
• MPC Basics
• takes constraints into account
• proactive behaviour
• wide range of (convex) cost functions possible
• also for nonlinear models (but convex ?)
CON
• high online computational complexity
• no explicit solution
• feasibility ?
• stability ?
• robustness ?
Signal processing
Identification
Signal processing
Identification
more on this later . . .
System Theory
Automation 27
bert.pluymers@esat.kuleuven.be H0k03a : Advanced Process Control – Model-based Predictive Control 1 : Introduction
• Overview Summary
• Motivating Example
• MPC Paradigm
Formulation 1
• History
• infinite horizon
• Mathematical Form.
• MPC Basics • no constraints
• explicit solution
• → LQR
Formulation 2
• finite horizon
• constraints
• no explicit solution
• → Classic MPC
Formulation 3
• infinite horizon
• constraints
Signal processing • explicit solution enforced
Identification
System Theory
Automation 29
bert.pluymers@esat.kuleuven.be H0k03a : Advanced Process Control – Model-based Predictive Control 1 : Introduction
• Overview
• Motivating Example
Standard MPC Algorithm
• MPC Paradigm
• History 1. Assume current time = 0
• Mathematical Form.
2. Measure or estimate x0 and solve for uN and xN :
• MPC Basics
Remarks :
• : Terminal state cost and constraint
Signal processing
• : some kind of norm function
Identification
• Sliding Window
System Theory
Automation 30
bert.pluymers@esat.kuleuven.be H0k03a : Advanced Process Control – Model-based Predictive Control 1 : Introduction
• Overview
• Motivating Example
MPC design choices
• MPC Paradigm
• History
• Mathematical Form.
• MPC Basics
1.prediction model
2. cost function
• norm
• horizon N
• terminal state cost
3. constraints
• typical input/state constraints
• terminal constraint
Signal processing
Identification
System Theory
Automation 31
bert.pluymers@esat.kuleuven.be H0k03a : Advanced Process Control – Model-based Predictive Control 1 : Introduction
• Overview
• Motivating Example
Prediction Model
• MPC Paradigm
• History • Input/Output or State-Space ?
• Mathematical Form.
• MPC Basics • I/O restricted to stable, linear plants
• Hence SS-models
Signal processing
Identification
System Theory
Automation 33
bert.pluymers@esat.kuleuven.be H0k03a : Advanced Process Control – Model-based Predictive Control 1 : Introduction
• Overview
• Motivating Example
Cost Function
• MPC Paradigm
• History
• Mathematical Form.
• MPC Basics
Signal processing
Identification
System Theory
Automation 34
bert.pluymers@esat.kuleuven.be H0k03a : Advanced Process Control – Model-based Predictive Control 1 : Introduction
• Overview
• Motivating Example
Cost Function
• MPC Paradigm
• History
• Mathematical Form.
• MPC Basics
Signal processing
Identification
System Theory
Automation 35
bert.pluymers@esat.kuleuven.be H0k03a : Advanced Process Control – Model-based Predictive Control 1 : Introduction
• Overview
• Motivating Example
Cost Function
• MPC Paradigm
• History
• Mathematical Form.
• MPC Basics
Signal processing
Identification
System Theory
Automation 36
bert.pluymers@esat.kuleuven.be H0k03a : Advanced Process Control – Model-based Predictive Control 1 : Introduction
• Overview
• Motivating Example
Constraints
• MPC Paradigm
• History
• Mathematical Form.
• MPC Basics
Signal processing
Identification
System Theory
Automation 37
bert.pluymers@esat.kuleuven.be H0k03a : Advanced Process Control – Model-based Predictive Control 1 : Introduction
• Overview
• Motivating Example
Constraints
• MPC Paradigm
• History
• Mathematical Form.
• MPC Basics
Signal processing
Identification
System Theory
Automation 38
bert.pluymers@esat.kuleuven.be H0k03a : Advanced Process Control – Model-based Predictive Control 1 : Introduction
• Overview
• Motivating Example
Constraints
• MPC Paradigm
• History
• Mathematical Form.
• MPC Basics
Signal processing
Identification
System Theory
Automation 39
bert.pluymers@esat.kuleuven.be H0k03a : Advanced Process Control – Model-based Predictive Control 1 : Introduction
• Overview
• Motivating Example
Constraints
• MPC Paradigm
• History
• Mathematical Form.
• MPC Basics
Signal processing
Identification
System Theory
Automation 40
bert.pluymers@esat.kuleuven.be H0k03a : Advanced Process Control – Model-based Predictive Control 1 : Introduction
• Overview
• Motivating Example
Terminal State Constraints
• MPC Paradigm
• History
• Mathematical Form.
• MPC Basics
Signal processing
Identification
System Theory
Automation 41
bert.pluymers@esat.kuleuven.be H0k03a : Advanced Process Control – Model-based Predictive Control 1 : Introduction
• Overview
• Motivating Example
Reference Insertion
• MPC Paradigm
• History
• Mathematical Form.
• MPC Basics
Signal processing
Identification
System Theory
Automation 42
bert.pluymers@esat.kuleuven.be H0k03a : Advanced Process Control – Model-based Predictive Control 1 : Introduction
• Overview
• Motivating Example
Reference Insertion
• MPC Paradigm
• History
• Mathematical Form.
• MPC Basics
Signal processing
Identification
System Theory
Automation 43
bert.pluymers@esat.kuleuven.be H0k03a : Advanced Process Control – Model-based Predictive Control 1 : Introduction
• Overview
• Motivating Example
Reference Insertion
• MPC Paradigm
• History
• Mathematical Form.
• MPC Basics
Signal processing
Identification
System Theory
Automation 44
bert.pluymers@esat.kuleuven.be H0k03a : Advanced Process Control – Model-based Predictive Control 1 : Introduction
• Overview
• Motivating Example
Reference Insertion
• MPC Paradigm
• History
• Mathematical Form.
• MPC Basics
Signal processing
Identification
System Theory
Automation 45
bert.pluymers@esat.kuleuven.be H0k03a : Advanced Process Control – Model-based Predictive Control 1 : Introduction
• Overview
• Motivating Example
Exercise Sessions
• MPC Paradigm
• History
• Mathematical Form.
• MPC Basics
• Ex. 1 : Optimization oriented
• Ex. 2 : MPC oriented
• Ex. 3 : real-life MPC/optimization problem
Evaluation
• (brief !) report (groups of 2)
• oral examination → insight !
Signal processing
Identification
System Theory
Automation 46
bert.pluymers@esat.kuleuven.be H0k03a : Advanced Process Control – Model-based Predictive Control 1 : Introduction
• Overview
• Motivating Example
• MPC Paradigm
• History
• Mathematical Form.
• MPC Basics
Signal processing
Identification
System Theory
Automation 47
bert.pluymers@esat.kuleuven.be H0k03a : Advanced Process Control – Model-based Predictive Control 1 : Introduction