Composition of Dirac Structures and Control of Port-Hamiltonian Systems

Similar documents
Interconnection of port-hamiltonian systems and composition of Dirac structures

HAMILTONIAN FORMULATION OF PLANAR BEAMS. Goran Golo,,1 Arjan van der Schaft,1 Stefano Stramigioli,1

Representation of a general composition of Dirac structures

Decomposition of Linear Port-Hamiltonian Systems

System-theoretic properties of port-controlled Hamiltonian systems Maschke, B.M.; van der Schaft, Arjan

Analysis and Control of Multi-Robot Systems. Elements of Port-Hamiltonian Modeling

Stabilization and Passivity-Based Control

Network Modeling and Control of Physical Systems, DISC. Theory of Port-Hamiltonian systems

Port-Hamiltonian systems: network modeling and control of nonlinear physical systems

Port-Hamiltonian systems: a theory for modeling, simulation and control of complex physical systems

Implicit Hamiltonian Systems with Symmetry

University of Twente. Faculty of Mathematical Sciences. Portcontrolled Hamiltonian representation of distributed parameter systems

Port-Hamiltonian Systems: from Geometric Network Modeling to Control

arxiv: v2 [math.oc] 6 Sep 2012

Robust Hamiltonian passive control for higher relative degree outputs Carles Batlle, Arnau Dòria-Cerezo, Enric Fossas

Equivalence of dynamical systems by bisimulation

Port-Hamiltonian Systems: from Geometric Network Modeling to Control

When Gradient Systems and Hamiltonian Systems Meet

An introduction to Port Hamiltonian Systems

Balancing of Lossless and Passive Systems

A geometric Birkhoffian formalism for nonlinear RLC networks

The Geometry Underlying Port-Hamiltonian Systems

REMARKS ON THE TIME-OPTIMAL CONTROL OF A CLASS OF HAMILTONIAN SYSTEMS. Eduardo D. Sontag. SYCON - Rutgers Center for Systems and Control

On the PDEs arising in IDA-PBC

Power based control of physical systems: two case studies

Energy-conserving formulation of RLC-circuits with linear resistors

Port Hamiltonian Systems

THEODORE VORONOV DIFFERENTIABLE MANIFOLDS. Fall Last updated: November 26, (Under construction.)

Definition 5.1. A vector field v on a manifold M is map M T M such that for all x M, v(x) T x M.

Linear Hamiltonian systems

Simultaneous IDA-Passivity-based control of a Wound Rotor Synchronous Motor

Dirac Structures and the Legendre Transformation for Implicit Lagrangian and Hamiltonian Systems

Symplectic Hamiltonian Formulation of Transmission Line Systems with Boundary Energy Flow

On the passivity of general nonlinear systems

Port Controlled Hamiltonian systems and related nonlinear control approaches

Disturbance Decoupling Problem

Port contact systems for irreversible thermodynamical systems

A new passivity property of linear RLC circuits with application to Power Shaping Stabilization

arxiv:math/ v1 [math.ds] 5 Sep 2006

Discrete Dirac Structures and Implicit Discrete Lagrangian and Hamiltonian Systems

arxiv: v1 [cs.sy] 12 Oct 2018

A Hamiltonian viewpoint in the modeling of switching power converters 1

A NOVEL PASSIVITY PROPERTY OF NONLINEAR RLC CIRCUITS

Compositional modelling of distributed-parameter systems

KINETIC ENERGY SHAPING IN THE INVERTED PENDULUM

Passivity-Based Control of an Overhead Travelling Crane

Passivity Indices for Symmetrically Interconnected Distributed Systems

Port-based Modeling and Control for Efficient Bipedal Walking Machines

arxiv: v3 [math.oc] 1 Sep 2018

COMMON COMPLEMENTS OF TWO SUBSPACES OF A HILBERT SPACE

Hamilton-Jacobi theory on Lie algebroids: Applications to nonholonomic mechanics. Manuel de León Institute of Mathematical Sciences CSIC, Spain

Boolean Algebras, Boolean Rings and Stone s Representation Theorem

GEOPLEX: Back-to-back converter for an electrical machine application. C. Batlle, A. Dòria, E. Fossas, C. Gaviria, R. Griñó

Formation Control Over Delayed Communication Networks

AN EXTENSION OF HAMILTONIAN SYSTEMS TO THE THERMODYNAMIC PHASE SPACE: TOWARDS A GEOMETRY OF NONREVERSIBLE PROCESSES. and A. J.

POLYNOMIAL EMBEDDING ALGORITHMS FOR CONTROLLERS IN A BEHAVIORAL FRAMEWORK

Mathematics for Control Theory

Copyright 2002 IFAC 15th Triennial World Congress, Barcelona, Spain

Dirac Structures on Banach Lie Algebroids

Time-optimal control of a 3-level quantum system and its generalization to an n-level system

ENGI9496 Modeling and Simulation of Dynamic Systems Bond Graphs

HAMILTONIAN ACTIONS IN GENERALIZED COMPLEX GEOMETRY

Basic. Theory. ircuit. Charles A. Desoer. Ernest S. Kuh. and. McGraw-Hill Book Company

Stationary trajectories, singular Hamiltonian systems and ill-posed Interconnection

Passive control. Carles Batlle. II EURON/GEOPLEX Summer School on Modeling and Control of Complex Dynamical Systems Bertinoro, Italy, July

arxiv: v1 [math.oc] 9 Mar 2019

EXERCISES IN POISSON GEOMETRY

CONTROLLABILITY OF NILPOTENT SYSTEMS

Algebroids and Charge Conservation Clemente-Gallardo, Jesús; Jeltsema, Dimitri; Scherpen, Jacquelien M.A.

Passivity Preserving Model Order Reduction For the SMIB

10. Smooth Varieties. 82 Andreas Gathmann

Math Advanced Calculus II

L 2 -induced Gains of Switched Systems and Classes of Switching Signals

Contact manifolds and generalized complex structures

SIMULTANEOUS INTERCONNECTION AND DAMPING ASSIGNMENT PASSIVITY BASED CONTROL: TWO PRACTICAL EXAMPLES 1

Realization theory for systems biology

Modeling of electromechanical systems

From integration by parts to state and boundary variables of linear differential and partial differential systems

Modeling of Electromechanical Systems

arxiv: v1 [math.oc] 21 Nov 2018

Abstractions of Hamiltonian control systems

Kinematics. Chapter Multi-Body Systems

Constructive Invariant Manifolds to Stabilize Pendulum like systems Via Immersion and Invariance

Chap. 3. Controlled Systems, Controllability

Zeros and zero dynamics

THEOREM OF OSELEDETS. We recall some basic facts and terminology relative to linear cocycles and the multiplicative ergodic theorem of Oseledets [1].

Dissipativity. Outline. Motivation. Dissipative Systems. M. Sami Fadali EBME Dept., UNR

The Geometry of Euler s equation. Introduction

A note on continuous behavior homomorphisms

Chap. 1. Some Differential Geometric Tools

Math 396. Quotient spaces

Modelling of Three-Phase Power Converters

On local normal forms of completely integrable systems

Networked Control Systems, Event-Triggering, Small-Gain Theorem, Nonlinear

Vector fields in the presence of a contact structure

Reduction of Symplectic Lie Algebroids by a Lie Subalgebroid and a Symmetry Lie Group

f a f a a b the universal set,

arxiv: v1 [math.gr] 8 Nov 2008

Zero controllability in discrete-time structured systems

GEOMETRIC QUANTIZATION

Transcription:

Composition of Dirac Structures and Control of Port-Hamiltonian Systems A.J. van der Schaft* 1,J.Cervera** 2 * University of Twente, Faculty of Mathematical Sciences, P.O. Box 217, 7500 AE Enschede, The Netherlands Email: a.j.vanderschaft@math.utwente.nl ** Universidad de Murcia, Departamento de Informática y Sistemas 30071 Campus de Espinardo, Murcia, Spain Email: jcervera@um.es Abstract Key feature of Dirac structures (as opposed to Poisson or symplectic structures) is the fact that the standard composition of two Dirac structures is again a Dirac structure. In particular this implies that any power-conserving interconnection of port- Hamiltonian systems is a port-hamiltonian system itself. This constitutes a fundamental property in the port-hamiltonian approach to modeling, simulation and control of complex physical systems. Furthermore, the composed Dirac structure directly determines the algebraic constraints of the interconnected system, as well as its Casimir functions. Especially the Casimirs are of prime importance in the set-point regulation of port-hamiltonian systems. It is therefore of importance to characterize the set of achievable Dirac structures when a given plant port-hamiltonian system is interconnected with an arbitrary controller port-hamiltonian system. The set of achievable Dirac structures in a restricted sense has been recently characterized in [1, 2]. Here we extend this theorem to the present situation occurring in the interconnection of a plant and controller Hamiltonian system. Furthermore, we give an insightful procedure for the construction of the controller Dirac structure. This procedure works for the general case of (non-closed) Dirac structures on manifolds. In this way we also fully characterize the set of achievable Casimir functions of the interconnected ( closed-loop ) system. This yields a fundamental limitation to the design of stabilizing controllers for underactuated mechanical systems by interconnection with a port-hamiltonian controller. 1 Introduction Network modeling of complex physical systems (possibly containing components from different physical domains) leads to a class of nonlinear systems, called port-hamiltonian systems, see e.g. [3, 4, 5, 2, 6, 7, 8]. Port-Hamiltonian systems are defined by a Dirac structure 1 Partially supported by the EU-project GeoPlex, IST-2001-34166 2 Partially supported by Fundación Séneca, Centro de Coordinación de la Investigación, under program Becas de Formación del Personal Investigador, and by the EU-TMR Nonlinear Control Network 1

(formalizing the power-conserving interconnection structure of the system), an energy function (the Hamiltonian), and a resistive structure. Key property of Dirac structures is that the power-conserving composition of Dirac structures again defines a Dirac structure, see [2, 1]. This implies that any power-conserving interconnection of port-controlled Hamiltonian systems is also a port-controlled Hamiltonian system, with Dirac structure being the composition of the Dirac structures of its constituent parts and Hamiltonian the sum of the Hamiltonians. As a result power-conserving interconnections (in particular classical feedback interconnections) of port-hamiltonian systems can be studied to a large extent in terms of the composition of their Dirac structures. In particular the feedback interconnection of a given plant port-hamiltonian system with a yet to be specified port-hamiltonian controller system can be studied from the point of view of the composition of a given plant Dirac structure with a controller Dirac structure. Preliminary results concerning the achievable closed-loop Dirac structures have been obtained in [1, 2]. Here we extend those results, and we also derive an explicit characterization of the obtainable Casimir functions of the closed-loop system, which is crucial for the passivity-based control of the port-hamiltonian system plant system, see e.g. [9, 6, 7, 10]. 2 Dirac structures and port-hamiltonian systems Port-based modeling (e.g. by bond-graphs) of complex lumped-parameter physical systems directly leads to models consisting of a power-conserving interconnection (generalized junction structure in bond-graph terminology), and the constitutive relations describing the energy-storing and energy-dissipating elements. The key to geometrically formalize these models as port-hamiltonian systems is to describe the power-conserving interconnection by the notion of a Dirac structure. 2.1 Dirac structures We start with a space of power variables V V, for some linear space V, withpower defined by P = <v v>, (v, v ) V V, (2.1) where <v v>denotes the duality product, that is, the linear functional v V acting on v V. Often we call V the space of flows f, andv the space of efforts e, withthepower ofasignal(f,e) V V denoted as <e f>. Note that, contrary to other treatments, we have used Occam s razor by not necessarily endowing V with an inner product structure <, >. Of course, in this latter case V can be naturally identified with V in such a way that <e f>=<e,f>,f,e V V. Closely related to the definition of power there exists a canonically defined bilinear form 2

, on the space of power variables V V, defined as (f a,e a ),(f b,e b ) := <e a f b >+<e b f a >, (f a,e a ),(f b,e b ) V V. (2.2) Definition 2.1. [11, 12] A (constant) Dirac structure on is a subspace D V V such that D = D, where denotes orthogonal complement with respect to the bilinear form,. If V is a finite-dimensional linear space then it is easily seen that necessarily dim D =dimv for any Dirac structure D. Moreover, in this case a Dirac structure can be alternatively characterized as a subspace D of V V such that (i) <e f>= 0, for all (f,e) D, (ii) dim D =dimv. Note that condition (i) expresses power conservation. Condition (ii) is perhaps more open to discussion. Although this condition holds for all normal interconnection structures such as Kirchhoff s laws, transformers, gyrators, Newton s third law, kinetic pairs, kinematic constraints, etc., one could imagine power-conserving elements such as the nullator in the electric domain (setting both voltage and current to be equal to zero) which violate this condition. The discussion boils down to the validity (or usefulness!) of the usually expressed statement that a physical element cannot determine at the same time both its voltage and its current, or both its force and velocity. Remark 2.2. The property D = D can be regarded as a generalization of Tellegen s theorem, since it describes a constraint between two different realizations of the power variables (in contrast to condition (i)). Remark 2.3. For many systems, especially those with mechanical components, the interconnection structure is actually modulated by energy or geometric variables. This leads to the notion of non-constant Dirac structures on manifolds, see e.g. [11, 12, 6, 7, 13]. Because of space limitations and for reasons of clarity of exposition we focus in the current paper on the constant case, although everything can be extended to the case of Dirac structures on manifolds. Constant Dirac structures admit different matrix representations. Here we just list a number of them. Let D V V, with dim V = n, be a constant Dirac structure. 1. (Kernel and Image representation) Every Dirac structure D can be represented in kernel representation as D = {(f,e) V V Ff +Ee =0} (2.3) 3

for n n matrices F and E satisfying (i) EF T + FE T =0, (ii) rank [F.E]=n. (2.4) It follows that D can be also written in image representation as D = {(f,e) V V f=e T λ, e = F T λ, λ R n } (2.5) 2. (Constrained input-output representation) D = {(f,e) V V f=je+gλ, G T e = 0} for a skew-symmetric matrix J and a matrix G such that Im G = {f (f,0) D}. Furthermore, Ker J = {e (0,e) D}. 3. (Hybrid input-output representation, cf. [14]) Let D be given by square matrices E and F as in 1. Suppose rank F = m( n). Select m independent columns of F, and group them into a matrix F 1. Write (possibly after permutations) F =[F 1.F 2 ], [ ] [ ] f1 e1 and correspondingly E =[E 1.E 2 ],f =,e =. Then the matrix [F 1.E 2 ]is invertible, and D = {[ f1 f 2 ] [ e1, e 2 f 2 ] [ f1 with J := [F 1.E 2 ] 1 [F 2.E 1 ] skew-symmetric. e 2 e 2 ] = J [ e1 f 2 ]} (2.6) 4. (Canonical coordinate representation), cf. [11]. There exist linear coordinates (q, p, r, s) for V such that (f,e) =(f q,f p,f r,f s,e q,e p,e r,e s ) Diff f q = e p, f p = e q (2.7) f r = 0, e s = 0 2.2 Port-Hamiltonian systems Now let us consider a lumped-parameter physical system given by a power-conserving interconnection defined by a constant Dirac structure D, and kenergy-storing elements with energy-variables x i. For simplicity we assume that the energy-variables are living in linear spaces X i, although everything can be generalized to the case of manifolds. The constitutive relations of the energy-storing elements are specified by their stored energy functions H i (x i ),i=1,,k. Define the total linear state space X := X 1 X k, and the total energy H(x 1,,x k ):=H 1 (x 1 )+ +H k (x k ). The space of flow variables for the Dirac structure D is split as X F,withf x X the flows corresponding to the energy-storing elements, and f Fdenoting the remaining flows (corresponding to dissipative elements and ports/sources). Correspondingly, the space of 4

effort variables is split as X F,withe x X the efforts corresponding to the energystoring elements and e F the remaining efforts. The bilinear form, then takes the form: (fx a,ea x,fa,e a ),(fx b,eb x,fb,e b ) := (2.8) <e a x fb x >+<eb x fa x >+<ea f b >+<e b f a > with f a x,f b x X,f a,f b F,e a x,e b x X,e a,e b F. It follows that D can be represented in kernel representation as with D = {(f x,e x,f,e) X X F F F x f x +E x e x +Ff +Ee =0}, (2.9) (i) E x F T x + F x E T x + EF T + FE T =0, (ii) rank [F x.e x.f.e] =dim(x F). (2.10) Now the flows of the energy-storing elements are given by x i, and these are equated to f xi,i =1,,k (the minus sign is again included to have a consistent energy flow diraction). Furthermore, the efforts e xi corresponding to the energy-storing elements are given as e xi = H x i,i =1,,k. Substitution in (2.9) leads to the description of the physical system by the set of DAE s H F x ẋ(t) =E x (x(t)) + Ff(t)+Ee(t), (2.11) x with f,e the port power variables (some of which are terminated by dissipative elements). The system of equations (2.11) is called a port-hamiltonian system. The definition of a port-hamiltonian system is not dependent on the particular representation of the Dirac structure (a kernel representation in (2.11)). In fact, the port-hamiltonian system is defined by the Dirac structure D (a geometric object), together with the Hamiltonian H and the specification of the ports. Thus in the case of no energy-dissipating ports we denote the port-hamiltonian system by (X, F, D,H). Because of (2.10) we immediately obtain the power balance ( ) T dh H dt = x (x) ẋ = e T f. (2.12) expressing that the increase of of internal energy of the port-hamiltonian system is equal to the externally supplied power minus the power dissipated in the energy-dissipating elements. Remark 2.4. In case of a Dirac structure modulated by the energy variables x and state space X being an arbitrary manifold, the flows f x = ẋ are elements of the tangent space T x X at the state x X, and the efforts e x are elements of the co-tangent space T x X. We still obtain the kernel representation (2.11) for the resulting port-hamiltonian system, but now the matrices F x,e x,f,e depend on x. See for an extensive treatment [6, 7, 13]. 5

3 Composition of Dirac structures In this section we investigate the compositionality properties of Dirac structures. Physically it seems clear that the composition of a number of power-conserving interconnections with partially shared variables should yield again a power-conserving interconnection. We show how this can be formalized within the framework of Dirac structures. First we consider the composition of two Dirac structures with partially shared variables. That is, we consider a Dirac structure D 12 on a product space V 1 V 2 of two linear spaces V 1 and V 2, and another Dirac structure D 23 on a product space V 2 V 3, with also V 3 being a linear space. The linear space V 2 is the space of shared flow variables. In order to compose D 12 and D 23 a problem arises of sign convention for the power flow corresponding to the power variables (f 2,e 2 ) V 2 V2. Indeed, if <e f>denotes incoming power (see the previous section), then for ( ) f1,e 1,f2 12,e12 2 D12 the term < e 12 2 f 12 (f2 12,e 12 2 ) V 2 V2, while for 2 > denotes the incoming power in D 12 due to the power variables ( f 23 2,e23 2,f 3,e 3 ) D23 the term < e 23 2 f2 23 > denotes the incoming power in D 23 due to the power variables (f2 23,e23 2 ) V 2 V2. Since physically, the incoming power in D 12 due to the power variables in V 2 V2 should equal the outgoing power from D 23 due to the power variables in V 2 V2 there is a sign conflict if we would simply equate f2 12 = f2 23,e12 2 = e 23 2. A simple way to resolve this sign problem is to set instead f2 12 = f2 23 e 12 2 = e 23 2 Let us therefore define the composition D 12 D 23 of the Dirac structures D 12 and D 23 as D 12 D 23 := {(f 1,e 1,f 3,e 3 ) V 1 V 1 V 3 V 3 (f 2,e 2 ) V 2 V 2 s.t. (3.13) (f 1,e 1,f 2,e 2 ) D 12 and ( f 2,e 2,f 3,e 3 ) D 23 } (3.14) The following theorem has been shown in [1] (with a preliminary version given in [2]). Theorem 3.1. Let D 12, D 23 be Dirac structures as above. Then D 12 D 23 defined in (3.14) is a Dirac structure. The compositionality of multiple Dirac structures follows easily from Theorem 3.1. In general, consider k port-hamiltonian systems (X i, F i, D i,h i ), i =1,,k, interconnected by a Dirac structure D I F 1 F k F F1 Fk F,withFalinear space of flow port variables, cf. Figure 1. 6

X 1, F 1, D 1,H 1 f 2 e2 e 1 f 1 D I f e X 2,F 2,D 2,H 2 f k e k X k,f k,d k,h k Figure 1: Interconnection of port-hamiltonian systems This can be easily seen to define a port-hamiltonian system (X, F, D,H), where X := X 1 X k,h:= H 1 + +H k, and where the Dirac structure D X X F F is determined by D 1,,D k and D I. Indeed, consider the product of the Dirac structures D 1,,D k, and compose this, as in Theorem 3.1, with the Dirac structure D I. This yields the Dirac structure D. A typical example of a power-conserving interconnection is the standard feedback interconnection u P = y C, u C = y P (3.15) with u P,y P and u C,y C denoting the inputs and outputs of the plant, respectively, controller system. Identifying the inputs u P,u C with flows, and the outputs y P,y C with efforts, (3.15) defines a Dirac structure D I. 4 Achievable Dirac structures In this section several questions about the composition of Dirac structures are addressed. The main idea is to investigate which closed-loop port-hamiltonian systems can be achieved by interconnecting a given plant port-hamiltonian system P with a controller port-hamiltonian system C. In the framework of the current paper this is restricted to the investigation of the achievable Dirac structures of the closed-loop system. That is, given the Dirac structure D P of the plant system P and the to-be-designed Dirac structure D C of the controller system C, whatare the achievable Dirac structures D P D C,where denotes the composition of D P and D C by interconnecting P and C as defined in the previous section. Consider the general configuration given in Figure 2. 7

f w f c f c f c~ e w D P e c e w D C e c~ Figure 2: D P D C Theorem 4.1. Given any plant Dirac structure D P, a certain composed D = D P D C can be achieved by a proper choice of the controller Dirac structure D C if and only if the following two conditions are satisfied DP 0 D0 (4.16) D π DP π (4.17) DP 0 := {(f w,e w ) (f w,e w,0,0) D P } DP π where := {(f w,e w ) (f c,e c ):(f w,e w,f c,e c ) D P } (4.18) D 0 := {(f w,e w ) (f w,e w,0,0) D} D π := {(f w,e w ) (f c,e c ):(f w,e w,f c,e c ) D} Remark 4.2. A restricted version of this theorem for the case f c =0,e c =0was given in [1]. The simple proof of this theorem (compare with the proof given in [1]!) is based on the following inverse D P of the plant Dirac structure D P : D P := {(f w,e w,f c,e c ) ( f w,e w, f c,e c ) D P } (4.19) It is easily seen that D P is a Dirac structure if and only if D P is a Dirac structure. Proof of Theorem 4.1 Necessity of (4.16, 4.17) is obvious. Sufficiency is shown using the controller Dirac structure D C := D P D (see Figure 3). To check that D D P D C,consider(w,c) D. Because w D π, applying (4.17) yields that d such that (w,d) D P. Define the partial sign reversal operator Rd := ( f d,e d ),for d =(f d,e d ) 8

w d w * D P D P D c Figure 3: D = D P D P D. It follows that (Rd, Rw ) DP 3, and thus (w,c) D P D C (take w = w in Figure 3). Therefore, D D P D C. To check that D P D C D,consider(w, c) D P D C. Then there exist d, w such that Subtracting (4.21) from (4.20) we get Using (4.23) and (4.16) we get (w, d) D P (4.20) (w,d) D P (4.21) (w,c) D (4.22) (w w, 0) D P w w D 0 P (4.23) (w w, 0) D (4.24) Finally, adding (4.22) and (4.24), we get (w, c) D,andsoD P D C D. The above proof also immediately provides us with a closed expression for a controller Dirac structure D C such that D = D P D C, for D satisfying the conditions of Theorem 4.1. We state this as a separate proposition. Proposition 4.3. Given a plant Dirac structure D P, and D satisfying the conditions of Theorem 4.1. Then D C := D P D,withD P defined as in (4.19), achieves D = D P D C. 5 Achievable Casimirs and constraints An important application of Theorem 4.1 concerns the characterization of the Casimir functions which can be achieved for the closed-loop system by interconnecting a given plant port- Hamiltonian system with associated Dirac structure D P with a controller port-hamiltonian system with associated Dirac structure D C. This constitutes a cornerstone for passivitybased control of port-hamiltonian systems as developed e.g. in [10, 15]. Dually, we may characterize the achievable algebraic constraints for the closed-loop system. 3 Note that the definition of D P compensates the sign change for interconnection of flows given in (3.13). 9

In order to explain these notions consider a port-hamiltonian system without ports on a state space X with Dirac structure D X X. Then the following subspaces of X, respectively X, are of importance G 1 := {f x X e x X s.t. (f x,e x ) D} P 1 := {e x X f x X s.t. (f x,e x ) D} (5.25) The subspace G 1 expresses the set of admissible flows, andp 1 the set of admissible efforts. It follows from the image representation (2.5) that G 1 = Im E T x (5.26) P 1 = Im F T x A Casimir function C : X Roftheport-Hamiltonian system is defined to be a function which is constant along all trajectories of the port-hamiltonian system, irrespectively of the Hamiltonian H. It follows from the above consideration of the admissible flows that the Casimirs are determined by the subspace G 1. Indeed, necessarily f x = ẋ(t) G 1 = Im Ex T, and thus ẋ(t) Im Ex T, t R. (5.27) Therefore C : X R is a Casimir function if dc (x(t)) = T C (x(t))ẋ(t) = 0 for all ẋ(t) dt x Im Ex T. Hence C : X Ris a Casimir of the port-hamiltonian system if it satisfies the set of partial differential equations C x (x) Ker E x (5.28) Remark 5.1. In the case of a non-constant Dirac structure the matrix E x will depend on x, and Ker E x will define a co-distribution on the manifold X. Then the issue arises of integrability of this co-distribution, see [6]. Dually, the algebraic constraints for the port-hamiltonian system are determined by the space P 1, since necessarily T H (x) P x 1, which will induce constraints on the state variables x. Let us now consider the question of characterizing the set of achievable Casimirs for the closed-loop system D P D C, where D P is the given Dirac structure of the plant port- Hamiltonian system with Hamiltonian H, andd C is the controller Dirac structure. In this case, the Casimirs will depend on the plant state x as well as on the controller state ξ. Since the controller Hamiltonian H C (ξ) is at our own disposal we will be primarily interested in the dependency of the Casimirs only on the plant state x. (Since we want to use the Casimirs for shaping the total Hamiltonian H + H C to a Lyapunov function, cf. [10, 15].) Consider the notation given in Figure 2, and assume the ports in (f w,e w ) are connected to the (given) energy storing elements of the plant port-hamiltonian system (that is, f w = ẋ, e w = T H ), while x (f c,e c ) are connected to the (to-be-designed) energy storing elements 10

of a controller port-hamiltonian system (that is, f c = ξ,e c = T H C ). Note that the number ξ of ports (f c,e c ) can be freely chosen. In this situation the achievable Casimir functions are functions C(x, ξ) such that T C (x, ξ) belongs to the space x P Cas = {e w D C s.t. e c :(0,e w,0,e c ) D P D C } (5.29) Thus the question of characterizing the achievable Casimirs of the closed-loop system, regarded as functions of the plant state x, is translated to finding a characterization of the space P Cas. It is answered by the following theorem. Theorem 5.2. The space P Cas defined in (5.29) is equal to the linear space. P = {e w (f c,e c ):(0,e w,f c,e c ) D P } (5.30) Proof P Cas P trivially. By using the controller Dirac structure D C = DP, we immediately obtain P P Cas. defines a co- Remark 5.3. For a non-constant Dirac structure on a manifold X P Cas distribution on X. In a completely dual way we may consider the achievable constraints of the closed-loop system, characterized by the space G Alg = {f w D C s.t. f c :(f w,0,f c,0) D P D C } (5.31) Theorem 5.4. The space G Alg defined in (5.31) is equal to the linear space. {f w (f c,e c ):(f w,0,f c,e c ) D P } (5.32) Remark 5.5. For a non-constant Dirac structure G Alg defines a distribution on the manifold X. Example 5.6. Consider the port-hamiltonian plant system with inputs f c and outputs e c ẋ = J(x) H x (x)+g(x)f c, x X,f c R m e c = g T (x) H x (x), e c R m (5.33) where J(x) is a skew-symmetric n n matrix. The corresponding Dirac structure is given by [ ] [ ][ ] fw J(x) g(x) ew = (5.34) g T (x) 0 e c 11 f c

It is easily seen that P Cas = {e w f c s.t. 0=J(x)e w +g(x)f c }, (5.35) implying that the x dependency of the achievable Casimirs are the Hamiltonian functions corresponding to the input vector fields given by the columns of g(x). Similarly, it is easily seen that G Alg = {f w f c s.t. f w = g(x)f c } = Im g(x), (5.36) and the achievable algebraic constraints are of the form T H x (x)g(x)=k(ξ). References [1] A.J. van der Schaft. The Mathematics of Systems and Control: From Intelligent Control to Behavioral Systems, chapter Interconnection and Geometry. Foundations Systems and Control Groningen, 1999. [2] B.M. Maschke and A.J. van der Schaft. Interconnected mechanical systems, Part I and II. In A. Astolfi, D.J.N Limebeer, C. Melchiorri, A. Tornambè, and R.B. Vinter, editors, Modelling and Control of Mechanical Systems, pages 1 30. Imperial College Press, 1997. [3] B.M. Maschke, A.J. van der Schaft, and P.C. Breedveld. An intrinsic Hamiltonian formulation of network dynamics: Non-standard Poisson structures and gyrators. J. Franklin Inst., 329:923 966, 1992. [4] A.J. van der Schaft and B.M. Maschke. The hamiltonian formulation of energy conserving physical systems with external ports. Archiv fur Electronik und Ubertragungstechnik, 49:362 371, 1995. [5] B.M. Maschke and A.J. van der Schaft. Interconnection of systems: the network paradigm. In Proceedings of the 38th IEEE Conference on Decision and Control, volume 1, pages 207 212. IEEE, New York, NY, USA, 1997. [6] M. Dalsmo and A.J. van der Schaft. On representations and integrability of mathematical structures in energy-conserving physical systems. SIAM J. Control and Optimization, 37:54 91, 1999. [7] A.J. van der Schaft. L 2 -Gain and Passivity Techniques in Nonlinear Control. Springer- Verlag, 2000. [8] A.J. van der Schaft and B.M. Maschke. Hamiltonian formulation of distributedparameter systems with boundary energy flow. Journal of Geometry and Physics, to be published. 12

[9] S. Stramigioli, B.M. Maschke, and A.J. van der Schaft. Passive output feedback and port interconnection. In H.J.C. Huijberts, H. Nijmeijer, A.J. van der Schaft, and J.M.A. Scherpen, editors, Proceedings 4th IFAC NOLCOS, pages 613 618. Elsevier, Amsterdam, 1998. [10] R. Ortega, A.J. van der Schaft, I. Mareels, and B.M. Maschke. Putting energy back in control. Control Systems Magazine, 21:18 33, 2001. [11] T.J. Courant. Dirac manifolds. Trans. American Math. Soc., 319:631 661, 1990. [12] I. Dorfman. Dirac Structures and Integrability of Nonlinear Evolution Equations. John Wiley, Chichester, 1993. [13] A.J. van der Schaft. Implicit Hamiltonian systems with symmetry. Rep.Math.Phys., 41:203 221, 1998. [14] A.M. Bloch and P.E. Crouch. Representations of Dirac structures on vector spaces and nonlinear L C circuits. In G. Ferreyra, R. Gardner, H. Hermes, and H. Sussmann, editors, Proceedings Symposia in Pure Mathematics, Differential Geometry and Control Theory, pages 103 117. American Mathematical Society, 1999. [15] R. Ortega, A.J. van der Schaft, B.M. Maschke, and G. Escobar. Interconnection and damping assignment passivity-based control of port-controlled Hamiltonian systems. Automatica, 38:585 596, 2002. 13