+ All Categories
Home > Documents > Basics of MPC

Basics of MPC

Date post: 03-Mar-2015
Category:
Upload: tvsking
View: 159 times
Download: 3 times
Share this document with a friend
27
ICM,EEE-CAP,April 14, 2005 Basics of MPC - p. 1/27 Basics of Model Predictive Control P.E. Orukpe Supervisor: Dr Imad Jaimuokha Imperial College,London
Transcript
Page 1: Basics of MPC

ICM,EEE-CAP,April 14, 2005 Basics of MPC - p. 1/27

Basics of Model Predictive Control

P.E. Orukpe

Supervisor: Dr Imad Jaimuokha

Imperial College,London

Page 2: Basics of MPC

ICM,EEE-CAP,April 14, 2005 Basics of MPC - p. 2/27

Outline

■ Introduction■ Problem Formulation■ Solution to problem■ Examples■ Direction for future work■ Conclusion■ References

Page 3: Basics of MPC

ICM,EEE-CAP,April 14, 2005 Basics of MPC - p. 3/27

Introduction

What is Model Predictive Control?MPC is a form of control in which the current controlaction is obtained by solving on-line, at each samplinginstant, a finite horizon open-loop optimal controlproblem, using the current state of the plant as theinitial state; the optimization yields an optimal controlsequence and the first control in this sequence isapplied to the plant.

Page 4: Basics of MPC

ICM,EEE-CAP,April 14, 2005 Basics of MPC - p. 4/27

Introduction cont’d

Early Industrial MPC Application1 Model Predictive Heuristic Control by Richalet et al. 1976

(Adersa)...2 Dynamic Matrix Control (DMC) by Cutler and Ramaker 1979

(Shell Oil)...3 Quadratic-Program Dynamic Matrix Control (QDMC) by

Cutler et al. 1983 (Shell Oil)...

Page 5: Basics of MPC

ICM,EEE-CAP,April 14, 2005 Basics of MPC - p. 5/27

Introduction cont’d

Academic Research■ Few early theoretical investigations: Klieinmann

1970, Thomas 1975, Chen and Shaw 1982 etc.

■ Predictive control theory: Keerthi and Gilbert1988, Mayne and Michalska 1990 etc.

Page 6: Basics of MPC

ICM,EEE-CAP,April 14, 2005 Basics of MPC - p. 6/27

Introduction cont’d

Industrial TechnologyCompany Product name Description

Aspen Tech DMC Dynamic Matrix Control

Adersa IDCOM Identification and Command

HIECON Hierarchical Constraint Control

PFC Predictive Functional Control

Honeywell Profimatics RMPCT Robust Model Predictive Control Technology

PCT Predictive Control Technology

Setpoint Inc. SMCA Setpoint Multivariable Control Architecture

IDCOM-M Multivariable

Treiber Controls OPC Optimum Predictive Control

Shell Global SMOC-II Shell Multivariable Optimizing Control

ABB 3dMPC

Pavillion Technologies Inc. PP Process Perfecter

Simulation Sciences Connoisseur Control and Identification Package

Page 7: Basics of MPC

ICM,EEE-CAP,April 14, 2005 Basics of MPC - p. 7/27

Introduction cont’d

Variations of MPC■ Robust MPC - guaranteed feasibility and stability■ Feedback MPC - mitigate shrinkage of feasible region■ Pre-computed MPC - Piecewise-linear solution stored in

database or Solve off-line using parametric (linear orquadratic) programming

■ Decentralised MPC as used in autonomous air vehicle -Speed up computation.

Page 8: Basics of MPC

ICM,EEE-CAP,April 14, 2005 Basics of MPC - p. 8/27

Introduction cont’d

Basic structure of MPC

Figure 1: Basic Structure of MPC

Page 9: Basics of MPC

ICM,EEE-CAP,April 14, 2005 Basics of MPC - p. 9/27

Introduction cont’d

Components of MPC■ Prediction model■ Objective function■ Obtaining the control law

Page 10: Basics of MPC

ICM,EEE-CAP,April 14, 2005 Basics of MPC - p. 10/27

Introduction cont’d

What makes MPC successful in industry1. It handles multivariable control problems naturally2. It can take account of actuator limitations3. It allows operation closer to constraints, hence increased

profit4. It has plenty of time for on-line computations5. It can handle non-minimal phase and unstable processes6. It is an easy to tune method and7. It handles structural changes.

Page 11: Basics of MPC

ICM,EEE-CAP,April 14, 2005 Basics of MPC - p. 11/27

Introduction cont’d

Characteristics of MPC■ Moving horizon implementation■ Performance oriented time domain formulation■ Incorporation of constraints and■ Explicit system model used to predict future plant dynamics.

Page 12: Basics of MPC

ICM,EEE-CAP,April 14, 2005 Basics of MPC - p. 12/27

Introduction cont’d

Types of MPC

■ Linear MPC1. Uses linear model:

x = Ax + Bu

2. Quadratic cost function:

F = xTQx + uT Ru

3. Linear constraints:

Hx + Gu < 0

4. Quadratic program

■ Nonlinear MPC1. Uses nonlinear model:

x = f (x, u)

2. Cost function can benonquadratic:F (x,u)

3. Nonlinearconstraints:h(x,u) < 0

4. Nonlinear program

Page 13: Basics of MPC

ICM,EEE-CAP,April 14, 2005 Basics of MPC - p. 13/27

Introduction cont’d

Applications of MPC■ Distillation column

■ Hydrocracker

■ Pulp and paper plant

■ Servo mechanism

■ Robot arm ...

Page 14: Basics of MPC

ICM,EEE-CAP,April 14, 2005 Basics of MPC - p. 14/27

Problem Formulation

■ Model of Plant in State Space

x(k + 1) = Ax(k) + Bu(k)

y(k) = Cyx(k)

z(k) = Czx(k) (1)

where x∈ Rn, u ∈ R

l , y ∈ Rmy , z ∈ R

mz

■ A Basic Formulation of Cost function

V(k) =Hp

∑i=Hw

‖z(k + i\k)− r(k + i\k)‖2Q(i) +

Hu−1

∑i=0

‖∆u(k + i\k)‖2R(i)

(2)

Page 15: Basics of MPC

ICM,EEE-CAP,April 14, 2005 Basics of MPC - p. 15/27

Problem Formulation cont’d

x(k + 1\k)

...

x(k + Hu\k)

x(k + Hu + 1\k)

...

x(k + Hp\k)

=

A

...

AHu

AHu+1

...

AHp

x(k) +

B

...

∑Hu−1i=0 Ai B

∑Hui=0 Ai B

...

∑Hp−1

i=0 Ai B

u(k − 1)

︸ ︷︷ ︸

past

+

B . . . 0

AB + B . . . 0

.... . . . . .

∑Hu−1i=0 Ai B . . . B

∑Hui=0 Ai B . . . AB + B

. . . . . . . . .

∑Hp−1

i=0 Ai B . . . ∑Hp−Hui=0 Ai B

∆u(k\k)

...

∆u(k + Hu − 1\k)

︸ ︷︷ ︸

future

(3)

Page 16: Basics of MPC

ICM,EEE-CAP,April 14, 2005 Basics of MPC - p. 16/27

Problem Formulation cont’d

The predictions of z is

z(k + 1\k)...

z(k + Hp\k)

=

Cz 0 . . . 0

0 Cz . . . 0...

.... . .

...0 0 . . . Cz

x(k + 1\k)...

x(k + Hp\k)

(4)

Page 17: Basics of MPC

ICM,EEE-CAP,April 14, 2005 Basics of MPC - p. 17/27

Solution to problem

Unconstrained problem with measured state :The costfunction to be minimized is

V(k) =Hp

∑i=Hw

‖z(k + i\k)− r(k + i\k)‖2Q(i) +

Hu−1

∑i=0

‖∆u(k + i\k)‖2R(i)

(5)

⇛ ‖Z(k) − T (k)‖2Q + ‖∆U (k)‖2

R

Z(k) =

z(k + Hw\k)

...

z(k + Hp\k)

T (k) =

r(k + Hw\k)

...

r(k + Hp\k)

∆U (k) =

∆u(k + i\k)

...

∆u(k + Hu − 1\k)

Page 18: Basics of MPC

ICM,EEE-CAP,April 14, 2005 Basics of MPC - p. 18/27

Solution to problem cont’d

Z(k) = Ψx(k) + Υu(k − 1) + Θ∆U (k)

ξ(k) = T (k) − Ψx(k) − Υu(k − 1)

V(k) = ‖Θ∆U (k) − ξ(k)‖2Q + ‖∆U (k)‖2

R

= [∆U (k)TΘT − ξ(k)T ]Q[∆U (k)Θ − ξ(k)] + ∆U (k)TR∆U (k)

= ξ(k)TQξ(k) − 2∆U (k)TΘTQξ(k) + ∆U (k)T [ΘTQΘ + R]∆U (k)

∆U (k)opt = 0.5H−1G (6)

Page 19: Basics of MPC

ICM,EEE-CAP,April 14, 2005 Basics of MPC - p. 19/27

Solution to problem cont’d

Constrained problem with QP formulation : Thesystem is subject to constraints of the form:

E

[

∆U (k)

1

]

≤ 0 (7)

F

[

U (k)

1

]

≤ 0 (8)

G

[

Z(k)

1

]

≤ 0 (9)

The constraints are converted to a single linear inequality ofthe form:

F

ΓΘ

W

∆U (k) ≤ 0

−F1u(k − 1) − f

−Γ[Ψx(k) + Υu(k − 1)] − g

−w

(10)

Page 20: Basics of MPC

ICM,EEE-CAP,April 14, 2005 Basics of MPC - p. 20/27

Solution to problem cont’d

The constrained optimization problem to be solved is

min∆U (k)

∆U (k)TH∆U (k) − GT∆U (k) (11)

subject to the inequality

F

ΓΘ

W

∆U (k) ≤ 0

−F1u(k − 1) − f

−Γ[Ψx(k) + Υu(k − 1)] − g

−w

(12)

Page 21: Basics of MPC

ICM,EEE-CAP,April 14, 2005 Basics of MPC - p. 21/27

Example

A randomly generated system with state space model parameters:

A =

−0.1267 −0.3357 0.0958 −0.1723

−0.4877 0.3487 0.0511 0.6393

0.0367 0.3482 −0.0547 −0.0399

0.0842 −0.0110 0.2125 0.0334

, B =

0.9501

0.2311

0.6068

0.4860

,

Cy =

1 0 0 0

0 1 0 0

0 0 1 0

0 0 0 1

, Cz =[

1 0 0 0]

Hp = 5; Hu = 3; Hw = 1; Q > 0; R > 0 and using the following constraints

−10 ≤ u(k) ≤ 10

−2 ≤ ∆u(k) ≤ 2

−3 ≤ z(k) ≤ 5

with initial state x0 = [0.5 − 0.5 0.2 − 0.2]T

Page 22: Basics of MPC

ICM,EEE-CAP,April 14, 2005 Basics of MPC - p. 22/27

Example cont’d

0 20 40 60 80 1000

1

2

3

4

5

6

7

8

9

time

cost

Figure 2: Cost function forunconstrained case

0 20 40 60 80 100−0.6

−0.4

−0.2

0

0.2

0.4

0.6

0.8

1

1.2

1.4

time

x1,x

2,x3

,x4

state 1state 2state 3state 4

Figure 3: States for uncon-strained case

Page 23: Basics of MPC

ICM,EEE-CAP,April 14, 2005 Basics of MPC - p. 23/27

Example cont’d

0 20 40 60 80 1000

5

10

15

20

25

time

cost

Figure 4: Cost function forconstrained case

0 20 40 60 80 100−0.6

−0.4

−0.2

0

0.2

0.4

0.6

0.8

1

1.2

1.4

time

x1,x

2,x3

,x4

state 1state 2state 3state 4

Figure 5: States for con-strained case

Page 24: Basics of MPC

ICM,EEE-CAP,April 14, 2005 Basics of MPC - p. 24/27

Direction for future work

■ Consider normbounded uncertain system of the form:

x(k + 1) = Ax(k) + Bu(k) (13)

y(k) = Cx(k),

A = A0 + ∆ and B = B0 + ∆ (14)

■ It is not possible to minimize the cost and as such we willconsider an upper bound on the cost

■ Use LMIs which are of the form

F(x) = F0 +l

∑i=1

xiFi > 0, (15)

to minimize this upper bound

Page 25: Basics of MPC

ICM,EEE-CAP,April 14, 2005 Basics of MPC - p. 25/27

Conclusion

■ The importance of MPC has been shown■ We have mentioned some practical application of MPC■ It can handle constraints■ We have shown the components of MPC

ModelObjective functionObtaining the control law

■ We have outlined a future direction for research concerningRobust Model Predictive Control

Page 26: Basics of MPC

ICM,EEE-CAP,April 14, 2005 Basics of MPC - p. 26/27

References

[1] Garcia C.E, Prett D.M. and Morari M., Model Predictive Control: Theory and Practice -a Survey. Automatica, Vol.25, No.3, pp.335-348, 1989.

[2] Mayne D.Q.,Rawlings J.B., Rao C.V., Scokaert P.O.M., Constrained model predictivecontrol: Stability and optimality. Automatica, Vol.36,pp. 789-814,2000.

[3] Lee J.H, Morari M. and Garcia C.E., State-space Interpretation Of Model PredictiveControl. Automatica, Vol.30, No.4, pp. 707-717, 1994.

[4] Rawlings J.B., Tutorial Overview of Model Predictive Control. IEEE Control SystemsMagazine, pp.38-52, June 2000.

[5] Qin S.J., Badgwell T.A., A survey of industrial model predictive control technology.Control Engineering Practice, Vol.11, pp.733-746, 2003.

[6] Morari M., Lee J.H., Model predictive control: past, present and future. Computersand Chemical Engineering, Vol.23, pp.667-682, 1999.

[7] Maciejowski J.M., Predictive control with constraints. Prentice Hall, 2002.

[8] Camacho E.F. andd Bordons C., Model Predictive Control. Second Edition, Springer,2004.

[9] Rawlings J.B. and Muske K.R., The Stability Of Constrained Receding Horizon

Control. IEEE Transactios on Automatic Control, Vol.38, No. 10, October 1993.

Page 27: Basics of MPC

ICM,EEE-CAP,April 14, 2005 Basics of MPC - p. 27/27

Thank You


Recommended