57
Control System Synthesis - Optimal control and LQG PHD CLASS - FALL 2020

Control System Synthesis - Optimal control and LQG - PhD

  • Upload
    others

  • View
    3

  • Download
    0

Embed Size (px)

Citation preview

Page 1: Control System Synthesis - Optimal control and LQG - PhD

Control System Synthesis - Optimal control and LQGPHD CLASS - FALL 2020

Page 2: Control System Synthesis - Optimal control and LQG - PhD

The optimal controlproblem

LQG controlWhat is LQG control?

Controllability and LQR

Observability and state estimation

Summary

Optimal controlDynamic programming and HJB

Indirect methods and Pontryagin’sprinciple

Summary

1 Introduction

2 Fundamentals: problem formulation3 Design techniques

PID control

Optimal control and LQGRobust control and Hinf synthesisModel Predictive ControlAdaptive ControlData-driven Control

Pauline Kergus - Karl Johan Astrom Control System Synthesis 09/09/2020 2/24

Page 3: Control System Synthesis - Optimal control and LQG - PhD

The optimal controlproblem

LQG controlWhat is LQG control?

Controllability and LQR

Observability and state estimation

Summary

Optimal controlDynamic programming and HJB

Indirect methods and Pontryagin’sprinciple

Summary

1 Introduction

2 Fundamentals: problem formulation3 Design techniques

PID controlOptimal control and LQGRobust control and Hinf synthesisModel Predictive ControlAdaptive ControlData-driven Control

Pauline Kergus - Karl Johan Astrom Control System Synthesis 09/09/2020 2/24

Page 4: Control System Synthesis - Optimal control and LQG - PhD

The optimal controlproblem

LQG controlWhat is LQG control?

Controllability and LQR

Observability and state estimation

Summary

Optimal controlDynamic programming and HJB

Indirect methods and Pontryagin’sprinciple

Summary

Pauline Kergus - Karl Johan Astrom Control System Synthesis 09/09/2020 3/24

Page 5: Control System Synthesis - Optimal control and LQG - PhD

The optimal controlproblem

LQG controlWhat is LQG control?

Controllability and LQR

Observability and state estimation

Summary

Optimal controlDynamic programming and HJB

Indirect methods and Pontryagin’sprinciple

Summary

Content overview

1 The optimal control problem

2 LQG controlWhat is LQG control?Controllability and LQRObservability and state estimationSummary

3 Optimal controlDynamic programming and HJBIndirect methods and Pontryagin’s principleSummary

Pauline Kergus - Karl Johan Astrom Control System Synthesis 09/09/2020 4/24

Page 6: Control System Synthesis - Optimal control and LQG - PhD

The optimal controlproblem

LQG controlWhat is LQG control?

Controllability and LQR

Observability and state estimation

Summary

Optimal controlDynamic programming and HJB

Indirect methods and Pontryagin’sprinciple

Summary

The optimal control problem

→ Find a control for a dynamical system over a period of time such that anobjective function is optimized

minimizex(·),u(·)

∫ T

0L(x(t), u(t))dt + E(x(T ))

subject to x(0) = x0 (fixed initial value)x(t) = f (x(t), u(t)) (model)h(x(t), u(t)) ≥ 0 (path constraints)r(x(T )) ≥ 0 (terminal constraints)

Pauline Kergus - Karl Johan Astrom Control System Synthesis 09/09/2020 5/24

Page 7: Control System Synthesis - Optimal control and LQG - PhD

The optimal controlproblem

LQG controlWhat is LQG control?

Controllability and LQR

Observability and state estimation

Summary

Optimal controlDynamic programming and HJB

Indirect methods and Pontryagin’sprinciple

Summary

The optimal control problem

→ Find a control for a dynamical system over a period of time such that anobjective function is optimized

minimizex(·),u(·)

∫ T

0L(x(t), u(t))dt + E(x(T ))

subject to x(0) = x0 (fixed initial value)x(t) = f (x(t), u(t)) (model)h(x(t), u(t)) ≥ 0 (path constraints)r(x(T )) ≥ 0 (terminal constraints)

Pauline Kergus - Karl Johan Astrom Control System Synthesis 09/09/2020 5/24

Page 8: Control System Synthesis - Optimal control and LQG - PhD

The optimal controlproblem

LQG controlWhat is LQG control?

Controllability and LQR

Observability and state estimation

Summary

Optimal controlDynamic programming and HJB

Indirect methods and Pontryagin’sprinciple

Summary

Brysons Flight Test

Bryson (Professor at Harvard) made major computations. A nice test was onan airplane

Twice as fast as with standard procedure!

Pauline Kergus - Karl Johan Astrom Control System Synthesis 09/09/2020 6/24

Page 9: Control System Synthesis - Optimal control and LQG - PhD

The optimal controlproblem

LQG controlWhat is LQG control?

Controllability and LQR

Observability and state estimation

Summary

Optimal controlDynamic programming and HJB

Indirect methods and Pontryagin’sprinciple

Summary

The optimal control problem

Motivations

Get the best performances

Design an acceptable control law (constraints enforcement)

Ask yourself:

1 What is the optimization criteria?

Pauline Kergus - Karl Johan Astrom Control System Synthesis 09/09/2020 7/24

Page 10: Control System Synthesis - Optimal control and LQG - PhD

The optimal controlproblem

LQG controlWhat is LQG control?

Controllability and LQR

Observability and state estimation

Summary

Optimal controlDynamic programming and HJB

Indirect methods and Pontryagin’sprinciple

Summary

The optimal control problem

Motivations

Get the best performances

Design an acceptable control law (constraints enforcement)

Ask yourself:

1 What is the optimization criteria?

Pauline Kergus - Karl Johan Astrom Control System Synthesis 09/09/2020 7/24

Page 11: Control System Synthesis - Optimal control and LQG - PhD

The optimal controlproblem

LQG controlWhat is LQG control?

Controllability and LQR

Observability and state estimation

Summary

Optimal controlDynamic programming and HJB

Indirect methods and Pontryagin’sprinciple

Summary

The optimal control problem

Motivations

Get the best performances

Design an acceptable control law (constraints enforcement)

Ask yourself:1 What is the optimization criteria?

Different normsPerformance AND effort

Pauline Kergus - Karl Johan Astrom Control System Synthesis 09/09/2020 7/24

Page 12: Control System Synthesis - Optimal control and LQG - PhD

The optimal controlproblem

LQG controlWhat is LQG control?

Controllability and LQR

Observability and state estimation

Summary

Optimal controlDynamic programming and HJB

Indirect methods and Pontryagin’sprinciple

Summary

The optimal control problem

Motivations

Get the best performances

Design an acceptable control law (constraints enforcement)

Ask yourself:

1 What is the optimization criteria?2 What are the optimization variables?

controllerscontrol signals

Pauline Kergus - Karl Johan Astrom Control System Synthesis 09/09/2020 7/24

Page 13: Control System Synthesis - Optimal control and LQG - PhD

The optimal controlproblem

LQG controlWhat is LQG control?

Controllability and LQR

Observability and state estimation

Summary

Optimal controlDynamic programming and HJB

Indirect methods and Pontryagin’sprinciple

Summary

The optimal control problem

application of optimization to control

work of Lev Pontryagin and Richard Bellman in the 1950s

Three types of resolution:

Hamilton-Jacobi-Bellman (HJB) and dynamic programming

Indirect methods and Pontryagin’s principle

Direct methods

→ second part of the lecture

Pauline Kergus - Karl Johan Astrom Control System Synthesis 09/09/2020 8/24

Page 14: Control System Synthesis - Optimal control and LQG - PhD

The optimal controlproblem

LQG controlWhat is LQG control?

Controllability and LQR

Observability and state estimation

Summary

Optimal controlDynamic programming and HJB

Indirect methods and Pontryagin’sprinciple

Summary

The optimal control problem

application of optimization to control

work of Lev Pontryagin and Richard Bellman in the 1950s

Three types of resolution:

Hamilton-Jacobi-Bellman (HJB) and dynamic programming

Indirect methods and Pontryagin’s principle

Direct methods

→ second part of the lecture

Pauline Kergus - Karl Johan Astrom Control System Synthesis 09/09/2020 8/24

Page 15: Control System Synthesis - Optimal control and LQG - PhD

The optimal controlproblem

LQG controlWhat is LQG control?

Controllability and LQR

Observability and state estimation

Summary

Optimal controlDynamic programming and HJB

Indirect methods and Pontryagin’sprinciple

Summary

1 The optimal control problem

2 LQG controlWhat is LQG control?Controllability and LQRObservability and state estimationSummary

3 Optimal controlDynamic programming and HJBIndirect methods and Pontryagin’s principleSummary

Pauline Kergus - Karl Johan Astrom Control System Synthesis 09/09/2020 9/24

Page 16: Control System Synthesis - Optimal control and LQG - PhD

The optimal controlproblem

LQG controlWhat is LQG control?

Controllability and LQR

Observability and state estimation

Summary

Optimal controlDynamic programming and HJB

Indirect methods and Pontryagin’sprinciple

Summary

LQG controlWhat is LQG control?

Linear Quadratic Gaussian control

LQR Kalman Filter

Pauline Kergus - Karl Johan Astrom Control System Synthesis 09/09/2020 10/24

Page 17: Control System Synthesis - Optimal control and LQG - PhD

The optimal controlproblem

LQG controlWhat is LQG control?

Controllability and LQR

Observability and state estimation

Summary

Optimal controlDynamic programming and HJB

Indirect methods and Pontryagin’sprinciple

Summary

LQG controlControllability and LQR

x = Ax + Bu

u = −Kr x

x = (A− BKr ) x

possibility to place the eigenvalues of the controlled system→ basic idea of pole placement

If the system is controllable, eigenvalues can be placed anywhere

C =[B AB . . . An−1B

]rank(C) = n

Pauline Kergus - Karl Johan Astrom Control System Synthesis 09/09/2020 11/24

Page 18: Control System Synthesis - Optimal control and LQG - PhD

The optimal controlproblem

LQG controlWhat is LQG control?

Controllability and LQR

Observability and state estimation

Summary

Optimal controlDynamic programming and HJB

Indirect methods and Pontryagin’sprinciple

Summary

LQG controlControllability and LQR

x = Ax + Bu

u = −Kr x

x = (A− BKr ) x

possibility to place the eigenvalues of the controlled system→ basic idea of pole placement

If the system is controllable, eigenvalues can be placed anywhere

C =[B AB . . . An−1B

]rank(C) = n

Pauline Kergus - Karl Johan Astrom Control System Synthesis 09/09/2020 11/24

Page 19: Control System Synthesis - Optimal control and LQG - PhD

The optimal controlproblem

LQG controlWhat is LQG control?

Controllability and LQR

Observability and state estimation

Summary

Optimal controlDynamic programming and HJB

Indirect methods and Pontryagin’sprinciple

Summary

LQG controlControllability and LQR

x = Ax + Bu

u = −Kr x

x = (A− BKr ) x

possibility to place the eigenvalues of the controlled system→ basic idea of pole placement

If the system is controllable, eigenvalues can be placed anywhere

C =[B AB . . . An−1B

]rank(C) = n

Pauline Kergus - Karl Johan Astrom Control System Synthesis 09/09/2020 11/24

Page 20: Control System Synthesis - Optimal control and LQG - PhD

The optimal controlproblem

LQG controlWhat is LQG control?

Controllability and LQR

Observability and state estimation

Summary

Optimal controlDynamic programming and HJB

Indirect methods and Pontryagin’sprinciple

Summary

LQG controlControllability and LQR

x = Ax + Bu

u = −Kr x

x = (A− BKr ) x

possibility to place the eigenvalues of the controlled system→ basic idea of pole placement

If the system is controllable, eigenvalues can be placed anywhere

C =[B AB . . . An−1B

]rank(C) = n

Pauline Kergus - Karl Johan Astrom Control System Synthesis 09/09/2020 11/24

Page 21: Control System Synthesis - Optimal control and LQG - PhD

The optimal controlproblem

LQG controlWhat is LQG control?

Controllability and LQR

Observability and state estimation

Summary

Optimal controlDynamic programming and HJB

Indirect methods and Pontryagin’sprinciple

Summary

LQG controlControllability and LQR

x = Ax + Bu

u = −Kr x

x = (A− BKr ) x

possibility to place the eigenvalues of the controlled system→ basic idea of pole placement

If the system is controllable, eigenvalues can be placed anywhere

C =[B AB . . . An−1B

]rank(C) = n

Pauline Kergus - Karl Johan Astrom Control System Synthesis 09/09/2020 11/24

Page 22: Control System Synthesis - Optimal control and LQG - PhD

The optimal controlproblem

LQG controlWhat is LQG control?

Controllability and LQR

Observability and state estimation

Summary

Optimal controlDynamic programming and HJB

Indirect methods and Pontryagin’sprinciple

Summary

LQG controlControllability and LQR

How to design Kr ?

pole placement

LQR

J(t) =∫ T

0x(t)Qx(t) + u(t)Ru(t)dt

Analytical solution: Kr = R−1B?X

A?X + XA− XBR−1B?X + Q = 0

Solving this Riccati equation is costly (O(n3))

In Matlab: Kr = lqr(A,B,Q,R);

Pauline Kergus - Karl Johan Astrom Control System Synthesis 09/09/2020 12/24

Page 23: Control System Synthesis - Optimal control and LQG - PhD

The optimal controlproblem

LQG controlWhat is LQG control?

Controllability and LQR

Observability and state estimation

Summary

Optimal controlDynamic programming and HJB

Indirect methods and Pontryagin’sprinciple

Summary

LQG controlControllability and LQR

How to design Kr ?

pole placement

LQR

J(t) =∫ T

0x(t)Qx(t) + u(t)Ru(t)dt

Analytical solution: Kr = R−1B?X

A?X + XA− XBR−1B?X + Q = 0

Solving this Riccati equation is costly (O(n3))

In Matlab: Kr = lqr(A,B,Q,R);

Pauline Kergus - Karl Johan Astrom Control System Synthesis 09/09/2020 12/24

Page 24: Control System Synthesis - Optimal control and LQG - PhD

The optimal controlproblem

LQG controlWhat is LQG control?

Controllability and LQR

Observability and state estimation

Summary

Optimal controlDynamic programming and HJB

Indirect methods and Pontryagin’sprinciple

Summary

LQG controlControllability and LQR

How to design Kr ?

pole placement

LQR

J(t) =∫ T

0x(t)Qx(t) + u(t)Ru(t)dt

Analytical solution: Kr = R−1B?X

A?X + XA− XBR−1B?X + Q = 0

Solving this Riccati equation is costly (O(n3))

In Matlab: Kr = lqr(A,B,Q,R);

Pauline Kergus - Karl Johan Astrom Control System Synthesis 09/09/2020 12/24

Page 25: Control System Synthesis - Optimal control and LQG - PhD

The optimal controlproblem

LQG controlWhat is LQG control?

Controllability and LQR

Observability and state estimation

Summary

Optimal controlDynamic programming and HJB

Indirect methods and Pontryagin’sprinciple

Summary

LQG controlControllability and LQR

How to design Kr ?

pole placement

LQR

J(t) =∫ T

0x(t)Qx(t) + u(t)Ru(t)dt

Analytical solution: Kr = R−1B?X

A?X + XA− XBR−1B?X + Q = 0

Solving this Riccati equation is costly (O(n3))

In Matlab: Kr = lqr(A,B,Q,R);

Pauline Kergus - Karl Johan Astrom Control System Synthesis 09/09/2020 12/24

Page 26: Control System Synthesis - Optimal control and LQG - PhD

The optimal controlproblem

LQG controlWhat is LQG control?

Controllability and LQR

Observability and state estimation

Summary

Optimal controlDynamic programming and HJB

Indirect methods and Pontryagin’sprinciple

Summary

LQG control

State is not always accessible

→ Need for an estimator: Kalman Filter

Pauline Kergus - Karl Johan Astrom Control System Synthesis 09/09/2020 13/24

Page 27: Control System Synthesis - Optimal control and LQG - PhD

The optimal controlproblem

LQG controlWhat is LQG control?

Controllability and LQR

Observability and state estimation

Summary

Optimal controlDynamic programming and HJB

Indirect methods and Pontryagin’sprinciple

Summary

LQG control

State is not always accessible

→ Need for an estimator: Kalman Filter

Pauline Kergus - Karl Johan Astrom Control System Synthesis 09/09/2020 13/24

Page 28: Control System Synthesis - Optimal control and LQG - PhD

The optimal controlproblem

LQG controlWhat is LQG control?

Controllability and LQR

Observability and state estimation

Summary

Optimal controlDynamic programming and HJB

Indirect methods and Pontryagin’sprinciple

Summary

LQG controlObservability and state estimation

System:{x=Ax + Bu + ωd

y=Cx + ωd

with gaussian noise ωn and disturbance ωd with zeromean and known covariances Vn and Vd

Pauline Kergus - Karl Johan Astrom Control System Synthesis 09/09/2020 14/24

Page 29: Control System Synthesis - Optimal control and LQG - PhD

The optimal controlproblem

LQG controlWhat is LQG control?

Controllability and LQR

Observability and state estimation

Summary

Optimal controlDynamic programming and HJB

Indirect methods and Pontryagin’sprinciple

Summary

LQG controlObservability and state estimation

System:{x=Ax + Bu + ωd

y=Cx + ωd

with gaussian noise ωn and disturbance ωd with zeromean and known covariances Vn and Vd

The system is observable if t is possible to estimate any state x ∈ Rn from atime-history of the measurements y(t)

O =

C

CA...

CAn−1

rankO = n

Pauline Kergus - Karl Johan Astrom Control System Synthesis 09/09/2020 14/24

Page 30: Control System Synthesis - Optimal control and LQG - PhD

The optimal controlproblem

LQG controlWhat is LQG control?

Controllability and LQR

Observability and state estimation

Summary

Optimal controlDynamic programming and HJB

Indirect methods and Pontryagin’sprinciple

Summary

LQG controlObservability and state estimation

System:{x=Ax + Bu + ωd

y=Cx + ωd

with gaussian noise ωn and disturbance ωd with zeromean and known covariances Vn and Vd

Estimator:{

˙x=Ax + Bu + Kf (y − y)y=Cx

Pauline Kergus - Karl Johan Astrom Control System Synthesis 09/09/2020 14/24

Page 31: Control System Synthesis - Optimal control and LQG - PhD

The optimal controlproblem

LQG controlWhat is LQG control?

Controllability and LQR

Observability and state estimation

Summary

Optimal controlDynamic programming and HJB

Indirect methods and Pontryagin’sprinciple

Summary

LQG controlObservability and state estimation

System:{x=Ax + Bu + ωd

y=Cx + ωd

with gaussian noise ωn and disturbance ωd with zeromean and known covariances Vn and Vd

Estimator:{

˙x=Ax + Bu + Kf (y − y)y=Cx

Design of Kf to minimize limt→∞

E((x(t)− x(t))?(x(t)− x(t)))

Pauline Kergus - Karl Johan Astrom Control System Synthesis 09/09/2020 14/24

Page 32: Control System Synthesis - Optimal control and LQG - PhD

The optimal controlproblem

LQG controlWhat is LQG control?

Controllability and LQR

Observability and state estimation

Summary

Optimal controlDynamic programming and HJB

Indirect methods and Pontryagin’sprinciple

Summary

LQG controlObservability and state estimation

System:{x=Ax + Bu + ωd

y=Cx + ωd

with gaussian noise ωn and disturbance ωd with zeromean and known covariances Vn and Vd

Estimator:{

˙x=Ax + Bu + Kf (y − y)y=Cx

Design of Kf to minimize limt→∞

E((x(t)− x(t))?(x(t)− x(t)))

Kf = YC?Vn

YA? + AY − YC?V−1n CY + Vd = 0

Pauline Kergus - Karl Johan Astrom Control System Synthesis 09/09/2020 14/24

Page 33: Control System Synthesis - Optimal control and LQG - PhD

The optimal controlproblem

LQG controlWhat is LQG control?

Controllability and LQR

Observability and state estimation

Summary

Optimal controlDynamic programming and HJB

Indirect methods and Pontryagin’sprinciple

Summary

LQG controlObservability and state estimation

System:{x=Ax + Bu + ωd

y=Cx + ωd

with gaussian noise ωn and disturbance ωd with zeromean and known covariances Vn and Vd

Estimator:{

˙x=Ax + Bu + Kf (y − y)y=Cx

Design of Kf to minimize limt→∞

E((x(t)− x(t))?(x(t)− x(t)))

Kf = YC?Vn

YA? + AY − YC?V−1n CY + Vd = 0

In Matlab: Kf = lqe(A,Vd ,C,Vd ,Vn);

Link with LQR: Kf = (lqr(A′,C′,Vd ,Vn))′;

Pauline Kergus - Karl Johan Astrom Control System Synthesis 09/09/2020 14/24

Page 34: Control System Synthesis - Optimal control and LQG - PhD

The optimal controlproblem

LQG controlWhat is LQG control?

Controllability and LQR

Observability and state estimation

Summary

Optimal controlDynamic programming and HJB

Indirect methods and Pontryagin’sprinciple

Summary

LQG controlSummary

LQG

(xε

)=

(A− BKr BKr

0 A− Kf C

)(xε

)+

(I 0I −Kf

)(ωd

ωn

)ε = x − x

Pauline Kergus - Karl Johan Astrom Control System Synthesis 09/09/2020 15/24

Page 35: Control System Synthesis - Optimal control and LQG - PhD

The optimal controlproblem

LQG controlWhat is LQG control?

Controllability and LQR

Observability and state estimation

Summary

Optimal controlDynamic programming and HJB

Indirect methods and Pontryagin’sprinciple

Summary

LQG controlSummary

LQG

(xε

)=

(A− BKr BKr

0 A− Kf C

)(xε

)+

(I 0I −Kf

)(ωd

ωn

)ε = x − x

Pauline Kergus - Karl Johan Astrom Control System Synthesis 09/09/2020 15/24

Page 36: Control System Synthesis - Optimal control and LQG - PhD

The optimal controlproblem

LQG controlWhat is LQG control?

Controllability and LQR

Observability and state estimation

Summary

Optimal controlDynamic programming and HJB

Indirect methods and Pontryagin’sprinciple

Summary

LQG controlSummary

The closed-loop eigenvalues of the LQG regulated system are optimallychosen through Kr and Kf

Requires an accurate model of the system and of the noise and disturbance(assumed to be white gaussian processes)

Handles MIMO, multi timescales and optimalityLack of robustness

Loop transfer recoveryMotivation for the development of robust control

Pauline Kergus - Karl Johan Astrom Control System Synthesis 09/09/2020 16/24

Page 37: Control System Synthesis - Optimal control and LQG - PhD

The optimal controlproblem

LQG controlWhat is LQG control?

Controllability and LQR

Observability and state estimation

Summary

Optimal controlDynamic programming and HJB

Indirect methods and Pontryagin’sprinciple

Summary

LQG controlSummary

The closed-loop eigenvalues of the LQG regulated system are optimallychosen through Kr and Kf

Requires an accurate model of the system and of the noise and disturbance(assumed to be white gaussian processes)

Handles MIMO, multi timescales and optimalityLack of robustness

Loop transfer recoveryMotivation for the development of robust control

Pauline Kergus - Karl Johan Astrom Control System Synthesis 09/09/2020 16/24

Page 38: Control System Synthesis - Optimal control and LQG - PhD

The optimal controlproblem

LQG controlWhat is LQG control?

Controllability and LQR

Observability and state estimation

Summary

Optimal controlDynamic programming and HJB

Indirect methods and Pontryagin’sprinciple

Summary

LQG controlSummary

The closed-loop eigenvalues of the LQG regulated system are optimallychosen through Kr and Kf

Requires an accurate model of the system and of the noise and disturbance(assumed to be white gaussian processes)

Handles MIMO, multi timescales and optimality

Lack of robustness

Loop transfer recoveryMotivation for the development of robust control

Pauline Kergus - Karl Johan Astrom Control System Synthesis 09/09/2020 16/24

Page 39: Control System Synthesis - Optimal control and LQG - PhD

The optimal controlproblem

LQG controlWhat is LQG control?

Controllability and LQR

Observability and state estimation

Summary

Optimal controlDynamic programming and HJB

Indirect methods and Pontryagin’sprinciple

Summary

LQG controlSummary

The closed-loop eigenvalues of the LQG regulated system are optimallychosen through Kr and Kf

Requires an accurate model of the system and of the noise and disturbance(assumed to be white gaussian processes)Handles MIMO, multi timescales and optimalityLack of robustness

Loop transfer recoveryMotivation for the development of robust control

Pauline Kergus - Karl Johan Astrom Control System Synthesis 09/09/2020 16/24

Page 40: Control System Synthesis - Optimal control and LQG - PhD

The optimal controlproblem

LQG controlWhat is LQG control?

Controllability and LQR

Observability and state estimation

Summary

Optimal controlDynamic programming and HJB

Indirect methods and Pontryagin’sprinciple

Summary

LQG controlSummary

The closed-loop eigenvalues of the LQG regulated system are optimallychosen through Kr and Kf

Requires an accurate model of the system and of the noise and disturbance(assumed to be white gaussian processes)

Handles MIMO, multi timescales and optimalityLack of robustness

Loop transfer recovery

Motivation for the development of robust control

Pauline Kergus - Karl Johan Astrom Control System Synthesis 09/09/2020 16/24

Page 41: Control System Synthesis - Optimal control and LQG - PhD

The optimal controlproblem

LQG controlWhat is LQG control?

Controllability and LQR

Observability and state estimation

Summary

Optimal controlDynamic programming and HJB

Indirect methods and Pontryagin’sprinciple

Summary

LQG controlSummary

The closed-loop eigenvalues of the LQG regulated system are optimallychosen through Kr and Kf

Requires an accurate model of the system and of the noise and disturbance(assumed to be white gaussian processes)

Handles MIMO, multi timescales and optimalityLack of robustness

Loop transfer recoveryMotivation for the development of robust control

Pauline Kergus - Karl Johan Astrom Control System Synthesis 09/09/2020 16/24

Page 42: Control System Synthesis - Optimal control and LQG - PhD

The optimal controlproblem

LQG controlWhat is LQG control?

Controllability and LQR

Observability and state estimation

Summary

Optimal controlDynamic programming and HJB

Indirect methods and Pontryagin’sprinciple

Summary

1 The optimal control problem

2 LQG controlWhat is LQG control?Controllability and LQRObservability and state estimationSummary

3 Optimal controlDynamic programming and HJBIndirect methods and Pontryagin’s principleSummary

Pauline Kergus - Karl Johan Astrom Control System Synthesis 09/09/2020 17/24

Page 43: Control System Synthesis - Optimal control and LQG - PhD

The optimal controlproblem

LQG controlWhat is LQG control?

Controllability and LQR

Observability and state estimation

Summary

Optimal controlDynamic programming and HJB

Indirect methods and Pontryagin’sprinciple

Summary

Optimal control

minimizex(·),u(·)

∫ T

0L(x(t), u(t))dt + E(x(T ))

subject to x(0) = x0 (fixed initial value)x(t) = f (x(t), u(t)) (model)h(x(t), u(t)) ≥ 0 (path constraints)r(x(T )) ≥ 0 (terminal constraints)

Pauline Kergus - Karl Johan Astrom Control System Synthesis 09/09/2020 18/24

Page 44: Control System Synthesis - Optimal control and LQG - PhD

The optimal controlproblem

LQG controlWhat is LQG control?

Controllability and LQR

Observability and state estimation

Summary

Optimal controlDynamic programming and HJB

Indirect methods and Pontryagin’sprinciple

Summary

Optimal controlDynamic programming and HJB

1 Cost-to-go functionJ(x , t) = min

x ,u

∫ Tt L(x , u)dt + E(x(T )) s.t. x(t) = x , . . .

2 Principle of optimality (sufficient condition) on grid t0 = 0 < · · · < tN = TJ(xk , tk) = min

x ,u

∫ tk+1tk

L(x , u)dt + J(xk+1, tk+1) s.t. x(tk) = xk , . . .

3 Dynamic programming recursion1 Start with J(x , tN) = E(x)2 Compute J(xk , tk) recursively backwards, for k = N − 1, . . . , 0

Pauline Kergus - Karl Johan Astrom Control System Synthesis 09/09/2020 19/24

Page 45: Control System Synthesis - Optimal control and LQG - PhD

The optimal controlproblem

LQG controlWhat is LQG control?

Controllability and LQR

Observability and state estimation

Summary

Optimal controlDynamic programming and HJB

Indirect methods and Pontryagin’sprinciple

Summary

Optimal controlDynamic programming and HJB

1 Cost-to-go functionJ(x , t) = min

x ,u

∫ Tt L(x , u)dt + E(x(T )) s.t. x(t) = x , . . .

2 Principle of optimality (sufficient condition) on grid t0 = 0 < · · · < tN = TJ(xk , tk) = min

x ,u

∫ tk+1tk

L(x , u)dt + J(xk+1, tk+1) s.t. x(tk) = xk , . . .

3 Dynamic programming recursion1 Start with J(x , tN) = E(x)2 Compute J(xk , tk) recursively backwards, for k = N − 1, . . . , 0

Pauline Kergus - Karl Johan Astrom Control System Synthesis 09/09/2020 19/24

Page 46: Control System Synthesis - Optimal control and LQG - PhD

The optimal controlproblem

LQG controlWhat is LQG control?

Controllability and LQR

Observability and state estimation

Summary

Optimal controlDynamic programming and HJB

Indirect methods and Pontryagin’sprinciple

Summary

Optimal controlDynamic programming and HJB

1 Cost-to-go functionJ(x , t) = min

x ,u

∫ Tt L(x , u)dt + E(x(T )) s.t. x(t) = x , . . .

2 Principle of optimality (sufficient condition) on grid t0 = 0 < · · · < tN = TJ(xk , tk) = min

x ,u

∫ tk+1tk

L(x , u)dt + J(xk+1, tk+1) s.t. x(tk) = xk , . . .

3 Dynamic programming recursion1 Start with J(x , tN) = E(x)2 Compute J(xk , tk) recursively backwards, for k = N − 1, . . . , 0

Pauline Kergus - Karl Johan Astrom Control System Synthesis 09/09/2020 19/24

Page 47: Control System Synthesis - Optimal control and LQG - PhD

The optimal controlproblem

LQG controlWhat is LQG control?

Controllability and LQR

Observability and state estimation

Summary

Optimal controlDynamic programming and HJB

Indirect methods and Pontryagin’sprinciple

Summary

Optimal controlDynamic programming and HJB

For infinitely small time steps, we obtain the HJB equation:

−∂J∂t (x , t) = min

u

(L(x , u) + ∂J

∂x (x , t)f (x , u))

subject to h(x , u) ≥ 0

Backward resolution of this PDE starting with J(x ,T ) = E(x)

At time t , the optimal control decision is given by:

u?(x , t) = argminu

(L(x , u) + ∂J

∂x (x , t)f (x , u))

s.t. h(x , u) ≥ 0.

Pauline Kergus - Karl Johan Astrom Control System Synthesis 09/09/2020 20/24

Page 48: Control System Synthesis - Optimal control and LQG - PhD

The optimal controlproblem

LQG controlWhat is LQG control?

Controllability and LQR

Observability and state estimation

Summary

Optimal controlDynamic programming and HJB

Indirect methods and Pontryagin’sprinciple

Summary

Optimal controlDynamic programming and HJB

For infinitely small time steps, we obtain the HJB equation:

−∂J∂t (x , t) = min

u

(L(x , u) + ∂J

∂x (x , t)f (x , u))

subject to h(x , u) ≥ 0

Backward resolution of this PDE starting with J(x ,T ) = E(x)

At time t , the optimal control decision is given by:

u?(x , t) = argminu

(L(x , u) + ∂J

∂x (x , t)f (x , u))

s.t. h(x , u) ≥ 0.

Pauline Kergus - Karl Johan Astrom Control System Synthesis 09/09/2020 20/24

Page 49: Control System Synthesis - Optimal control and LQG - PhD

The optimal controlproblem

LQG controlWhat is LQG control?

Controllability and LQR

Observability and state estimation

Summary

Optimal controlDynamic programming and HJB

Indirect methods and Pontryagin’sprinciple

Summary

Optimal controlDynamic programming and HJB

For infinitely small time steps, we obtain the HJB equation:

−∂J∂t (x , t) = min

u

(L(x , u) + ∂J

∂x (x , t)f (x , u))

subject to h(x , u) ≥ 0

Backward resolution of this PDE starting with J(x ,T ) = E(x)

At time t , the optimal control decision is given by:

u?(x , t) = argminu

(L(x , u) + ∂J

∂x (x , t)f (x , u))

s.t. h(x , u) ≥ 0.

Pauline Kergus - Karl Johan Astrom Control System Synthesis 09/09/2020 20/24

Page 50: Control System Synthesis - Optimal control and LQG - PhD

The optimal controlproblem

LQG controlWhat is LQG control?

Controllability and LQR

Observability and state estimation

Summary

Optimal controlDynamic programming and HJB

Indirect methods and Pontryagin’sprinciple

Summary

Optimal controlIndirect methods and Pontryagin’s principle

u?(x , t) = argminu

(L(x , u) +

∂J∂x

(x , t)f (x , u))

s.t. h(x , u) ≥ 0

Introduce an adjoint variable λ(t) = ∂J∂x (x , t)

T

Definition of the Hamiltonian: H(x , u, λ) = L(x , u) + λT f (x , u)Pontryargin’s Maximum Principle (necessary condition):

u?(x , t) = argminu

H(x(t), u, λ(t)) s.t. h(x , u) ≥ 0

Adjoint equation (differentiation of HJB equation)

−λT =∂

∂x(H(x(t), u?(t , x , λ), λ(t)))

Reformulation of the problem that can be solved using gradient techniques,shooting methods, ...

Pauline Kergus - Karl Johan Astrom Control System Synthesis 09/09/2020 21/24

Page 51: Control System Synthesis - Optimal control and LQG - PhD

The optimal controlproblem

LQG controlWhat is LQG control?

Controllability and LQR

Observability and state estimation

Summary

Optimal controlDynamic programming and HJB

Indirect methods and Pontryagin’sprinciple

Summary

Optimal controlIndirect methods and Pontryagin’s principle

u?(x , t) = argminu

(L(x , u) +

∂J∂x

(x , t)f (x , u))

s.t. h(x , u) ≥ 0

Introduce an adjoint variable λ(t) = ∂J∂x (x , t)

T

Definition of the Hamiltonian: H(x , u, λ) = L(x , u) + λT f (x , u)

Pontryargin’s Maximum Principle (necessary condition):

u?(x , t) = argminu

H(x(t), u, λ(t)) s.t. h(x , u) ≥ 0

Adjoint equation (differentiation of HJB equation)

−λT =∂

∂x(H(x(t), u?(t , x , λ), λ(t)))

Reformulation of the problem that can be solved using gradient techniques,shooting methods, ...

Pauline Kergus - Karl Johan Astrom Control System Synthesis 09/09/2020 21/24

Page 52: Control System Synthesis - Optimal control and LQG - PhD

The optimal controlproblem

LQG controlWhat is LQG control?

Controllability and LQR

Observability and state estimation

Summary

Optimal controlDynamic programming and HJB

Indirect methods and Pontryagin’sprinciple

Summary

Optimal controlIndirect methods and Pontryagin’s principle

u?(x , t) = argminu

(L(x , u) +

∂J∂x

(x , t)f (x , u))

s.t. h(x , u) ≥ 0

Introduce an adjoint variable λ(t) = ∂J∂x (x , t)

T

Definition of the Hamiltonian: H(x , u, λ) = L(x , u) + λT f (x , u)Pontryargin’s Maximum Principle (necessary condition):

u?(x , t) = argminu

H(x(t), u, λ(t)) s.t. h(x , u) ≥ 0

Adjoint equation (differentiation of HJB equation)

−λT =∂

∂x(H(x(t), u?(t , x , λ), λ(t)))

Reformulation of the problem that can be solved using gradient techniques,shooting methods, ...

Pauline Kergus - Karl Johan Astrom Control System Synthesis 09/09/2020 21/24

Page 53: Control System Synthesis - Optimal control and LQG - PhD

The optimal controlproblem

LQG controlWhat is LQG control?

Controllability and LQR

Observability and state estimation

Summary

Optimal controlDynamic programming and HJB

Indirect methods and Pontryagin’sprinciple

Summary

Optimal controlIndirect methods and Pontryagin’s principle

u?(x , t) = argminu

(L(x , u) +

∂J∂x

(x , t)f (x , u))

s.t. h(x , u) ≥ 0

Introduce an adjoint variable λ(t) = ∂J∂x (x , t)

T

Definition of the Hamiltonian: H(x , u, λ) = L(x , u) + λT f (x , u)Pontryargin’s Maximum Principle (necessary condition):

u?(x , t) = argminu

H(x(t), u, λ(t)) s.t. h(x , u) ≥ 0

Adjoint equation (differentiation of HJB equation)

−λT =∂

∂x(H(x(t), u?(t , x , λ), λ(t)))

Reformulation of the problem that can be solved using gradient techniques,shooting methods, ...

Pauline Kergus - Karl Johan Astrom Control System Synthesis 09/09/2020 21/24

Page 54: Control System Synthesis - Optimal control and LQG - PhD

The optimal controlproblem

LQG controlWhat is LQG control?

Controllability and LQR

Observability and state estimation

Summary

Optimal controlDynamic programming and HJB

Indirect methods and Pontryagin’sprinciple

Summary

Optimal controlIndirect methods and Pontryagin’s principle

u?(x , t) = argminu

(L(x , u) +

∂J∂x

(x , t)f (x , u))

s.t. h(x , u) ≥ 0

Introduce an adjoint variable λ(t) = ∂J∂x (x , t)

T

Definition of the Hamiltonian: H(x , u, λ) = L(x , u) + λT f (x , u)Pontryargin’s Maximum Principle (necessary condition):

u?(x , t) = argminu

H(x(t), u, λ(t)) s.t. h(x , u) ≥ 0

Adjoint equation (differentiation of HJB equation)

−λT =∂

∂x(H(x(t), u?(t , x , λ), λ(t)))

Reformulation of the problem that can be solved using gradient techniques,shooting methods, ...

Pauline Kergus - Karl Johan Astrom Control System Synthesis 09/09/2020 21/24

Page 55: Control System Synthesis - Optimal control and LQG - PhD

The optimal controlproblem

LQG controlWhat is LQG control?

Controllability and LQR

Observability and state estimation

Summary

Optimal controlDynamic programming and HJB

Indirect methods and Pontryagin’sprinciple

Summary

Optimal controlSummary

dxdt

= f (x , u), minu

J(u) = G(x(T )) +

∫ T

0g(x(t), u(t))dt

Hamiltonian

H(x , p, u) = g(x , u) + pT f (x , u), H0(x , p) = minu

H(x , p, u)

Euler-Lagrange-Pontryagin (particle view)

dxdt

=∂H0

∂p, x(0) = a

dpdt

= −∂H0

∂p, p(T ) = G′(x)

Hamilton-Jacobi-Bellman (wave view)∂V∂t

+ H0(

x ,∂V∂x

), V (x ,T ) = G(x)

Pauline Kergus - Karl Johan Astrom Control System Synthesis 09/09/2020 22/24

Page 56: Control System Synthesis - Optimal control and LQG - PhD

The optimal controlproblem

LQG controlWhat is LQG control?

Controllability and LQR

Observability and state estimation

Summary

Optimal controlDynamic programming and HJB

Indirect methods and Pontryagin’sprinciple

Summary

Optimal controlSummary

Small-scale systemsDynamic Programming in the discrete caseHJB in the continuous case

→ search over the whole state space, find global optimum and optimal control isprecomputed

Large scale systemIndirect methods

Reformulation in a boundary value problem with only 2n ODEsOnly necessary conditions for local optimality and need an explicit expression for u?

Direct methods: discretize then optimizeTransformation into finite dimensional Non Linear Programming Problem (NLP)Can use state-of-the-art methods for NLP solution.Easier way to handle the constraintsObtains only suboptimal/approximate solution.

Pauline Kergus - Karl Johan Astrom Control System Synthesis 09/09/2020 23/24

Page 57: Control System Synthesis - Optimal control and LQG - PhD

The optimal controlproblem

LQG controlWhat is LQG control?

Controllability and LQR

Observability and state estimation

Summary

Optimal controlDynamic programming and HJB

Indirect methods and Pontryagin’sprinciple

Summary

Optimal Control at the Department

Krister Martensson (TD #2 1972)

Torkel Glad (TD #11, 1976)

Bengt Pettersson (TL #2, 1970)

Bo Lincoln (TL #67, 2003)

Sven Hedlund (TL #68 2003)

Mattias Grundelius (TD #71 1995)

Johan Akesson (TD #81 2007)

Andreas Wernerud (TD #82 2008)

Per-Ola Larsson (TD #88 2011)

Karl Martensson (TD #91 2012)

Pontus Gisselson (TD #94 2012)

Pauline Kergus - Karl Johan Astrom Control System Synthesis 09/09/2020 24/24