Robustness and Stability Optimization Moritz Diehl Systems Control - - PowerPoint PPT Presentation

robustness and stability optimization
SMART_READER_LITE
LIVE PREVIEW

Robustness and Stability Optimization Moritz Diehl Systems Control - - PowerPoint PPT Presentation

Robustness and Stability Optimization Moritz Diehl Systems Control and Optimization Laboratory Department of Microsystems Engineering & Department of Mathematics University of Freiburg, Germany based on joint work with Boris Houska


slide-1
SLIDE 1

Robustness and Stability Optimization

Moritz Diehl Systems Control and Optimization Laboratory Department of Microsystems Engineering & Department of Mathematics University of Freiburg, Germany based on joint work with
 Boris Houska (ShanghaiTech), Peter Kühl (BASF), Joris Gillis (KU Leuven) and Greg Horn

slide-2
SLIDE 2

Outline of the Talk

Motivating Example: Control of Batch Reactors Robustification by Linearization Lyapunov Differential Equations (L-Infinity bounded uncertainty) Periodic Orbits for Power Generating Kites Open-Loop Stability Optimization

slide-3
SLIDE 3

Control of Exothermic Batch Reactors

work with Peter Kühl (now BASF), H.G. Bock (Heidelberg) and A. Milewska, E. Molga (Warsaw)

slide-4
SLIDE 4

Batch Reactor in Warsaw [Peter Kuehl, Aleksandra Milewska]

Esterification of 2-Butanol (B) by propionic anhydride (A): exothermic reaction, fed-batch reactor with cooling jacket Aim: complete conversion of B, avoid explosion! Control: dosing rate of A

slide-5
SLIDE 5

Differential (Algebraic) Equation Model

(1) (2)

slide-6
SLIDE 6

Dynamic Optimization Problem for Batch Reactor

Constrained optimal control problem: Generic optimal control problem:

minimize remaining B subject to dosing rate and temperature constraints

slide-7
SLIDE 7

Solution of Peter’s Batch Reactor Problem

slide-8
SLIDE 8

Experimental Results for Batch Reactor

Mettler-Toledo test reactor R1 batch time: 1 h end volume: ca. 2 l

slide-9
SLIDE 9

Experimental Results for Batch Reactor (Red)

large model plant mismatch Safety critical!

How can we make Peter and Aleksandra‘s work safer?

slide-10
SLIDE 10

Experimental Results for Batch Reactor (Red)

large model plant mismatch Safety critical!

How can we make Peter ‘s and Aleksandra‘s work safer?

slide-11
SLIDE 11

Outline of the Talk

Motivating Example: Control of Batch Reactors Robustification by Linearization Lyapunov Differential Equations L-Infinity bounded uncertainty Periodic Orbits for Power Generating Kites Open-Loop Stability Optimization

slide-12
SLIDE 12

Robust Optimization Framework [Ben-Tal & Nemirovski]

Uncertain Nonlinear Program (NLP) with controls u, uncertain parameter p, and “states” x (determined by model g(x,u,p) ) Idea: let “adverse player” (nature) select p and x, define worst-case constraints and

  • bjective:

Formulate “Robust Counterpart” (bi-level problem): Difficult to tackle numerically for general NLPs!

slide-13
SLIDE 13

One Remedy: Linearization of Worst Case

Approximate worst case by linearization [Nagy et. al ‘03, D., Bock, Kostina,’06]: Analytical solution (using dual norm):

slide-14
SLIDE 14

One of first papers proposing ODE linearization

slide-15
SLIDE 15

Approximated Robust Counterpart

Can be formulated in two sparsity exploiting variants:

A) Forward derivatives B) Adjoint derivatives …or in infinite dimensional setting: Lyapunov Differential Equations

Intelligent safety margins (influenced by controls)

slide-16
SLIDE 16

A) Forward Derivative Robust Counterpart

Best if more constraints than uncertain parameters

slide-17
SLIDE 17

B) Adjoint Derivative Robust Counterpart [D. et al ’06]::

Best if more uncertain parameters than constraints

slide-18
SLIDE 18

Estimated Parameter Uncertainties for Test Reactor

slide-19
SLIDE 19

Robust Optimization Result and Experimental Test

Safety margin

slide-20
SLIDE 20

Comparison Nominal and Robust Optimization

Different solution structure. Model plant mismatch and runaway risk considerably

  • reduced. Complete conversion.
slide-21
SLIDE 21

Comparison Nominal and Robust Optimization

Different solution structure. Model plant mismatch and runaway risk considerably

  • reduced. Complete conversion.
slide-22
SLIDE 22

Outline of the Talk

Motivating Example: Control of Batch Reactors Robustification by Linearization Lyapunov Differential Equations L-Infinity bounded uncertainty Periodic Orbits for Power Generating Kites Open-Loop Stability Optimization

slide-23
SLIDE 23

Robust Counterpart for Noisy Dynamic Systems

Noisy dynamic systems suffer from “double curse of infinity”: infinitely many uncertain parameters (noise w acting on dynamics) infinitely many constraints (path constraints) What to do ? In linear approximation (and without controls), regard with constraints for all i and t: Assumption: function space bound on noise

slide-24
SLIDE 24

Easy Case: L2 Bounded Uncertainty [Houska & D. 2007]

Assume L2 bound on uncertainty, based on L2 scalar product Note: for L2 Norm, reachable uncertainty sets are also ellipsoids! Can easily show that with P solution of Lyapunov Differential Equation

slide-25
SLIDE 25

Outline of the Talk

Motivating Example: Control of Batch Reactors Robustification by Linearization Lyapunov Differential Equations (L-Infinity bounded uncertainty — omitted) Periodic Orbits for Power Generating Kites Open-Loop Stability Optimization

slide-26
SLIDE 26

Outline of the Talk

Motivating Example: Control of Batch Reactors Robustification by Linearization Lyapunov Differential Equations (L-Infinity bounded uncertainty — omitted) Periodic Orbits for Power Generating Kites Open-Loop Stability Optimization

slide-27
SLIDE 27

Power Kite Model (with B. Houska)

forces at kite (here: 500 m2) Control inputs: line length roll angle (as for toy kites) lift coefficient (pitch angle) ODE Model with 12 states and 3 controls Includes cable elasticity

slide-28
SLIDE 28

Solution of Periodic Optimization Problem

Maximize mean power production: by varying line thickness, period duration, controls, subject to periodicity and

  • ther constraints:

Cable length 1.3km, thickness 7 cm

slide-29
SLIDE 29

Periodic Orbit: 5 MW mean power production

slide-30
SLIDE 30

Problem: kite orbits unstable. What to do?

slide-31
SLIDE 31

Outline of the Talk

Motivating Example: Control of Batch Reactors Robustification by Linearization Lyapunov Differential Equations L-Infinity bounded uncertainty Periodic Orbits for Power Generating Kites Open-Loop Stability Optimization

slide-32
SLIDE 32

Problem: kite orbits unstable. What to do?

Could we make system stable just by smart choice of open-loop controls?

slide-33
SLIDE 33

Stability and Robustness Optimization (Houska, D. 2007)

Regard linearized propagation of noise: Infinitely long time: covariance blows up, or becomes periodic THEOREM: If periodic Lyapunov solution exists (with ), nonlinear system is stable. Compute covariance matrix P by Lyapunov Equation:

slide-34
SLIDE 34

Robust stability optimization problem (Houska & D. 2007)

Allows us to robustly satisfy inequality constraints!

slide-35
SLIDE 35

Orbit optimized for stability

We have generated a stable attractor!

Kite does not touch ground

slide-36
SLIDE 36

Numerical Issues

Main Advantage: formulation avoids non-smoothness, can use advanced optimal control algorithms But: 1st derivatives in problem: need 2nd derivatives for optimization Need homotopy: first use „virtual feedback“, then shrink it Can solve periodic Lyapunov equation (a large, but linear system) with periodic Schur decomposition (Varga 1997), implemented as CasADi function, CPU savings up to factor 100 possible (PhD thesis Joris Gillis 2015)

slide-37
SLIDE 37

Robust Control of Control Race Cars (Greg Horn, Joris Gillis, Robin Verschueren)

6 states, i.e. nx = 6 100 time steps, i.e. N = 100 6 disturbances, i.e. nw = 600 2 controls and 4 feedback gains, i.e. nu = 204 solved in 40 seconds using CasADi and IPOPT

slide-38
SLIDE 38

Robust Control of Control Race Cars (Greg Horn, Joris Gillis, Robin Verschueren)

6 states, i.e. nx = 6 100 time steps, i.e. N = 100 6 disturbances, i.e. nw = 600 2 controls and 4 feedback gains, i.e. nu = 204 solved in 40 seconds using CasADi and IPOPT

slide-39
SLIDE 39

Quadcopter flight around obstacle (Joris Gillis)

Nominal Solution

  • Robustified Solution
slide-40
SLIDE 40

Summary: from Nominal to Robust Optimal Control

Nominal Optimal Control (prone to model-plant-mismatch) Robust Open-Loop Optimal Control

  • finite dimensional:
  • forward (many outputs)
  • adjoint (many inputs)
  • infinite dimensional:

Lyapunov Differential Equations, even allow periodic stability optimisation

  • can optimise feedback parameters
slide-41
SLIDE 41

Outline of the Talk

Motivating Example: Control of Batch Reactors Robustification by Linearization Lyapunov Differential Equations (L-Infinity bounded uncertainty — omitted) Periodic Orbits for Power Generating Kites Open-Loop Stability Optimization

slide-42
SLIDE 42

Thank you !

slide-43
SLIDE 43

Difficult Case: L-Infinity Bounded Uncertainty

Assumption: Example:

slide-44
SLIDE 44

Worst Case Reachable States

slide-45
SLIDE 45

Uncertainty Tube for Pendulum

slide-46
SLIDE 46

Uncertainty Tube for Pendulum

slide-47
SLIDE 47

Uncertainty Tube for Pendulum

slide-48
SLIDE 48

Dual of Infinite Dimensional LP

slide-49
SLIDE 49

Maximize dual function and transform further…

slide-50
SLIDE 50

…and introduce Lyapunov Equations again!

THEOREM [Houska & D. 2010]: Note: worst case minimization problem, useful for robust counterpart!

slide-51
SLIDE 51

Tight Outer Approximating Ellipsoids

slide-52
SLIDE 52

Tight Outer Approximating Ellipsoids

slide-53
SLIDE 53

Tight Outer Approximating Ellipsoids

slide-54
SLIDE 54

Tight Outer Approximating Ellipsoids

slide-55
SLIDE 55

Tight Outer Approximating Ellipsoids

slide-56
SLIDE 56

Tight Outer Approximating Ellipsoids

slide-57
SLIDE 57

Tight Outer Approximating Ellipsoids