Академический Документы
Профессиональный Документы
Культура Документы
7. Model reduction
8. Conclusions of Part I
The port-Hamiltonian approach to physical system modeling and control, Namur, November, 2008 3
ẋ = f (x) + g(x)u, u ∈ Rm
Σ:
y = h(x), y ∈ Rm
h(x) = g T (x) ∂H
∂x (x)
ẋ = (J − R)Qx + Bu, J = −J T , R = RT ≥ 0
y = B T Qx,
ẋ = J(x) ∂H
∂x (x) + g(x)u
y = g T (x) ∂H
∂x (x)
∂H
with J(x) = −J T (x) and ∂x (x) the column vector of partial
derivatives. Note that
∂H
ẋ = J(x) (x)
∂x
is the internal Hamiltonian dynamics known from physics, which in
classical mechanics can be written as
∂H
q̇ = ∂p (q, p)
ṗ = − ∂H
∂q (q, p)
ẋ = [J(x) − R(x)] ∂H
∂x (x) + g(x)u
y = g T (x) ∂H
∂x (x)
d ∂T H ∂H
H=− (x)R(x) (x) + uT y ≤ uT y
dt ∂x ∂x
The port-Hamiltonian approach to physical system modeling and control, Namur, November, 2008 8
d
H ≤ uT y
dt
The feedback interconnection of two passive systems
d d
dt H1 ≤ uT1 y1 , dt H2 ≤ uT2 y2
u1 = −y2 + v1 , u2 = y1 + v2
d
(H1 + H2 ) ≤ uT1 y1 + uT2 y2 = v1T y1 + v2T y2
dt
The port-Hamiltonian approach to physical system modeling and control, Namur, November, 2008 10
ẋi = fi , i = 1, · · · , k
∂H
ei = ∂xi (x1 , · · · , xk )
d
Pk
dt H = i=1 fi ei
ẋ = f
∂H
e = ∂x (x)
q̇ = fs = velocity
dHs
es = dq (q) = kq = force
1 2
• Mass Hamiltonian Hm (p) = 2m p (kinetic energy)
ṗ = fm = force
dHm p
em = dp (p) = m = velocity
The port-Hamiltonian approach to physical system modeling and control, Namur, November, 2008 13
interconnected by
fs = em = y, fm = −es + u
h i ∂H (q, p)
y = 0 1 ∂q
∂H
∂p (q, p)
with
H(q, p) = Hs (q) + Hm (p)
The port-Hamiltonian approach to physical system modeling and control, Namur, November, 2008 14
dR 1 2
ed = = cfd , R(fd ) = cfd (Rayleigh function)
dfd 2
fs = em = fd = y, fm = es − ed + u
∂H
q̇ 0 1 0 ∂q (q, p, φ) 0
ṗ = −1 0
∂H
∂H
0 ∂p (q, p, φ)
0 V,
+ I= (q, p, φ)
∂ϕ
ϕ̇ 0 0 − R1 ∂H
∂ϕ (q, p, φ) 1
Coupling electrical/mechanical domain via Hamiltonian H(q, p, φ).
The port-Hamiltonian approach to physical system modeling and control, Namur, November, 2008 16
L1 L2
C
ϕ1 Q ϕ2
V
Capacitor Q̇ = f3 (current)
∂H3
(voltage) e3 = ∂Q
If the elements are linear then the Hamiltonians are quadratic, e.g.
ϕ1
H1 (ϕ1 ) = 2L1 1 ϕ21 , and ∂H
∂ϕ1
1
= L1 = current , etc.
The port-Hamiltonian approach to physical system modeling and control, Namur, November, 2008 18
(f a , ea ), (f b , eb ) ∈ V × V ∗ .
The port-Hamiltonian approach to physical system modeling and control, Namur, November, 2008 21
ẋ fx f
H D(x)
∂H ex e
∂x (x)
Figure 2: Port-Hamiltonian system
e = g T (x) ∂H
∂x (x), e ∈ Rm
The port-Hamiltonian approach to physical system modeling and control, Namur, November, 2008 25
AT (q)q̇ = 0.
∂H
q̇ = ∂p (q, p)
ṗ = − ∂H
∂q (q, p) + A(q)λ + B(q)u
0 = AT (q) ∂H
∂p (q, p)
y = B T (q) ∂H
∂p (q, p)
∂H
ẋ = J (x)
∂x
with constant or ’ integrable’J - matrix admits coordinates
x = (q, p, r) in which
0 I 0 q̇ = ∂H∂p (q, p, r)
J = −I 0 0 , ∂H
ṗ = − ∂q (q, p, r)
0 0 0 ṙ = 0
For constant or integrable Dirac structure one gets Hamiltonian
DAEs
q̇ = ∂H∂p (q, p, r, s)
ṗ = − ∂H
∂q (q, p, r, s)
ṙ = 0
∂H
0 = ∂s (q, p, r, s)
The port-Hamiltonian approach to physical system modeling and control, Namur, November, 2008 28
• Multi-physics approach.
• Suited to design/control.
fa fb
ea eb
a b
Figure 3: Simplest example: Transmission line
fa,b eE|a,b
=
ea,b eM |a,b
The port-Hamiltonian approach to physical system modeling and control, Namur, November, 2008 33
Q ∂H
eE = C = ∂Q
∂H
e =
eM = ϕ
= ∂H x ∂x
L ∂ϕ
1 Q2 1 ϕ2
H(Q, ϕ) = +
2 C 2 L
we recover the telegrapher’s equations.
The port-Hamiltonian approach to physical system modeling and control, Namur, November, 2008 34
∂2Q ∂ ∂I ∂ ∂ φ
∂t2 = − ∂z ∂t = − ∂z ∂t L =
2
∂ 1 ∂φ ∂ 1 ∂ Q 1 ∂ Q
− ∂z L ∂t = ∂z L ∂z C = LC ∂z 2
Basic question:
with h(z, t) the height of the water at position z , and v(z, t) the
velocity (and g gravitational constant).
This can be written as a port-Hamiltonian system by recognizing
the total energy
b
1
Z
H(h, v) = [hv 2 + gh2 ]dz
2 a
The port-Hamiltonian approach to physical system modeling and control, Namur, November, 2008 36
eh = ∂H
∂h = 12 v 2 + gh Bernoulli function
∂H
ev = ∂v = hv mass flow
∂h ∂ ∂H
∂t (z, t) = − ∂z ∂v
∂v ∂ ∂H
∂t (z, t) = − ∂z ∂h
Conservation laws
∂α1 ∂ ∂H ∂
∂t (z, t) = − ∂z ∂α2 = − ∂z β2
∂α2 ∂ ∂H ∂
∂t (z, t) = − ∂z ∂α1 = − ∂z β1
d
Rb Rb ∂
dt a
α1 = − β
a ∂z 2
= β2 (a) − β2 (b)
d
Rb Rb ∂
dt a
α2 = − β
a ∂z 1
= β1 (a) − β1 (b)
with
1 2
β1 = v + gh, β2 = hv
2
being the Bernoulli function and mass flow, respectively.
√
This corresponds to two characteristic velocities v ± gh, which
are, like in the transmission line case, of opposite sign (subcritical
or fluvial flow) if
v 2 ≤ gh
Because the Hamiltonian is non-quadratic, and thus the pde’s are
nonlinear, the characteristic curves may intersect, corresponding
to shock waves.
The port-Hamiltonian approach to physical system modeling and control, Namur, November, 2008 42
L D Il
Vl
E S C VC = VL line R
+ L − D
+
+ +
E S C R
− −
−
iS
6iD 6
vS
-
−vD
-
vD iD = 0, vD ≤ 0, iD ≥ 0.
The port-Hamiltonian approach to physical system modeling and control, Namur, November, 2008 46
φL
I = L
Assume that the switch and the diode are coupled in the following
sense: if the switch is closed (s = 1) then the diode is open
(iD = 0), while if the switch is open (s = 0), then the diode is
closed (vD = 0). (This means that we disregard the so-called
discontinuous modes.)
The port-Hamiltonian approach to physical system modeling and control, Namur, November, 2008 47
∂H qC
h i
∂qC = C φL
I = 0 1 φL
=
L
∂H
∂φL = L
∂H
ẋ = F (ρ)z + g(ρ)u, z= ∂x (x)
y = g T (ρ)z
d ∂T H ∂H
H=− (x)R(ρ) (x) + uT y ≤ uT y
dt ∂x ∂x
The port-Hamiltonian approach to physical system modeling and control, Namur, November, 2008 49
Figure 9: Kirchhoff
∂ : Λ1 → Λ0
d : Λ0 → Λ1
∂I = 0
V ∈ im d
V = dφ
DI = 0, V = DT φ
The port-Hamiltonian approach to physical system modeling and control, Namur, November, 2008 54
Open graphs
An open graph G is obtained from an ordinary graph with set of
nodes N by identifying a subset Ne ⊂ N of external nodes. The
remaining subset Ni := N − Ne are the internal nodes of the open
graph.
Kirchhoff’s current laws now take the form
Ie
∂I + =0
0
if Gconsists
For example, of two connected components, then the
11 0
vectors and span the kernel of D T . This implies that both
0 11
the sum of the external currents belonging to the first component
as well as the sum of the external currents of the second
component are equal to zero.
The port-Hamiltonian approach to physical system modeling and control, Namur, November, 2008 60
where Vne := φne − φn̄ and Ine denote the voltage, respectively
current, over the virtual edge towards the external node ne .
Thus the incoming power is rewritten as a product of external
currents and voltages.
The port-Hamiltonian approach to physical system modeling and control, Namur, November, 2008 61
N̄ ⊂ NeA ∩ NeB
NiA ∪ NiB ∪ N̄
(NeA − N̄ ) ∪ (NeB − N̄ )
The port-Hamiltonian approach to physical system modeling and control, Namur, November, 2008 63
satisfies 11 ◦ ∂ = 0.
The ’algebraic-topological invariants’ of this 1-complex (the
so-called Betti numbers) are nothing else than the number of
connected components.
The port-Hamiltonian approach to physical system modeling and control, Namur, November, 2008 64
∂k ∂k−1 ∂ ∂
Λk → Λk−1 → · · · Λ1 →1 Λ0 →0 0
∂j−1 ◦ ∂j = 0, j = 1, · · · , k
dj ◦ dj−1 = 0, j = 2, · · · , k
BK (Λ) := {(α, β) ∈ Λk × Λk |
∂k α = 0, ∃φ ∈ Λk−1 s.t. β = dk φ}
< β | α >k = 0
for every (α, β) ∈ BK (Λ), where < · | · >k denotes the duality product
between the dual linear spaces Λk and Λk .
The port-Hamiltonian approach to physical system modeling and control, Namur, November, 2008 67
Open k -complexes
β = dk φ,
Similar to graphs it follows that the Kirchhoff current laws for open
k -complexes Dke α = −αe imply certain constraints for the external
’currents’ αe . Indeed, by the fact that
∂k−1 ◦ ∂k = 0
it follows that
D(k−1)e αe = 0
fx = −dk f, fx ∈ Λk , f ∈ Λk−1
e = ∂k ex , ex ∈ Λk , e ∈ Λk−1
The port-Hamiltonian approach to physical system modeling and control, Namur, November, 2008 71
f = −Re, R = RT ≥ 0
∂H
ẋ = −dk e = dk R f = −dk R ∂k (x), x ∈ Λk
∂x
with the property that
dH ∂H T ∂H
= −(∂k (x)) R ∂k (x) ≤ 0
dt ∂x ∂x
The port-Hamiltonian approach to physical system modeling and control, Namur, November, 2008 72
∂H
Imposing the same storage relations fx = −ẋ, ex = ∂x (x) and
resistive relations f = −Re we arrive at
ẋ = −drk R ∂kr ∂H b
∂x (x) + dk fb
eb = ∂kb ∂H
∂x (x)
h i ∂kr
where we have split dk as dk = drk dbk and ∂k = .
∂kb
This defines a port-Hamiltonian system with inputs fb and
outputs eb .
The port-Hamiltonian approach to physical system modeling and control, Namur, November, 2008 74
f ∈ Λ1
describing the heat flux through every 1-cell (edge). This flux
arises from thermal non-equilibrium, defined by the fact that the
temperature is varying over the 2-cells.
Its conjugate vector of variables is the thermodynamical driving
force vector
e ∈ Λ1
e = ∂2 eu
The port-Hamiltonian approach to physical system modeling and control, Namur, November, 2008 76
du
= d2 f
dt
Hence the resulting system is a port-Hamiltonian system (of
relaxation type) defined on the 2-complex, with vector of state
variables x given by the internal energy vector u, and Hamiltonian
s(u).
By the different sign the entropy s(u) satisfies
ds ∂s ∂s
= (∂2 (u))T R(eu )∂2 (u) ≥ 0
dt ∂u ∂u
The port-Hamiltonian approach to physical system modeling and control, Namur, November, 2008 77
∂H
ẋ2 = ∂k ∂x 1 2
1 (x , x )
ṗi = ui , i = 1, · · · , n
pi
with pi denoting their momenta, and vi = m i
their velocities.
Suppose v̄ is a desired joint velocity vector, and moreover, we want
their position vectors qi converge to a certain desired formation,
e.g. (for n = 3)
q̇i = ξi + v̄
ξ˙i = fi
and use
(D T ⊗ I3 )(q̇) = (D T ⊗ I3 )(ξ)
f := −(D ⊗ I3 )(ψ)
Controllability analysis
ẋ = F Qx + Bu, F := J − R, J = −J T , R = RT ≥ 0
y = B T Qx, Q = QT ≥ 0
h i Q11 Q12 x1
y = B1T B2T
Q21 Q22 x2
−1
Now solve for Q21 as Q21 = −F22 F21 Q11 . This yields
−1
ẋ1 = (F11 − F12 F22 F21 )Q11 x1 + B1 u
y = B1T Q11 x1
Observability analysis
Conclusions of Part I
• Port-Hamiltonian systems provide a unified framework for
modeling, analysis, and simulation of complex
lumped-parameter multi-physics systems.
0 0 0 I3−1 g3
g1 6= 0, g2 6= 0, g3 6= 0,
∂H
ẋ = J(x) (x)
∂x
one may search for conserved quantities C , called Casimirs, as
being solutions of
∂T C
(x)J(x) = 0
∂x
d
Then dt C = 0 for every H , and thus also H + C is a candidate
Lyapunov function.
Note that the minimum of H + C may now be different from the
minimum of H .
The port-Hamiltonian approach to physical system modeling and control, Namur, November, 2008 95
ẋ = J(x) ∂H
∂x (x) + g(x)u
y = g T (x) ∂H
∂x (x)
Control by interconnection:
Consider a controller port-Hamiltonian system
ξ˙ = Jc (ξ) ∂H
∂ξ (ξ) + gc (ξ)uc ,
c
ξ ∈ Xc
C:
yc = g T (ξ) ∂H
∂ξ (ξ)
c
u = −yc , uc = y
u y
P
C
yc uc
The port-Hamiltonian approach to physical system modeling and control, Namur, November, 2008 97
with Hc to-be-determined.
The port-Hamiltonian approach to physical system modeling and control, Namur, November, 2008 98
1 2
H(q, p) = p + (1 − cos q)
2
actuated by a torque u, with output y = p (angular velocity).
Suppose we wish to stabilize the pendulum at a non-zero angle q ∗
and p∗ = 0.
Apply the nonlinear integral control
ξ˙ = uc = y
∂Hc
−u = yc = ∂ξ (ξ)
∂K ∗
sin q ∗ + ∂z (q − ξ∗) = 0
∂Hc ∗
− ∂K ∗
∂z (q − ξ ) +
∗
∂ξ (ξ ) =0
Minimum condition
∂2K ∗ ∂2K ∗
cos q + ∂z 2 (q − ξ ∗ )
∗
0 − ∂z 2 (q − ξ∗)
0 1 0 >0
∂2K ∗ ∂2K ∗ ∂ 2 Hc ∗
− ∂z 2 (q − ξ ∗ ) 0 ∂z 2 (q −ξ )+∗
∂ξ 2 (ξ )
with h(z, t) the height of the water at position z , and v(z, t) its
velocity (and g the gravitational constant).
Recall that by recognizing the total energy
b b
1 2
Z Z
H(h, v) = Hdz = [hv + gh2 ]dz
a a 2
∂h ∂ ∂H
∂t (z, t) = − ∂z ∂v (h, v)
∂v ∂ ∂H
∂t (z, t) = − ∂z ∂h (h, v)
hv|a,b
−( 21 v 2 + gh)|a,b
ξ˙ = uc
∂Hc
yc = ∂ξ ( = gh∗ )
By mass balance,
Z b
h(z, t)dz + ξ + c
a
1
Rb Rb
V (h, v, ξ) := 2 a
2 2
[hv + gh ]dz + gh ξ − gh [ ∗ ∗
a
h(z, t)dz + ξ] + 12 g(b − a)h∗2
1
Rb 2 ∗ 2
= 2 a
[hv + g(h − h ) ]dz
By construction
∂H
ẋ (x)
= [Jaug − Raug ] ∂x
∂Hc
ξ̇ ∂ξ (ξ)
J −R −g
=
[g − 2RK]T K T JK − K T RK
ẋ = [J(x) − R(x)] ∂H
∂x (x) + g(x)u
y = (g(x) + 2P (x))T ∂H
∂x (x) + [M (x) + S(x)]u,
ξ˙ = uc
∂Hc
yc = ∂ξ (ξ)
ẋ = [J(x) − R(x)] ∂H
∂x (x) + g(x)u
g ⊥ (x)[J(x) − R(x)]K(x) = 0
(In fact, β(x) := −(g T (x)g(x))−1 g T (x)[J(x) − R(x)]K(x) does the job.)
The port-Hamiltonian approach to physical system modeling and control, Namur, November, 2008 114
C(x, ξ) = ξj − Gj (x)
It follows that for all time instants
ξj = Gj (x) + cj , cj ∈ R
Suppose that in this way all control state components ξi can be
expressed as function
ξ = G(x)
of the plant state x. Then the dynamic feedback reduces to a
state feedback, and the Lyapunov function H(x) + Hc (ξ) + C(x, ξ)
reduces to the shaped Hamiltonian
H(x) + Hc (G(x))
The port-Hamiltonian approach to physical system modeling and control, Namur, November, 2008 115
∂H ∂Hd
[J(x) − R(x)] (x) + g(x)ûIDA (x) = [Jd (x) − Rd (x)] (x)
∂x ∂x
where Jd and Rd are newly assigned interconnection and damping
structures.
Remark: For mechanical systems IDA-PBC control is equivalent to
the theory of Controlled Lagrangians (Bloch, Leonard, Marsden, .).
The port-Hamiltonian approach to physical system modeling and control, Namur, November, 2008 116
∂(Hd − H)
[J(x) − R(x)] (x) = g(x)ûBIDA (x)
∂x
and thus in this case, there exists an ûBIDA (x) if and only if
∂(Hd − H)
g ⊥ (x)[J(x) − R(x)] (x) = 0
∂x
which is the same equation as obtained for stabilization by Casimir
generation with a state-modulated nonlinear integral controller !
Conclusion: Basic IDA-PBC ⇔ State-modulated Control by
Interconnection.
The port-Hamiltonian approach to physical system modeling and control, Namur, November, 2008 117
and thus
p
X
ẋ = F (ρ)(z − z0 ) + [Fi z0 + gi E](ρi − ρ0i ) + gl (u − u0 )
i=1
with (z − z0 )T F (ρ)(z − z0 ) ≤ 0.
The port-Hamiltonian approach to physical system modeling and control, Namur, November, 2008 120
ẋi = Ji (xi ) ∂H
∂xi (xi ) + gi (xi )ui
i
yi = giT (xi ) ∂H
∂xi (xi ),
i
i = 1, 2
Impedance control
ẋ = [J(x) − R(x)] ∂H
∂x (x) + g(x)u + k(x)f, x ∈ X , u ∈ Rm
y = g T (x) ∂H
∂x (x) u, y ∈ Rm (4)
e = k T (x) ∂H
∂x (x) f, e ∈ Rm
The relation between the f and e variables is called the
’impedance’ of the (f, e)-port. In Impedance Control (Hogan) one
tries to shape this impedance by using the control port
corresponding to u, y .
Typical application: the (f, e)-port corresponds to the end-point of
a robotic manipulator, while the (u, y)-port corresponds to
actuation.
Basic question: what are achievable impedances of the
(f, e)-port ?
The port-Hamiltonian approach to physical system modeling and control, Namur, November, 2008 124
Conclusions of Part II
• Beyond passivity by port-Hamiltonian systems theory.
THANK YOU !