Operator inference for non-polynomial systems & control - - PowerPoint PPT Presentation

operator inference
SMART_READER_LITE
LIVE PREVIEW

Operator inference for non-polynomial systems & control - - PowerPoint PPT Presentation

Operator inference for non-polynomial systems & control applications 1 Boris Kr amer ICERM Workshop on Mathematics of Reduced Order Models February 17-21, 2020, Providence, RI 1 Funded by: DARPA EQUiPS program award number UTA15-001067 and


slide-1
SLIDE 1

Operator inference for non-polynomial systems & control applications1

Boris Kr¨ amer

ICERM Workshop on Mathematics of Reduced Order Models February 17-21, 2020, Providence, RI

1 Funded by: DARPA EQUiPS program award number UTA15-001067 and Air Force Center of Excellence on Multi-Fidelity

Modeling of Rocket Combustor Dynamics, award FA9550-17-1-0195

1 / 46 Boris Kr¨ amer (University of California San Diego) Operator inference for non-polynomial systems and control

slide-2
SLIDE 2

Motivation: Learning ROMs for complex systems

Challenges in complex applications Uncertainties in model, parameters, or both Details and access to governing equations, discretization, and solver typically unavailable when working with legacy codes ⇒ Intrusive MOR infeasible in those situations Opportunities Data is everywhere (cheaper memory, better sensors, more observations); can be used to build ROMs and/or reduce uncertainties

2 / 46 Boris Kr¨ amer (University of California San Diego) Operator inference for non-polynomial systems and control

slide-3
SLIDE 3

Starting comments Dynamical systems nature of problem should not be ignored in model learning. The more we know about the model, the more we can incorporate into the learning framework: Model structure, nonlinear terms, inputs, etc.

3 / 46 Boris Kr¨ amer (University of California San Diego) Operator inference for non-polynomial systems and control

slide-4
SLIDE 4

Partial Differential Equation Model Many complex problems are modeled with PDEs of the form: ∂s ∂t = A(s; q)+H(s; q)+f(t, s; q)+B(u; q) Input u(t) State s(x, t; µ) with x ∈ Ω ⊆ Rd, d = 1, 2, 3 Parameters q A is a linear operator H is quadratic in s, the nonlinear function is f(t, s) and B is a linear input operator. Full-order model (FOM) Semi-discretized numerical model of the PDE: ˙ s(t, q) =A(q)s(t; q) + H(q)(s(t; q) ⊗ s(t; q)) + f(t, s; q) + B(q)u(t), State s(t; q) ∈ Rn Parameters q ∈ Rℓ Matrices A ∈ Rn×n, H ∈ Rn×n2, B ∈ Rn×m Reduced-order model (ROM) ˙ ˆ s(t; q) = ˆ A(q)ˆ s(t; q) + ˆ H(q)(ˆ s(t; q) ⊗ ˆ s(t; q)) + V⊤f(t, Vˆ s(q)) + ˆ B(q)u(t) Reduced state s(t; q) ∈ Rn Parameters q ∈ Rℓ Matrices ˆ A ∈ Rr×r, ˆ H ∈ Rr×r2, ˆ B ∈ Rr×m

4 / 46 Boris Kr¨ amer (University of California San Diego) Operator inference for non-polynomial systems and control

slide-5
SLIDE 5

Intrusive vs. non-intrusive: Sometimes we don’t have a choice

5 / 46 Boris Kr¨ amer (University of California San Diego) Operator inference for non-polynomial systems and control

slide-6
SLIDE 6

Part 1: Operator Inference for non-intrusive model reduction of systems with non-polynomial nonlinear terms

(hopefully completed soon) with Peter Benner, Pawan Goyal, Benjamin Peherstorfer, Karen Willcox

6 / 46 Boris Kr¨ amer (University of California San Diego) Operator inference for non-polynomial systems and control

slide-7
SLIDE 7

Part 1: Problem setting & Goal

  • 1. Model is known in PDE form (quadratic + non-polynomial + input):

∂s ∂t = A(s) + H(s) + f(t, s) + B(u)

  • 2. Data available from FOM2:

s1, s2, . . . , sk, and u1, u2, . . . , uk

  • 3. The non-polynomial nonlinear term is such that:

f(t, s) = [f(t, s1), · · · , f(t, sn)]⊤ Goal Leverage available information of nonlinear terms to learn a ROM: ˙ ˆ s(t) = ˆ Aˆ s(t) + ˆ H(ˆ s(t) ⊗′ ˆ s(t)) + V⊤f(t, Vˆ s) + ˆ Bu(t)

2The FOM data comes from time-stepping ˙

s(t) = As(t) + H(s(t) ⊗′ s(t)) + f(t, s) + Bu(t)

7 / 46 Boris Kr¨ amer (University of California San Diego) Operator inference for non-polynomial systems and control

slide-8
SLIDE 8

A short example

Consider the PDE ∂ ∂ts(x, t) = ∂2 ∂x2 s(x, t) + e−βts(x, t)−α + b(x)u(t) with time-dependent reaction term f(t, s) = e−βts(x, t)−α. After spatial discretization with a finite difference scheme, the system reads as (s−α := [si]−α, i = 1, 2, . . . , n): ˙ s(t) = As(t) + e−βts(t)−α + Bu(t). f(t, s(t)) = e−βts(t)−α does not require approximation of spatial derivatives Evaluating the semi-discrete nonlinear function f(t, s) only requires application of f(t, si) at every component of s = [s1, s2, . . . , sn]. Other examples: Arrhenius reaction model exp (γ − γ

s ); rational functions

s α + s, fractional powers sα etc.

8 / 46 Boris Kr¨ amer (University of California San Diego) Operator inference for non-polynomial systems and control

slide-9
SLIDE 9

Intrusive projection-based ROMs

Given is the following FOM, and we would like to compute a ROM: ˙ s(t) = As(t) + H(s(t) ⊗′ s(t)) + f(t, s) + Bu(t) V = [v1, . . . , vr] ∈ Rn×r orthonormal matrix, r ≪ n, computed, e.g., with POD. Let ˜ s be the ROM state with si ≈ V˜ si Projection-based (intrusive) ROM The projection-based ROM has the form ˙

  • s(t) =

A s(t) + H( s(t) ⊗′ s(t)) + f(t, s) + Bu(t) where f(t, s) = V⊤f(t, V s) and the reduced operators

  • A = V⊤AV ∈ Rr×r ,
  • H = V⊤H(V ⊗′ V) ∈ Rr×r2 ,
  • B = V⊤B ∈ Rr×m

9 / 46 Boris Kr¨ amer (University of California San Diego) Operator inference for non-polynomial systems and control

slide-10
SLIDE 10

Non-intrusive Operator Inference: Preparing the data

To learn a ROM, we build on the operator inference work from [Peherstorfer and Willcox, 2016]:

  • 1. Start with state and input data:

S :=   s0 s1 · · · sk   , U :=   u(t0) u(t1) · · · u(tk)   .

  • 2. Due to the specific form of the nonlinear terms, we can evaluate the nonlinear snapshot

matrix: F =   f(t0, s(t0)) f(t1, s(t1)) · · · f(tk, s(tk))   .

  • 3. Compute r dominant POD basis vectors of S, resulting in V s.t. S − VV⊤S

S ≤ tol.

  • 4. Project the state data and nolinear snapshot data

ˆ S = V⊤S, ˆ F = V⊤F.

10 / 46 Boris Kr¨ amer (University of California San Diego) Operator inference for non-polynomial systems and control

slide-11
SLIDE 11

Operator inference: Solving for the operators

Denote with ˙

  • sk the time derivative approximation of

d dtˆ

s(tk), which can be computed from ˆ s using a time derivative approximation. We store the time-derivative approximations in the matrix ˙

  • S :=

  ˙

  • s(t0)

˙

  • s(t1)

· · · ˙

  • s(tk)

  . Operator inference for non-polynomial nonlinear system A non-intrusive ROM of the form ˙ ˆ s(t) = ˆ Aˆ s(t) + ˆ H(ˆ s(t) ⊗′ ˆ s(t)) + V⊤f(t, Vˆ s(t)) + ˆ Bu(t), can be obtained by solving the optimization problem from the above projected: min

ˆ A, ˆ B, ˆ H

˙ ˆ S − ˆ F

:= ˆ R

− ˆ Aˆ S − ˆ BU − ˆ H(ˆ S ⊗′ ˆ S)F .

11 / 46 Boris Kr¨ amer (University of California San Diego) Operator inference for non-polynomial systems and control

slide-12
SLIDE 12

Two assumptions needed for convergence analysis

Assumption 1 The time stepping scheme for the FOM is convergent, i.e., max

i∈{1,...T/∆t} si − s(ti)2 → 0

as ∆t → 0. Assumption 2 The derivatives approximated from projected states, ˙ ˆ sk, converge to

d dtˆ

s(tk) as the discretization time step ∆t → 0, i.e., max

i∈{1,...T/∆t} ˙

ˆ si − d dtˆ s(ti)2 → 0 as ∆t → 0.

12 / 46 Boris Kr¨ amer (University of California San Diego) Operator inference for non-polynomial systems and control

slide-13
SLIDE 13

Convergence of the learned ROM to the intrusive ROM

Theorem [Benner/Goyal/K./Peherstorfer/Willcox, 2020] Let Assumption 1 and Assumption 2 hold and let a POD basis matrix V = [v1, v2, . . . , vr] ∈ Rn×r be given. Let A, B, H be the intrusively projected ROM

  • perators. Let the data matrix [ˆ

S, U, ˆ S ⊗′ ˆ S] have full column rank. Then for every ε > 0, there exists r ≤ n and a time step size ∆t > 0 such that the learned

  • perators satisfy:

ˆ A − A ≤ ε, ˆ B − B ≤ ε, ˆ H − H ≤ ε.

13 / 46 Boris Kr¨ amer (University of California San Diego) Operator inference for non-polynomial systems and control

slide-14
SLIDE 14

Hyper-reduction to speed up nonlinear function evaluation

To accelerate the evaluation of V⊤f(t, Vˆ s) in the learned ROM, hyper-reduction can be used (Barrault et al., 2004; Astrid et al., 2008; Nguyen et al., 2008, Chaturantabut & Sorensen, 2010; Carlberg et al., 2013; Drmac & Gugercin, 2016,...) We employ the discrete empirical interpolation method (DEIM) to approximate ˆ f(t, Vˆ s) ≈ ˆ fr(t, Vˆ s) = V⊤W(S⊤W)−1S⊤f(t, Vˆ s). W is computed by taking the SVD of the nonlinear snapshot matrix F and setting W to the leading m left singular vectors of F. S is an n × m matrix obtained by selecting certain columns of the n × n identity matrix, following the DEIM algorithm.

14 / 46 Boris Kr¨ amer (University of California San Diego) Operator inference for non-polynomial systems and control

slide-15
SLIDE 15

Results: Tubular reactor model

One-dimensional (x ∈ (0, 1)) model with a single reaction, describing the evolution of the species concentration ψ(x, t) and temperature θ(x, t) via ∂ψ ∂t = 1 Pe ∂2ψ ∂x2 − ∂ψ ∂x − Df(ψ, θ; γ), ∂θ ∂t = 1 Pe ∂2θ ∂x2 − ∂θ ∂x − β(θ − θref) + BDf(ψ, θ; γ), with Arrhenius reaction term f(ψ, θ; γ) = ψ exp

  • γ − γ

θ

  • .

Boundary conditions ∂ψ ∂x (0, t) = Pe(ψ(0, t) − 1), ∂θ ∂x(0, t) = Pe(θ(0, t) − 1), ∂ψ ∂x (1, t) = 0, ∂θ ∂x(1, t) = 0. The quantity of interest is the temperature oscillation at the reactor exit: y(t) = θ(x = 1, t).

15 / 46 Boris Kr¨ amer (University of California San Diego) Operator inference for non-polynomial systems and control

slide-16
SLIDE 16

Results: Tubular reactor model

FOM is semi-discrete model obtained via finite differences: ˙ s(t) = As(t) + f(s(t)) + B. with discretized state s(t) ∈ R198. Discretized Arrhenius term requires pointwise evaluations (local in space) [f(ψ, θ; γ)]i = ψi exp

  • γ − γ

θi

  • .

Collect snapshots in T = (0, 30] with δt = 10−3 spacing.

16 / 46 Boris Kr¨ amer (University of California San Diego) Operator inference for non-polynomial systems and control

slide-17
SLIDE 17

Learned ROM more accurate than intrusive ROM

ROM predictions for 100% longer than training interval r = 10 for both ROMs Learned ROM (non-Markovian) more accurate than projection-based ROM

17 / 46 Boris Kr¨ amer (University of California San Diego) Operator inference for non-polynomial systems and control

slide-18
SLIDE 18

Batch Chromatography: A chemical process

Mixture of products A and B injected into column Move with different velocities, thus separating at the column exit Component A, which moves faster, is collected between t1 and t2, component B between t3 and t4

18 / 46 Boris Kr¨ amer (University of California San Diego) Operator inference for non-polynomial systems and control

slide-19
SLIDE 19

Batch Chromatography: A non-polynomial nonlinear model

The dynamics of the batch chromatographic column: ∂ci ∂t + 1 − ǫ ǫ ∂qi ∂t + ν ∂ci ∂x − Di ∂2ci ∂x2 = 0 ∂qi ∂t = κi

  • qEq

i

− qi

  • Adsorption equilibrium concentration

qEq

i

= Hi,1 ci 1 +

j=1,2

Kj,1 cj + Hi,2 ci 1 +

j=1,2

Kj,2 cj ci, qi: Liquid & solid phase concentration Hi,1, Hi,2: Henry constants Kj,1, Kj,2 the thermodynamic coefficients κi: mass-transfer coefficient of component i ǫ: column porosity Zero initial conditions ci(t = 0, x) = qi(t = 0, x) = 0 Boundary conditions: Di ∂ci ∂x

  • x=0

= ν (ci|x=0 − cin

i ),

∂ci ∂x

  • x=L

= 0 with cin

i (t) =

1 1 + e−5(t−tinj) , tinj = 1.3

19 / 46 Boris Kr¨ amer (University of California San Diego) Operator inference for non-polynomial systems and control

slide-20
SLIDE 20

Creating a block-structured model

We can simplify the previous PDE by inserting ˙ qi into the first equation, and obtain: ∂ci ∂t = −ν ∂ci ∂x + Di ∂2ci ∂x2 + ǫcκi

  • qEq

i

− qi

  • ∂qi

∂t = κi

  • qEq

i

− qi

  • A finite volume discretization of the governing equations yields a discretized model of the form:

    ˙ c1 ˙ q1 ˙ c2 ˙ q2     =     A1 A2         c1 q1 c2 q2     +     B B     u(t) + ǫc 1

f1(c1, q1, c2, q2) f2(c1, q1, c2, q2)

  • ,

where c1, q1, c2, q2 ∈ Rn, A1, A2 ∈ Rn×n, B ∈ Rn. The nonlinear term is spatially local fi(c1, q1, c2, q2) = κi

  • qEq

i

− qi

  • 20 / 46

Boris Kr¨ amer (University of California San Diego) Operator inference for non-polynomial systems and control

slide-21
SLIDE 21

Maintaining the coupling structure in projection-based ROMs

In a projection-based framework, we would approximate     c1 q1 c2 q2     ≈     Vc1 Vq1 Vc2 Vq2         ˆ c1 ˆ q1 ˆ c2 ˆ q2     so that the ROM preserves the coupling structure:     ˙ ˆ c1 ˙ ˆ q1 ˙ ˆ c2 ˙ ˆ q2     =     ˆ A1 ˆ A2         ˆ c1 ˆ q1 ˆ c2 ˆ q2     +     ˆ B1 ˆ B2     u(t) + ǫc 1

ˆ f1(ˆ c1, ˆ q1, ˆ c2, ˆ q2) ˆ f2(ˆ c1, ˆ q1, ˆ c2, ˆ q2)

  • ,

where ˆ c1, ˆ q1, ˆ c2, ˆ q2 ∈ Rr, ˆ A1, ˆ A2 ∈ Rr×r, ˆ B1, ˆ B2 ∈ Rr.

21 / 46 Boris Kr¨ amer (University of California San Diego) Operator inference for non-polynomial systems and control

slide-22
SLIDE 22

Using our model knowledge: Maintaining the coupling structure in learned ROMs

For Operator Inference, we assemble the following data (with T = (0, 10]s and δt = 10−5) : ˆ S =     V⊤

c1C1

V⊤

q1Q1

V⊤

c2C2

V⊤

q2Q2

    =:     ˆ C1 ˆ Q1 ˆ C2 ˆ Q2     , ˙ ˆ S =     V⊤

c1 ˙

C1 V⊤

q1 ˙

Q1 V⊤

c2 ˙

C2 V⊤

q2 ˙

Q2     =:       ˙ ˆ C1 ˙ ˆ Q1 ˙ ˆ C2 ˙ ˆ Q2       . Block structure preservation in learned ROM We can maintain the coupling structure by solving separate least-squares problems of the form min

ˆ Ai, ˆ Bi

˙ ˆ Ci − ǫcV⊤

ciF − ˆ

Ai ˆ Ci − ˆ BiUF , i ∈ {1, 2}. Important for physical interpretability of the model Numerical implications, stability [Liao et al., 2007; Reis & Stykel, 2007, 2008; Benner & Feng, 2015; Kramer, 2016]

22 / 46 Boris Kr¨ amer (University of California San Diego) Operator inference for non-polynomial systems and control

slide-23
SLIDE 23

Learned ROM and projection-based ROM

Both the learned ROM and intrusive ROM retain coupling structure Singular values decay rather slowly due to transport nature of Batch Chromatography ROMs of order r = 22 for each variable DEIM approximation used for nonlinear term fi(c1, q1, c2, q2)

23 / 46 Boris Kr¨ amer (University of California San Diego) Operator inference for non-polynomial systems and control

slide-24
SLIDE 24

Learned ROM accuracy

For r < 30, intrusive POD ROM and learned ROMs perform similarly For r > 30 the learned ROM does not converge monotonely ⇒ Condition number of Operator Inference problem, or closure issue (Re-projection?).

24 / 46 Boris Kr¨ amer (University of California San Diego) Operator inference for non-polynomial systems and control

slide-25
SLIDE 25

Conclusions: Learned ROMs with non-polynomial structure

Accurate non-intrusive ROMs possible with Operator Inference learning framework Convergence results shows that under mild assumptions on the time stepping and step size, the non-intrusively learned reduced models converge to the same reduced models as

  • btained with intrusive model reduction methods.

The more we know about the model, the more we can incorporate into the learning framework: Model structure, nonlinear terms, etc. Operator Inference for non-intrusive model reduction of systems with non-polynomial nonlinear terms, Benner/Goyal/K./Peherstorfer/Willcox, 2020

25 / 46 Boris Kr¨ amer (University of California San Diego) Operator inference for non-polynomial systems and control

slide-26
SLIDE 26

Part 2: Operator Inference to learn ROMs for control applications

Feedback control for systems with uncertain parameters using online-adaptive reduced models. K./Peherstorfer/Willcox, SIAM J. on Applied Dynamical Systems 16(3), pp. 1563-1586, 2017.

26 / 46 Boris Kr¨ amer (University of California San Diego) Operator inference for non-polynomial systems and control

slide-27
SLIDE 27

Part 2: Problem setting & Goal

Goal: Control a plant that has the form: ˙ s(t) = A(q(t))s(t) + Bu(t), s(0) = s0 ∈ Rn with time-dependent parameters that assume a residence time: q(t) = qTi for t ∈ Ti = [ti−1, ti]. Problem setting and challenges: Switching times ti not known a priori; have to be detected online Dynamical system response changes with q(t) (stability, equilibria) Large-scale setting, (n large) Cannot evaluate A(q(t)) online (b/c recourse to full model solver) Opportunities: State-space data from plant available Can use operator inference to learn ROM state-space model

27 / 46 Boris Kr¨ amer (University of California San Diego) Operator inference for non-polynomial systems and control

slide-28
SLIDE 28

Formulating the control problem

Linear Quadratic Regulator Problem min

u

J(s, u; q) = ∞ ||Cs(t; q)||2

2 + ||Ru(t; q)||2 2 dt

s.t. ˙ s(t) = A(q(t))s(t) + Bu(t), s(0) = s0 ∈ Rn u(t; q): control; B, C known input and sensing matrices. Control problem for plant with uncertainties Let A(q(t)) be available offline, but not online. Let B, C be available online. For all Ti = [ti−1, ti], i = 1, 2, . . . , solve the control problem: min

sTi,uTi

J(sTi, uTi) s.t. ˙ sTi(t) = A(qTi)sTi(t) + BuTi(t), where the subscripts indicate the state and control in Ti = [ti−1, ti].

28 / 46 Boris Kr¨ amer (University of California San Diego) Operator inference for non-polynomial systems and control

slide-29
SLIDE 29

A solution approach to the problem

How can we detect switching ti? How to deal with not-available A(qTi) Approach: Reduce-then-design approach: Design a controller based-on low-dimensional ROM Use data to learn and update ROM matrix online ⇒ robustness to parametric changes Algorithmic details: Offline: Library of high-fidelity solutions (subspaces, feedback gains) Online:

  • 1. Detect parameter-dependent subspace V = V(q) ⇒ Deals with unknown switching times ti
  • 2. Learn system matrix ˆ

A(q(t)) = V⊤A(q(t))V in real-time through data-driven ROMs; recompute optimal feedback from surrogate model

29 / 46 Boris Kr¨ amer (University of California San Diego) Operator inference for non-polynomial systems and control

slide-30
SLIDE 30

Related work

Reduced-order modeling for control design:

[Burns and King, 1998, Burns et al., 1999, Kunisch and Volkwein, 1999, Atwell et al., 2001, Banks et al., 2000, Banks et al., 2002, Benner, 2004, Lee and Tran, 2005, Borggaard and Stoyanov, 2008, Sachs and Volkwein, 2010, Alla and Falcone, 2013, Nicaise et al., 2014, Tissot et al., 2015, Pyta et al., 2015] .....

Online-Interpolated ROMs for parameter-dependent systems

[Poussot-Vassal and Sipp, 2015]:

ROMs generated offline for linearized equations; online interpolation (parameter known) Gain Scheduling for LPV systems

[Becker and Packard, 1994, Theis et al., 2016]

Linearization of NL systems around operating conditions/equlibria Scheduling variable determines which Offline (high fidelity)-online (compressed sensing detection) strategy [Mathelin et al., 2012] Controllers parametrized by initial condition Statistical learning strategy [Gu´

eniat et al., 2016]

Markov process model + Reinforcement learning for control law Learning LQR controller from random control input excitations [Dean et al., 2019, Cohen et al., 2019] Complete theory for error in learning unknown linear model (||A − Aest|| < ...., ||B − Best|| < ... ) and robust controller Finite-data results, but assumes randomized controller trials can be made

30 / 46 Boris Kr¨ amer (University of California San Diego) Operator inference for non-polynomial systems and control

slide-31
SLIDE 31

Reduced-order models to represent dynamics

We approximate the dynamics as s(t; q) ≈ V(q)ˆ s(t; q), V(q) ∈ Rn×r, r ≪ n, where V(q) contains basis vectors for a low-dimensional, accurate representation of the

  • dynamics. Enforcing orthogonality of the residual yields a ROM of similar structure

˙ ˆ s(t; q) = ˆ A(q(t))ˆ s(t; q) + ˆ Bu(t), where ˆ A(q) = V(q)⊤A(q)V(q), ˆ B(q) = V(q)⊤B. We compute a library of subspaces V(q) for a suitably chosen selection {q1, q2, . . . , qM}.

31 / 46 Boris Kr¨ amer (University of California San Diego) Operator inference for non-polynomial systems and control

slide-32
SLIDE 32

Low-rank structure in LQR

If (A(q), B) is stabilizable, then control assumes linear state feedback: u(t; q) = −K(q)s(t; q) = −[R−1B⊤Π(q)]s(t; q), (2) 0 = A⊤(q)Π(q) + Π(q)A(q) − Π(q)BB⊤Π(q) + C⊤C (3) where K(q) is the gain matrix. Π(q) often of low numerical rank: Π(q) = W(q)W(q)⊤, W(q) ∈ Rn×r ⇒ Work with low-dimensional operators through V ∈ Rn×r: ˆ A(q) = V⊤A(q)V, ˆ B = V⊤B, ˆ C = CV Solve (3) in low dimensions (reduce-then-design): 0 = ˆ A⊤(q)ˆ Π(q) + ˆ Π(q) ˆ A(q) − ˆ Π(q) ˆ B ˆ B⊤ ˆ Π(q) + ˆ C⊤ ˆ C

[Jbilou, 2003, Jbilou, 2006, Heyouni and Jbilou, 2009, Benner et al., 2008a, Benner et al., 2008b, Simoncini et al., 2013, Lin and Simoncini, 2014, Wang et al., 2014, Li et al., 2013, Kramer and Singler, 2016]. . .

32 / 46 Boris Kr¨ amer (University of California San Diego) Operator inference for non-polynomial systems and control

slide-33
SLIDE 33

Offline: Pre-computing library of feedback gains

Feedback gains K(qi), learning bases VL(qi), detection bases VD(qi), for i = 1, . . . , M: L :=       VL(q1) VD(q1) K(q1)    , . . . ,    VL(qM) VD(qM) K(qM)       .

33 / 46 Boris Kr¨ amer (University of California San Diego) Operator inference for non-polynomial systems and control

slide-34
SLIDE 34

Online: Solving the classification problem

S: selection operator that selects p′ entries from the states s(t; q(t)) with p′ ∈ {1, . . . , n} and p′ ≪ n Detection subspaces VD(¯ qi), i = 1, . . . , M Define classifier h : Rp′ → {1, . . . , M} via h(Ss(t; ¯ qk)) = k Solve classification problem by projection Pi : Rp′ → Rp′: Pi = SVD(¯ qi)

  • (SVD(¯

qi))⊤(SVD(¯ qi)) −1 (SVD(¯ qi))⊤ Selected subspace: k = arg max

i=1,...,M ||Pi(Ss(t; q))||2

Next step: Act on information and initiate model learning

34 / 46 Boris Kr¨ amer (University of California San Diego) Operator inference for non-polynomial systems and control

slide-35
SLIDE 35

Online: ROM learning from recorded data

Goal: Learn ROM system matrix ˆ A = ˆ A(˜ q) ∈ Rr×r from data s1(˜ q), . . . , sℓ(˜ q) and selected subspace V = VL(¯ qk) ∈ L. Compute ˆ B = V⊤B and ˆ Bd = V⊤Bd Assemble past control inputs uk = u(tk; q(tk)): U = [u1, u2, . . . , us]⊤ ∈ Rs×m, Reduced states ˆ si := V⊤s(ti) stored in ˆ S = [ˆ s1,ˆ s2, . . . ,ˆ sℓ]⊤ ∈ Rs×r Derivative approximation ⇒ ˙ ˆ s1, . . . , ˙ ˆ sℓ Operator inference problem for ˆ A = ˆ A(˜ q): min

ˆ A∈Rr×r s

  • i=1
  • ˙

ˆ si − ˆ Aˆ si − ˆ Bui

  • 2

2

Convergence to projected matrices established [Peherstorfer and Willcox, 2016]

35 / 46 Boris Kr¨ amer (University of California San Diego) Operator inference for non-polynomial systems and control

slide-36
SLIDE 36

Online: Detect subspace and learn model

Online classification gives “best-fit” low-dimensional subspace VL(qk) for learning Learn/adapt new ROM system matrix ˆ A(q) by incorporating real-time data

36 / 46 Boris Kr¨ amer (University of California San Diego) Operator inference for non-polynomial systems and control

slide-37
SLIDE 37

Numerical example: Convection-diffusion PDE

Let x = [x1, x2]⊤ ∈ Ω = [0, 1]2 and ∂θ ∂t (t, x) = q(t) ∂2 ∂x2

1

+ ∂2 ∂x2

2

  • θ(t, x) − x2

∂θ ∂x2 (t, x) + b(x)u(t) + bdg(t) Boundary conditions: θ(t, x1, 0) = 0, θ(t, 1, x2) = 0, θ(t, x1, 1) = 0, ∂θ ∂x1 (t, 0, x2) = 0 Control enters through b(x) = 5 if x1 ≥ 1/2 and 0 otherwise Uncertainty ⇒ diffusion coefficient q(t) ∈ R Spatially discretized system (piecewise linear FE): ˙ s(t; q) = A(q(t))s(t; q) + B˜ u(t) + Bdg(t), s(0) = s0 ∈ Rn y(t) = Cs(t) ∈ R C = 5

n[1, . . . , 1].

n = 3540 for FEM discretization = “truth model”

37 / 46 Boris Kr¨ amer (University of California San Diego) Operator inference for non-polynomial systems and control

slide-38
SLIDE 38

Eigenvalues of A(Pe) for different P´ eclet numbers

Parameter ¯ qi = P´ eclet number = convective transport rate

diffusive transport rate

High P´ eclet numbers indicate strongly convective flows Four P´ eclet numbers to generate library L : Pe ∈ {2, 10, 50, 1000}

  • 4
  • 3
  • 2
  • 1

Re

×10-3

  • 1
  • 0.5

0.5 1

Im

Pe = 2 Pe = 10 Pe = 50 Pe = 1000

Figure: The two eigenvalues with largest real part of the system matrix A(¯ qi).

38 / 46 Boris Kr¨ amer (University of California San Diego) Operator inference for non-polynomial systems and control

slide-39
SLIDE 39

Open loop output and gains for different P´ eclet numbers

.2 .4 .6 .8 1.0 Time (s)

  • 1
  • 0.8
  • 0.6
  • 0.4
  • 0.2

0.2 y

(a) Output for Pe1 = 2

.2 .4 ,6 .8 1.0 Time (s)

  • 1.5
  • 1
  • 0.5

0.5 y

(b) Output for Pe2 = 1000

Figure: Output y(t) of the open loop convection diffusion system, excited with nonzero initial condition s0(x, y) = 15 sin(2πx) sin(πy); disturbance g(t) ∝ N(0, 0.5) applied through a disturbance term at 0 ≤ x1 ≤ 0.05.

1 2 1 4 x2 0.5 x1 6 0.5 1 2 1 4 x2 0.5 x1 6 0.5 1 2 1 4 x2 0.5 x1 6 0.5 1 2 1 4 x2 0.5 6 x1 0.5

39 / 46 Boris Kr¨ amer (University of California San Diego) Operator inference for non-polynomial systems and control

slide-40
SLIDE 40

Output with learned and intrusively-projected controller

Simulate online until T = 2.5s Learning basis r = 10 (eigenbasis) Detection basis (POD) r = 30 from S = 1, 000 snapshots Misclassification after t > 1.5s due to similar equilibrium solutions

0.5 1 1.5 2 2.5

time units

1 2 3 4

regime number

detected regime actual regime

(e) Selected library elements as indicated by the detection functionh(·).

0.5 1 1.5 2 2.5

time units

  • 3
  • 2
  • 1

1 2 3

  • utput y(t)

updated model perfect model knowledge

(f) Controlled output y(t).

40 / 46 Boris Kr¨ amer (University of California San Diego) Operator inference for non-polynomial systems and control

slide-41
SLIDE 41

Numerical example II: Permeablity

Laplace equation on Ω = [0, 1]2 as model of flow through porous medium ∂ ∂tθ(t, x) = ν(t, x) · ∂2 ∂x2

1

+ ∂2 ∂x2

2

  • θ(t, x) + b(x)u(t) + b1

d(x)g1(t) + b2 d(x)g2(t)

Uncertain permeability: q(t, x) = ν(t, x) Spatial discretization: s ∈ Rn: ˙ s(t) = A(q(t))s(t) + Bu(t) + Bdg(t) y(t) = Cs(t) White noise disturbance g(·) enters through Bd at [x1, x2] = [0.3, 0.3] and [x1, x2] = [0.3, 0.7] Sensor location at [x1, x2] = [0.5, 0.6] Control location at [x1, x2] = [0.6, 0.7] Compute library L using three permeability fields q1(x), q2(x), q3(x)

41 / 46 Boris Kr¨ amer (University of California San Diego) Operator inference for non-polynomial systems and control

slide-42
SLIDE 42

Output of controlled system

Learning basis VL(qi): Eigenbasis of order 20 for A(qi), i = 1, 2, 3 Detection basis VD(qi): POD basis of order 20 from closed-loop system excited with disturbances g(t) = [g1(t), g2(t)]⊤. The system was simulated for 500s, and ℓ = 10, 000 snapshots were used to compute the POD basis Stable regime 1, unstable regime 2

100 200 300 400 500 600 700 800 900

time units

1 2

regime number

Detected regime Actual regime

(g) Permeabilities selected by detection func- tion h(·).

100 200 300 400 500 600 700 800 900

time units

  • 10
  • 5

5 10 15

  • utput y(t)

updated model perfect model knowledge

(h) Output y(t) of controlled systems

42 / 46 Boris Kr¨ amer (University of California San Diego) Operator inference for non-polynomial systems and control

slide-43
SLIDE 43

Control performance

Case 1: Controller designed from projection-based ROM with perfect knowledge of q(t) Case 2: Controller designed from learned ROM (Operator Inference model)

100 200 300 400 500 600 700 800 900

time units

0.05 0.1 0.15 0.2 0.25 0.3

cost function

J(x,u) J(x,ur)

Figure: Control cost function J(s, u) for both controllers on the full-order model.

43 / 46 Boris Kr¨ amer (University of California San Diego) Operator inference for non-polynomial systems and control

slide-44
SLIDE 44

Feedback gains: Intrusive ROM vs learned ROM

  • 0.5

1 0.5 1 gain 1 reduced y .5 x 1.5 .5

  • 0.5

1 0.5 1 gain 1 learned y .5 x 1.5 .5

(a) Feedback gains at t = 122s.

  • 0.2

1 0.2 1 gain 0.4 reduced y .5 x 0.6 .5

  • 0.2

1 0.2 1 gain 0.4 learned y .5 x 0.6 .5

(b) Feedback gains at t = 574s

44 / 46 Boris Kr¨ amer (University of California San Diego) Operator inference for non-polynomial systems and control

slide-45
SLIDE 45

Review and conclusions

Review: Situation: A(q(t)) is not available online, neither are switching times ti Learning-based control framework for high-dimensional LPV system:

  • 1. Learning unknown ROM system matrix from data (Operator Inference)
  • 2. Detected switching time with localized subspace approach

Conclusions: Learning-based low-dimensional controller performs well and feedback gains are accurate Robustness to parametric changes can be addressed through online learning More robust controller designs could be obtained through (H∞)

Feedback control for systems with uncertain parameters using online-adaptive reduced models. K./Peherstorfer/Willcox, SIAM J. on Applied Dynamical Systems 16(3), pp. 1563-1586, 2017.

45 / 46 Boris Kr¨ amer (University of California San Diego) Operator inference for non-polynomial systems and control

slide-46
SLIDE 46

Geisel Library Jacobs School of Engineering Scripps Institute of Oceanography SD Supercomputer Center

THANK YOU

46 / 46 Boris Kr¨ amer (University of California San Diego) Operator inference for non-polynomial systems and control

slide-47
SLIDE 47

Alla, A. and Falcone, M. (2013). An adaptive pod approximation method for the control of advection-diffusion equations. In Control and Optimization with PDE Constraints, pages 1–17. Springer. Atwell, J., Borggaard, J., and King, B. (2001). Reduced order controllers for burgers’ equation with a nonlinear observer. Applied Mathematics And Computer Science, 11(6):1311–1330. Banks, H. T., Beeler, S. C., Kepler, G. M., and Tran, H. T. (2002). Reduced order modeling and control of thin film growth in an HPCVD reactor. SIAM J. Appl. Math., 62(4):1251–1280. Banks, H. T., del Rosario, R. C. H., and Smith, R. C. (2000). Reduced-order model feedback control design: numerical implementation in a thin shell model. IEEE Trans. Automat. Control, 45(7):1312–1324. Becker, G. and Packard, A. (1994). Robust performance of linear parametrically varying systems using parametrically-dependent linear feedback. Systems & Control Letters, 23(3):205–215. Benner, P. (2004). Solving large-scale control problems. IEEE Control Systems Magazine, 24(1):44–59. Benner, P., Li, J.-R., and Penzl, T. (2008a). Numerical solution of large-scale Lyapunov equations, Riccati equations, and linear-quadratic optimal control problems.

  • Numer. Linear Algebra Appl., 15(9):755–777.

Benner, P., Mena, H., and Saak, J. (2008b). On the parameter selection problem in the Newton-ADI iteration for large-scale Riccati equations. Electronic Transactions on Numerical Analysis, 29:136–149. Borggaard, J. and Stoyanov, M. (2008). An efficient long-time integrator for Chandrasekhar equations. In Proceedings of the 47th IEEE Conference on Decision and Control, pages 3983–3988. Burns, J. A. and King, B. B. (1998). A reduced basis approach to the design of low-order feedback controllers for nonlinear continuous systems. Journal of Vibration and Control, 4(3):297–323. Burns, J. A., King, B. B., and Rubio, D. (1999). On the design of feedback controllers for a convecting fluid flow via reduced order modeling. In Proceedings of the 1999 IEEE International Conference on Control Applications (Cat. No. 99CH36328), volume 2, pages 1157–1162. IEEE. 46 / 46 Boris Kr¨ amer (University of California San Diego) Operator inference for non-polynomial systems and control

slide-48
SLIDE 48

Clason, C., Ito, K., and Kunisch, K. (2016). A convex analysis approach to optimal controls with switching structure for partial differential equations. ESAIM: Control, Optimisation and Calculus of Variations, 22(2):581–609. Cohen, A., Koren, T., and Mansour, Y. (2019). Learning linear-quadratic regulators efficiently with only O( √ T ) regret. arXiv:1902.06223. Dean, S., Mania, H., Matni, N., Recht, B., and Tu, S. (2019). On the sample complexity of the linear quadratic regulator. Foundations of Computational Mathematics. Gu´ eniat, F., Mathelin, L., and Hussaini, M. (2016). A statistical learning strategy for closed-loop control of fluid flows. Theoretical and Computational Fluid Dynamics, pages 1–14. Heyouni, M. and Jbilou, K. (2009). An extended block Arnoldi algorithm for large-scale solutions of the continuous-time algebraic Riccati equation.

  • Electron. Trans. Numer. Anal., 33:53–62.

Jbilou, K. (2003). Block Krylov subspace methods for large algebraic Riccati equations. Numerical Algorithms, 34(2-4):339–353. Jbilou, K. (2006). An Arnoldi based algorithm for large algebraic Riccati equations. Applied Mathematics Letters, 19(5):437–444. Kramer, B., Peherstorfer, B., and Willcox, K. (2017). Feedback control for systems with uncertain parameters using online-adaptive reduced models. SIAM Journal on Applied Dynamical Systems, 16(3):1563–1586. Kramer, B. and Singler, J. R. (2016). A POD projection method for large-scale algebraic Riccati equations. Numerical Algebra, Control & Optimization, 6:413–435. Kunisch, K. and Volkwein, S. (1999). Control of the Burgers equation by a reduced-order approach using proper orthogonal decomposition.

  • J. Optim. Theory Appl., 102(2):345–371.

Lee, C. H. and Tran, H. T. (2005). Reduced-order-based feedback control of the Kuramoto-Sivashinsky equation.

  • J. Comput. Appl. Math., 173(1):1–19.

46 / 46 Boris Kr¨ amer (University of California San Diego) Operator inference for non-polynomial systems and control

slide-49
SLIDE 49

Li, T., wah Chu, E. K., Lin, W.-W., and Weng, P. C.-Y. (2013). Solving large-scale continuous-time algebraic riccati equations by doubling. Journal of Computational and Applied Mathematics, 237(1):373 – 383. Lin, Y. and Simoncini, V. (2014). A new subspace iteration method for the algebraic riccati equation. Numerical Linear Algebra with Applications. Mathelin, L., Pastur, L., and Le Maˆ ıtre, O. (2012). A compressed-sensing approach for closed-loop optimal control of nonlinear systems. Theoretical and computational fluid dynamics, 26(1-4):319–337. Nicaise, S., Stingelin, S., and Tr¨

  • ltzsch, F. (2014).

On two optimal control problems for magnetic fields. Computational Methods in Applied Mathematics, 14(4):555–573. Peherstorfer, B. and Willcox, K. (2016). Data-driven operator inference for nonintrusive projection-based model reduction. Computer Methods in Applied Mechanics and Engineering, 306:196–215. Poussot-Vassal, C. and Sipp, D. (2015). Parametric reduced order dynamical model construction of a fluid flow control problem. IFAC-PapersOnLine, 48(26):133–138. Pyta, L., Herty, M., and Abel, D. (2015). Optimal feedback control of the incompressible navier-stokes-equations using reduced order models. In 2015 54th IEEE Conference on Decision and Control (CDC), pages 2519–2524. IEEE. Sachs, E. and Volkwein, S. (2010). Pod-galerkin approximations in pde-constrained optimization. GAMM-Mitteilungen, 33(2):194–208. Simoncini, V., Szyld, D. B., and Monsalve, M. (2013). On two numerical methods for the solution of large-scale algebraic Riccati equations. IMA Journal of Numerical Analysis. Theis, J., Seiler, P., and Werner, H. (2016). Model order reduction by parameter-varying oblique projection. In 2016 American Control Conference (ACC), pages 4586–4591. IEEE. Tissot, G., Cordier, L., and Noack, B. R. (2015). Feedback stabilization of an oscillating vertical cylinder by pod reduced-order model. In Journal of Physics: Conference Series, volume 574, page 012137. IOP Publishing. 46 / 46 Boris Kr¨ amer (University of California San Diego) Operator inference for non-polynomial systems and control

slide-50
SLIDE 50

Wang, X., Li, W.-W., and Dai, L. (2014). On inexact newton methods based on doubling iteration scheme for symmetric algebraic riccati equations. Journal of Computational and Applied Mathematics, 260(0):364 – 374. 46 / 46 Boris Kr¨ amer (University of California San Diego) Operator inference for non-polynomial systems and control