Numerical Optimal Control with DAEs Lecture 11: High-Index DAEs S - - PowerPoint PPT Presentation

numerical optimal control with daes lecture 11 high index
SMART_READER_LITE
LIVE PREVIEW

Numerical Optimal Control with DAEs Lecture 11: High-Index DAEs S - - PowerPoint PPT Presentation

Numerical Optimal Control with DAEs Lecture 11: High-Index DAEs S ebastien Gros AWESCO PhD course 22 nd of February, 2016 S. Gros Optimal Control with DAEs, lecture 11 1 / 25 Objectives of the lecture Why are DAEs not always easyto


slide-1
SLIDE 1

Numerical Optimal Control with DAEs Lecture 11: High-Index DAEs

S´ ebastien Gros

AWESCO PhD course

  • S. Gros

Optimal Control with DAEs, lecture 11 22nd of February, 2016 1 / 25

slide-2
SLIDE 2

Objectives of the lecture

Why are DAEs not always ”easy”to solve ? What is a DAE index ? How does it make the DAE ”easy” or not ? What to do about it ? What happens with DAE models for mechanical systems ? Some possible additional numerical problems

  • S. Gros

Optimal Control with DAEs, lecture 11 22nd of February, 2016 2 / 25

slide-3
SLIDE 3

Outline

1

”Easy” & ”Hard” DAEs

2

Differential Index

3

Index Reduction

4

Constraints drift

  • S. Gros

Optimal Control with DAEs, lecture 11 22nd of February, 2016 3 / 25

slide-4
SLIDE 4

DAE - Easy & Hard DAEs

DAE: F ( ˙ x, x, z, u) = 0 ”At any time instant, for given x, u, the DAE equation provides ˙ x, z, generating the trajectories.”

  • S. Gros

Optimal Control with DAEs, lecture 11 22nd of February, 2016 4 / 25

slide-5
SLIDE 5

DAE - Easy & Hard DAEs

DAE: F ( ˙ x, x, z, u) = 0 ”At any time instant, for given x, u, the DAE equation provides ˙ x, z, generating the trajectories.” What is a ”well-behaved” DAE ? F ( ˙ x, x, z, u) = 0 ... i.e. when can we compute ˙ x, z ”easily” ?

  • S. Gros

Optimal Control with DAEs, lecture 11 22nd of February, 2016 4 / 25

slide-6
SLIDE 6

DAE - Easy & Hard DAEs

DAE: F ( ˙ x, x, z, u) = 0 ”At any time instant, for given x, u, the DAE equation provides ˙ x, z, generating the trajectories.” What is a ”well-behaved” DAE ? F ( ˙ x, x, z, u) = 0 ... i.e. when can we compute ˙ x, z ”easily” ? Consider F ( ˙ x, x, z, u) = 0 as a root-finding problem in ˙ x, z. When can we find ˙ x, z, e.g. using Newton ?

  • S. Gros

Optimal Control with DAEs, lecture 11 22nd of February, 2016 4 / 25

slide-7
SLIDE 7

”Easy” DAEs

Consider the DAE: F ( ˙ x, z, x, u) = 0

  • S. Gros

Optimal Control with DAEs, lecture 11 22nd of February, 2016 5 / 25

slide-8
SLIDE 8

”Easy” DAEs

Consider the DAE: F ( ˙ x, z, x, u) = 0

  • S. Gros

Optimal Control with DAEs, lecture 11 22nd of February, 2016 5 / 25

slide-9
SLIDE 9

”Easy” DAEs

Consider the DAE: F ( ˙ x, z, x, u) = 0 If the matrix:

  • ∂F

∂ ˙ x ∂F ∂z

  • is full-rank at x, u
  • S. Gros

Optimal Control with DAEs, lecture 11 22nd of February, 2016 5 / 25

slide-10
SLIDE 10

”Easy” DAEs

Consider the DAE: F ( ˙ x, z, x, u) = 0 If the matrix:

  • ∂F

∂ ˙ x ∂F ∂z

  • is full-rank at x, u, then there is a function:

˙ x, z = ξ (x, u) such that: F (ξ (x, u) , x, u) = 0 holds in a neighborhood of x, u.

  • S. Gros

Optimal Control with DAEs, lecture 11 22nd of February, 2016 5 / 25

slide-11
SLIDE 11

”Easy” DAEs

Consider the DAE: F ( ˙ x, z, x, u) = 0 If the matrix:

  • ∂F

∂ ˙ x ∂F ∂z

  • is full-rank at x, u, then there is a function:

˙ x, z = ξ (x, u) such that: F (ξ (x, u) , x, u) = 0 holds in a neighborhood of x, u. Proof: from implicit function theorem.

  • S. Gros

Optimal Control with DAEs, lecture 11 22nd of February, 2016 5 / 25

slide-12
SLIDE 12

”Easy” DAEs

Consider the DAE: F ( ˙ x, z, x, u) = 0 If the matrix:

  • ∂F

∂ ˙ x ∂F ∂z

  • is full-rank at x, u, then there is a function:

˙ x, z = ξ (x, u) such that: F (ξ (x, u) , x, u) = 0 holds in a neighborhood of x, u. Proof: from implicit function theorem. Consequence:

  • ∂F

∂ ˙ x ∂F ∂z

  • full-rank at x, u guarantees that the

DAE is ”solvable” at ˙ x, z

  • S. Gros

Optimal Control with DAEs, lecture 11 22nd of February, 2016 5 / 25

slide-13
SLIDE 13

”Easy” DAEs

Consider the DAE: F ( ˙ x, z, x, u) = 0 If the matrix:

  • ∂F

∂ ˙ x ∂F ∂z

  • is full-rank at x, u, then there is a function:

˙ x, z = ξ (x, u) such that: F (ξ (x, u) , x, u) = 0 holds in a neighborhood of x, u. Proof: from implicit function theorem. Classical numerical methods can treat ”easy” DAEs Consequence:

  • ∂F

∂ ˙ x ∂F ∂z

  • full-rank at x, u guarantees that the

DAE is ”solvable” at ˙ x, z

  • S. Gros

Optimal Control with DAEs, lecture 11 22nd of February, 2016 5 / 25

slide-14
SLIDE 14

”Easy” DAEs

Consider the DAE: F ( ˙ x, z, x, u) = 0 If the matrix:

  • ∂F

∂ ˙ x ∂F ∂z

  • is full-rank at x, u, then there is a function:

˙ x, z = ξ (x, u) such that: F (ξ (x, u) , x, u) = 0 holds in a neighborhood of x, u. Proof: from implicit function theorem. Classical numerical methods can treat ”easy” DAEs Consequence:

  • ∂F

∂ ˙ x ∂F ∂z

  • full-rank at x, u guarantees that the

DAE is ”solvable” at ˙ x, z x1 x2 z t

  • S. Gros

Optimal Control with DAEs, lecture 11 22nd of February, 2016 5 / 25

slide-15
SLIDE 15

”Easy” DAEs

Consider the DAE: F ( ˙ x, z, x, u) = 0 If the matrix:

  • ∂F

∂ ˙ x ∂F ∂z

  • is full-rank at x, u, then there is a function:

˙ x, z = ξ (x, u) such that: F (ξ (x, u) , x, u) = 0 holds in a neighborhood of x, u. Proof: from implicit function theorem. Classical numerical methods can treat ”easy” DAEs Consequence:

  • ∂F

∂ ˙ x ∂F ∂z

  • full-rank at x, u guarantees that the

DAE is ”solvable” at ˙ x, z Semi-explicit DAE: ˜ F = ˙ x − F (z, x, u) G (z, x, u)

  • = 0
  • S. Gros

Optimal Control with DAEs, lecture 11 22nd of February, 2016 5 / 25

slide-16
SLIDE 16

”Easy” DAEs

Consider the DAE: F ( ˙ x, z, x, u) = 0 If the matrix:

  • ∂F

∂ ˙ x ∂F ∂z

  • is full-rank at x, u, then there is a function:

˙ x, z = ξ (x, u) such that: F (ξ (x, u) , x, u) = 0 holds in a neighborhood of x, u. Proof: from implicit function theorem. Classical numerical methods can treat ”easy” DAEs Consequence:

  • ∂F

∂ ˙ x ∂F ∂z

  • full-rank at x, u guarantees that the

DAE is ”solvable” at ˙ x, z Semi-explicit DAE: ˜ F = ˙ x − F (z, x, u) G (z, x, u)

  • = 0

Then the matrix:

  • ∂ ˜

F ∂ ˙ x ∂ ˜ F ∂z

  • =
  • I

∂ ˜ F ∂z ∂G ∂z

  • is full-rank if ∂G

∂z is full rank

  • S. Gros

Optimal Control with DAEs, lecture 11 22nd of February, 2016 5 / 25

slide-17
SLIDE 17

”Easy” and ”not easy” DAEs - Some examples

  • S. Gros

Optimal Control with DAEs, lecture 11 22nd of February, 2016 6 / 25

slide-18
SLIDE 18

”Easy” and ”not easy” DAEs - Some examples

F ( ˙ x, x, z) =

  • x − ˙

x + 1 ˙ xz + 2

  • = 0
  • S. Gros

Optimal Control with DAEs, lecture 11 22nd of February, 2016 6 / 25

slide-19
SLIDE 19

”Easy” and ”not easy” DAEs - Some examples

F ( ˙ x, x, z) =

  • x − ˙

x + 1 ˙ xz + 2

  • = 0

Then:

  • ∂F

∂ ˙ x ∂F ∂z

  • =
  • −1

z ˙ x

  • is full rank for ˙

x = 0.

  • S. Gros

Optimal Control with DAEs, lecture 11 22nd of February, 2016 6 / 25

slide-20
SLIDE 20

”Easy” and ”not easy” DAEs - Some examples

F ( ˙ x, x, z) =

  • x − ˙

x + 1 ˙ xz + 2

  • = 0

Then:

  • ∂F

∂ ˙ x ∂F ∂z

  • =
  • −1

z ˙ x

  • is full rank for ˙

x = 0. This is an ”easy” DAE !!

  • S. Gros

Optimal Control with DAEs, lecture 11 22nd of February, 2016 6 / 25

slide-21
SLIDE 21

”Easy” and ”not easy” DAEs - Some examples

F ( ˙ x, x, z) =

  • x − ˙

x + 1 ˙ xz + 2

  • = 0

Then:

  • ∂F

∂ ˙ x ∂F ∂z

  • =
  • −1

z ˙ x

  • is full rank for ˙

x = 0. This is an ”easy” DAE !! Indeed, we can solve it as: ˙ x = x + 1 z = − 2 ˙ x = − 2 x + 1 I.e. we can compute ˙ x, z from x

  • S. Gros

Optimal Control with DAEs, lecture 11 22nd of February, 2016 6 / 25

slide-22
SLIDE 22

”Easy” and ”not easy” DAEs - Some examples

F ( ˙ x, x, z) =

  • x − ˙

x + 1 ˙ xz + 2

  • = 0

Then:

  • ∂F

∂ ˙ x ∂F ∂z

  • =
  • −1

z ˙ x

  • is full rank for ˙

x = 0. This is an ”easy” DAE !! Indeed, we can solve it as: ˙ x = x + 1 z = − 2 ˙ x = − 2 x + 1 I.e. we can compute ˙ x, z from x F ( ˙ x, x, z) =   ˙ x1 − z ˙ x2 − x1 x2 − u   = 0

  • S. Gros

Optimal Control with DAEs, lecture 11 22nd of February, 2016 6 / 25

slide-23
SLIDE 23

”Easy” and ”not easy” DAEs - Some examples

F ( ˙ x, x, z) =

  • x − ˙

x + 1 ˙ xz + 2

  • = 0

Then:

  • ∂F

∂ ˙ x ∂F ∂z

  • =
  • −1

z ˙ x

  • is full rank for ˙

x = 0. This is an ”easy” DAE !! Indeed, we can solve it as: ˙ x = x + 1 z = − 2 ˙ x = − 2 x + 1 I.e. we can compute ˙ x, z from x F ( ˙ x, x, z) =   ˙ x1 − z ˙ x2 − x1 x2 − u   = 0 Then:

  • ∂F

∂ ˙ x1,2 ∂F ∂z

  • =

  1 −1 1   is rank-deficient.

  • S. Gros

Optimal Control with DAEs, lecture 11 22nd of February, 2016 6 / 25

slide-24
SLIDE 24

”Easy” and ”not easy” DAEs - Some examples

F ( ˙ x, x, z) =

  • x − ˙

x + 1 ˙ xz + 2

  • = 0

Then:

  • ∂F

∂ ˙ x ∂F ∂z

  • =
  • −1

z ˙ x

  • is full rank for ˙

x = 0. This is an ”easy” DAE !! Indeed, we can solve it as: ˙ x = x + 1 z = − 2 ˙ x = − 2 x + 1 I.e. we can compute ˙ x, z from x F ( ˙ x, x, z) =   ˙ x1 − z ˙ x2 − x1 x2 − u   = 0 Then:

  • ∂F

∂ ˙ x1,2 ∂F ∂z

  • =

  1 −1 1   is rank-deficient. This is a ”not easy” DAE !! We cannot write ˙ x1,2 and z as functions

  • f x1,2...
  • S. Gros

Optimal Control with DAEs, lecture 11 22nd of February, 2016 6 / 25

slide-25
SLIDE 25

DAE - 3D pendulum

Model is a semi-explicit DAE with x = p v

  • ˙

p ˙ v

  • = ˙

x =

F(x,z,u)

  • v

u m − ge3 − z mp

  • 0 = p⊤p − L2
  • G(x)

O p e1 e2 e3 u

  • S. Gros

Optimal Control with DAEs, lecture 11 22nd of February, 2016 7 / 25

slide-26
SLIDE 26

DAE - 3D pendulum

Model is a semi-explicit DAE with x = p v

  • ˙

p ˙ v

  • = ˙

x =

F(x,z,u)

  • v

u m − ge3 − z mp

  • 0 = p⊤p − L2
  • G(x)

O p e1 e2 e3 u Consider the root-finding problem to be solved in ˙ x, z: r ( ˙ x, x, z, u) = ˙ x − F (x, z, u) G (x)

  • = 0
  • S. Gros

Optimal Control with DAEs, lecture 11 22nd of February, 2016 7 / 25

slide-27
SLIDE 27

DAE - 3D pendulum

Model is a semi-explicit DAE with x = p v

  • ˙

p ˙ v

  • = ˙

x =

F(x,z,u)

  • v

u m − ge3 − z mp

  • 0 = p⊤p − L2
  • G(x)

O p e1 e2 e3 u Consider the root-finding problem to be solved in ˙ x, z: r ( ˙ x, x, z, u) = ˙ x − F (x, z, u) G (x)

  • = 0

Then: ∇ ˙

x,zr⊤ =

  I I p   is rank-deficient. The Newton step does not exist !!

  • S. Gros

Optimal Control with DAEs, lecture 11 22nd of February, 2016 7 / 25

slide-28
SLIDE 28

DAE - 3D pendulum

Model is a semi-explicit DAE with x = p v

  • ˙

p ˙ v

  • = ˙

x =

F(x,z,u)

  • v

u m − ge3 − z mp

  • 0 = p⊤p − L2
  • G(x)

O p e1 e2 e3 u Note that ∂G(x)

∂z

= 0 !! Consider the root-finding problem to be solved in ˙ x, z: r ( ˙ x, x, z, u) = ˙ x − F (x, z, u) G (x)

  • = 0

Then: ∇ ˙

x,zr⊤ =

  I I p   is rank-deficient. The Newton step does not exist !!

  • S. Gros

Optimal Control with DAEs, lecture 11 22nd of February, 2016 7 / 25

slide-29
SLIDE 29

DAE - Delta Robot

Lagrange model yields a semi-explicit DAE with: G (x) =   p − p12 − L2 p − p22 − L2 p − p32 − L2   where pk = Rz

k =

  cos γk sin γk − sin γk cos γk 1     L cos αk L sin αk   using γ1,2,3 =

  • 0, 2π

3 , 4π 3

  • .
  • S. Gros

Optimal Control with DAEs, lecture 11 22nd of February, 2016 8 / 25

slide-30
SLIDE 30

DAE - Delta Robot

Lagrange model yields a semi-explicit DAE with: G (x) =   p − p12 − L2 p − p22 − L2 p − p32 − L2   where pk = Rz

k =

  cos γk sin γk − sin γk cos γk 1     L cos αk L sin αk   using γ1,2,3 =

  • 0, 2π

3 , 4π 3

  • .

Algebraic variables z for the forces in the arms: ∂G (x) ∂z = 0

  • S. Gros

Optimal Control with DAEs, lecture 11 22nd of February, 2016 8 / 25

slide-31
SLIDE 31

DAE - Delta Robot

Lagrange model yields a semi-explicit DAE with: G (x) =   p − p12 − L2 p − p22 − L2 p − p32 − L2   where pk = Rz

k =

  cos γk sin γk − sin γk cos γk 1     L cos αk L sin αk   using γ1,2,3 =

  • 0, 2π

3 , 4π 3

  • .

Algebraic variables z for the forces in the arms: ∂G (x) ∂z = 0 Such that the DAE: ˙ x = F (x, z, u) 0 = G (x) ... cannot be solved for z, because ∂G(x)

∂z

= 0 !!

  • S. Gros

Optimal Control with DAEs, lecture 11 22nd of February, 2016 8 / 25

slide-32
SLIDE 32

DAE from Lagrange Mechanics

Is that a general problem in Lagrange mechanics ? Pretty much ...

  • S. Gros

Optimal Control with DAEs, lecture 11 22nd of February, 2016 9 / 25

slide-33
SLIDE 33

DAE from Lagrange Mechanics

Is that a general problem in Lagrange mechanics ? Pretty much ... The difficulty comes from having holonomic (aka purely position-dependent) constraints: G (q) = 0 which ”hold the system together”.

  • S. Gros

Optimal Control with DAEs, lecture 11 22nd of February, 2016 9 / 25

slide-34
SLIDE 34

DAE from Lagrange Mechanics

Is that a general problem in Lagrange mechanics ? Pretty much ... The difficulty comes from having holonomic (aka purely position-dependent) constraints: G (q) = 0 which ”hold the system together”. Then the Euler-Lagrange equations: d d ∂L ∂ ˙ q − ∂L ∂q = 0 deliver an explicit ODE for the accelerations ¨ q, involving the algebraic variables z.

  • S. Gros

Optimal Control with DAEs, lecture 11 22nd of February, 2016 9 / 25

slide-35
SLIDE 35

DAE from Lagrange Mechanics

Is that a general problem in Lagrange mechanics ? Pretty much ... The difficulty comes from having holonomic (aka purely position-dependent) constraints: G (q) = 0 which ”hold the system together”. Then the Euler-Lagrange equations: d d ∂L ∂ ˙ q − ∂L ∂q = 0 deliver an explicit ODE for the accelerations ¨ q, involving the algebraic variables z. But the forces generated by the algebraic variables z are not defined by the algebraic equations because: ∂G (q) ∂z = 0 and therefore ∂G (x) ∂z = 0

  • S. Gros

Optimal Control with DAEs, lecture 11 22nd of February, 2016 9 / 25

slide-36
SLIDE 36

DAE from Lagrange Mechanics

Is that a general problem in Lagrange mechanics ? Pretty much ... The difficulty comes from having holonomic (aka purely position-dependent) constraints: G (q) = 0 which ”hold the system together”. Then the Euler-Lagrange equations: d d ∂L ∂ ˙ q − ∂L ∂q = 0 deliver an explicit ODE for the accelerations ¨ q, involving the algebraic variables z. But the forces generated by the algebraic variables z are not defined by the algebraic equations because: ∂G (q) ∂z = 0 and therefore ∂G (x) ∂z = 0 What is going on ?!?

  • S. Gros

Optimal Control with DAEs, lecture 11 22nd of February, 2016 9 / 25

slide-37
SLIDE 37

Outline

1

”Easy” & ”Hard” DAEs

2

Differential Index

3

Index Reduction

4

Constraints drift

  • S. Gros

Optimal Control with DAEs, lecture 11 22nd of February, 2016 10 / 25

slide-38
SLIDE 38

DAE - Differential Index

  • S. Gros

Optimal Control with DAEs, lecture 11 22nd of February, 2016 11 / 25

slide-39
SLIDE 39

DAE - Differential Index Definition:

The DAE differential index is the minimum i such that: di dti F ( ˙ x, x, z, u) = 0 is a pure ODE

  • S. Gros

Optimal Control with DAEs, lecture 11 22nd of February, 2016 11 / 25

slide-40
SLIDE 40

DAE - Differential Index Definition:

The DAE differential index is the minimum i such that: di dti F ( ˙ x, x, z, u) = 0 is a pure ODE Example: F ( ˙ x, x) = x1 − ˙ x1 + 1 ˙ x1x2 + 2

  • = 0
  • S. Gros

Optimal Control with DAEs, lecture 11 22nd of February, 2016 11 / 25

slide-41
SLIDE 41

DAE - Differential Index Definition:

The DAE differential index is the minimum i such that: di dti F ( ˙ x, x, z, u) = 0 is a pure ODE Example: F ( ˙ x, x) = x1 − ˙ x1 + 1 ˙ x1x2 + 2

  • = 0

Note that: ∂F ∂ ˙ x = −1 1

  • → this is a DAE
  • S. Gros

Optimal Control with DAEs, lecture 11 22nd of February, 2016 11 / 25

slide-42
SLIDE 42

DAE - Differential Index Definition:

The DAE differential index is the minimum i such that: di dti F ( ˙ x, x, z, u) = 0 is a pure ODE Example: F ( ˙ x, x) = x1 − ˙ x1 + 1 ˙ x1x2 + 2

  • = 0

Note that: ∂F ∂ ˙ x = −1 1

  • → this is a DAE

For i = 1 reads as: ˙ F (¨ x, ˙ x, x) =

  • ˙

x1 − ¨ x1 ¨ x1x2 + ˙ x1 ˙ x2

  • = 0
  • S. Gros

Optimal Control with DAEs, lecture 11 22nd of February, 2016 11 / 25

slide-43
SLIDE 43

DAE - Differential Index Definition:

The DAE differential index is the minimum i such that: di dti F ( ˙ x, x, z, u) = 0 is a pure ODE Example: F ( ˙ x, x) = x1 − ˙ x1 + 1 ˙ x1x2 + 2

  • = 0

Note that: ∂F ∂ ˙ x = −1 1

  • → this is a DAE

For i = 1 reads as: ˙ F (¨ x, ˙ x, x) =

  • ˙

x1 − ¨ x1 ¨ x1x2 + ˙ x1 ˙ x2

  • = 0

Using (to write a 1st-order ODE) s ≡   x1 x2 ˙ x1   we have ˙ F (˙ s, s) =   ˙ s1 − s3 s3 − ˙ s3 ˙ s3s2 + s3 ˙ s2  

  • S. Gros

Optimal Control with DAEs, lecture 11 22nd of February, 2016 11 / 25

slide-44
SLIDE 44

DAE - Differential Index Definition:

The DAE differential index is the minimum i such that: di dti F ( ˙ x, x, z, u) = 0 is a pure ODE Example: F ( ˙ x, x) = x1 − ˙ x1 + 1 ˙ x1x2 + 2

  • = 0

Note that: ∂F ∂ ˙ x = −1 1

  • → this is a DAE

For i = 1 reads as: ˙ F (¨ x, ˙ x, x) =

  • ˙

x1 − ¨ x1 ¨ x1x2 + ˙ x1 ˙ x2

  • = 0

Using (to write a 1st-order ODE) s ≡   x1 x2 ˙ x1   we have ˙ F (˙ s, s) =   ˙ s1 − s3 s3 − ˙ s3 ˙ s3s2 + s3 ˙ s2   And ∂F ∂ ˙ s =   1 −1 s3 s2   , with det ∂F ∂ ˙ s

  • = s3

⇒ now we have an ODE

  • S. Gros

Optimal Control with DAEs, lecture 11 22nd of February, 2016 11 / 25

slide-45
SLIDE 45

DAE - Differential Index Definition:

The DAE differential index is the minimum i such that: di dti F ( ˙ x, x, z, u) = 0 is a pure ODE Example: F ( ˙ x, x) = x1 − ˙ x1 + 1 ˙ x1x2 + 2

  • = 0

Note that: ∂F ∂ ˙ x = −1 1

  • → this is a DAE

For i = 1 reads as: ˙ F (¨ x, ˙ x, x) =

  • ˙

x1 − ¨ x1 ¨ x1x2 + ˙ x1 ˙ x2

  • = 0

Using (to write a 1st-order ODE) s ≡   x1 x2 ˙ x1   we have ˙ F (˙ s, s) =   ˙ s1 − s3 s3 − ˙ s3 ˙ s3s2 + s3 ˙ s2   F is an index-1 DAE And ∂F ∂ ˙ s =   1 −1 s3 s2   , with det ∂F ∂ ˙ s

  • = s3

⇒ now we have an ODE

  • S. Gros

Optimal Control with DAEs, lecture 11 22nd of February, 2016 11 / 25

slide-46
SLIDE 46

DAE - Differential Index

Definition The DAE differential index is the minimum i such that: di dti F ( ˙ x, x, z, u) = 0 is a pure ODE How does the differential index relate to the DAE being ”easy” to solve ??

  • S. Gros

Optimal Control with DAEs, lecture 11 22nd of February, 2016 12 / 25

slide-47
SLIDE 47

DAE - Differential Index

Definition The DAE differential index is the minimum i such that: di dti F ( ˙ x, x, z, u) = 0 is a pure ODE How does the differential index relate to the DAE being ”easy” to solve ?? For an index-1 DAE: d dt F ( ˙ x, x, z, u) = ˙ F = 0 yields a pure ODE.

  • S. Gros

Optimal Control with DAEs, lecture 11 22nd of February, 2016 12 / 25

slide-48
SLIDE 48

DAE - Differential Index

Definition The DAE differential index is the minimum i such that: di dti F ( ˙ x, x, z, u) = 0 is a pure ODE How does the differential index relate to the DAE being ”easy” to solve ?? For an index-1 DAE: d dt F ( ˙ x, x, z, u) = ˙ F = 0 yields a pure ODE. Observe that: d dt F = ˙ F = ∂F ∂ ˙ x ¨ x + ∂F ∂x ˙ x + ∂F ∂z ˙ z + ∂F ∂u ˙ u = 0

  • S. Gros

Optimal Control with DAEs, lecture 11 22nd of February, 2016 12 / 25

slide-49
SLIDE 49

DAE - Differential Index

Definition The DAE differential index is the minimum i such that: di dti F ( ˙ x, x, z, u) = 0 is a pure ODE How does the differential index relate to the DAE being ”easy” to solve ?? For an index-1 DAE: d dt F ( ˙ x, x, z, u) = ˙ F = 0 yields a pure ODE. Observe that: d dt F = ˙ F = ∂F ∂ ˙ x ¨ x + ∂F ∂x ˙ x + ∂F ∂z ˙ z + ∂F ∂u ˙ u = 0 Then the ODE reads as (use v = ˙ x): ˙ x = v ˙ v ˙ z

  • = −
  • ∂F

∂ ˙ x ∂F ∂z

−1 ∂F ∂x ˙ x + ∂F ∂u ˙ u

  • S. Gros

Optimal Control with DAEs, lecture 11 22nd of February, 2016 12 / 25

slide-50
SLIDE 50

DAE - Differential Index

Definition The DAE differential index is the minimum i such that: di dti F ( ˙ x, x, z, u) = 0 is a pure ODE How does the differential index relate to the DAE being ”easy” to solve ?? For an index-1 DAE: d dt F ( ˙ x, x, z, u) = ˙ F = 0 yields a pure ODE. Observe that: d dt F = ˙ F = ∂F ∂ ˙ x ¨ x + ∂F ∂x ˙ x + ∂F ∂z ˙ z + ∂F ∂u ˙ u = 0 Then the ODE reads as (use v = ˙ x): ˙ x = v ˙ v ˙ z

  • = −
  • ∂F

∂ ˙ x ∂F ∂z

−1 ∂F ∂x ˙ x + ∂F ∂u ˙ u

  • An index-1 DAE has
  • ∂F

∂ ˙ x ∂F ∂z

  • full rank and is therefore

”easy” to solve !!

  • S. Gros

Optimal Control with DAEs, lecture 11 22nd of February, 2016 12 / 25

slide-51
SLIDE 51

Semi-explicit DAEs - Differential Index

For a semi-explicit DAE the differential index is the minimum i such that: ˙ x = F (x, z, u) 0 = di dti G (x, z, u) is an ODE

  • S. Gros

Optimal Control with DAEs, lecture 11 22nd of February, 2016 13 / 25

slide-52
SLIDE 52

Semi-explicit DAEs - Differential Index

For a semi-explicit DAE the differential index is the minimum i such that: ˙ x = F (x, z, u) 0 = di dti G (x, z, u) is an ODE Remark: for an index-1 semi-explicit DAE: d dt G (x, z, u) = ∂G ∂x F + ∂G ∂z ˙ z + ∂G ∂u ˙ u = 0 yields a pure ODE.

  • S. Gros

Optimal Control with DAEs, lecture 11 22nd of February, 2016 13 / 25

slide-53
SLIDE 53

Semi-explicit DAEs - Differential Index

For a semi-explicit DAE the differential index is the minimum i such that: ˙ x = F (x, z, u) 0 = di dti G (x, z, u) is an ODE Remark: for an index-1 semi-explicit DAE: d dt G (x, z, u) = ∂G ∂x F + ∂G ∂z ˙ z + ∂G ∂u ˙ u = 0 yields a pure ODE. We have: ˙ z = −∂G ∂z

−1 ∂G

∂x F + ∂G ∂u ˙ u

  • such that ∂G

∂z is full rank !!

  • S. Gros

Optimal Control with DAEs, lecture 11 22nd of February, 2016 13 / 25

slide-54
SLIDE 54

Semi-explicit DAEs - Differential Index

For a semi-explicit DAE the differential index is the minimum i such that: ˙ x = F (x, z, u) 0 = di dti G (x, z, u) is an ODE Remark: for an index-1 semi-explicit DAE: d dt G (x, z, u) = ∂G ∂x F + ∂G ∂z ˙ z + ∂G ∂u ˙ u = 0 yields a pure ODE. We have: ˙ z = −∂G ∂z

−1 ∂G

∂x F + ∂G ∂u ˙ u

  • such that ∂G

∂z is full rank !!

Example: ˙ x1 ˙ x2

  • =

1 x1 x2

  • +

1

  • z

0 = 1 2

  • x2

1 + x2 2 − 1

  • G(x)
  • S. Gros

Optimal Control with DAEs, lecture 11 22nd of February, 2016 13 / 25

slide-55
SLIDE 55

Semi-explicit DAEs - Differential Index

For a semi-explicit DAE the differential index is the minimum i such that: ˙ x = F (x, z, u) 0 = di dti G (x, z, u) is an ODE Remark: for an index-1 semi-explicit DAE: d dt G (x, z, u) = ∂G ∂x F + ∂G ∂z ˙ z + ∂G ∂u ˙ u = 0 yields a pure ODE. We have: ˙ z = −∂G ∂z

−1 ∂G

∂x F + ∂G ∂u ˙ u

  • such that ∂G

∂z is full rank !!

Example: ˙ x1 ˙ x2

  • =

1 x1 x2

  • +

1

  • z

0 = 1 2

  • x2

1 + x2 2 − 1

  • G(x)

Then d dt G = x1x2 + x2z = 0

  • S. Gros

Optimal Control with DAEs, lecture 11 22nd of February, 2016 13 / 25

slide-56
SLIDE 56

Semi-explicit DAEs - Differential Index

For a semi-explicit DAE the differential index is the minimum i such that: ˙ x = F (x, z, u) 0 = di dti G (x, z, u) is an ODE Remark: for an index-1 semi-explicit DAE: d dt G (x, z, u) = ∂G ∂x F + ∂G ∂z ˙ z + ∂G ∂u ˙ u = 0 yields a pure ODE. We have: ˙ z = −∂G ∂z

−1 ∂G

∂x F + ∂G ∂u ˙ u

  • such that ∂G

∂z is full rank !!

Example: ˙ x1 ˙ x2

  • =

1 x1 x2

  • +

1

  • z

0 = 1 2

  • x2

1 + x2 2 − 1

  • G(x)

Then d dt G = x1x2 + x2z = 0 d2 dt2 G = ˙ x1x2 + x1 ˙ x2 + ˙ x2z + x2 ˙ z = 0

  • S. Gros

Optimal Control with DAEs, lecture 11 22nd of February, 2016 13 / 25

slide-57
SLIDE 57

Semi-explicit DAEs - Differential Index

For a semi-explicit DAE the differential index is the minimum i such that: ˙ x = F (x, z, u) 0 = di dti G (x, z, u) is an ODE Remark: for an index-1 semi-explicit DAE: d dt G (x, z, u) = ∂G ∂x F + ∂G ∂z ˙ z + ∂G ∂u ˙ u = 0 yields a pure ODE. We have: ˙ z = −∂G ∂z

−1 ∂G

∂x F + ∂G ∂u ˙ u

  • such that ∂G

∂z is full rank !!

Example: ˙ x1 ˙ x2

  • =

1 x1 x2

  • +

1

  • z

0 = 1 2

  • x2

1 + x2 2 − 1

  • G(x)

Then d dt G = x1x2 + x2z = 0 d2 dt2 G = ˙ x1x2 + x1 ˙ x2 + ˙ x2z + x2 ˙ z = 0 Example is an index-2 DAE

  • S. Gros

Optimal Control with DAEs, lecture 11 22nd of February, 2016 13 / 25

slide-58
SLIDE 58

Differential Index - 3D pendulum

Example: 3D pendulum m¨ p = u − mge3 − zp 0 = 1 2

  • p⊤p − L2
  • G(x)

For a semi-explicit DAE the differential index is the minimum i such that: ˙ x = F (x, z, u) 0 = di dti G (x, z, u) is an ODE O p e1 e2 e3 u

  • S. Gros

Optimal Control with DAEs, lecture 11 22nd of February, 2016 14 / 25

slide-59
SLIDE 59

Differential Index - 3D pendulum

Example: 3D pendulum m¨ p = u − mge3 − zp 0 = 1 2

  • p⊤p − L2
  • G(x)

Perform two time differentiations on G yields: ¨ G = 1 2

  • ¨

p⊤p + p⊤¨ p + 2 ˙ p⊤ ˙ p

  • = p⊤¨

p + ˙ p⊤ ˙ p = 0 For a semi-explicit DAE the differential index is the minimum i such that: ˙ x = F (x, z, u) 0 = di dti G (x, z, u) is an ODE O p e1 e2 e3 u

  • S. Gros

Optimal Control with DAEs, lecture 11 22nd of February, 2016 14 / 25

slide-60
SLIDE 60

Differential Index - 3D pendulum

Example: 3D pendulum m¨ p = u − mge3 − zp 0 = 1 2

  • p⊤p − L2
  • G(x)

Perform two time differentiations on G yields: ¨ G = 1 2

  • ¨

p⊤p + p⊤¨ p + 2 ˙ p⊤ ˙ p

  • = p⊤¨

p + ˙ p⊤ ˙ p = 0 Substitute ¨ p from m¨ p = u − mge3 − zp yields: p⊤ 1 mu − ge3 − 1 m zp

  • + ˙

p⊤ ˙ p = 0 For a semi-explicit DAE the differential index is the minimum i such that: ˙ x = F (x, z, u) 0 = di dti G (x, z, u) is an ODE O p e1 e2 e3 u

  • S. Gros

Optimal Control with DAEs, lecture 11 22nd of February, 2016 14 / 25

slide-61
SLIDE 61

Differential Index - 3D pendulum

Example: 3D pendulum m¨ p = u − mge3 − zp 0 = 1 2

  • p⊤p − L2
  • G(x)

Perform two time differentiations on G yields: ¨ G = 1 2

  • ¨

p⊤p + p⊤¨ p + 2 ˙ p⊤ ˙ p

  • = p⊤¨

p + ˙ p⊤ ˙ p = 0 Substitute ¨ p from m¨ p = u − mge3 − zp yields: p⊤ 1 mu − ge3 − 1 m zp

  • + ˙

p⊤ ˙ p = 0 i.e. z = 1 p⊤p

  • p⊤u − mgp⊤e3 + m ˙

p⊤ ˙ p

  • For a semi-explicit DAE

the differential index is the minimum i such that: ˙ x = F (x, z, u) 0 = di dti G (x, z, u) is an ODE O p e1 e2 e3 u

  • S. Gros

Optimal Control with DAEs, lecture 11 22nd of February, 2016 14 / 25

slide-62
SLIDE 62

Differential Index - 3D pendulum

Example: 3D pendulum m¨ p = u − mge3 − zp 0 = 1 2

  • p⊤p − L2
  • G(x)

Perform two time differentiations on G yields: ¨ G = 1 2

  • ¨

p⊤p + p⊤¨ p + 2 ˙ p⊤ ˙ p

  • = p⊤¨

p + ˙ p⊤ ˙ p = 0 Substitute ¨ p from m¨ p = u − mge3 − zp yields: p⊤ 1 mu − ge3 − 1 m zp

  • + ˙

p⊤ ˙ p = 0 i.e. z = 1 p⊤p

  • p⊤u − mgp⊤e3 + m ˙

p⊤ ˙ p

  • A third time differentiation yields an ODE for z:

˙ z = d dt

  • 1

p⊤p

  • p⊤u − mgp⊤e3 + m ˙

p⊤ ˙ p

  • For a semi-explicit DAE

the differential index is the minimum i such that: ˙ x = F (x, z, u) 0 = di dti G (x, z, u) is an ODE O p e1 e2 e3 u

  • S. Gros

Optimal Control with DAEs, lecture 11 22nd of February, 2016 14 / 25

slide-63
SLIDE 63

Differential Index - 3D pendulum

Example: 3D pendulum m¨ p = u − mge3 − zp 0 = 1 2

  • p⊤p − L2
  • G(x)

Perform two time differentiations on G yields: ¨ G = 1 2

  • ¨

p⊤p + p⊤¨ p + 2 ˙ p⊤ ˙ p

  • = p⊤¨

p + ˙ p⊤ ˙ p = 0 Substitute ¨ p from m¨ p = u − mge3 − zp yields: p⊤ 1 mu − ge3 − 1 m zp

  • + ˙

p⊤ ˙ p = 0 i.e. z = 1 p⊤p

  • p⊤u − mgp⊤e3 + m ˙

p⊤ ˙ p

  • A third time differentiation yields an ODE for z:

˙ z = d dt

  • 1

p⊤p

  • p⊤u − mgp⊤e3 + m ˙

p⊤ ˙ p

  • For a semi-explicit DAE

the differential index is the minimum i such that: ˙ x = F (x, z, u) 0 = di dti G (x, z, u) is an ODE O p e1 e2 e3 u The 3D pendulum in Lagrange is an index-3 DAE !!

  • S. Gros

Optimal Control with DAEs, lecture 11 22nd of February, 2016 14 / 25

slide-64
SLIDE 64

Differential Index - 3D pendulum

Example: 3D pendulum m¨ p = u − mge3 − zp 0 = 1 2

  • p⊤p − L2
  • G(x)

Perform two time differentiations on G yields: ¨ G = 1 2

  • ¨

p⊤p + p⊤¨ p + 2 ˙ p⊤ ˙ p

  • = p⊤¨

p + ˙ p⊤ ˙ p = 0 Assemble: m¨ p + zp = u − mge3 p⊤¨ p = − ˙ p⊤ ˙ p For a semi-explicit DAE the differential index is the minimum i such that: ˙ x = F (x, z, u) 0 = di dti G (x, z, u) is an ODE O p e1 e2 e3 u

  • S. Gros

Optimal Control with DAEs, lecture 11 22nd of February, 2016 14 / 25

slide-65
SLIDE 65

Differential Index - 3D pendulum

Example: 3D pendulum m¨ p = u − mge3 − zp 0 = 1 2

  • p⊤p − L2
  • G(x)

Perform two time differentiations on G yields: ¨ G = 1 2

  • ¨

p⊤p + p⊤¨ p + 2 ˙ p⊤ ˙ p

  • = p⊤¨

p + ˙ p⊤ ˙ p = 0 Assemble: m¨ p + zp = u − mge3 p⊤¨ p = − ˙ p⊤ ˙ p in matrix form yields: mI p p⊤ ¨ p z

  • =

u − mge3 − ˙ p⊤ ˙ p

  • For a semi-explicit DAE

the differential index is the minimum i such that: ˙ x = F (x, z, u) 0 = di dti G (x, z, u) is an ODE O p e1 e2 e3 u

  • S. Gros

Optimal Control with DAEs, lecture 11 22nd of February, 2016 14 / 25

slide-66
SLIDE 66

Differential Index - 3D pendulum

Example: 3D pendulum m¨ p = u − mge3 − zp 0 = 1 2

  • p⊤p − L2
  • G(x)

Perform two time differentiations on G yields: ¨ G = 1 2

  • ¨

p⊤p + p⊤¨ p + 2 ˙ p⊤ ˙ p

  • = p⊤¨

p + ˙ p⊤ ˙ p = 0 Assemble: m¨ p + zp = u − mge3 p⊤¨ p = − ˙ p⊤ ˙ p in matrix form yields: mI p p⊤ ¨ p z

  • =

u − mge3 − ˙ p⊤ ˙ p

  • This is an index-1 (i.e. ”easy”) DAE !!

For a semi-explicit DAE the differential index is the minimum i such that: ˙ x = F (x, z, u) 0 = di dti G (x, z, u) is an ODE O p e1 e2 e3 u

  • S. Gros

Optimal Control with DAEs, lecture 11 22nd of February, 2016 14 / 25

slide-67
SLIDE 67

Differential Index - 3D pendulum

Example: 3D pendulum m¨ p = u − mge3 − zp 0 = 1 2

  • p⊤p − L2
  • G(x)

Perform two time differentiations on G yields: ¨ G = 1 2

  • ¨

p⊤p + p⊤¨ p + 2 ˙ p⊤ ˙ p

  • = p⊤¨

p + ˙ p⊤ ˙ p = 0 Assemble: m¨ p + zp = u − mge3 p⊤¨ p = − ˙ p⊤ ˙ p in matrix form yields: mI p p⊤ ¨ p z

  • =

u − mge3 − ˙ p⊤ ˙ p

  • This is an index-1 (i.e. ”easy”) DAE !!

For a semi-explicit DAE the differential index is the minimum i such that: ˙ x = F (x, z, u) 0 = di dti G (x, z, u) is an ODE O p e1 e2 e3 u We have converted the index-3 DAE into an index-1 DAE !!

  • S. Gros

Optimal Control with DAEs, lecture 11 22nd of February, 2016 14 / 25

slide-68
SLIDE 68

Differential Index - 3D pendulum

Example: 3D pendulum m¨ p = u − mge3 − zp 0 = 1 2

  • p⊤p − L2
  • G(x)

Perform two time differentiations on G yields: ¨ G = 1 2

  • ¨

p⊤p + p⊤¨ p + 2 ˙ p⊤ ˙ p

  • = p⊤¨

p + ˙ p⊤ ˙ p = 0 Transforming a high-index DAE into an equivalent lower-index one is labelled index reduction For a semi-explicit DAE the differential index is the minimum i such that: ˙ x = F (x, z, u) 0 = di dti G (x, z, u) is an ODE O p e1 e2 e3 u We have converted the index-3 DAE into an index-1 DAE !!

  • S. Gros

Optimal Control with DAEs, lecture 11 22nd of February, 2016 14 / 25

slide-69
SLIDE 69

Outline

1

”Easy” & ”Hard” DAEs

2

Differential Index

3

Index Reduction

4

Constraints drift

  • S. Gros

Optimal Control with DAEs, lecture 11 22nd of February, 2016 15 / 25

slide-70
SLIDE 70

DAEs from Lagrange Mechanics

Index-3 DAE from Lagrange: d d ∂L ∂ ˙ q − ∂L ∂q = Fg c (q) = 0 with L (q, ˙ q, z) = T (q, ˙ q) − V (q) − z⊤c (q)

  • S. Gros

Optimal Control with DAEs, lecture 11 22nd of February, 2016 16 / 25

slide-71
SLIDE 71

DAEs from Lagrange Mechanics

Index-3 DAE from Lagrange: d d ∂L ∂ ˙ q − ∂L ∂q = Fg c (q) = 0 with L (q, ˙ q, z) = T (q, ˙ q) − V (q) − z⊤c (q) For most mechanical applications: T (q, ˙ q) = 1 2 ˙ q⊤M(q) ˙ q such that: d d ∂L ∂ ˙ q

= M(q)¨ q + ˙ M(q, ˙ q) ˙ q

  • S. Gros

Optimal Control with DAEs, lecture 11 22nd of February, 2016 16 / 25

slide-72
SLIDE 72

DAEs from Lagrange Mechanics

Index-3 DAE from Lagrange: d d ∂L ∂ ˙ q − ∂L ∂q = Fg c (q) = 0 with L (q, ˙ q, z) = T (q, ˙ q) − V (q) − z⊤c (q) For most mechanical applications: T (q, ˙ q) = 1 2 ˙ q⊤M(q) ˙ q such that: d d ∂L ∂ ˙ q

= M(q)¨ q + ˙ M(q, ˙ q) ˙ q Then the differential part of the DAE model reads as: M(q)¨ q + ˙ M(q, ˙ q) ˙ q − ∇q (T (q, ˙ q) − V (q)) + ∇c (q) z = Fg

  • S. Gros

Optimal Control with DAEs, lecture 11 22nd of February, 2016 16 / 25

slide-73
SLIDE 73

DAEs from Lagrange Mechanics

Index-3 DAE from Lagrange: d d ∂L ∂ ˙ q − ∂L ∂q = Fg c (q) = 0 with L (q, ˙ q, z) = T (q, ˙ q) − V (q) − z⊤c (q) For most mechanical applications: T (q, ˙ q) = 1 2 ˙ q⊤M(q) ˙ q such that: d d ∂L ∂ ˙ q

= M(q)¨ q + ˙ M(q, ˙ q) ˙ q Then the differential part of the DAE model reads as: M(q)¨ q + ˙ M(q, ˙ q) ˙ q − ∇q (T (q, ˙ q) − V (q)) + ∇c (q) z = Fg The 1st and 2nd-order time derivatives of c (q) read as: d dt c (q) = ∇c (q)⊤ ˙ q,

  • S. Gros

Optimal Control with DAEs, lecture 11 22nd of February, 2016 16 / 25

slide-74
SLIDE 74

DAEs from Lagrange Mechanics

Index-3 DAE from Lagrange: d d ∂L ∂ ˙ q − ∂L ∂q = Fg c (q) = 0 with L (q, ˙ q, z) = T (q, ˙ q) − V (q) − z⊤c (q) For most mechanical applications: T (q, ˙ q) = 1 2 ˙ q⊤M(q) ˙ q such that: d d ∂L ∂ ˙ q

= M(q)¨ q + ˙ M(q, ˙ q) ˙ q Then the differential part of the DAE model reads as: M(q)¨ q + ˙ M(q, ˙ q) ˙ q − ∇q (T (q, ˙ q) − V (q)) + ∇c (q) z = Fg The 1st and 2nd-order time derivatives of c (q) read as: d dt c (q) = ∇c (q)⊤ ˙ q, d2 dt2 c (q) = ∇c (q)⊤ ¨ q + ∇q

  • ∇c (q)⊤ ˙

q ⊤ ˙ q

  • S. Gros

Optimal Control with DAEs, lecture 11 22nd of February, 2016 16 / 25

slide-75
SLIDE 75

DAEs from Lagrange Mechanics

Index-3 DAE from Lagrange: d d ∂L ∂ ˙ q − ∂L ∂q = Fg c (q) = 0 with L (q, ˙ q, z) = T (q, ˙ q) − V (q) − z⊤c (q) For most mechanical applications: T (q, ˙ q) = 1 2 ˙ q⊤M(q) ˙ q such that: d d ∂L ∂ ˙ q

= M(q)¨ q + ˙ M(q, ˙ q) ˙ q Then the differential part of the DAE model reads as: M(q)¨ q + ˙ M(q, ˙ q) ˙ q − ∇q (T (q, ˙ q) − V (q)) + ∇c (q) z = Fg The 1st and 2nd-order time derivatives of c (q) read as: d dt c (q) = ∇c (q)⊤ ˙ q, d2 dt2 c (q) = ∇c (q)⊤ ¨ q + ∇q

  • ∇c (q)⊤ ˙

q ⊤ ˙ q Index-1 DAE model:

  • M (q)

∇qc (q) ∇qc (q)⊤ ¨ q z

  • =

Fg − ˙ M(q, ˙ q) ˙ q + ∇q (T (q, ˙ q) − V (q)) −∇q

  • ∇qc (q)⊤ ˙

q ⊤ ˙ q

  • S. Gros

Optimal Control with DAEs, lecture 11 22nd of February, 2016 16 / 25

slide-76
SLIDE 76

DAEs from Lagrange Mechanics

Index-3 DAE from Lagrange: d d ∂L ∂ ˙ q − ∂L ∂q = Fg c (q) = 0 with L (q, ˙ q, z) = T (q, ˙ q) − V (q) − z⊤c (q) For most mechanical applications: T (q, ˙ q) = 1 2 ˙ q⊤M(q) ˙ q such that: d d ∂L ∂ ˙ q

= M(q)¨ q + ˙ M(q, ˙ q) ˙ q Index-1 DAE model:

  • M (q)

∇c (q) ∇c (q)⊤ ¨ q z

  • =

Fg − ˙ M(q, ˙ q) ˙ q + ∇q (T (q, ˙ q) − V (q)) −∇q

  • ∇c (q)⊤ ˙

q ⊤ ˙ q

  • Models based on Lagrange mechanics typically are index-3 DAEs, making them

intrinsically difficult to use. The best approach to treat them is usually to proceed with an index reduction down to index 1 for which very classical integration tools work well.

  • S. Gros

Optimal Control with DAEs, lecture 11 22nd of February, 2016 16 / 25

slide-77
SLIDE 77

Index reduction for semi-explicit DAEs - A general view

High-index semi-explicit DAE ˙ x = F (x, z, u) 0 = G (x, z, u) Algorithm (see ”Nonlinear Programming”, L.T. Biegler)

  • S. Gros

Optimal Control with DAEs, lecture 11 22nd of February, 2016 17 / 25

slide-78
SLIDE 78

Index reduction for semi-explicit DAEs - A general view

High-index semi-explicit DAE ˙ x = F (x, z, u) 0 = G (x, z, u) Algorithm (see ”Nonlinear Programming”, L.T. Biegler)

1

Check if the DAE system is index 1 (i.e.

∂G ∂z full rank).

If yes, stop.

2

Identify a subset of algebraic equations that can be solved for a subset of algebraic variables.

3

Apply

d dt on the remaining algebraic equations that

contain the differential variables xj.

4

Terms ˙ xj will appear in these differentiated equations.

5

Substitute the ˙ xj with Fj (x, z, u). This leads to new algebraic equations.

6

With this new DAE system, go to step 1.

  • S. Gros

Optimal Control with DAEs, lecture 11 22nd of February, 2016 17 / 25

slide-79
SLIDE 79

Index reduction for semi-explicit DAEs - A general view

High-index semi-explicit DAE ˙ x = F (x, z, u) 0 = G (x, z, u) Algorithm (see ”Nonlinear Programming”, L.T. Biegler)

1

Check if the DAE system is index 1 (i.e.

∂G ∂z full rank).

If yes, stop.

2

Identify a subset of algebraic equations that can be solved for a subset of algebraic variables.

3

Apply

d dt on the remaining algebraic equations that

contain the differential variables xj.

4

Terms ˙ xj will appear in these differentiated equations.

5

Substitute the ˙ xj with Fj (x, z, u). This leads to new algebraic equations.

6

With this new DAE system, go to step 1.

  • S. Gros

Optimal Control with DAEs, lecture 11 22nd of February, 2016 17 / 25

slide-80
SLIDE 80

Index reduction for semi-explicit DAEs - A general view

High-index semi-explicit DAE ˙ x = F (x, z, u) 0 = G (x, z, u) Algorithm (see ”Nonlinear Programming”, L.T. Biegler)

1

Check if the DAE system is index 1 (i.e.

∂G ∂z full rank).

If yes, stop.

2

Identify a subset of algebraic equations that can be solved for a subset of algebraic variables.

3

Apply

d dt on the remaining algebraic equations that

contain the differential variables xj.

4

Terms ˙ xj will appear in these differentiated equations.

5

Substitute the ˙ xj with Fj (x, z, u). This leads to new algebraic equations.

6

With this new DAE system, go to step 1. Writing a general-purpose ”Index-reduction algorithm” can be very tricky, as one of the steps is not easily automated

  • S. Gros

Optimal Control with DAEs, lecture 11 22nd of February, 2016 17 / 25

slide-81
SLIDE 81

DAE Consistency - 3D pendulum

Does the index reduction really yield equivalent models ?

O p e1 e2 e3 u

Index-3 DAE m¨ p = u − mge3 − zp 0 = 1 2

  • p⊤p − L2

Index-1 DAE mI p p⊤ ¨ p z

  • =

u − mge3 − ˙ p⊤ ˙ p

  • S. Gros

Optimal Control with DAEs, lecture 11 22nd of February, 2016 18 / 25

slide-82
SLIDE 82

DAE Consistency - 3D pendulum

Does the index reduction really yield equivalent models ?

O p e1 e2 e3 u

Index-3 DAE m¨ p = u − mge3 − zp 0 = 1 2

  • p⊤p − L2

Index-1 DAE mI p p⊤ ¨ p z

  • =

u − mge3 − ˙ p⊤ ˙ p

  • S. Gros

Optimal Control with DAEs, lecture 11 22nd of February, 2016 18 / 25

slide-83
SLIDE 83

DAE Consistency - 3D pendulum

Does the index reduction really yield equivalent models ?

O p e1 e2 e3 u

Index-3 DAE m¨ p = u − mge3 − zp 0 = 1 2

  • p⊤p − L2

Index-1 DAE mI p p⊤ ¨ p z

  • =

u − mge3 − ˙ p⊤ ˙ p

  • What is going on ??
  • S. Gros

Optimal Control with DAEs, lecture 11 22nd of February, 2016 18 / 25

slide-84
SLIDE 84

DAE Consistency - 3D pendulum

Index-3 DAE m¨ p = u − mge3 − zp 0 = 1 2

  • p⊤p − L2
  • S. Gros

Optimal Control with DAEs, lecture 11 22nd of February, 2016 19 / 25

slide-85
SLIDE 85

DAE Consistency - 3D pendulum

Index-3 DAE m¨ p = u − mge3 − zp 0 = 1 2

  • p⊤p − L2

Index reduction c = 1 2

  • p⊤p − L2

˙ c = p⊤ ˙ p ¨ c = p⊤¨ p + ˙ p⊤ ˙ p

  • S. Gros

Optimal Control with DAEs, lecture 11 22nd of February, 2016 19 / 25

slide-86
SLIDE 86

DAE Consistency - 3D pendulum

Index-3 DAE m¨ p = u − mge3 − zp 0 = 1 2

  • p⊤p − L2

Index reduction c = 1 2

  • p⊤p − L2

˙ c = p⊤ ˙ p ¨ c = p⊤¨ p + ˙ p⊤ ˙ p Index-1 DAE mI p p⊤ ¨ p z

  • =

u − mge3 − ˙ p⊤ ˙ p

  • ... is built to impose ¨

c = 0 at all time.

  • S. Gros

Optimal Control with DAEs, lecture 11 22nd of February, 2016 19 / 25

slide-87
SLIDE 87

DAE Consistency - 3D pendulum

Index-3 DAE m¨ p = u − mge3 − zp 0 = 1 2

  • p⊤p − L2

Index reduction c = 1 2

  • p⊤p − L2

˙ c = p⊤ ˙ p ¨ c = p⊤¨ p + ˙ p⊤ ˙ p Index-1 DAE mI p p⊤ ¨ p z

  • =

u − mge3 − ˙ p⊤ ˙ p

  • ... is built to impose ¨

c = 0 at all time. But it does not ensure ˙ c = 0 and c = 0 !!

  • S. Gros

Optimal Control with DAEs, lecture 11 22nd of February, 2016 19 / 25

slide-88
SLIDE 88

DAE Consistency - 3D pendulum

Index-3 DAE m¨ p = u − mge3 − zp 0 = 1 2

  • p⊤p − L2

Index reduction c = 1 2

  • p⊤p − L2

˙ c = p⊤ ˙ p ¨ c = p⊤¨ p + ˙ p⊤ ˙ p Index-1 DAE mI p p⊤ ¨ p z

  • =

u − mge3 − ˙ p⊤ ˙ p

  • ... is built to impose ¨

c = 0 at all time. But it does not ensure ˙ c = 0 and c = 0 !!

5 10 1 2 3 4 5 10

  • 0.5

0.5

c ˙ c t t

  • S. Gros

Optimal Control with DAEs, lecture 11 22nd of February, 2016 19 / 25

slide-89
SLIDE 89

DAE Consistency - 3D pendulum

Index-3 DAE m¨ p = u − mge3 − zp 0 = 1 2

  • p⊤p − L2

Index reduction c = 1 2

  • p⊤p − L2

˙ c = p⊤ ˙ p ¨ c = p⊤¨ p + ˙ p⊤ ˙ p Index-1 DAE mI p p⊤ ¨ p z

  • =

u − mge3 − ˙ p⊤ ˙ p

  • ... is built to impose ¨

c = 0 at all time. But it does not ensure ˙ c = 0 and c = 0 !! How can we address that ??

5 10 1 2 3 4 5 10

  • 0.5

0.5

c ˙ c t t

  • S. Gros

Optimal Control with DAEs, lecture 11 22nd of February, 2016 19 / 25

slide-90
SLIDE 90

DAE Consistency - 3D pendulum

Index-1 DAE mI p p⊤ ¨ p z

  • =

u − mge3 − ˙ p⊤ ˙ p

  • ... is built to impose ¨

c = 0 at all time.

5 10 1 2 3 4 5 10

  • 0.5

0.5

c ˙ c t t

  • S. Gros

Optimal Control with DAEs, lecture 11 22nd of February, 2016 20 / 25

slide-91
SLIDE 91

DAE Consistency - 3D pendulum

Index-1 DAE mI p p⊤ ¨ p z

  • =

u − mge3 − ˙ p⊤ ˙ p

  • ... is built to impose ¨

c = 0 at all time. Then if c = 0 and ˙ c = 0 are satisfied at any time on the trajectory, then they are satisfied at all time.

5 10 1 2 3 4 5 10

  • 0.5

0.5

c ˙ c t t

  • S. Gros

Optimal Control with DAEs, lecture 11 22nd of February, 2016 20 / 25

slide-92
SLIDE 92

DAE Consistency - 3D pendulum

Index-1 DAE mI p p⊤ ¨ p z

  • =

u − mge3 − ˙ p⊤ ˙ p

  • ... is built to impose ¨

c = 0 at all time. Then if c = 0 and ˙ c = 0 are satisfied at any time on the trajectory, then they are satisfied at all time. An index-reduced DAE must come with consistency

  • conditions. E.g. for the 3D pendulum, the index-1

DAE should be given as: mI p p⊤ ¨ p z

  • =

u − mge3 − ˙ p⊤ ˙ p

  • 5

10 1 2 3 4 5 10

  • 0.5

0.5

c ˙ c t t

  • S. Gros

Optimal Control with DAEs, lecture 11 22nd of February, 2016 20 / 25

slide-93
SLIDE 93

DAE Consistency - 3D pendulum

Index-1 DAE mI p p⊤ ¨ p z

  • =

u − mge3 − ˙ p⊤ ˙ p

  • ... is built to impose ¨

c = 0 at all time. Then if c = 0 and ˙ c = 0 are satisfied at any time on the trajectory, then they are satisfied at all time. An index-reduced DAE must come with consistency

  • conditions. E.g. for the 3D pendulum, the index-1

DAE should be given as: mI p p⊤ ¨ p z

  • =

u − mge3 − ˙ p⊤ ˙ p

  • with the consistency conditions:

c = 1 2

  • p⊤p − L2

= 0, ˙ c = p⊤ ˙ p = 0 ... to be satisfied e.g. at t0.

5 10 1 2 3 4 5 10

  • 0.5

0.5

c ˙ c t t

  • S. Gros

Optimal Control with DAEs, lecture 11 22nd of February, 2016 20 / 25

slide-94
SLIDE 94

DAE Consistency - 3D pendulum

Index-1 DAE mI p p⊤ ¨ p z

  • =

u − mge3 − ˙ p⊤ ˙ p

  • ... is built to impose ¨

c = 0 at all time. Then if c = 0 and ˙ c = 0 are satisfied at any time on the trajectory, then they are satisfied at all time. An index-reduced DAE must come with consistency

  • conditions. E.g. for the 3D pendulum, the index-1

DAE should be given as: mI p p⊤ ¨ p z

  • =

u − mge3 − ˙ p⊤ ˙ p

  • with the consistency conditions:

c = 1 2

  • p⊤p − L2

= 0, ˙ c = p⊤ ˙ p = 0 ... to be satisfied e.g. at t0.

5 10 1 2 3 4 5 10

  • 0.5

0.5

c ˙ c t t

  • S. Gros

Optimal Control with DAEs, lecture 11 22nd of February, 2016 20 / 25

slide-95
SLIDE 95

Consistency of DAEs from Lagrange Mechanics

Index-3 DAE from Lagrange: d d ∂L ∂ ˙ q − ∂L ∂q = Fg c (q) = 0 with L (q, ˙ q, z) = T (q, ˙ q) − V (q) − z⊤c (q) For most mechanical applications: T (q, ˙ q) = 1 2 ˙ q⊤M(q) ˙ q Index reduction based on: d dt c (q) = ∇c (q)⊤ ˙ q and d2 dt2 c (q) = ∇c (q)⊤ ¨ q + ∇q

  • ∇c (q)⊤ ˙

q ⊤ ˙ q Index-1 DAE model:

  • M (q)

∇qc (q) ∇qc (q)⊤ ¨ q z

  • =

Fg − ˙ M(q, ˙ q) ˙ q + ∇q (T (q, ˙ q) − V (q)) −∇q

  • ∇c (q)⊤ ˙

q ⊤ ˙ q

  • S. Gros

Optimal Control with DAEs, lecture 11 22nd of February, 2016 21 / 25

slide-96
SLIDE 96

Consistency of DAEs from Lagrange Mechanics

Index-3 DAE from Lagrange: d d ∂L ∂ ˙ q − ∂L ∂q = Fg c (q) = 0 with L (q, ˙ q, z) = T (q, ˙ q) − V (q) − z⊤c (q) For most mechanical applications: T (q, ˙ q) = 1 2 ˙ q⊤M(q) ˙ q Index reduction based on: d dt c (q) = ∇c (q)⊤ ˙ q and d2 dt2 c (q) = ∇c (q)⊤ ¨ q + ∇q

  • ∇c (q)⊤ ˙

q ⊤ ˙ q Index-1 DAE model:

  • M (q)

∇qc (q) ∇qc (q)⊤ ¨ q z

  • =

Fg − ˙ M(q, ˙ q) ˙ q + ∇q (T (q, ˙ q) − V (q)) −∇q

  • ∇c (q)⊤ ˙

q ⊤ ˙ q

  • with the consistency conditions:

c (q) = 0 and d dt c (q) = ∇c (q)⊤ ˙ q

  • S. Gros

Optimal Control with DAEs, lecture 11 22nd of February, 2016 21 / 25

slide-97
SLIDE 97

Outline

1

”Easy” & ”Hard” DAEs

2

Differential Index

3

Index Reduction

4

Constraints drift

  • S. Gros

Optimal Control with DAEs, lecture 11 22nd of February, 2016 22 / 25

slide-98
SLIDE 98

Constraints drift - 3D pendulum

Index-1 DAE mI p p⊤ ¨ p z

  • =

u − mge3 − ˙ p⊤ ˙ p

  • ... is built to impose ¨

c = 0 at all time. Then if c = 0 and ˙ c = 0 are satisfied at any time on the trajectory, then they are satisfied at all time.

5 10 1 2 3 4 5 10

  • 0.5

0.5

c ˙ c t t

  • S. Gros

Optimal Control with DAEs, lecture 11 22nd of February, 2016 23 / 25

slide-99
SLIDE 99

Constraints drift - 3D pendulum

Index-1 DAE mI p p⊤ ¨ p z

  • =

u − mge3 − ˙ p⊤ ˙ p

  • ... is built to impose ¨

c = 0 at all time. Then if c = 0 and ˙ c = 0 are satisfied at any time on the trajectory, then they are satisfied at all time. Index-1 DAE: mI p p⊤ ¨ p z

  • =

u − mge3 − ˙ p⊤ ˙ p

  • 5

10 1 2 3 4 5 10

  • 0.5

0.5

c ˙ c t t

  • S. Gros

Optimal Control with DAEs, lecture 11 22nd of February, 2016 23 / 25

slide-100
SLIDE 100

Constraints drift - 3D pendulum

Index-1 DAE mI p p⊤ ¨ p z

  • =

u − mge3 − ˙ p⊤ ˙ p

  • ... is built to impose ¨

c = 0 at all time. Then if c = 0 and ˙ c = 0 are satisfied at any time on the trajectory, then they are satisfied at all time. Index-1 DAE: mI p p⊤ ¨ p z

  • =

u − mge3 − ˙ p⊤ ˙ p

  • with the consistency conditions:

c = 1 2

  • p⊤p − L2

= 0, ˙ c = p⊤ ˙ p = 0 ... imposed at e.g. t0.

5 10 1 2 3 4 5 10

  • 0.5

0.5

c ˙ c t t

  • S. Gros

Optimal Control with DAEs, lecture 11 22nd of February, 2016 23 / 25

slide-101
SLIDE 101

Constraints drift - 3D pendulum

Index-1 DAE mI p p⊤ ¨ p z

  • =

u − mge3 − ˙ p⊤ ˙ p

  • ... is built to impose ¨

c = 0 at all time. Then if c = 0 and ˙ c = 0 are satisfied at any time on the trajectory, then they are satisfied at all time. Index-1 DAE: mI p p⊤ ¨ p z

  • =

u − mge3 − ˙ p⊤ ˙ p

  • with the consistency conditions:

c = 1 2

  • p⊤p − L2

= 0, ˙ c = p⊤ ˙ p = 0 ... imposed at e.g. t0.

50 100 0.2 0.4 0.6 0.8 1 50 100 ×10-3

  • 5

5 10 15 20

c ˙ c t t

  • S. Gros

Optimal Control with DAEs, lecture 11 22nd of February, 2016 23 / 25

slide-102
SLIDE 102

Constraints drift - 3D pendulum

Index-1 DAE mI p p⊤ ¨ p z

  • =

u − mge3 − ˙ p⊤ ˙ p

  • ... is built to impose ¨

c = 0 at all time. Then if c = 0 and ˙ c = 0 are satisfied at any time on the trajectory, then they are satisfied at all time. Index-1 DAE: mI p p⊤ ¨ p z

  • =

u − mge3 − ˙ p⊤ ˙ p

  • with the consistency conditions:

c = 1 2

  • p⊤p − L2

= 0, ˙ c = p⊤ ˙ p = 0 ... imposed at e.g. t0. With consistent initial conditions, c = 0 and ˙ c = 0 would be satisfied at all time if we had no numerical error in the integration !!

50 100 0.2 0.4 0.6 0.8 1 50 100 ×10-3

  • 5

5 10 15 20

c ˙ c t t

  • S. Gros

Optimal Control with DAEs, lecture 11 22nd of February, 2016 23 / 25

slide-103
SLIDE 103

Baumgartne stabilization of the constraints drift

Index-1 DAE: mI p p⊤ ¨ p z

  • =

u − mge3 − ˙ p⊤ ˙ p

  • with the consistency conditions:

c = 1 2

  • p⊤p − L2

= 0, ˙ c = p⊤ ˙ p = 0 ... imposed at t0. Why does the drift happen: ¨ c = 0 has marginally stable dynamics (c is two integrations of ¨ c hence two poles at 0).

50 100 0.2 0.4 0.6 0.8 1 50 100 ×10-3

  • 5

5 10 15 20

c ˙ c t t

  • S. Gros

Optimal Control with DAEs, lecture 11 22nd of February, 2016 24 / 25

slide-104
SLIDE 104

Baumgartne stabilization of the constraints drift

Index-1 DAE: mI p p⊤ ¨ p z

  • =

u − mge3 − ˙ p⊤ ˙ p

  • with the consistency conditions:

c = 1 2

  • p⊤p − L2

= 0, ˙ c = p⊤ ˙ p = 0 ... imposed at t0. Why does the drift happen: ¨ c = 0 has marginally stable dynamics (c is two integrations of ¨ c hence two poles at 0). Key idea: impose a stable dynamics to the constraints

50 100 0.2 0.4 0.6 0.8 1 50 100 ×10-3

  • 5

5 10 15 20

c ˙ c t t

  • S. Gros

Optimal Control with DAEs, lecture 11 22nd of February, 2016 24 / 25

slide-105
SLIDE 105

Baumgartne stabilization of the constraints drift

Index-1 DAE: mI p p⊤ ¨ p z

  • =

u − mge3 − ˙ p⊤ ˙ p

  • with the consistency conditions:

c = 1 2

  • p⊤p − L2

= 0, ˙ c = p⊤ ˙ p = 0 ... imposed at t0. Why does the drift happen: ¨ c = 0 has marginally stable dynamics (c is two integrations of ¨ c hence two poles at 0). Key idea: impose a stable dynamics to the constraints, build the index-1 DAE to impose: ¨ c + γ1 ˙ c + γ0c = 0

50 100 0.2 0.4 0.6 0.8 1 50 100 ×10-3

  • 5

5 10 15 20

c ˙ c t t

  • S. Gros

Optimal Control with DAEs, lecture 11 22nd of February, 2016 24 / 25

slide-106
SLIDE 106

Baumgartne stabilization of the constraints drift

Index-1 DAE: mI p p⊤ ¨ p z

  • =

u − mge3 − ˙ p⊤ ˙ p

  • with the consistency conditions:

c = 1 2

  • p⊤p − L2

= 0, ˙ c = p⊤ ˙ p = 0 ... imposed at t0. Why does the drift happen: ¨ c = 0 has marginally stable dynamics (c is two integrations of ¨ c hence two poles at 0). Key idea: impose a stable dynamics to the constraints, build the index-1 DAE to impose: ¨ c + γ1 ˙ c + γ0c = 0 E.g. for the 3D pendulum: p⊤¨ p + ˙ p⊤ ˙ p + γ1p⊤ ˙ p + γ2 2

  • p⊤p − L2

= 0

50 100 0.2 0.4 0.6 0.8 1 50 100 ×10-3

  • 5

5 10 15 20

c ˙ c t t

  • S. Gros

Optimal Control with DAEs, lecture 11 22nd of February, 2016 24 / 25

slide-107
SLIDE 107

Baumgartne stabilization of the constraints drift

Index-1 DAE: mI p p⊤ ¨ p z

  • =

u − mge3 − ˙ p⊤ ˙ p

  • with the consistency conditions:

c = 1 2

  • p⊤p − L2

= 0, ˙ c = p⊤ ˙ p = 0 ... imposed at t0. Why does the drift happen: ¨ c = 0 has marginally stable dynamics (c is two integrations of ¨ c hence two poles at 0). Index-1 DAE with stabilization: mI p p⊤ ¨ p z

  • =
  • u − mge3

− ˙ p⊤ ˙ p − γ1p⊤ ˙ p − γ2

2

  • p⊤p − L2
  • 50

100 0.2 0.4 0.6 0.8 1 50 100 ×10-3

  • 5

5 10 15 20

c ˙ c t t

  • S. Gros

Optimal Control with DAEs, lecture 11 22nd of February, 2016 24 / 25

slide-108
SLIDE 108

Baumgartne stabilization of the constraints drift

Index-1 DAE: mI p p⊤ ¨ p z

  • =

u − mge3 − ˙ p⊤ ˙ p

  • with the consistency conditions:

c = 1 2

  • p⊤p − L2

= 0, ˙ c = p⊤ ˙ p = 0 ... imposed at t0. Why does the drift happen: ¨ c = 0 has marginally stable dynamics (c is two integrations of ¨ c hence two poles at 0). Index-1 DAE with stabilization: mI p p⊤ ¨ p z

  • =
  • u − mge3

− ˙ p⊤ ˙ p − γ1p⊤ ˙ p − γ2

2

  • p⊤p − L2
  • 50

100 ×10-4

  • 2

2 4 6 8 50 100 ×10-3

  • 1
  • 0.5

0.5 1

c ˙ c t t E.g. poles at −1

  • S. Gros

Optimal Control with DAEs, lecture 11 22nd of February, 2016 24 / 25

slide-109
SLIDE 109

Baumgartne stabilization of the constraints drift

Index-1 DAE: mI p p⊤ ¨ p z

  • =

u − mge3 − ˙ p⊤ ˙ p

  • with the consistency conditions:

c = 1 2

  • p⊤p − L2

= 0, ˙ c = p⊤ ˙ p = 0 ... imposed at t0. Why does the drift happen: ¨ c = 0 has marginally stable dynamics (c is two integrations of ¨ c hence two poles at 0). The Baumgartne stabilization must be used carefully ! Fast poles introduce stiffness in the dynamics The interaction between the stabilization and the integrator error is non-trivial...

50 100 ×10-4

  • 2

2 4 6 8 50 100 ×10-3

  • 1
  • 0.5

0.5 1

c ˙ c t t E.g. poles at −1

  • S. Gros

Optimal Control with DAEs, lecture 11 22nd of February, 2016 24 / 25

slide-110
SLIDE 110

A related problem - Invariants in ODEs

Consistency & drift are not DAE-specific.

  • S. Gros

Optimal Control with DAEs, lecture 11 22nd of February, 2016 25 / 25

slide-111
SLIDE 111

A related problem - Invariants in ODEs

Consistency & drift are not DAE-specific. Simple ODEs ˙ x = F (x, u) model a physical reality. Some ODEs are representative only when some consistency conditions: c (x) = 0 are satisfied.

  • S. Gros

Optimal Control with DAEs, lecture 11 22nd of February, 2016 25 / 25

slide-112
SLIDE 112

A related problem - Invariants in ODEs

Consistency & drift are not DAE-specific. Simple ODEs ˙ x = F (x, u) model a physical reality. Some ODEs are representative only when some consistency conditions: c (x) = 0 are satisfied. ODEs with consistency conditions occur when one defines a state-space that holds more dimensions than the physical reality it represents !!

  • S. Gros

Optimal Control with DAEs, lecture 11 22nd of February, 2016 25 / 25

slide-113
SLIDE 113

A related problem - Invariants in ODEs

Consistency & drift are not DAE-specific. Simple ODEs ˙ x = F (x, u) model a physical reality. Some ODEs are representative only when some consistency conditions: c (x) = 0 are satisfied. ODEs with consistency conditions occur when one defines a state-space that holds more dimensions than the physical reality it represents !! Why more states than needed ? Simpler, less nonlinear models (this is lifting !!) Singularity-free rotations (more on that soon)

  • S. Gros

Optimal Control with DAEs, lecture 11 22nd of February, 2016 25 / 25

slide-114
SLIDE 114

A related problem - Invariants in ODEs

Consistency & drift are not DAE-specific. Simple ODEs ˙ x = F (x, u) model a physical reality. Some ODEs are representative only when some consistency conditions: c (x) = 0 are satisfied. ODEs with consistency conditions occur when one defines a state-space that holds more dimensions than the physical reality it represents !! Why more states than needed ? Simpler, less nonlinear models (this is lifting !!) Singularity-free rotations (more on that soon) ODEs with consistency conditions suffer from the same potential drift problem as index-reduced DAEs, and can be treated using the same remedies.

  • S. Gros

Optimal Control with DAEs, lecture 11 22nd of February, 2016 25 / 25

slide-115
SLIDE 115

A related problem - Invariants in ODEs

Consistency & drift are not DAE-specific. Simple ODEs ˙ x = F (x, u) model a physical reality. Some ODEs are representative only when some consistency conditions: c (x) = 0 are satisfied. ODEs with consistency conditions occur when one defines a state-space that holds more dimensions than the physical reality it represents !! Why more states than needed ? Simpler, less nonlinear models (this is lifting !!) Singularity-free rotations (more on that soon) ODEs with consistency conditions suffer from the same potential drift problem as index-reduced DAEs, and can be treated using the same remedies. This is often not an issue in Optimal Control (reasonably short simulation horizons), but long simulations may require some care.

  • S. Gros

Optimal Control with DAEs, lecture 11 22nd of February, 2016 25 / 25

slide-116
SLIDE 116

A related problem - Invariants in ODEs

Consistency & drift are not DAE-specific. Simple ODEs ˙ x = F (x, u) model a physical reality. Some ODEs are representative only when some consistency conditions: c (x) = 0 are satisfied. ODEs with consistency conditions occur when one defines a state-space that holds more dimensions than the physical reality it represents !! Why more states than needed ? Simpler, less nonlinear models (this is lifting !!) Singularity-free rotations (more on that soon) ODEs with consistency conditions suffer from the same potential drift problem as index-reduced DAEs, and can be treated using the same remedies. This is often not an issue in Optimal Control (reasonably short simulation horizons), but long simulations may require some care. Not covered in this course but good to know: Symplectic integrators (for handling drift)

  • S. Gros

Optimal Control with DAEs, lecture 11 22nd of February, 2016 25 / 25