A Symbolic Approach for Solving Algebraic Riccati Equations G. - - PowerPoint PPT Presentation

a symbolic approach for solving algebraic riccati
SMART_READER_LITE
LIVE PREVIEW

A Symbolic Approach for Solving Algebraic Riccati Equations G. - - PowerPoint PPT Presentation

Algebraic Riccati Equations for the optimal control problem A new algebraic description The case of 3 order systems A practical example Conclusion and persp A Symbolic Approach for Solving Algebraic Riccati Equations G. Rance, Y. Bouzidi, Al.


slide-1
SLIDE 1

Algebraic Riccati Equations for the optimal control problem A new algebraic description The case of 3 order systems A practical example Conclusion and persp

A Symbolic Approach for Solving Algebraic Riccati Equations

  • G. Rance, Y. Bouzidi, Al. Quadrat, Ar. Quadrat

Journées Nationales de Calcul Formel Monday, January 22th 2018

JNCF 2018 Yacine Bouzidi A Symbolic Approach for Solving Algebraic Riccati Equations 1 / 27

slide-2
SLIDE 2

Algebraic Riccati Equations for the optimal control problem A new algebraic description The case of 3 order systems A practical example Conclusion and persp

Overview

1 Algebraic Riccati Equations for the optimal control problem 2 A new algebraic description 3 The case of 3 order systems 4 A practical example 5 Conclusion and perspectives

JNCF 2018 Yacine Bouzidi A Symbolic Approach for Solving Algebraic Riccati Equations 2 / 27

slide-3
SLIDE 3

Algebraic Riccati Equations for the optimal control problem A new algebraic description The case of 3 order systems A practical example Conclusion and persp

Overview

1 Algebraic Riccati Equations for the optimal control problem 2 A new algebraic description 3 The case of 3 order systems 4 A practical example 5 Conclusion and perspectives

JNCF 2018 Yacine Bouzidi A Symbolic Approach for Solving Algebraic Riccati Equations 3 / 27

slide-4
SLIDE 4

Algebraic Riccati Equations for the optimal control problem A new algebraic description The case of 3 order systems A practical example Conclusion and persp

The linear optimal control problem

Input : a linear dynamical system

  • ˙

x(t) = A x(t) + B u(t) x(0) = x0 where x(t) ∈ Rn the state vector, u(t) ∈ Rm the control vector A (resp. B) is an n × n (resp. n × m) real matrix Output : a control u that stabilizes the system and minimizes a quadratic cost functional 1 2

+∞

[x(t)T Q x(t) + u(t)T R u(t)]d t where Q (resp. R) is a positive semi-definite (resp. positive definite) symmetric real matrix. Goal : Achieve a control reference using the minimum energy

JNCF 2018 Yacine Bouzidi A Symbolic Approach for Solving Algebraic Riccati Equations 4 / 27

slide-5
SLIDE 5

Algebraic Riccati Equations for the optimal control problem A new algebraic description The case of 3 order systems A practical example Conclusion and persp

Optimal control : mathematical simplifications

Let introduce the Lagrange multiplier λ = (λ1, . . . , λn) and the following functional 1 2

  • +∞

[x(t)T Q x(t) + u(t)T R u(t)−λ(t)(˙ x(t) − A x(t) − B u(t))]d t By a variation computation, the problem is reduced to solving the following OD systems

  • ˙

λ(t)T + AT λ(t)T + Q x(t) = 0, ˙ x(t) − A x(t) − B u(t) = 0, R u(t) + BT λ(t)T = 0.

u = −R−1 BT λ(t)T

− − − − − − − − − − →

  • ˙

x(t) = A x(t) − B R−1 BT λ(t)T , ˙ λ(t)T = −Q x(t) − AT λ(t)T . If we seek for a solution of the form λ(t)T = P(t) x(t), P(t) must satisfy the differential equation ˙ P = A P + AT P + P B R−1 BT PT + Q If we consider a constant matrix P, this yields the following algebraic equation A P + AT P + P B R−1 BT PT + Q = 0 The optimal control is then given as u(t) = −R−1 BT P x(t)

JNCF 2018 Yacine Bouzidi A Symbolic Approach for Solving Algebraic Riccati Equations 5 / 27

slide-6
SLIDE 6

Algebraic Riccati Equations for the optimal control problem A new algebraic description The case of 3 order systems A practical example Conclusion and persp

Algebraic Riccati Equations

An Algebraic Riccati Equation is the following quadratic matrix equation AT X + X A + X B R−1 BT X + Q = 0 (1) where A is a real n × n matrix and Q, R are real symmetric n × n matrices Solving Algebraic Riccati Equations

  • Computing all the solutions X of (1)
  • Computing specific solutions of (1) : real, hermitian, positive definite...
  • A positive definite solution is stabilizing

Algebraic Riccati Equations are fundamental in many linear control theory problems (Estimation, Filtering, Robust control,...)

JNCF 2018 Yacine Bouzidi A Symbolic Approach for Solving Algebraic Riccati Equations 6 / 27

slide-7
SLIDE 7

Algebraic Riccati Equations for the optimal control problem A new algebraic description The case of 3 order systems A practical example Conclusion and persp

Riccati Equations and invariant subspaces

Solutions of (1) can be constructed in term of the invariant subspaces of the following 2n × 2n Hamiltonian matrix H :=

A

−B R−1 BT −Q −AT

  • Theorem [Zhou et al. (1996)]

Let V ⊂ C2n be an n-dimensional invariant subspace of H and let X1, X2 ∈ Cn×n be two complex matrices such that V = Im

X1

X2

  • If X1 is invertible, then X := X2 X −1

1

is a solution of the Riccati Equation (1). Invariant subspaces can be obtained via eigenvalues and eigenvectors computation

JNCF 2018 Yacine Bouzidi A Symbolic Approach for Solving Algebraic Riccati Equations 7 / 27

slide-8
SLIDE 8

Algebraic Riccati Equations for the optimal control problem A new algebraic description The case of 3 order systems A practical example Conclusion and persp

The spectral factorization problem

The spectrum of H is symmetric with respect to the real and imaginary axis If we consider the characteristic polynomial of H f (λ) = det(H − λ I2n) Then f (λ) = f (−λ) Invariant subspaces can be obtained by computing factorizations of the form f (λ) = g(λ) g(−λ) where g(λ) ∈ C[λ] This problem is known as the spectral factorization problem

JNCF 2018 Yacine Bouzidi A Symbolic Approach for Solving Algebraic Riccati Equations 8 / 27

slide-9
SLIDE 9

Algebraic Riccati Equations for the optimal control problem A new algebraic description The case of 3 order systems A practical example Conclusion and persp

The problem under consideration

nth order Single Input (u) Single Output (y) systems

  • ˙

x = A x + B u y = C x

A :=

      

1 . . . 1 ... . . . . . . . . . ... ... . . . 1 −a0 −a1 . . . −an−2 −an−1

      

B := (0 . . . 0 1)T C := (c0 . . . cn−1)

where a := (a0, · · · , an−1), c := (c0, · · · , cn−1) are unknown parameters. Goal : Compute a closed loop control u that stabilizes y and minimizes 1 2

+∞

[y(t)2 + u(t)2]dt This control will depend on the parameters a,c observe the effect of parameters on the optimization problem !

JNCF 2018 Yacine Bouzidi A Symbolic Approach for Solving Algebraic Riccati Equations 9 / 27

slide-10
SLIDE 10

Algebraic Riccati Equations for the optimal control problem A new algebraic description The case of 3 order systems A practical example Conclusion and persp

The problem under consideration

This yields the following Algebraic Riccati Equation R := X A + AT X − X B BT X + CT C = 0 (2) where X is a symmetric matrix Theorem [Zhou et al. (1996)] If the pair (A, C) is observable, then The positive definite solution X of (2) is unique The positive definite solution X of (2) is a stabilizing solution Goal : Compute the positive definite solution of (2)

JNCF 2018 Yacine Bouzidi A Symbolic Approach for Solving Algebraic Riccati Equations 10 / 27

slide-11
SLIDE 11

Algebraic Riccati Equations for the optimal control problem A new algebraic description The case of 3 order systems A practical example Conclusion and persp

Overview

1 Algebraic Riccati Equations for the optimal control problem 2 A new algebraic description 3 The case of 3 order systems 4 A practical example 5 Conclusion and perspectives

JNCF 2018 Yacine Bouzidi A Symbolic Approach for Solving Algebraic Riccati Equations 11 / 27

slide-12
SLIDE 12

Algebraic Riccati Equations for the optimal control problem A new algebraic description The case of 3 order systems A practical example Conclusion and persp

Algebraic description

R = 0 ⇔ n(n+1)

2

polynomial equations of n(n+1)

2

unknowns Noting X = (xi,j) then n(n−1)

2

elements of R yields xi,j = xi−1,j+1 + f (ak, ck, xk,n|k = 1 · · · n) Recursion → xi,j = f (ak, ck, xk,n|k = 1 · · · n) Two halting conditions :

  • Strictly above the anti-diagonal → First row
  • Below the anti-diagonal → Last column

JNCF 2018 Yacine Bouzidi A Symbolic Approach for Solving Algebraic Riccati Equations 12 / 27

slide-13
SLIDE 13

Algebraic Riccati Equations for the optimal control problem A new algebraic description The case of 3 order systems A practical example Conclusion and persp

Algebraic description

For k = 1 . . . n, we set xk,0 = x0,k := 0, and for (i, j) ∈ N2, we define :

N(i, j) := i − 1,

2 ≤ i + j ≤ n + 1 (stly. above anti-diag.) N(i, j) := n − j + 1, n + 1 < i + j ≤ 2 n + 1 (below anti-diag.) The elements of X solution of R = 0 are determined only by the bk’s xk,n = bk−1 − ak−1 (last column of X) xi,j−1 =

N(i,j)

  • k=0

(−1)k bi−1−k bj−1+k − θN(i,j) where 1 ≤ k ≤ n, 1 ≤ i < j ≤ n, and θm is defined by : θm :=

m

  • k=0

(−1)k ai−1−k aj−1+k + ci−1−k cj−1+k

  • The number of variables is now equal to n

JNCF 2018 Yacine Bouzidi A Symbolic Approach for Solving Algebraic Riccati Equations 13 / 27

slide-14
SLIDE 14

Algebraic Riccati Equations for the optimal control problem A new algebraic description The case of 3 order systems A practical example Conclusion and persp

A new polynomial system

Polynomial system of n equations in bk B :=

    

B0 := b2

0 − d0 = 0,

Bk := b2

k + 2 M(k)

  • m=1

(−1)mbk−m bk+m − d2k = 0, 1 ≤ k ≤ n − 1 where the constants d2k are defined by

        

d0 := a2

0 + c2

d2k := 2

M(k)

  • m=1

(−1)m (ak−m ak+m + ck−m ck+m) + a2

k + c2 k ,

d2n := 1 Theorem - [Rance et al. (2016)] The polynomial system B = {B0, · · · , Bn−1}

  • is a reduced Gröbner basis of the ideal B w.r.t. the DRL order bn−1 ≻ . . . ≻ b0
  • has generically 2n distinct complex solutions

JNCF 2018 Yacine Bouzidi A Symbolic Approach for Solving Algebraic Riccati Equations 14 / 27

slide-15
SLIDE 15

Algebraic Riccati Equations for the optimal control problem A new algebraic description The case of 3 order systems A practical example Conclusion and persp

Relation with the spectral factorization

Find the solutions via invariant spaces of the Hamiltonian H :=

  • A

−B BT −CT C −AT

  • ∈ Q(a0, . . . , an−1, c0, . . . , cn−1)2n×2n.

f (λ) is the characteristic polynomial of H f (λ) = (−1)n

n

  • k=0

n

  • l=0

(−1)k(cl ck + al ak)λl+k. Theorem -[Rance et al. (2016)] Let f (λ) = g(λ) g(−λ) be a factorization of f , where g(λ) :=

n

  • k=0

bk λk. The equations that stems from the equality are those in B Theorem - [Kanno et al. (2009)] X > 0 ⇔ σ := max{bn−1 ∈ R | solution of B}

JNCF 2018 Yacine Bouzidi A Symbolic Approach for Solving Algebraic Riccati Equations 15 / 27

slide-16
SLIDE 16

Algebraic Riccati Equations for the optimal control problem A new algebraic description The case of 3 order systems A practical example Conclusion and persp

Some interesting properties

Theorem - [Rance et al. (2016)] The polynomial ideal generated by B is in shape position with respect to any variable bn−k where k is odd. Our proof is based on the spectral factorization formulation Moreover, the system has certain symmetries that should be identified (Ongoing work)

JNCF 2018 Yacine Bouzidi A Symbolic Approach for Solving Algebraic Riccati Equations 16 / 27

slide-17
SLIDE 17

Algebraic Riccati Equations for the optimal control problem A new algebraic description The case of 3 order systems A practical example Conclusion and persp

Parametrization of the solutions of B

Next step : parametrize the solutions of B

  • Generically, the system B can be written in the following form :

      

P(bn−1) = 0, bn−2 = fn−2(bn−1), · · · b0 = f0(bn−1), Solving computing the roots of P(bn−1) + substitution in the fi Study the maximum real root of P(bn−1) with respect to the parameters Some theoretical and practical barriers

  • Size of expressions grows exponentially

→ limited to low order systems

  • Degrees of polynomials grows exponentially

→ No closed-form solutions for high order systems ⇒ Interest in small order systems

JNCF 2018 Yacine Bouzidi A Symbolic Approach for Solving Algebraic Riccati Equations 17 / 27

slide-18
SLIDE 18

Algebraic Riccati Equations for the optimal control problem A new algebraic description The case of 3 order systems A practical example Conclusion and persp

Overview

1 Algebraic Riccati Equations for the optimal control problem 2 A new algebraic description 3 The case of 3 order systems 4 A practical example 5 Conclusion and perspectives

JNCF 2018 Yacine Bouzidi A Symbolic Approach for Solving Algebraic Riccati Equations 18 / 27

slide-19
SLIDE 19

Algebraic Riccati Equations for the optimal control problem A new algebraic description The case of 3 order systems A practical example Conclusion and persp

Small order systems - n = 3

B :=

  

B0 := b2

0 − d0 = 0

⇒ b0 completely determined B1 := b2

1 − 2 b0 b2−d2 = 0

B2 := b2

2 − 2 b1−d4 = 0

⇒ b1 = 1

2 (b2 2 − d4)

B1 ⇒ univariate polynomial P in b2 P(b2) := b4

2 − 2 d4 b2 2 − 8 b0 b2 + d2 4 − 4 d2 = 0

Its roots are b2(ε) = ε1 1

2

√ 2 u + ε2 1

2

√∆2 with

  

ε1 := ±1, ε2 := ±1, ε := (ε1, ε2), p2 := 4 d2 − 4

3 d2 4 ,

q2 := 8

3 d2 d4 − 16 27 d3 4 − 8 b2 0,

            

α :=

  • −27 q2+

27(4 p3

2+27 q2 2)

2

1/3

u := 1

3

  • α − 3 p2

α + 2 d4

  • ,

∆2 := 2

  • 2 d4 + ε1

8 b0 √ 2 u − u

  • .

Determine X > 0 : which root is the greatest ?

JNCF 2018 Yacine Bouzidi A Symbolic Approach for Solving Algebraic Riccati Equations 19 / 27

slide-20
SLIDE 20

Algebraic Riccati Equations for the optimal control problem A new algebraic description The case of 3 order systems A practical example Conclusion and persp

Discriminants of univariate polynomials

Choosing b2,max ⇔ Computing the discriminant of P Discriminant of a quadratic polynomial Let P(x) = x2 + a x + b, x ∈ R, (a, b) ∈ R2. The discriminant of P is defined by : ∆(a, b) = a2 − 4 b. Roots of P : x1,2 = −a ±

  • ∆(a, b).

⇒ When ∆(a, b) = 0, x1 and x2 are crossing !

JNCF 2018 Yacine Bouzidi A Symbolic Approach for Solving Algebraic Riccati Equations 20 / 27

slide-21
SLIDE 21

Algebraic Riccati Equations for the optimal control problem A new algebraic description The case of 3 order systems A practical example Conclusion and persp

Using the Discriminants of univariate polynomials

Exemple of a second order polynomial P(x) = x2 + a x + b = 0 discx(P) = a2 − 4 b x1,2(a, b) = −a ±

  • discx(P)

Red cell : x1,2(0, 1) = ±2 i ∈ C Blue cell : x1,2(0, −1) = ±2 ∈ R Discriminant of P(b2) := b4

2 − 2 d4 b2 2 − 8 b0 b2 + d2 4 − 4 d2

We apply the same reasoning to P(b2) to prove that σ = 1 2 √ 2 u + 1 2

  • ∆2

is the maximal real root of P for any values of the parameters.

JNCF 2018 Yacine Bouzidi A Symbolic Approach for Solving Algebraic Riccati Equations 21 / 27

slide-22
SLIDE 22

Algebraic Riccati Equations for the optimal control problem A new algebraic description The case of 3 order systems A practical example Conclusion and persp

Overview

1 Algebraic Riccati Equations for the optimal control problem 2 A new algebraic description 3 The case of 3 order systems 4 A practical example 5 Conclusion and perspectives

JNCF 2018 Yacine Bouzidi A Symbolic Approach for Solving Algebraic Riccati Equations 22 / 27

slide-23
SLIDE 23

Algebraic Riccati Equations for the optimal control problem A new algebraic description The case of 3 order systems A practical example Conclusion and persp

A practical example

Two-mass-spring system : c := k m1 m2 a2 := m1 + m2 m1 m2 k G := y1 e1 = c0 s2(s2 + a2) X :=

   

b0 b1 b0 b2 b0 b3 b0 b0 b2 b1 b2 − b0 b3 b1 b3 − b0 b1 b0 b3 b1 b3 − b0 b2 b3 − b1 b2 − a2 b0 b1 b2 − a2 b3

   

B ⇒

      

B0 := b2

0 − c2 0 = 0

B1 := b2

1 − 2 b0 b2 = 0

B2 := b2

2 − 2 b1 b3 + 2 b0 − a2 2 = 0

B3 := b2

3 − 2 b2 + 2 a2 = 0 JNCF 2018 Yacine Bouzidi A Symbolic Approach for Solving Algebraic Riccati Equations 23 / 27

slide-24
SLIDE 24

Algebraic Riccati Equations for the optimal control problem A new algebraic description The case of 3 order systems A practical example Conclusion and persp

A practical example

  • A parametrization of B is easily found :

          

b0 = c0 b1 = b4

3 + 4 a2 b2 3 + 8 c0

8 b3 b2 = 1

2 b2 3 + a2

P(b3) := b8

3 + 8 a2 b6 3 + 16 (a2 2 − 3 c0) b4 3 − 64 a2 c0 b2 3 + 64 c2 0 = 0

  • P is of degree 4 ⇒ symbolic
  • Positive definite solution is given by X(σ) where :

σ := √ 2

  • 2 c0 − a2
  • +
  • 2 c0 − a2

2

+ 2 c0

  • In this case : X(c0, a2)

JNCF 2018 Yacine Bouzidi A Symbolic Approach for Solving Algebraic Riccati Equations 24 / 27

slide-25
SLIDE 25

Algebraic Riccati Equations for the optimal control problem A new algebraic description The case of 3 order systems A practical example Conclusion and persp

Overview

1 Algebraic Riccati Equations for the optimal control problem 2 A new algebraic description 3 The case of 3 order systems 4 A practical example 5 Conclusion and perspectives

JNCF 2018 Yacine Bouzidi A Symbolic Approach for Solving Algebraic Riccati Equations 25 / 27

slide-26
SLIDE 26

Algebraic Riccati Equations for the optimal control problem A new algebraic description The case of 3 order systems A practical example Conclusion and persp

Conclusion and perspectives

  • Contributions :
  • Symbolic techniques in automatic control problems to handle parameters
  • Closed form control with respect to the parameters
  • Also used for H∞ control
  • Ongoing work :
  • Study the symmetries of the systems that stem from the Riccati Equations
  • Extension to higher order systems work with implicit equations
  • Extension to MIMO systems

JNCF 2018 Yacine Bouzidi A Symbolic Approach for Solving Algebraic Riccati Equations 26 / 27

slide-27
SLIDE 27

Algebraic Riccati Equations for the optimal control problem A new algebraic description The case of 3 order systems A practical example Conclusion and persp

Thank you for your attention

JNCF 2018 Yacine Bouzidi A Symbolic Approach for Solving Algebraic Riccati Equations 27 / 27

slide-28
SLIDE 28

Algebraic Riccati Equations for the optimal control problem A new algebraic description The case of 3 order systems A practical example Conclusion and persp

  • H. Anai, S. Hara, M. Kanno, K. Yokoyama.

Parametric polynomial factorization using the sum of roots and its application to a control design problem.

  • J. Symb. Comp., 44 (2009), 703–725.
  • F. Êoulier, C. Chen, Changbo, F. Lemaire, M. Moreno Maza.

Real root isolation of regular chains. Asian Symposium on Computer Mathematics, R. Feng et al. (eds.), Springer, 2009, 33–48. Jin-San Cheng, Xiao-Shan Gao, Chee-Keng Yap. Complete numerical isolation of real roots in zero-dimensional triangular systems.

  • J. Symb. Comp., 44 (2009), 768–785.
  • D. Cox, J. Little, D. O’Shea.

Ideals, Varieties, and Algorithms Springer 2015.

  • G. Collins, A. Akritas.

Polynomial real roots isolation using Descartes’ rule of signs. SYMSAC, 1976, 272–275. J.C. Faugère, P. Gianni, D. Lazard, T. Mora. Efficient computation of Zero-dimensional Gröbner Bases by change of ordering

  • J. Symb. Comp., 1994.
  • M. D. Darmian, A. Hashemi.

JNCF 2018 Yacine Bouzidi A Symbolic Approach for Solving Algebraic Riccati Equations 27 / 27

slide-29
SLIDE 29

Algebraic Riccati Equations for the optimal control problem A new algebraic description The case of 3 order systems A practical example Conclusion and persp

Parametric FGLM algorithm.

  • J. Symb. Comp., 2017.
  • K. Forsman, J. Eriksson.

Solving the ARE symbolically. CDC 1993.

  • K. Glover, D. C. McFarlane.

Robust stabilization of normalized coprime factor plant descriptions with H∞-bounded uncertainty. IEEE Trans. Automat. Contr., 34 (1989), 821–830.

  • M. Kanno, S. Hara.

Symbolic-numeric hybrid optimization for plant/controller integrated design in H∞ loop-shaping design. Journal of Math-for-Industry, 4 (2012), 135–140.

  • M. Kanno, K. Yokoyama, H. Hanai, S. Hara.

Solution of algebraic Riccati equations using the sum of roots. ISSAC 2009, 215–222.

  • D. Lazard, F. Rouillier.

Solving Parametric Polynomial Systems 2007 J. Symb. Comp., 42 (2007), 636–667.

  • G. Rance, Y. Bouzidi, A. Quadrat, A. Quadrat.

A symbolic-numeric method for the parametric H∞ loop-shaping design problem MTNS 2016.

JNCF 2018 Yacine Bouzidi A Symbolic Approach for Solving Algebraic Riccati Equations 27 / 27

slide-30
SLIDE 30

Algebraic Riccati Equations for the optimal control problem A new algebraic description The case of 3 order systems A practical example Conclusion and persp

  • F. Rouillier.

Solving zero-dimensional systems through the Rational Univariate Representation. Applicable Algebra in Engineering Commutication and Computing, 9 (1999), 433–461.

  • F. Rouillier.

Algorithmes pour l’étude des solutions réelles des systèmes polynomiaux. Habilitation thesis , 2007.

  • F. Rouillier, P. Zimmerman.

Efficient isolation of polynomial’s real roots.

  • J. Comput. Applied Mathematics, 162 (2004), 33- 50.

J.P. Tignol. Galois’ Theory of Algebraic Equations. World Scientific, 2002.

JNCF 2018 Yacine Bouzidi A Symbolic Approach for Solving Algebraic Riccati Equations 27 / 27

slide-31
SLIDE 31

Algebraic Riccati Equations for the optimal control problem A new algebraic description The case of 3 order systems A practical example Conclusion and persp

  • G. Vinnicombe.

Uncertainty and Feedback − H∞ Loop-shaping and the µ-gap metric. Imperial College Press, 2001.

  • B. Wie, D. S. Bernstein.

A benchmark problem for robust control design.

  • J. Guidance, Control, and Dynamics, 15, (1992), 1057–1059.
  • K. Zhou, J.C. Doyle, K. Glover.

Robust and Optimal Control. Prentice-Hall, 1996.

JNCF 2018 Yacine Bouzidi A Symbolic Approach for Solving Algebraic Riccati Equations 27 / 27