Model Predictive Control PDF
Model Predictive Control PDF
Faculty of Technology, Postboks 203, Kjlnes ring 56, N-3901 Porsgrunn, Norway. Tel: +47 35 57 50 00 Fax: +47 35 57 54 01
Preface
In this Lab we will implement a MPC Controller in LabVIEW and compare the results with ordinary
PID (MPC vs. PID). LabVIEW has a built-in MPC controller we will use both on a simulated model of
the Air Heater and the Air Heater itself. We will test the MPC controller both on a simulator and on
the real process.
Go to the following website for more background information about the Lab Work:
http://home.hit.no/~hansha/?lab=mpc
ii
Table of Contents
Preface......................................................................................................................................................ii
Table of Contents ....................................................................................................................................iii
1
Introduction .................................................................................................................................... 4
1.1
Model Adaption....................................................................................................................... 4
MPC................................................................................................................................................. 7
2.1
iii
1 Introduction
1.1 Model Adaption
In this Assignment you will use the Air Heater system as shown below:
]}
Where,
Introduction
Heater: The air is heated by an electrical heater. The supplied power is controlled by an external
voltage signal in the range
(min power, max power).
Temperature sensors: Two Pt100 temperature elements are available. The range is
, and
this voltage range corresponds to the temperature range
(with a linear relation).
( )
( )
Introduction
Tip! Use Laplace transformation on the differential equation for the Air Heater and find the transfer
function from ( ) to
( ).
[End of Task]
2 MPC
2.1 MPC in LabVIEW
LabVIEW has built-in functionality for Model Predictive Control (MPC).
Below we see the available VIs in the Predictive Control palette:
Since the Air Heater model has a time-delay, this causes some problems. Use the transfer function
found in a previous task and use built-in functions in LabVIEW to convert the transfer function to a
discrete state-space model with the time-delay included (See the MPC in LabVIEW tutorial).
Us, e.g. sampling time
MPC
LabVIEW have a built-in MPC controller you can use, or you can create your own algorithm that you
can use.
Test how the MPC controller works when using a setpoint profile like, e.g.:
Constraints:
Define necessary constraints according to physical limits in the process.
Constraints in the outputs:
Cost function:
Define also the weight matrices
and
The cost function often used in MPC is like this (a linear quadratic function):
Here are the Skogestads formulas for finding the PID parameters:
sec and
10
For more details about the Skogestads method, please read this article: Model-based PID tuning
with Skogestads method.
[End of Task]
E-mail: [email protected]
Blog: http://home.hit.no/~hansha/