betaFeedback

WorksMathematics

Nonlinear differential-algebraic systems with dissipative port-Hamiltonian structure

Abstract

Different representations of nonlinear dissipative Hamiltonian and port-Hamiltonian (pH) differential-algebraic equations (DAE) systems are derived and compared. Using global geometric and algebraic points of view, including singular Lagrange and Dirac structures, as well as Morse families and their skew counterparts, constraints are incorporated in the models. The results are illustrated specifically with constrained mechanical systems using kinematic and geometric constraints. The relation between the different representations is studied and in particular the conversion of Lagrange into Dirac algebraic constraints and vice versa is discussed. To incorporate dissipation also maximally monotone structures are studied.

Introduction

In recent years the energy based modeling concept of port-Hamiltonian (pH) systems has become a very successful paradigm that is used in all areas of science and engineering, see e.g. [26]. To incorporate constraints in pH systems such as those that arise in electrical or transport networks via Kirchhoff’s laws, see e.g. [12, 13], as balance equations in chemical engineering, see e.g. [7, 8], or as geometric and/or kinematic (holonomic or non-holonomic) constraints in mechanical (multi-body) systems, see e.g. [10, 23, 24], in recent years the concept of pH systems has been extended in various formulations to pH differential-algebraic equations (pHDAEs), see [1, 4, 19, 20, 25]. The most general form of so called extended pHDAEs was introduced in [27, 28] and analyzed in detail in [21, 29] from an algebraic and geometric point of view for the case of linear systems.

In this paper we continue this analysis for nonlinear extended pHDAE systems, and in particular, we present a systematic study of the incorporation of constraints in the system via Lagrange multipliers using global geometric and algebraic points of view, including singular Lagrange and Dirac structures, as well as Morse families and their skew counterparts, see [6, 27]. The results are illustrated with constrained mechanical systems using kinematic and geometric constraints. The relation between the different representations is studied and in particular the conversion of Lagrange into Dirac algebraic constraints and vice versa is discussed. This resolves, in particular, an often discussed question of the energy based (pH) formulation of mechanical systems with constraints.

To incorporate dissipation into the system, then the concepts are extended by using nonlinear maximally monotone structures and appropriate representations of ports.

We discuss only real systems although most of the results can be formulated for complex problems in the same way. We also restrict ourselves to regular DAEs, see [17] for a detailed discussion of existence and uniqueness of solutions (in different function spaces) of more general singular DAEs.

The paper is organized as follows. In § 2 we introduce the necessary notation and in § 3 the concepts of linear and nonlinear port-Hamiltonian differential-algebraic equations without dissipation and ports are discussed. In § 4 we show how to augment port-Hamiltonian systems by adding the constraints via Lagrange multipliers and we show how Lagrange algebraic constraints can be converted into Dirac algebraic constraints, and conversely. As examples, we use constrained mechanical systems as well as optimality systems in optimal control. In § 6 we specifically discuss the pH formulation of nonlinear mechanical systems with geometric and kinematic constraints including the widely unknown Livens principle. § 7 then uses the concept of maximally monotone structures to extend the previous results to systems with energy dissipation and ports. The paper finishes with some conclusions and further research questions in § 8.

Notation

Consider an nn-dimensional linear space X\mathcal{X} with elements denoted by xx. Let TxXT_x\mathcal{X} denote the tangent space to X\mathcal{X} at x∈Xx \in\mathcal{X}. Obviously, since X\mathcal{X} is a linear space TxXT_x\mathcal{X} can be identified with X\mathcal{X} for any xx. Nevertheless, the distinction will be important if we generalize (later on) to manifolds X\mathcal{X} (instead of linear spaces). The elements of TxXT_x\mathcal{X} will be denoted by ff and will be called flow vectors. Furthermore, consider the dual space Tx∗XT_x^*\mathcal{X} of TxXT_x\mathcal{X}, with elements denoted by ee and called effort vectors. Obviously, in the linear case Tx∗XT_x^*\mathcal{X} can be identified with X∗\mathcal{X}^*.

The space X×X∗\mathcal{X} \times\mathcal{X}^* is endowed with two natural bilinear forms. First, the plus-bilinear form

⟨(f1,e1),(f2,e2)⟩+:=⟨e2,f1⟩+⟨e1,f2⟩,(1)\left\langle(f_1,e_1),(f_2,e_2)\right\rangle_+ := \langle e_2,f_1\rangle+ \langle e_1,f_2\rangle, \tag*{(1)}

where ⟨⋅,⋅⟩\langle\cdot,\cdot\rangle denotes the duality product between the dual spaces X\mathcal{X} and X∗\mathcal{X}^*.

Second, the minus-bilinear form

⟨(x1,e1),(x2,e2)⟩−:=⟨e2,x1⟩−⟨e1,x2⟩.(2)\left\langle(x_1,e_1),(x_2,e_2)\right\rangle_- := \langle e_2,x_1\rangle- \langle e_1,x_2\rangle. \tag*{(2)}

In coordinates for X\mathcal{X} and dual coordinates for X∗\mathcal{X}^* these bilinear forms are represented by the matrices

Σ+:=[0InIn0],Σ−:=[0In−In0],\Sigma_+ := \begin{bmatrix} 0 & I_n \\ I_n & 0 \end{bmatrix}, \qquad\Sigma_- := \begin{bmatrix} 0 & I_n \\ -I_n & 0 \end{bmatrix},

respectively.

Definition 2.1 A subspace D⊂X×X∗\mathcal{D} \subset\mathcal{X} \times\mathcal{X}^* is called a Dirac structure if the bilinear form ⟨⋅,⋅⟩+\langle\cdot,\cdot\rangle_+ is zero on D\mathcal{D} and, moreover, D\mathcal{D} is maximal with respect to this property. A subspace L⊂X×X∗\mathcal{L} \subset\mathcal{X} \times\mathcal{X}^* is called a Lagrange structure3 if the bilinear form ⟨⋅,⋅⟩−\langle\cdot,\cdot\rangle_- is zero on L\mathcal{L} and, moreover, L\mathcal{L} is maximal with respect to this property. Furthermore, a Lagrange structure L\mathcal{L} is called nonnegative if the bilinear form Σ+\Sigma_+ is nonnegative whenever restricted to L\mathcal{L}.

Note that for any (f,e)∈D(f,e) \in\mathcal{D} we have 0=⟨(f,e),(f,e)⟩+=2⟨e,f⟩0 = \langle(f,e),(f,e)\rangle_+ = 2\langle e,f\rangle. This corresponds physically to power conservation. In fact, an equivalent definition of a Dirac structure D\mathcal{D} is that ⟨e,f⟩=0\langle e,f\rangle= 0 for any (f,e)∈D(f,e) \in\mathcal{D}, and that D\mathcal{D} is maximal with respect to this property; cf. [26].

A special type of Dirac structure is the graph of any skew-symmetric linear map from X∗\mathcal{X}^* to X\mathcal{X}, see also Appendix § 9. Similarly, a special type of Lagrange structure is the graph of a symmetric linear map from X\mathcal{X} to X∗\mathcal{X}^*.

This last fact means that any quadratic function H(x)=12xTQx\mathcal{H}(x)=\frac{1}{2}x^{\mathsf{T}}Qx on X\mathcal{X} with Q=QTQ=Q^{\mathsf{T}} defines a Lagrange structure. Indeed the graph of the map defined by the gradient of this quadratic function, i.e.,

{(x,e)∈X×X∗∣e=∂H∂x(x)=Qx}\{(x,e)\in\mathcal{X}\times\mathcal{X}^*\mid e=\frac{\partial\mathcal{H}}{\partial x}(x)=Qx\}

is a Lagrange structure.

A Dirac structure D⊂X×X∗\mathcal{D}\subset\mathcal{X}\times\mathcal{X}^* is called regular if its projection on X∗\mathcal{X}^* is equal to X∗\mathcal{X}^*, or equivalently, if D\mathcal{D} is the graph of a linear map from X∗\mathcal{X}^* to X\mathcal{X}. If not, then we will call D\mathcal{D} a singular Dirac structure. Similarly, we will call a Lagrange structure L⊂X×X∗\mathcal{L}\subset\mathcal{X}\times\mathcal{X}^* regular if the projection of L\mathcal{L} on X\mathcal{X} is equal to X\mathcal{X}, or equivalently, if L\mathcal{L} is the graph of a linear map from X\mathcal{X} to X∗\mathcal{X}^*. If this is not the case, then L\mathcal{L} is called singular Lagrange structure.

Dirac and Lagrange structures admit the following coordinate representations, see e.g. [26, 27]. Take any coordinates xx for the nn-dimensional linear space X\mathcal{X} and dual coordinates for X∗\mathcal{X}^*. Then using matrices K,L∈Rn,nK,L\in\mathbb{R}^{n,n}, any Dirac structure D⊂X×X∗\mathcal{D}\subset\mathcal{X}\times\mathcal{X}^* admits the kernel/image representation

D=ker⁡[KL]=im⁡[LTKT]⊂X×X∗,(3)\mathcal{D}=\ker\begin{bmatrix}K & L\end{bmatrix}=\operatorname{im}\begin{bmatrix}L^{\mathsf{T}}\\K^{\mathsf{T}}\end{bmatrix}\subset\mathcal{X}\times\mathcal{X}^*, \tag*{(3)}

with K,LK,L satisfying rank⁡[KL]=n\operatorname{rank}\begin{bmatrix}K & L\end{bmatrix}=n and the generalized skew-symmetry condition

KLT=−LKT.(4)KL^{\mathsf{T}}=-LK^{\mathsf{T}}. \tag*{(4)}

Conversely, any such pair K,LK,L defines a Dirac structure.

Analogously, any Lagrange structure L⊂X×X∗\mathcal{L}\subset\mathcal{X}\times\mathcal{X}^* can be represented as

L=ker⁡[−STPT]=im⁡[PS]⊂X×X∗,(5)\mathcal{L}=\ker\begin{bmatrix}-S^{\mathsf{T}} & P^{\mathsf{T}}\end{bmatrix}=\operatorname{im}\begin{bmatrix}P\\S\end{bmatrix}\subset\mathcal{X}\times\mathcal{X}^*, \tag*{(5)}

for certain matrices S,P∈Rn,nS,P\in\mathbb{R}^{n,n} satisfying rank⁡[PS]=n\operatorname{rank}\begin{bmatrix}P\\S\end{bmatrix}=n, as well as the generalized symmetry condition

STP=PTS.(6)S^{\mathsf{T}}P=P^{\mathsf{T}}S. \tag*{(6)}

Conversely any such pair P,SP,S defines a Lagrange structure.

The above definition of Dirac structures and Lagrange structures modelled on linear spaces X\mathcal{X} can be extended to manifolds as follows. Let X\mathcal{X} be a finite-dimensional manifold. Denote by TxXT_x\mathcal{X} the tangent space to X\mathcal{X} at x∈Xx \in\mathcal{X}, and by Tx∗XT_x^*\mathcal{X} the cotangent space to X\mathcal{X} at xx. Then for every x∈Xx \in\mathcal{X}, the product space TxX×Tx∗XT_x\mathcal{X} \times T_x^*\mathcal{X} can be endowed with the bilinear forms defined in (1) and (2).

A Dirac structure modelled on a manifold X\mathcal{X} is defined as a subbundle2^{2} D⊂TX⊕T∗X\mathcal{D} \subset T\mathcal{X} \oplus T^*\mathcal{X} such that for every x∈Xx \in\mathcal{X} the subspace D(x)⊂TxX×Tx∗X\mathcal{D}(x) \subset T_x\mathcal{X} \times T_x^*\mathcal{X} is a Dirac structure as in Definition 2.1. A Dirac structure D\mathcal{D} on X\mathcal{X} is called regular if for any d∈D⊂TX⊕T∗Xd \in\mathcal{D} \subset T\mathcal{X} \oplus T^*\mathcal{X} the subspace D(x)⊂TxX×Tx∗X\mathcal{D}(x) \subset T_x\mathcal{X} \times T_x^*\mathcal{X}, where xx is the projection of dd on X\mathcal{X}, can be written as the graph of a linear mapping J(x):Tx∗X→TxXJ(x): T_x^*\mathcal{X} \to T_x\mathcal{X}. In this case, J(x)J(x) is skew-symmetric. Otherwise, the Dirac structure is called singular.4

Furthermore, a submanifold L⊂T∗X\mathcal{L} \subset T^*\mathcal{X} is called Lagrangian3^{3} if at every ℓ∈L\ell\in\mathcal{L} the tangent space TℓLT_\ell\mathcal{L} is a Lagrangian subspace of TxX×Tx∗XT_x\mathcal{X} \times T_x^*\mathcal{X}, where xx is the projection of ℓ∈T∗X\ell\in T^*\mathcal{X} on X\mathcal{X}. The Lagrangian submanifold L\mathcal{L} is called regular if L\mathcal{L} locally can be written as the graph of the gradient of a differentiable function H:X→R\mathcal{H}: \mathcal{X} \to\mathbb{R}, that is,

L:={(x,e)∈T∗X∣e=∂H∂x(x)}\mathcal{L} := \{(x,e) \in T^*\mathcal{X} \mid e = \frac{\partial\mathcal{H}}{\partial x}(x)\}

(and conversely, for any differentiable H\mathcal{H} this defines a Lagrangian submanifold). Equivalently, L\mathcal{L} is regular if locally the projection of L⊂T∗X\mathcal{L} \subset T^*\mathcal{X} on X\mathcal{X} is equal to X\mathcal{X}. If there does not exist locally such a function H\mathcal{H}, then the Lagrangian submanifold L\mathcal{L} will be called singular.5

Port-Hamiltonian DAE systems without dissipation and external ports

In this section the definition of port-Hamiltonian DAE systems without energy dissipation and without external ports will be recalled. The extension to systems with energy dissipation and external ports will be given in § 7.

Linear port-Hamiltonian DAE systems without dissipation

Let us start with the linear case following [27].

Definition 3.1 A linear port-Hamiltonian DAE system (pHDAEpHDAE) on a linear state space X\mathcal{X} is defined by a pair (D,L)(\mathcal{D},\mathcal{L}), where D⊂X×X∗\mathcal{D} \subset\mathcal{X} \times\mathcal{X}^{*} is a Dirac structure, and L⊂X×X∗\mathcal{L} \subset\mathcal{X} \times\mathcal{X}^{*} is a Lagrange structure. Its dynamics is given by the relation

{(x,x˙)∣∃e∈X∗ s.t. (x,e)∈L,(−x˙,e)∈D}.(7)\left\{(x,\dot{x}) \mid\exists e \in\mathcal{X}^{*}\ \text{s.t.}\ (x,e) \in\mathcal{L},(-\dot{x},e) \in\mathcal{D}\right\}. \tag*{(7)}

In coordinates xx for X\mathcal{X} the Dirac structure D\mathcal{D} is specified as before by a pair of n×nn \times n matrices K,LK,L, and the Lagrange structure L\mathcal{L} is determined by a pair of n×nn \times n matrices P,SP,S. Then in view of (5) (x,e)∈L(x,e) \in\mathcal{L} can be written as x=Pz,e=Szx = Pz,e = Sz for a certain nn-vector zz. Furthermore, (−x˙,e)∈D(-\dot{x},e) \in\mathcal{D} amounts to Kx˙=LeK\dot{x} = Le. Substitution of the first expressions into the second results in the following coordinate representation of a linear port-Hamiltonian DAE system

KPz˙=LSz.(8)KP\dot{z}=LSz. \tag*{(8)}

This constitutes a system of differential-algebraic equations (DAEs) Ez˙=AzE\dot{z}=Az, where E=KPE=KP and A=LSA=LS. In fact, there are two types of algebraic constraints corresponding to singularity of E=KPE=KP. The first is specified by the singularity of the matrix PP (corresponding to singularity of the Lagrange structure L\mathcal{L}), and the second by the singularity of the matrix KK (corresponding to singularity of the Dirac structure D\mathcal{D}). Following [27], the first type of algebraic constraints are thus called Lagrange algebraic constraints, and the second Dirac algebraic constraints. Explicitly, the Lagrange algebraic constraints are given as x=Pz∈im⁡Px=Pz \in\operatorname{im} P, and the Dirac algebraic constraints as Sz∈im⁡K⊤Sz \in\operatorname{im} K^{\top}. (Note that because of (3) e=Sz∈im⁡K⊤e=Sz \in\operatorname{im} K^{\top}.)

Note that if L={(x,e)∣e=Qx}\mathcal{L}=\{(x,e) \mid e=Qx\} for some symmetric matrix QQ, then the port-Hamiltonian DAE system (D,L)(\mathcal{D},\mathcal{L}) satisfies

ddt12x⊤Qx=x⊤Qx˙=0,(9)\frac{\mathrm{d}}{\mathrm{d}t}\frac{1}{2}x^{\top}Qx=x^{\top}Q\dot{x}=0, \tag*{(9)}

since (f=−x˙,e=Qx)∈D(f=-\dot{x},e=Qx)\in\mathcal{D}. In physical applications 12x⊤Qx\frac{1}{2}x^{\top}Qx equals the total stored energy (Hamiltonian), in which case (9) represents conservation of total energy.

In the case that the Lagrange structure L\mathcal{L} is singular, it is not generated by a Hamiltonian H=12x⊤Qx\mathcal{H}=\frac{1}{2}x^{\top}Qx for some Q=Q⊤Q=Q^{\top}. However in this case one may consider the quadratic function 12z⊤S⊤Pz\frac{1}{2}z^{\top}S^{\top}Pz of the vector zz. Indeed,

ddt12z⊤S⊤Pz=e⊤x˙=0,\frac{d}{dt}\frac{1}{2}z^{\top}S^{\top}Pz=e^{\top}\dot{x}=0,

since x=Pzx=Pz and e=Sze=Sz, and (−x˙,e)=0(-\dot{x},e)=0. Thus 12z⊤S⊤Pz\frac{1}{2}z^{\top}S^{\top}Pz takes over the role of the stored energy.

A special case of (8) are pHDAEs as defined in [19] with K=IK=I and LL skew-symmetric, and thus only exhibiting Lagrange algebraic constraints. The dual special case are pHDAEs as defined in [25] with P=IP=I and SS symmetric, and thus only admitting Dirac algebraic constraints.

Nonlinear port-Hamiltonian DAE systems without dissipation and external ports

Definition 3.1 extends to the nonlinear case as follows; see [28].

Definition 3.2 A port-Hamiltonian system on a state manifold X\mathcal{X} is defined by a pair (D,L)(D,\mathcal{L}), where DD is a Dirac structure on X\mathcal{X} (i.e., a subbundle of TX⊕T∗XT\mathcal{X} \oplus T^{*}\mathcal{X}), and L⊂T∗X\mathcal{L} \subset T^{*}\mathcal{X} is a Lagrangian submanifold. Its dynamics is given by the relation

{(x,x˙)∈TX∣ (x,x˙)∈TX∃e∈Tx∗X s.t. (x,e)∈L,(−x˙,e)∈D(x)}.\left\{(x,\dot{x})\in T\mathcal{X}\mathrel{\left|\,\vphantom{(x,\dot{x})\in T\mathcal{X}}\right.}\exists e\in T_x^{*}\mathcal{X}\ \text{s.t.}\ (x,e)\in\mathcal{L},(-\dot{x},e)\in D(x)\right\}.

In the case that L\mathcal{L} is generated by a Hamiltonian H:X→R\mathcal{H}:\mathcal{X}\to\mathbb{R}, i.e., L={(x,e)∈T∗X∣e=∂H∂x(x)}\mathcal{L}=\{(x,e)\in T^{*}\mathcal{X}\mid e=\frac{\partial\mathcal{H}}{\partial x}(x)\}, we again obtain energy conservation

ddtH=x˙⊤∂H∂x(x)=0,\frac{d}{dt}\mathcal{H}=\dot{x}^{\top}\frac{\partial\mathcal{H}}{\partial x}(x)=0,

since (−x˙,∂H∂x(x))∈D(x)(-\dot{x},\frac{\partial\mathcal{H}}{\partial x}(x))\in D(x).

Analogously to the linear case, also for singular Lagrangian submanifolds energy functions can be defined. This makes use of the representation of Lagrangian submanifolds using Morse families, cf. Appendix § 10, Proposition 9.2. Indeed, under regularity conditions, for any Lagrangian submanifold L⊂T∗X\mathcal{L}\subset T^{*}\mathcal{X}, there locally exists a Morse family F(x,μ)F(x,\mu) such that locally

L={(x,e)∣e=∂F∂x(x,μ),0=∂F∂μ(x,μ)}.(10)\mathcal{L}=\{(x,e)\mid e=\frac{\partial F}{\partial x}(x,\mu),0=\frac{\partial F}{\partial\mu}(x,\mu)\}. \tag*{(10)}

Hence for the port-Hamiltonian DAE system represented by (D,L)(D,\mathcal{L}) it holds that

ddtF(x,μ)=x˙⊤∂F∂x(x,μ)+μ˙⊤∂F∂μ(x,μ)=x˙⊤e=0.\frac{d}{dt}F(x,\mu)=\dot{x}^{\top}\frac{\partial F}{\partial x}(x,\mu)+\dot{\mu}^{\top}\frac{\partial F}{\partial\mu}(x,\mu)=\dot{x}^{\top}e=0.

Here the second equality results from the equation 0=∂F∂μ(x,μ)0 = \frac{\partial F}{\partial\mu}(x,\mu) in (10), while the last equality follows from the fact that (−x˙,e)∈D(-\dot{x},e) \in\mathcal{D}.

As in the linear case, singularity of the Dirac structure and/or of the Lagrangian submanifold defining the port-Hamiltonian system translates into the existence of (nonlinear) algebraic constraints. In fact, if L\mathcal{L} is singular then the inclusion (x,e)∈L(x,e) \in\mathcal{L} entails an algebraic constraint on xx, and if D\mathcal{D} is singular then (−x˙,e)∈D(-\dot{x},e) \in\mathcal{D} defines a constraint on ee, which via (x,e)∈L(x,e) \in\mathcal{L} translates into an algebraic constraint on xx.

Analogously to (4), any Dirac structure D\mathcal{D} on the nn-dimensional state space manifold X\mathcal{X} can be locally written as

D(x)={(f,e)∈TxX×Tx∗X∣K(x)f+L(x)e=0}\mathcal{D}(x) = \{(f,e) \in T_x\mathcal{X} \times T_x^*\mathcal{X} \mid K(x)f + L(x)e = 0\}

for certain square n×nn \times n matrix functions K(x),L(x)K(x),L(x) satisfying

K(x)LT(x)=−L(x)KT(x),rank⁡[K(x)L(x)]=n,x∈X.K(x)L^{\mathsf{T}}(x) = -L(x)K^{\mathsf{T}}(x), \qquad\operatorname{rank}\begin{bmatrix} K(x) & L(x) \end{bmatrix} = n,\qquad x \in\mathcal{X}.

This means that if the Lagrange submanifold L\mathcal{L} is regular, i.e., of the form L={(x,e)∈T∗X∣e=∂H∂x(x)}\mathcal{L} = \{(x,e) \in T^*\mathcal{X} \mid e = \frac{\partial\mathcal{H}}{\partial x}(x)\} for a certain H:X→R\mathcal{H}:\mathcal{X} \to\mathbb{R}, then the nonlinear port-Hamiltonian DAE locally takes the form

K(x)x˙=L(x)∂H∂x(x)K(x)\dot{x} = L(x)\frac{\partial\mathcal{H}}{\partial x}(x)

Obviously Dirac algebraic constraints correspond to the singularity of K(x)K(x).

Local coordinate expressions for a singular Lagrangian submanifold, and the corresponding Lagrange algebraic constraints, are more involved; see also [28]. This will be detailed, among other things, in § 4.

Lagrange and Dirac algebraic constraints, and augmentation by Lagrange multipliers

As discussed above, the algebraic constraints of general port-Hamiltonian DAE systems can be distinguished into Lagrange and Dirac algebraic constraints. In this section we recall from [27] (linear case) and [28] (nonlinear case) how Lagrange algebraic constraints can be converted into Dirac algebraic constraints, and conversely Dirac algebraic constraints into Lagrange algebraic constraints. We show how this can be done by the use of Lagrange multipliers; see Appendix § 9 for the required background and statements. The multipliers will be used to augment systems with regular Lagrange and Dirac structure without changing the energy function (Hamiltonian). flexibility of formulating the algebraic constraints either as Lagrange or as Dirac algebraic constraints will be important in applications. This will be demonstrated by the examples in the present and next section.

In this section we restrict ourselves to systems without energy dissipation and external ports. The extension to systems with energy dissipation and external ports will be given in § 7. Again, we first discuss the linear case and then extend the results to nonlinear systems.

Algebraic constraints in the linear case

We start with a systematic discussion of the linear case. Throughout this subsection we consider a linear pHDAE system (D,L)(\mathcal{D},\mathcal{L}) given by (7), with coordinate representation (8).

Singular Lagrange structure

Consider a regular Dirac structure D=graph⁡(−J)⊂X×X∗\mathcal{D} = \operatorname{graph}(-J) \subset\mathcal{X} \times\mathcal{X}^*, where JJ is a skew-symmetric matrix and a singular Lagrange structure L⊂X×X∗\mathcal{L} \subset\mathcal{X} \times\mathcal{X}^*.

As detailed in Appendix A such a singular Lagrange structure can be always, see e.g. [14], represented as L={(x,e)∣e=Qx+Cμμ,CμTx=0}\mathcal{L} = \{(x,e) \mid e = Qx+C_\mu\mu, C_\mu^{\mathsf{T}}x = 0\} for certain matrices CμC_\mu and Q=QTQ = Q^{\mathsf{T}}. The function F(x,μ)=12xTQx+μTCμTxF(x,\mu) = \frac{1}{2}x^{\mathsf{T}}Qx+\mu^{\mathsf{T}}C_\mu^{\mathsf{T}}x is called a Morse family for the Lagrange structure.

To obtain an augmented pHDAE representation, we consider the augmented state (x,μ)∈Xa(x,\mu) \in\mathcal{X}_a, and augmented efforts (e,eμ)∈Xa∗(e,e_\mu) \in\mathcal{X}_a^*, together with the augmented Lagrange structure

La=graph⁡[QCμCμT0].\mathcal{L}_a = \operatorname{graph}\begin{bmatrix} Q & C_\mu\\ C_\mu^{\mathsf{T}} & 0 \end{bmatrix}.

Furthermore, we consider the augmented Dirac structure

Da={(f,fμ,e,eμ)∈Xa×Xa∗ | [I000][ffμ]=−[J00I][eeμ]}.\mathcal{D}_a = \left\{(f,f_\mu,e,e_\mu) \in\mathcal{X}_a \times\mathcal{X}_a^* \,\middle|\, \begin{bmatrix} I & 0 \\ 0 & 0 \end{bmatrix}\begin{bmatrix} f \\ f_\mu\end{bmatrix} = -\begin{bmatrix} J & 0 \\ 0 & I \end{bmatrix}\begin{bmatrix} e \\ e_\mu\end{bmatrix}\right\}.

Note that the augmented Lagrange structure La\mathcal{L}_a is regular, while the augmented Dirac structure Da\mathcal{D}_a is now singular. This results in an augmented pHDAE of the form (8) given by

\begin{bmatrix} I & 0 \\ 0 & 0 \end{bmatrix} \begin{bmatrix} I & 0 \\ 0 & I \end{bmatrix} \begin{bmatrix} \dot{x} \\ \dot{\mu} \end{bmatrix} = \begin{bmatrix} J & 0 \\ 0 & I \end{bmatrix} \begin{bmatrix} Q & C_\mu\\ C_\mu^{\mathsf{T}} & 0 \end{bmatrix} \begin{bmatrix} x \\ \mu\end{bmatrix}, \tag*{(11)}\end{bmatrix}

with Dirac algebraic constraints, but without Lagrange algebraic constraints. It is immediately verified that this augmented pHDAE system covers the original pHDAE in the sense that the xx-part of the solutions of (11) coincides with the solutions of the original system.

Interestingly, the Hamiltonian of the augmented pHDAE system (11) is given by

H1(xa)=12[xμ][QCμCμT0][xμ]=12xTQx.\mathcal{H}_1(x_a)=\frac{1}{2}\begin{bmatrix}x & \mu\end{bmatrix}\begin{bmatrix}Q & C_\mu\\ C_\mu^{\mathsf{T}} & 0\end{bmatrix}\begin{bmatrix}x\\ \mu\end{bmatrix}=\frac{1}{2}x^{\mathsf{T}}Qx.

Thus the Lagrange multiplier μ\mu does not contribute to the Hamiltonian, and the Hamiltonian of (11) equals the Hamiltonian of the original pHDAE system.

Example 4.1 Consider a linear mechanical system with configuration coordinates qq subject to geometric constraints GμTq=0G_\mu^{\mathsf{T}}q=0 for some matrix GμG_\mu. The Hamiltonian is of the form kinetic energy plus potential energy:

H1(q,p)=12pTM−1p+12qTΦq.\mathcal{H}_1(q,p)=\frac{1}{2}p^{\mathsf{T}}M^{-1}p+\frac{1}{2}q^{\mathsf{T}}\Phi q.

where p=Mq˙p=M\dot{q} are the momenta, and Φ=ΦT\Phi=\Phi^{\mathsf{T}} is a matrix defining the potential energy. Note that the geometric constraints GμTq=0G_\mu^{\mathsf{T}}q=0 are Lagrange algebraic constraints, corresponding to the singular Lagrange structure

L={(q,p,eq,ep) | [eqep]−[Φ00M−1][qp]∈im⁡[Gμ0],GμTq=0},\mathcal{L}=\left\{(q,p,e_q,e_p)\,\middle|\,\begin{bmatrix}e_q\\e_p\end{bmatrix}-\begin{bmatrix}\Phi&0\\0&M^{-1}\end{bmatrix}\begin{bmatrix}q\\p\end{bmatrix}\in\operatorname{im}\begin{bmatrix}G_\mu\\0\end{bmatrix},G_\mu^{\mathsf{T}}q=0\right\},

which can be equivalently written as

L={(q,p,eq,ep) | ∃ μ s.t. [eqep]=[Φ00M−1][qp]+[Gμ0]μ,GμTq=0}.\mathcal{L}=\left\{(q,p,e_q,e_p)\,\middle|\,\exists\ \mu\ \text{s.t.}\ \begin{bmatrix}e_q\\e_p\end{bmatrix}=\begin{bmatrix}\Phi&0\\0&M^{-1}\end{bmatrix}\begin{bmatrix}q\\p\end{bmatrix}+\begin{bmatrix}G_\mu\\0\end{bmatrix}\mu,G_\mu^{\mathsf{T}}q=0\right\}.

Thus, the regular augmented Lagrange structure La\mathcal{L}_a in the augmented state xa=[qTpTμT]Tx_a=\begin{bmatrix}q^{\mathsf{T}}&p^{\mathsf{T}}&\mu^{\mathsf{T}}\end{bmatrix}^{\mathsf{T}} is given as

La={(q,p,μ,eq,ep,eμ) | [eqepeμ]=[Φ0Gμ0M−10GμT00][qpμ]}.\mathcal{L}_a=\left\{(q,p,\mu,e_q,e_p,e_\mu)\,\middle|\,\begin{bmatrix}e_q\\e_p\\e_\mu\end{bmatrix}=\begin{bmatrix}\Phi&0&G_\mu\\0&M^{-1}&0\\G_\mu^{\mathsf{T}}&0&0\end{bmatrix}\begin{bmatrix}q\\p\\\mu\end{bmatrix}\right\}.

Correspondingly, the singular augmented Dirac structure is

Da={(fq,fp,fμ,eq,ep,eμ) | [I000I0000][fqfpfμ]+[0I0−I0000J][eqepeμ]=0}.\mathcal{D}_a=\left\{(f_q,f_p,f_\mu,e_q,e_p,e_\mu)\,\middle|\,\begin{bmatrix}I&0&0\\0&I&0\\0&0&0\end{bmatrix}\begin{bmatrix}f_q\\f_p\\f_\mu\end{bmatrix}+\begin{bmatrix}0&I&0\\-I&0&0\\0&0&J\end{bmatrix}\begin{bmatrix}e_q\\e_p\\e_\mu\end{bmatrix}=0\right\}.

Taken together, this results in the augmented pHDAE system

[I000I0000][I000I000I][q˙p˙μ˙]=[0I0−I0000I][Φ0Gμ0M−10GμT00][qpμ].\begin{bmatrix} I & 0 & 0 \\ 0 & I & 0 \\ 0 & 0 & 0 \end{bmatrix} \begin{bmatrix} I & 0 & 0 \\ 0 & I & 0 \\ 0 & 0 & I \end{bmatrix} \begin{bmatrix} \dot{q} \\ \dot{p} \\ \dot{\mu} \end{bmatrix} = \begin{bmatrix} 0 & I & 0 \\ -I & 0 & 0 \\ 0 & 0 & I \end{bmatrix} \begin{bmatrix} \Phi& 0 & G_{\mu} \\ 0 & M^{-1} & 0 \\ G_{\mu}^{\mathsf{T}} & 0 & 0 \end{bmatrix} \begin{bmatrix} q \\ p \\ \mu\end{bmatrix}.

As a consequence, the Lagrange algebraic constraints GμTq=0G_{\mu}^{\mathsf{T}}q=0 for the original system have been converted into Dirac algebraic constraints for the augmented system.

Singular Dirac structure

Consider now instead a regular Lagrange structure L=graph⁡(Q)\mathcal{L}=\operatorname{graph}(Q), where QQ is a symmetric matrix, and a singular Dirac structure D\mathcal{D}. As detailed in Appendix A such a singular Dirac structure can be always represented as

D={(f,e)∣∃ eλ, s.t. −f=Jx+Cλeλ, CλTeλ=0}\mathcal{D}=\{(f,e)\mid\exists\ e_{\lambda},\ \text{s.t.}\ -f=Jx+C_{\lambda}e_{\lambda},\ C_{\lambda}^{\mathsf{T}}e_{\lambda}=0\}

for a certain skew-symmetric matrix JJ and a matrix CλC_{\lambda}. To obtain an extended pHDAE representation we consider an augmented state vector tuple xa=(x,λ)∈Xax_a=(x,\lambda)\in\mathcal{X}_a and an augmented tuple (f,fλ,e,eλ)∈Xa×Xa∗(f,f_{\lambda},e,e_{\lambda})\in\mathcal{X}_a\times\mathcal{X}_a^* of flows and efforts. This leads to a regular augmented Dirac structure

Da={(f,fλ,e,eλ)∣−[ffλ]=[JCλCλT0][eeλ]},\mathcal{D}_a=\left\{(f,f_{\lambda},e,e_{\lambda})\mid -\begin{bmatrix} f \\ f_{\lambda} \end{bmatrix} = \begin{bmatrix} J & C_{\lambda} \\ C_{\lambda}^{\mathsf{T}} & 0 \end{bmatrix} \begin{bmatrix} e \\ e_{\lambda} \end{bmatrix}\right\},

and a singular augmented Lagrange structure

La={(x,λ,e,eλ)∈Xa×Xa∗∣[Q00I][xλ]+[I000][eeλ]=0}.\mathcal{L}_a=\left\{(x,\lambda,e,e_{\lambda})\in\mathcal{X}_a\times\mathcal{X}_a^*\left| \begin{bmatrix} Q & 0 \\ 0 & I \end{bmatrix} \begin{bmatrix} x \\ \lambda\end{bmatrix} + \begin{bmatrix} I & 0 \\ 0 & 0 \end{bmatrix} \begin{bmatrix} e \\ e_{\lambda} \end{bmatrix} =0\right.\right\}.

Taken together, this gives an augmented pHDAE of the form (8) in the augmented state xa=[xTλT]Tx_a=\begin{bmatrix}x^{\mathsf{T}} & \lambda^{\mathsf{T}}\end{bmatrix}^{\mathsf{T}} with

\begin{bmatrix} I & 0 \\ 0 & I \end{bmatrix} \begin{bmatrix} I & 0 \\ 0 & 0 \end{bmatrix} \begin{bmatrix} \dot{x} \\ \dot{\lambda} \end{bmatrix} = \begin{bmatrix} J & C_{\lambda} \\ -C_{\lambda}^{\mathsf{T}} & 0 \end{bmatrix} \begin{bmatrix} Q & 0 \\ 0 & I \end{bmatrix} \begin{bmatrix} x \\ \lambda\end{bmatrix}, \tag*{(12)}\end{bmatrix}

where, compared to the original system, the Dirac algebraic constraint 0=CλTeλ=CλTQx0=C_{\lambda}^{\mathsf{T}}e_{\lambda}=C_{\lambda}^{\mathsf{T}}Qx is now interpreted as a Lagrange algebraic constraint with respect to the extended state xa=(x,λ)x_a=(x,\lambda). Finally, note that the energy function of the augmented system (12) is given as

H2(xa)=12[xλ]T[I000][Q00I][xλ]=12xTQx.\mathcal{H}_2(x_a)=\frac{1}{2}\begin{bmatrix}x\\\lambda\end{bmatrix}^{\mathsf{T}}\begin{bmatrix}I&0\\0&0\end{bmatrix}\begin{bmatrix}Q&0\\0&I\end{bmatrix}\begin{bmatrix}x\\\lambda\end{bmatrix}=\frac{1}{2}x^{\mathsf{T}}Qx.

Thus, again, the Lagrange multiplier λ\lambda does not contribute to the Hamiltonian. Note that this system has the form of a pHDAE system as in [19].

Example 4.2 Consider the mechanical system from Example 4.1, but now subject to kinematic constraints GλTq˙=0G_{\lambda}^{\mathsf{T}}\dot{q}=0 for some matrix GλG_{\lambda}. Inserting q˙=M−1p\dot{q}=M^{-1}p, the kinematic constraints can be expressed as the Dirac algebraic constraint GλTM−1p=0G_{\lambda}^{\mathsf{T}}M^{-1}p=0.

By d’Alembert’s principle the kinematic constraints give rise to constraint forces GλλG_{\lambda}\lambda for some vector of Lagrange multipliers λ\lambda. This results in the extended pHDAE of the form (8) in xa=[qTpTλT]Tx_a=\begin{bmatrix}q^{\mathsf{T}}&p^{\mathsf{T}}&\lambda^{\mathsf{T}}\end{bmatrix}^{\mathsf{T}} given by

[I000I000I][I000I0000][q˙p˙λ˙]=[0I0−I0Gλ0−GλT0][Φ000M−1000I][qpλ],\begin{bmatrix}I&0&0\\0&I&0\\0&0&I\end{bmatrix} \begin{bmatrix}I&0&0\\0&I&0\\0&0&0\end{bmatrix} \begin{bmatrix}\dot{q}\\\dot{p}\\\dot{\lambda}\end{bmatrix} = \begin{bmatrix}0&I&0\\-I&0&G_{\lambda}\\0&-G_{\lambda}^{\mathsf{T}}&0\end{bmatrix} \begin{bmatrix}\Phi&0&0\\0&M^{-1}&0\\0&0&I\end{bmatrix} \begin{bmatrix}q\\p\\\lambda\end{bmatrix},

where again the Hamiltonian is

H2(q,p,λ)=12pTM−1p+12qTΦq.\mathcal{H}_2(q,p,\lambda)=\frac{1}{2}p^{\mathsf{T}}M^{-1}p+\frac{1}{2}q^{\mathsf{T}}\Phi q.

Algebraic constraints in the nonlinear case

In this subsection we extend the results of the previous subsection to the nonlinear case.

Singular Dirac structure and regular Lagrangian submanifold

Consider a port-Hamiltonian DAE system (D,L)(\mathcal{D},\mathcal{L}), on a state space manifold X\mathcal{X}, where the Dirac structure D\mathcal{D} is singular, while the Lagrangian submanifold L\mathcal{L} is regular, i.e., locally L={(x,e)∈T∗X∣e=∂H∂x(x)}\mathcal{L}=\{(x,e)\in T^*\mathcal{X}\mid e=\frac{\partial\mathcal{H}}{\partial x}(x)\} for some generating function H\mathcal{H} (the Hamiltonian). Then by Proposition 9.1 in Appendix A, the Dirac structure can be locally written as

D(x)={(f,e)∈TxX×Tx∗X∣∃eλ∈Λ∗ s.t. −f=J(x)e+CΛ(x)eλ,0=CΛT(x)e}.\mathcal{D}(x)=\{(f,e)\in T_x\mathcal{X}\times T_x^*\mathcal{X}\mid\exists e_\lambda\in\Lambda^*\ \text{s.t.}\ -f=J(x)e+C_\Lambda(x)e_\lambda,\quad0=C_\Lambda^{\mathsf{T}}(x)e\}.

for some skew-symmetric matrix function J(x)J(x) and a matrix function CΛ(x)C_\Lambda(x). This means that on the augmented state space manifold Xa:=X×Λ\mathcal{X}_a:=\mathcal{X}\times\Lambda one defines the regular Dirac structure Da\mathcal{D}_a as the graph of the skew-symmetric matrix function

Ja=[−J(x)−CΛ(x)CΛT(x)0].J_a=\begin{bmatrix}-J(x)&-C_\Lambda(x)\\ C_\Lambda^{\mathsf{T}}(x)&0\end{bmatrix}.

On the other hand, the regular Lagrangian submanifold L⊂T∗X\mathcal{L}\subset T^*\mathcal{X} is augmented to a singular Lagrangian submanifold La⊂T∗Xa\mathcal{L}_a\subset T^*\mathcal{X}_a defined as

La:={(x,λ,e,eλ)∈T∗Xa∣e=∂H∂x(x),λ=0}.(13)\mathcal{L}_a:=\{(x,\lambda,e,e_\lambda)\in T^*\mathcal{X}_a\mid e=\frac{\partial\mathcal{H}}{\partial x}(x),\lambda=0\}. \tag*{(13)}

corresponding to the Lagrange algebraic constraints 0=λ0=\lambda. This results in the following proposition.

Proposition 4.3 Consider a port-Hamiltonian DAE system (D,L)(\mathcal{D},\mathcal{L}) on a state space manifold X\mathcal{X}, where the Dirac structure D\mathcal{D} is singular, while the Lagrangian submanifold L\mathcal{L} is regular. Then it can be augmented to a port-Hamiltonian DAE system (Da,La)(\mathcal{D}_a,\mathcal{L}_a) on the augmented space manifold Xa\mathcal{X}_a with regular Dirac structure and singular Lagrangian submanifold. Furthermore, the xx-dynamics of this augmented system is the same as of the original system.

Comparing with the linear case (i.e., the definition of the matrices P,SP,S representing the singular Lagrange structure), we note that the singular Lagrangian submanifold La\mathcal{L}_a defined in (13) can be also represented as the solution set of

[I000][eeλ]=[∂Ha∂x(x,λ)∂Ha∂λ(x,λ)].\begin{bmatrix}I&0\\0&0\end{bmatrix} \begin{bmatrix}e\\e_\lambda\end{bmatrix} = \begin{bmatrix}\dfrac{\partial\mathcal{H}_a}{\partial x}(x,\lambda)\\[4pt]\dfrac{\partial\mathcal{H}_a}{\partial\lambda}(x,\lambda)\end{bmatrix}.

where

Ha(x,λ):=H(x)+12λTλ.\mathcal{H}_a(x,\lambda):=\mathcal{H}(x)+\frac{1}{2}\lambda^{\mathsf{T}}\lambda.

Thus, Dirac algebraic constraints can always be converted into Lagrange algebraic constraints by augmenting with Lagrange multipliers. Furthermore, note that for the augmented pHDAE system

ddtH(x)=x˙T∂H∂x(x)=x˙Te=0.\frac{d}{dt}H(x)=\dot{x}^{\mathsf{T}}\frac{\partial H}{\partial x}(x)=\dot{x}^{\mathsf{T}}e=0.

Indeed x˙=J(x)e+Cλ(x)eλ\dot{x}=J(x)e+C_{\lambda}(x)e_{\lambda}, and therefore

x˙Te=eTJT(x)e+λTCλT(x)e=0.\dot{x}^{\mathsf{T}}e=e^{\mathsf{T}}J^{\mathsf{T}}(x)e+\lambda^{\mathsf{T}}C_{\lambda}^{\mathsf{T}}(x)e=0.

by the skew-symmetry of J(x)J(x) and since λ=0\lambda=0. Thus H\mathcal{H} (independent of λ\lambda) is still the Hamiltonian of the augmented system (D,L)(\mathcal{D},\mathcal{L}).

Singular Lagrangian submanifolds

Alternatively, consider a nonlinear port-Hamiltonian DAE system (D,L)(\mathcal{D},\mathcal{L}), where the Lagrangian submanifold L\mathcal{L} is singular. Then, using Proposition 9.2, L⊂T∗X\mathcal{L}\subset T^{*}\mathcal{X} can be locally represented, using a Morse family F(x,μ)F(x,\mu), as

L={(x,∂F∂x(x,μ)) | ∂F∂μ(x,μ)=0}.(14)\mathcal{L}=\left\{\left(x,\frac{\partial F}{\partial x}(x,\mu)\right)\ \middle|\ \frac{\partial F}{\partial\mu}(x,\mu)=0\right\}. \tag*{(14)}

This leads to the regular augmented Lagrangian submanifold

La={(x,λ,e,eμ) | e=∂F∂x(x,μ),eμ=∂F∂λ(x,μ)}\mathcal{L}_{a}=\left\{(x,\lambda,e,e_{\mu})\ \middle|\ e=\frac{\partial F}{\partial x}(x,\mu),e_{\mu}=\frac{\partial F}{\partial\lambda}(x,\mu)\right\}

on the augmented space of points (x,μ)(x,\mu). Furthermore, the Dirac structure D\mathcal{D} on X\mathcal{X} may be augmented with the trivial Dirac structure {(fμ,eμ)∣eμ=0}\{(f_{\mu},e_{\mu})\mid e_{\mu}=0\}, so as to obtain an augmented Dirac structure Da\mathcal{D}_{a}. This defines an extended port-Hamiltonian system (Da,La)(\mathcal{D}_{a},\mathcal{L}_{a}) with an explicit energy function F(x,μ)F(x,\mu), and thus without any Lagrange algebraic constraints.

This is summarized in the following proposition.

Proposition 4.4 Consider a port-Hamiltonian DAE system (D,L)(\mathcal{D},\mathcal{L}) with Lagrange algebraic constraints. Represent L\mathcal{L} by a Morse family F(x,μ)F(x,\mu) on Xa=X×Λ\mathcal{X}_{a}=\mathcal{X}\times\Lambda as in (14), and define the augmented Dirac structure Da\mathcal{D}_{a} as the product of D\mathcal{D} with the Dirac structure {(fμ,eλ)∣eμ=0}\{(f_{\mu},e_{\lambda})\mid e_{\mu}=0\}. Then (D,L)(\mathcal{D},\mathcal{L}) has been transformed into the port-Hamiltonian system (Da,La)(\mathcal{D}_{a},\mathcal{L}_{a}) with state space Xa\mathcal{X}_{a}, in such a way that its xx-dynamics is the same as that of the original port-Hamiltonian DAE system.

Example 4.5 (Optimal control [3]). Consider the optimal control problem of minimizing a cost functional ∫t0tfK(q(t),u(t))dt\int_{t_0}^{t_f} K(q(t),u(t))\mathrm{d}t for a control system q˙=f(q,u)\dot{q}=f(q,u), with q:[t0,tf]→Rnq:[t_0,t_f]\to\mathbb{R}^{n}, u:[t0,tf]→Rmu:[t_0,t_f]\to\mathbb{R}^{m}, q(t0)∈Rnq(t_0)\in\mathbb{R}^{n}. Define the optimal control Hamiltonian

H(q,p,u)=pTf(q,u)−K(q,u),\mathcal{H}(q,p,u)=p^{\mathsf{T}}f(q,u)-K(q,u),

with p∈Rnp\in\mathbb{R}^{n} the co-state vector. Application of Pontryagin’s Maximum principle leads to the consideration of the port-Hamiltonian DAE system on the space with coordinates (q,p,u)(q,p,u), given as

\begin{bmatrix} I & 0 & 0 \\ 0 & I & 0 \\ 0 & 0 & 0 \end{bmatrix} \begin{bmatrix} \dot{q} \\ \dot{p} \\ \dot{u} \end{bmatrix} = \begin{bmatrix} 0 & I_n & 0 \\ -I_n & 0 & 0 \\ 0 & 0 & I_m \end{bmatrix} \begin{bmatrix} \frac{\partial\mathcal{H}}{\partial q}(q,p,u) \\ \frac{\partial\mathcal{H}}{\partial p}(q,p,u) \\ \frac{\partial\mathcal{H}}{\partial u}(q,p,u) \end{bmatrix}. \tag*{(15)}\end{bmatrix}

The underlying Dirac structure is given as

D={([fqfpfu],[eqepeu])|fq=−ep, fp=eq, eu=0},\mathcal{D}=\left\{\left(\begin{bmatrix} f_q \\ f_p \\ f_u \end{bmatrix},\begin{bmatrix} e_q \\ e_p \\ e_u \end{bmatrix}\right)\middle| f_q=-e_p,\ f_p=e_q,\ e_u=0\right\},

i.e., the direct product of the Dirac structure on the (q,p)(q,p) space given by the graph of the canonical skew-symmetric map [0−II0]\begin{bmatrix} 0 & -I \\ I & 0 \end{bmatrix} from [eqep]\begin{bmatrix} e_q \\ e_p \end{bmatrix} to [fqfp]\begin{bmatrix} f_q \\ f_p \end{bmatrix}, with the trivial Dirac structure {(fu,eu)∣eu=0}\{(f_u,e_u)\mid e_u=0\}. The resulting Dirac algebraic constraints are ∂H∂u(q,p,u)=0\frac{\partial\mathcal{H}}{\partial u}(q,p,u)=0.

System (15) can be equivalently rewritten as a port-Hamiltonian system only involving the (q,p)(q,p) variables, with implicit energy storage relation given by the Lagrangian submanifold

L={([qp],[eqep])|∃ u such that [eqep]=[∂H∂q(q,p,u)∂H∂p(q,p,u)], ∂H∂u(q,p,u)=0}.(16)\mathcal{L}=\left\{\left(\begin{bmatrix} q \\ p \end{bmatrix},\begin{bmatrix} e_q \\ e_p \end{bmatrix}\right)\middle|\exists\,u\ \text{such that}\ \begin{bmatrix} e_q \\ e_p \end{bmatrix}=\begin{bmatrix} \frac{\partial\mathcal{H}}{\partial q}(q,p,u) \\ \frac{\partial\mathcal{H}}{\partial p}(q,p,u) \end{bmatrix},\ \frac{\partial\mathcal{H}}{\partial u}(q,p,u)=0\right\}. \tag*{(16)}

Thus, the optimal control Hamiltonian H(q,p,u)\mathcal{H}(q,p,u) defines a Morse family for L\mathcal{L} (with uu taking the role of the Lagrange multipliers), and the conversion of (16) into (15) is an example of conversion of a Lagrange algebraic constraint into a Dirac algebraic constraint, see [28] for details.

An important special case of singular Lagrangian submanifolds is the following situation. Consider a Lagrangian submanifold L⊂T∗X\mathcal{L}\subset T^{*}X with

natural coordinates (x,e)(x,e), with a Morse family of the separable form

F(x,μ)=H(x)+μTc(x)F(x,\mu) = \mathcal{H}(x) + \mu^{\mathsf{T}}c(x)

for some Hamiltonian H:X→R\mathcal{H}:\mathcal{X}\to\mathbb{R} and constraint mapping c:X→Rkc:\mathcal{X}\to\mathbb{R}^{k}. This means that L\mathcal{L} is given as

L={(x,e)∣∃ μ s.t. e=∂H∂x(x)+Cμ(x)μ, c(x)=0},\mathcal{L} = \{(x,e)\mid\exists\ \mu\ \text{s.t.}\ e = \frac{\partial\mathcal{H}}{\partial x}(x) + C_{\mu}(x)\mu,\ c(x)=0\},

where Cμ(x):=∂cT∂x(x)C_{\mu}(x) := \frac{\partial c^{\mathsf{T}}}{\partial x}(x) and μ\mu are Lagrange multipliers. Combined with a general Dirac structure DD on X\mathcal{X} with coefficient functions K(x),L(x)K(x),L(x), this leads to a port-Hamiltonian DAE system

[K(x)000][x˙μ˙]=[L(x)∂H∂x(x)+Cμ(x)μc(x)](17)\begin{bmatrix} K(x) & 0 \\ 0 & 0 \end{bmatrix} \begin{bmatrix} \dot{x} \\ \dot{\mu} \end{bmatrix} = \begin{bmatrix} L(x)\frac{\partial\mathcal{H}}{\partial x}(x)+C_{\mu}(x)\mu\\ c(x) \tag*{(17)} \end{bmatrix}

or equivalently

[K(x)000][x˙μ˙]=[L(x)00I][∂F∂x(x,μ)∂F∂μ(x,μ)].\begin{bmatrix} K(x) & 0 \\ 0 & 0 \end{bmatrix} \begin{bmatrix} \dot{x} \\ \dot{\mu} \end{bmatrix} = \begin{bmatrix} L(x) & 0 \\ 0 & I \end{bmatrix} \begin{bmatrix} \frac{\partial F}{\partial x}(x,\mu) \\ \frac{\partial F}{\partial\mu}(x,\mu) \end{bmatrix}.

A special case of (17) is

[I000][x˙μ˙]=[J(x)∂H∂x(x)+Cμ(x)μc(x)](18)\begin{bmatrix} I & 0 \\ 0 & 0 \end{bmatrix} \begin{bmatrix} \dot{x} \\ \dot{\mu} \end{bmatrix} = \begin{bmatrix} J(x)\frac{\partial\mathcal{H}}{\partial x}(x)+C_{\mu}(x)\mu\\ c(x) \tag*{(18)} \end{bmatrix}

where J(x)=−JT(x)J(x)=-J^{\mathsf{T}}(x), and we obtain the following energy balance

ddtH=x˙T∂H∂x(x)=−[∂H∂x(x)+Cμ(x)μ]TJ(x)∂H∂x(x)=−μTCμT(x)J(x)∂H∂x(x).(19)\begin{aligned} \frac{d}{dt}\mathcal{H} = \dot{x}^{\mathsf{T}}\frac{\partial\mathcal{H}}{\partial x}(x) = -\left[\frac{\partial\mathcal{H}}{\partial x}(x)+C_{\mu}(x)\mu\right]^{\mathsf{T}}J(x)\frac{\partial\mathcal{H}}{\partial x}(x) \\ &= -\mu^{\mathsf{T}}C_{\mu}^{\mathsf{T}}(x)J(x)\frac{\partial\mathcal{H}}{\partial x}(x). \tag*{(19)} \end{aligned}

On the other hand μ\mu is chosen such that the constraint c(x)=0c(x)=0 remains satisfied. Hence by differentiation, μ\mu satisfies

0=CμT(x)x˙=CμT(x)J(x)[∂H∂x(x)+Cμ(x)μ]=CμT(x)J(x)∂H∂x(x)+CμT(x)J(x)Cμ(x)μ.\begin{aligned} 0=C_{\mu}^{\mathsf{T}}(x)\dot{x} =C_{\mu}^{\mathsf{T}}(x)J(x)\left[\frac{\partial\mathcal{H}}{\partial x}(x)+C_{\mu}(x)\mu\right] \\ &=C_{\mu}^{\mathsf{T}}(x)J(x)\frac{\partial\mathcal{H}}{\partial x}(x)+C_{\mu}^{\mathsf{T}}(x)J(x)C_{\mu}(x)\mu. \end{aligned}

Together with (19) this yields energy conservation, i.e.,

ddtH=−μTCμT(x)J(x)Cμ(x)μ=0.\frac{d}{dt}\mathcal{H}=-\mu^{\mathsf{T}}C_{\mu}^{\mathsf{T}}(x)J(x)C_{\mu}(x)\mu=0.

A special case of (18) are mechanical systems with position constraints g(q)=0g(q)=0, where x=(q,p)x=(q,p). This will be discussed in the next section.

Remark 4.6. The developments in this subsection also form the starting point for the theory of Dirac brackets, as developed in the 1950s by Paul Dirac, see e.g. [9]. In this context the constraints c(x)=0c(x)=0 arise from nonsurjectivity of the map (q,q˙)↦(q,p=∂L∂q˙(q,q˙))(q,\dot{q}) \mapsto(q,p=\frac{\partial L}{\partial\dot{q}}(q,\dot{q})) from TQTQ to T∗QT^{*}Q, for a singular Lagrangian function L(q,q˙)L(q,\dot{q}). This means that the Hamiltonian is H(x)+μTc(x)\mathcal{H}(x)+\mu^{\mathsf{T}}c(x), where μ\mu is undetermined. By possibly differentiating the primary constraints c(x)=0c(x)=0 to secondary constraints one is led to a constraint submanifold of the state space X=T∗Q\mathcal{X}=T^{*}Q. Under a regularity assumption (the decoupling matrix has full rank), the system (18) restricted to this constraint manifold defines a unique Hamiltonian vector field with respect to a Poisson bracket that is called the Dirac bracket. See [22] (Chapter 12) for details.

Nonlinear mechanical systems

In this section we will look specifically at algebraic constraints that occur in nonlinear mechanical systems. This includes primarily the study of geometric and kinematic constraints, but also the classical (although) relatively unknown) Livens principle.

Hamilton’s equations and Livens principle

A standard way to derive the equations of motion of a mechanical system is to start from a Lagrangian function L(q,q˙)L(q,\dot{q}), where qq are the configuration coordinates of the mechanical system and q˙\dot{q} the corresponding generalized velocities. Using variational calculus for optimizing the action integral ∫L(q(t),q˙(t))dt\int L(q(t),\dot{q}(t))\mathrm{d}t one derives the Euler-Lagrange equations

ddt∂L∂q˙(q,q˙)=∂L∂q(q,q˙)(20)\frac{\mathrm{d}}{\mathrm{d}t}\frac{\partial L}{\partial\dot{q}}(q,\dot{q})=\frac{\partial L}{\partial q}(q,\dot{q}) \tag*{(20)}

describing the second-order equations of motion. Next one defines the Hamiltonian function H(q,p)\mathcal{H}(q,p) as the partial Legendre transform, see e.g. [2], (assuming it exists) of L(q,q˙)L(q,\dot{q}) with respect to q˙\dot{q}, with p=∂L∂q˙p=\frac{\partial L}{\partial\dot{q}} the vector of momenta. As a result, the Euler-Lagrange equations (20) transform into the classical Hamiltonian equations

\begin{bmatrix} \dot{q}\\ \dot{p} \end{bmatrix} = \begin{bmatrix} 0 & I\\ -I & 0 \end{bmatrix} \begin{bmatrix} \frac{\partial\mathcal{H}}{\partial q}(q,p)\\ \frac{\partial\mathcal{H}}{\partial p}(q,p) \end{bmatrix}. \tag*{(21)}\end{bmatrix}

For example, if L(q,q˙)=12q˙TM(q)q˙−V(q)L(q,\dot{q}) = \frac{1}{2}\dot{q}^{\mathsf{T}}M(q)\dot{q}-V(q) (kinetic minus potential energy), for some invertible mass matrix M(q)M(q), then the Hamiltonian is given as as the total energy H(q,p)=12pTM−1(q)p+V(q)\mathcal{H}(q,p) = \frac{1}{2}p^{\mathsf{T}}M^{-1}(q)p+V(q).

An alternative view is provided by the classical Livens principle [18], see e.g. [16]. This avoids the explicit Legendre transform by introducing the velocity vv as an extra variable, and considering the augmented Lagrangian

L1(q,v):=L(q,v)+pT(q˙−v).L_1(q,v) := L(q,v) + p^{\mathsf{T}}(\dot{q}-v).

Thus q˙\dot{q} in the Lagrangian L(q,q˙)L(q,\dot{q}) is replaced by vv, while interpreting the equality v=q˙v=\dot{q} as a constraint q˙−v=0\dot{q}-v=0 with Lagrange multiplier pp. Application of variational calculus to this augmented Lagrangian L1L_1 (and exploiting affine dependence on q˙\dot{q}) yields the following system

\begin{bmatrix} I & 0 & 0 \\ 0 & I & 0 \\ 0 & 0 & 0 \end{bmatrix} \begin{bmatrix} \dot{q} \\ \dot{p} \\ \dot{v} \end{bmatrix} = \begin{bmatrix} 0 & I & 0 \\ -I & 0 & 0 \\ 0 & 0 & I \end{bmatrix} \begin{bmatrix} \frac{\partial\mathcal{H}_1}{\partial q} \\ \frac{\partial\mathcal{H}_1}{\partial p} \\ \frac{\partial\mathcal{H}_1}{\partial v} \end{bmatrix}, \tag*{(22)}\end{bmatrix}

in the extended set of state variables q,p,vq,p,v, with Hamiltonian

H1(q,p,v):=pTv−L(q,v).\mathcal{H}_1(q,p,v) := p^{\mathsf{T}}v-L(q,v).

This constitutes a port-Hamiltonian DAE system with Dirac algebraic constraints 0=∂H1∂v(q,v)=p−∂L∂v0=\frac{\partial\mathcal{H}_1}{\partial v}(q,v)=p-\frac{\partial L}{\partial v}, which are replacing the definition p=∂L∂q˙p=\frac{\partial L}{\partial\dot{q}} in the standard approach. If we can solve these algebraic constraints for v=v~(q,p)v=\tilde{v}(q,p), then we are back to the standard case (21), with Hamiltonian H(q,p)=H1(q,v~(q,p),p)\mathcal{H}(q,p)=\mathcal{H}_1(q,\tilde{v}(q,p),p). However, solvability of the algebraic constraints (or, equivalently, existence of the partial Legendre transform of LL) is not required for deriving (22).

Remark 5.1 The Livens principle can be regarded as a special case of the Pontryagin maximum principle [5] in optimal control (as was already indicated in [16]). In fact, consider the optimal control problem of minimizing a cost criterion ∫K(x(t),u(t))dt\int K(x(t),u(t))\mathrm{d}t with respect to dynamics x˙=f(x,u)\dot{x}=f(x,u); see Example 4.5. Then the first-order necessary conditions of Pontryagin’s maximum principle amount to the port-Hamiltonian DAE system

\begin{bmatrix} I & 0 & 0 \\ 0 & I & 0 \\ 0 & 0 & 0 \end{bmatrix} \begin{bmatrix} \dot{x} \\ \dot{p} \\ \dot{u} \end{bmatrix} = \begin{bmatrix} 0 & I & 0 \\ -I & 0 & 0 \\ 0 & 0 & I \end{bmatrix} \begin{bmatrix} \frac{\partial\mathcal{H}_{\mathrm{opt}}}{\partial x} \\ \frac{\partial\mathcal{H}_{\mathrm{opt}}}{\partial p} \\ \frac{\partial\mathcal{H}_{\mathrm{opt}}}{\partial u} \end{bmatrix}, \tag*{(23)}\end{bmatrix}

with Hopt(x,u,p):=pTf(x,u)−L(x,u)\mathcal{H}_{\mathrm{opt}}(x,u,p):=p^{\mathsf{T}}f(x,u)-L(x,u) being the optimal control Hamiltonian. Thus, seen from this angle the Livens principle corresponds to the special case f(x,u)=uf(x,u)=u. All this is closely related to the observation made in [15], where (23) is referred to as ’Hamilton’s equations as he should have written them’. Said otherwise, from our point of view ’Hamilton’s equations are actually port-Hamiltonian DAEs’.

Mechanical systems with geometric constraints

Next consider a nonlinear mechanical system with Hamiltonian H\mathcal{H} as in (21), and with geometric constraints g(q)=0g(q)=0 for some mapping g:Q→Rkg:Q\to\mathbb{R}^{k}, where Q\mathcal{Q} is the state space or manifold of the qq vectors. The equations of motion are given as

q˙=∂H∂p(q,p),p˙=−∂H∂q(q,p)−Gμ(q)μ,0=g(q),(24)\begin{aligned} \dot{q} &= \frac{\partial\mathcal{H}}{\partial p}(q,p),\\ \dot{p} &= -\frac{\partial\mathcal{H}}{\partial q}(q,p)-G_{\mu}(q)\mu,\\ 0 &= g(q), \tag*{(24)} \end{aligned}

with the matrix function Gμ(q)=∂gT∂q(q)G_{\mu}(q)=\frac{\partial g^{\mathsf{T}}}{\partial q}(q) defining the constraint forces Gμ(q)μG_{\mu}(q)\mu, where μ\mu are appropriate Lagrange multipliers. This constitutes a port-Hamiltonian DAE system with state variables q,pq,p and Lagrange algebraic constraints g(q)=0g(q)=0. Indeed, the submanifold

L:={(q,p,eq,ep)∣g(q)=0, eq−∂H∂q(q,p)∈im⁡G(q), ep=∂H∂p(q,p)}(25)\mathcal{L}:=\left\{(q,p,e_q,e_p)\mid g(q)=0,\ e_q-\frac{\partial\mathcal{H}}{\partial q}(q,p)\in\operatorname{im}G(q),\ e_p=\frac{\partial\mathcal{H}}{\partial p}(q,p)\right\} \tag*{(25)}

is a Lagrangian submanifold of T∗XT^{*}\mathcal{X}, where X=T∗Q\mathcal{X}=T^{*}Q is the state space with natural coordinates q,pq,p. Note that the Dirac structure D\mathcal{D} is simply given as the graph of −J=[0−II0]-J=\begin{bmatrix}0&-I\\ I&0\end{bmatrix}.

The Lagrange algebraic constraints are converted into Dirac algebraic constraints by introducing the Lagrange multipliers μ\mu and considering the Morse family

H2(p,q,μ):=H(q,p)+μTg(q).\mathcal{H}_{2}(p,q,\mu):=\mathcal{H}(q,p)+\mu^{\mathsf{T}}g(q).

Then (24) is rewritten as the augmented port-Hamiltonian DAE system

\begin{bmatrix} I&0&0\\ 0&I&0\\ 0&0&0 \end{bmatrix} \begin{bmatrix} \dot{q}\\ \dot{p}\\ \dot{\mu} \end{bmatrix} = \begin{bmatrix} 0&I&0\\ -I&0&0\\ 0&0&I \end{bmatrix} \begin{bmatrix} \frac{\partial\mathcal{H}_{2}}{\partial q}\\ \frac{\partial\mathcal{H}_{2}}{\partial p}\\ \frac{\partial\mathcal{H}_{2}}{\partial\mu} \end{bmatrix}, \tag*{(26)}\end{bmatrix}

with Dirac algebraic constraints ∂H2∂μ=−g(q)=0\frac{\partial\mathcal{H}_{2}}{\partial\mu}=-g(q)=0. These equations can be more explicitly rewritten as

[I000I0000][q˙p˙μ˙]=[0I0−I0000I][∂H∂q(q,p)∂H∂p(q,p)g(q)]−[0Gμ(q)0]μ\begin{bmatrix} I & 0 & 0 \\ 0 & I & 0 \\ 0 & 0 & 0 \end{bmatrix} \begin{bmatrix} \dot{q} \\ \dot{p} \\ \dot{\mu} \end{bmatrix} = \begin{bmatrix} 0 & I & 0 \\ -I & 0 & 0 \\ 0 & 0 & I \end{bmatrix} \begin{bmatrix} \frac{\partial\mathcal{H}}{\partial q}(q,p) \\ \frac{\partial\mathcal{H}}{\partial p}(q,p) \\ g(q) \end{bmatrix} - \begin{bmatrix} 0 \\ G_{\mu}(q) \\ 0 \end{bmatrix}\mu

thus indeed recovering (24). This port-Hamiltonian DAE formulation of mechanical systems with geometric constraints can be combined with Livens principle by considering the further augmented set of state variables q,p,ν,μq,p,\nu,\mu, and the Hamiltonian

H4(q,p,ν,μ):=H1(q,p,ν)+μTg(q)=pTν−L(q,ν)+μTg(q).\mathcal{H}_{4}(q,p,\nu,\mu) := \mathcal{H}_{1}(q,p,\nu) + \mu^{\mathsf{T}}g(q) = p^{\mathsf{T}}\nu- L(q,\nu) + \mu^{\mathsf{T}}g(q).

The resulting port-Hamiltonian formulation takes the form

[I0000I0000000000][q˙p˙ν˙μ˙]=[0I00−I00000I0000I][∂H4∂q∂H4∂p∂H4∂ν∂H4∂μ].\begin{bmatrix} I & 0 & 0 & 0 \\ 0 & I & 0 & 0 \\ 0 & 0 & 0 & 0 \\ 0 & 0 & 0 & 0 \end{bmatrix} \begin{bmatrix} \dot{q} \\ \dot{p} \\ \dot{\nu} \\ \dot{\mu} \end{bmatrix} = \begin{bmatrix} 0 & I & 0 & 0 \\ -I & 0 & 0 & 0 \\ 0 & 0 & I & 0 \\ 0 & 0 & 0 & I \end{bmatrix} \begin{bmatrix} \frac{\partial\mathcal{H}_{4}}{\partial q} \\ \frac{\partial\mathcal{H}_{4}}{\partial p} \\ \frac{\partial\mathcal{H}_{4}}{\partial\nu} \\ \frac{\partial\mathcal{H}_{4}}{\partial\mu} \end{bmatrix}.

This leads to two sets of Dirac algebraic constraints, namely ∂H1∂ν(q,ν)=p−∂L∂ν=0\frac{\partial\mathcal{H}_{1}}{\partial\nu}(q,\nu)=p-\frac{\partial L}{\partial\nu}=0 and g(q)=0g(q)=0. Solving (if possible!) the Livens algebraic constraint ∂H1∂ν(q,ν)=p−∂L∂ν=0\frac{\partial\mathcal{H}_{1}}{\partial\nu}(q,\nu)=p-\frac{\partial L}{\partial\nu}=0 for ν\nu leads back to (26).

Kinematic constraints

Kinematic constraints for mechanical systems are of the form AT(q)q˙=0A^{\mathsf{T}}(q)\dot{q}=0 for some n×kn \times k matrix function A(q)A(q). In this case, applying d’Alembert’s principle, (21) extends to the port-Hamiltonian DAE system

[q˙p˙]=[0I−I0][∂H∂q(q,p)∂H∂p(q,p)]−[0A(q)]eλ,\begin{bmatrix} \dot{q} \\ \dot{p} \end{bmatrix} = \begin{bmatrix} 0 & I \\ -I & 0 \end{bmatrix} \begin{bmatrix} \frac{\partial\mathcal{H}}{\partial q}(q,p) \\ \frac{\partial\mathcal{H}}{\partial p}(q,p) \end{bmatrix} - \begin{bmatrix} 0 \\ A(q) \end{bmatrix}e_{\lambda},
0=AT(q)∂H∂p(q,p).(27)0=A^{\mathsf{T}}(q)\frac{\partial\mathcal{H}}{\partial p}(q,p). \tag*{(27)}

with A(q)eλA(q)e_{\lambda} the vector of constraint forces, and H(q,p)\mathcal{H}(q,p) the energy as in (21). Here, the last line represents Dirac algebraic constraints resulting from the singular Dirac structure

D={(fq,fp,eq,ep)∣∃eλ s.t. [fqfp]=[0−II0][eqep]−[0A(q)]eλ, AT(q)ep=0}.\mathcal{D}=\left\{(f_q,f_p,e_q,e_p)\mid\exists e_{\lambda}\ \text{s.t.}\ \begin{bmatrix} f_q \\ f_p \end{bmatrix} = \begin{bmatrix} 0 & -I \\ I & 0 \end{bmatrix} \begin{bmatrix} e_q \\ e_p \end{bmatrix} - \begin{bmatrix} 0 \\ A(q) \end{bmatrix}e_{\lambda}, \ A^{\mathsf{T}}(q)e_p=0\right\}.

As before, these Dirac algebraic constraints can be converted into Lagrange algebraic constraints by extending the state to (q,p,λ)(q,p,\lambda), with dim⁡λ=dim⁡eλ=k\dim\lambda= \dim e_{\lambda} = k. The augmented Dirac structure is given as the graph of the skew-symmetric map

Ja(q):=[0−I0I0A(q)0−AT(q)0].J_a(q) := \begin{bmatrix} 0 & -I & 0 \\ I & 0 & A(q) \\ 0 & -A^{\mathsf{T}}(q) & 0 \end{bmatrix}.

Furthermore, the singular augmented Lagrangian submanifold La\mathcal{L}_a is given as

La={(q,p,λ,eq,ep,eλ)∣λ=0,eq=∂H∂q(q,p),ep=∂H∂p(q,p)}.\mathcal{L}_a = \{(q,p,\lambda,e_q,e_p,e_\lambda) \mid\lambda= 0, e_q = \frac{\partial\mathcal{H}}{\partial q}(q,p), e_p = \frac{\partial\mathcal{H}}{\partial p}(q,p)\}.

The resulting augmented port-Hamiltonian DAE system takes the form

[I000I0000][q˙p˙λ˙]=[0I0−I0−A(q)0AT(q)0][∂Ha∂q(q,p,λ)∂Ha∂p(q,p,λ)∂Ha∂λ(q,p,λ)].\begin{bmatrix} I & 0 & 0 \\ 0 & I & 0 \\ 0 & 0 & 0 \end{bmatrix} \begin{bmatrix} \dot{q} \\ \dot{p} \\ \dot{\lambda} \end{bmatrix} = \begin{bmatrix} 0 & I & 0 \\ -I & 0 & -A(q) \\ 0 & A^{\mathsf{T}}(q) & 0 \end{bmatrix} \begin{bmatrix} \frac{\partial\mathcal{H}_a}{\partial q}(q,p,\lambda) \\ \frac{\partial\mathcal{H}_a}{\partial p}(q,p,\lambda) \\ \frac{\partial\mathcal{H}_a}{\partial\lambda}(q,p,\lambda) \end{bmatrix}.

where Ha(q,p,λ)=H(q,p)+12λTλ\mathcal{H}_a(q,p,\lambda) = \mathcal{H}(q,p) + \frac{1}{2}\lambda^{\mathsf{T}}\lambda.

Finally, the treatment of kinematic constraints can be also combined with the Livens principle. This is done by adding variables vv and replacing the Hamiltonian H(q,p)\mathcal{H}(q,p) as in (21) by the Hamiltonian H1(q,p,v)=pTv−L(q,v)\mathcal{H}_1(q,p,v) = p^{\mathsf{T}}v - L(q,v) introduced before. This results in the following port-Hamiltonian DAE system with state variables (q,p,v)(q,p,v) given as

[I000I0000][q˙p˙v˙]=[0I0−I0000I][∂H1∂q∂H1∂p∂H1∂v]−[0A(q)0]eλ,0=AT(q)∂H1∂p(q,p).\begin{bmatrix} I & 0 & 0 \\ 0 & I & 0 \\ 0 & 0 & 0 \end{bmatrix} \begin{bmatrix} \dot{q} \\ \dot{p} \\ \dot{v} \end{bmatrix} = \begin{bmatrix} 0 & I & 0 \\ -I & 0 & 0 \\ 0 & 0 & I \end{bmatrix} \begin{bmatrix} \frac{\partial\mathcal{H}_1}{\partial q} \\ \frac{\partial\mathcal{H}_1}{\partial p} \\ \frac{\partial\mathcal{H}_1}{\partial v} \end{bmatrix} - \begin{bmatrix} 0 \\ A(q) \\ 0 \end{bmatrix}e_\lambda,\quad0 = A^{\mathsf{T}}(q)\frac{\partial\mathcal{H}_1}{\partial p}(q,p).

This system has, on the one hand, Dirac algebraic constraints of the form 0=AT(q)∂H1∂p(q,p)0 = A^{\mathsf{T}}(q)\frac{\partial\mathcal{H}_1}{\partial p}(q,p), and, on the other hand, Lagrange algebraic constraints 0=∂H1∂v(q,p)0 = \frac{\partial\mathcal{H}_1}{\partial v}(q,p).

Differentiating geometric to kinematic constraints

Another way that kinematic constraints arise is by differentiating geometric constraints g(q)=0g(q) = 0 with respect to time, resulting in kinematic constraints GλT(q)q˙=0G_\lambda^{\mathsf{T}}(q)\dot{q} = 0, where Gλ(q):=∂g∂q(q)G_\lambda(q) := \frac{\partial g}{\partial q}(q). These kinematic constraints are of a special type; classically called holonomic constraints. (Conversely, kinematic constraints AT(q)q˙=0A^{\mathsf{T}}(q)\dot{q}=0 for which there does not exist an invertible matrix U(q)U(q) and map g(q)g(q) such that A(q)U(q)=∂g∂q(q)A(q)U(q)=\frac{\partial g}{\partial q}(q) are called non-holonomic.)

Of course, by differentiating geometric constraints g(q)=0g(q)=0 to kinematic constraints GλT(q)q˙=0G_{\lambda}^{\mathsf{T}}(q)\dot{q}=0 one loses information. An option is to retain the geometric constraints, next to the kinematic constraints given by the differentiated geometric constraints. This combines (24) and (27), and thus leads to the port-Hamiltonian DAE system

[q˙p˙]=[0I−I0][∂H∂q(q,p)∂H∂p(q,p)]+[0Gμ(q)]μ+[0Gλ(q)]eλ,0=g(q),0=GλT(q)∂H∂p(q,p).\begin{aligned} \begin{bmatrix}\dot{q}\\\dot{p}\end{bmatrix} &= \begin{bmatrix}0&I\\-I&0\end{bmatrix} \begin{bmatrix}\frac{\partial\mathcal{H}}{\partial q}(q,p)\\\frac{\partial\mathcal{H}}{\partial p}(q,p)\end{bmatrix} + \begin{bmatrix}0\\G_{\mu}(q)\end{bmatrix}\mu + \begin{bmatrix}0\\G_{\lambda}(q)\end{bmatrix}e_{\lambda},\\ 0&=g(q),\\ 0&=G_{\lambda}^{\mathsf{T}}(q)\frac{\partial\mathcal{H}}{\partial p}(q,p). \end{aligned}

However, since Gλ(q)=Gμ(q)=:G(q)G_{\lambda}(q)=G_{\mu}(q)=:G(q), the two constraint forces can be taken together as the single constraint force G(q)(μ+eλ)G(q)(\mu+e_{\lambda}).

Alternatively, a classical approach in the numerical solution of mechanical systems with geometric constraints is to interpret the differentiated geometric constraints GλT(q)∂H∂p(q,p)=:gv(q,p)G_{\lambda}^{\mathsf{T}}(q)\frac{\partial\mathcal{H}}{\partial p}(q,p)=:g^{v}(q,p) as new ’geometric’ constraints gv(q,p)=0g^{v}(q,p)=0 in the q,pq,p variables. From a port-Hamiltonian perspective this means that we do not regard the differentiated geometric constraints as kinematic constraints GλT(q)q˙=0G_{\lambda}^{\mathsf{T}}(q)\dot{q}=0 (and thus as Dirac algebraic constraints), but instead as Lagrange algebraic constraints, directly constraining the state variables q,pq,p via another Lagrange multiplier ν\nu. This is the common approach in the Gear-Gupta-Leimkuhler index reduction [11] and has been shown to be a variation of the Livens principle in [16]. It is associated with an extended Morse family H5(q,v,p,μ,ν):=H1(q,v,p)+μTg(q)+νTgv(q,p)\mathcal{H}_{5}(q,v,p,\mu,\nu):=\mathcal{H}_{1}(q,v,p)+\mu^{\mathsf{T}}g(q)+\nu^{\mathsf{T}}g^{v}(q,p), and leads to the port-Hamiltonian DAE system

[I00000I000000000000000000][q˙p˙v˙μ˙ν˙]=[0I000−I000000I00000I00000I][∂H5∂q∂H5∂p∂H5∂v∂H5∂μ∂H5∂ν],\begin{bmatrix} I&0&0&0&0\\ 0&I&0&0&0\\ 0&0&0&0&0\\ 0&0&0&0&0\\ 0&0&0&0&0 \end{bmatrix} \begin{bmatrix} \dot{q}\\ \dot{p}\\ \dot{v}\\ \dot{\mu}\\ \dot{\nu} \end{bmatrix} = \begin{bmatrix} 0&I&0&0&0\\ -I&0&0&0&0\\ 0&0&I&0&0\\ 0&0&0&I&0\\ 0&0&0&0&I \end{bmatrix} \begin{bmatrix} \frac{\partial\mathcal{H}_{5}}{\partial q}\\ \frac{\partial\mathcal{H}_{5}}{\partial p}\\ \frac{\partial\mathcal{H}_{5}}{\partial v}\\ \frac{\partial\mathcal{H}_{5}}{\partial\mu}\\ \frac{\partial\mathcal{H}_{5}}{\partial\nu} \end{bmatrix},

where ∂H5∂q=−∂L∂q+G(q)μ+∂gv(q,p)∂qTν\frac{\partial\mathcal{H}_{5}}{\partial q}=-\frac{\partial L}{\partial q}+G(q)\mu+\frac{\partial g^{v}(q,p)}{\partial q}^{\mathsf{T}}\nu, ∂H5∂p=v+∂∂p(gv(q,p)Tν)\frac{\partial\mathcal{H}_{5}}{\partial p}=v+\frac{\partial}{\partial p}(g^{v}(q,p)^{\mathsf{T}}\nu), ∂H5∂v=p−∂L∂v\frac{\partial\mathcal{H}_{5}}{\partial v}=p-\frac{\partial L}{\partial v}, ∂H5∂μ=g(q)\frac{\partial\mathcal{H}_{5}}{\partial\mu}=g(q), and ∂H5∂ν=gv(q,p)\frac{\partial\mathcal{H}_{5}}{\partial\nu}=g^{v}(q,p).

Substitution of q˙=v+∂∂pgv(q,p)Tν\dot{q}=v+\frac{\partial}{\partial p}g^{v}(q,p)^{\mathsf{T}}\nu yields

GT(q)(v+∂∂qgv(q,p)Tν)=0.(28)G^{\mathsf{T}}(q)\left(v+\frac{\partial}{\partial q}g^{v}(q,p)^{\mathsf{T}}\nu\right)=0. \tag*{(28)}

By using gν(q,p)=G⊤(q)∂H∂p(q,p)=0g^\nu(q,p)=G^\top(q)\frac{\partial H}{\partial p}(q,p)=0, then (28) implies that

Gμ⊤(q)∂∂p(Gμ⊤(q)∂H(q,p)∂p)⊤ν=0,G_\mu^\top(q)\frac{\partial}{\partial p}\left(G_\mu^\top(q)\frac{\partial H(q,p)}{\partial p}\right)^\top\nu=0,

or equivalently

Gμ⊤(q)∂2H(q,p)∂p2Gμ(q)ν=0.G_\mu^\top(q)\frac{\partial^2H(q,p)}{\partial p^2}G_\mu(q)\nu=0.

If Gμ(q)G_\mu(q) has full rank and ∂2H(q,p)∂p2\frac{\partial^2H(q,p)}{\partial p^2} is invertible then this implies that actually ν=0\nu=0; see [16].

Thus, from a mathematical modeling point of view, the inclusion of the differentiated geometric constraints as additional Lagrange constraints 0=gν(q,p)0=g^\nu(q,p) does not change the dynamics. However, in numerical integration methods these additional constraints can be used to guarantee that the (hidden) kinematic constraints are satisfied, by checking the deviation of the associated Lagrange multiplier ν\nu from being 0.

Port-Hamiltonian DAE systems with dissipation and ports

In the previous sections we have considered port-Hamiltonian DAE systems that are energy-preserving, and without external ports (i.e., no inputs and outputs). External ports are immediately included by extending the Dirac structure; see later. In order to deal with energy-dissipation, the standard way in port-Hamiltonian theory is to first extend the Dirac structure to include a port linking to energy-dissipating elements, and then to close this port by an energy-dissipation relation. Together this leads, see [28], to the following definition of dissipative port-Hamiltonian DAE systems.

Definition 6.1 A nonlinear dissipative port-Hamiltonian DAE system is defined by a triple (D,L,R)(\mathcal{D},\mathcal{L},\mathcal{R}), where

  1. D\mathcal{D} is a Dirac structure

D(x)⊂TxX×Tx∗X×FR×ER×FP×EP,x∈X,\mathcal{D}(x)\subset T_x\mathcal{X}\times T_x^*\mathcal{X}\times F_R\times E_R\times F_P\times E_P,\qquad x\in\mathcal{X},

with X\mathcal{X} the state space manifold, FRF_R and ER=FR∗E_R=F_R^* are dual flow and effort linear spaces corresponding to energy dissipation, and FPF_P and EP=FP∗E_P=F_P^* are dual flow and effort linear spaces corresponding to external ports,

  1. L\mathcal{L} is a Lagrangian submanifold

L⊂T∗X\mathcal{L} \subset T^*\mathcal{X}

corresponding to energy storage, and

  1. R\mathcal{R} is a resistive relation defined by a submanifold

R⊂FR×ER,such that eRTfR≥0,for all (fR,eR)∈R,\mathcal{R} \subset\mathcal{F}_{R} \times\mathcal{E}_{R}, \qquad\text{such that } e_{R}^{\mathsf{T}}f_{R} \ge0,\quad\text{for all }(f_{R},e_{R}) \in\mathcal{R},

with dim⁡R=dim⁡FR\dim\mathcal{R} = \dim\mathcal{F}_{R}.

The resulting port-Hamiltonian DAE system is defined by the equations

(−x˙(t),e(t),fR(t),eR(t),fP(t),eP(t))∈D(x(t)),(−fR(t),eR(t))∈R,(x(t),e(t))∈L, t∈R.(29)\begin{aligned} (-\dot{x}(t),e(t),f_{R}(t),e_{R}(t),f_{P}(t),e_{P}(t)) &\in\mathcal{D}(x(t)),\\ (-f_{R}(t),e_{R}(t)) &\in\mathcal{R}, \qquad(x(t),e(t)) \in\mathcal{L},\ t \in\mathbb{R}. \tag*{(29)} \end{aligned}

Note that the description of the dynamics (29) involves the intermediate variables fR,eRf_{R},e_{R} satisfying (−fR(t),eR(t))∈R(-f_{R}(t),e_{R}(t)) \in\mathcal{R}. In order to obtain an explicit description in terms of only the state variables xx (and their time-derivatives x˙\dot{x}) and the external port variables fP,ePf_{P},e_{P} these variables need to be eliminated.

In order to do so, we will look closely at the composition of the Dirac structure D\mathcal{D} and the resistive relation R\mathcal{R}. We again first study the linear case.

The linear case

In this subsection we first recall from [29] how in the linear case the variables fR,eRf_{R},e_{R} are eliminated by considering the composition of the Dirac structure D\mathcal{D} and the resistive structure R\mathcal{R} via the resistive port variables fR,eRf_{R},e_{R}. For simplicity of exposition we first consider the case without external port variables fP,ePf_{P},e_{P}.

Throughout this subsection, we will assume that the resistive structure R\mathcal{R} is given by a nonnegative Lagrange structure R⊂FR×ER\mathcal{R} \subset\mathcal{F}_{R} \times\mathcal{E}_{R}. The composition of R\mathcal{R} with a Dirac structure D⊂X×X∗×FR×ER\mathcal{D} \subset\mathcal{X} \times\mathcal{X}^{*} \times\mathcal{F}_{R} \times\mathcal{E}_{R} via the resistive port variables (fR,eR)∈FR×ER(f_{R},e_{R}) \in\mathcal{F}_{R} \times\mathcal{E}_{R} is then defined as

D∘R:={(f,e)∈X×X∗∣∃ (−fR,eR)∈R s.t. (f,e,fR,eR)∈D}.\mathcal{D} \circ\mathcal{R} := \{(f,e) \in\mathcal{X} \times\mathcal{X}^{*} \mid\exists\,(-f_{R},e_{R}) \in\mathcal{R}\ \text{s.t.}\ (f,e,f_{R},e_{R}) \in\mathcal{D}\}.

As we will demonstrate now, such a composition can be fully characterized as a maximally monotone structure M⊂X×X∗\mathcal{M} \subset\mathcal{X} \times\mathcal{X}^{*}. Conversely any maximally monotone structure M⊂X×X∗\mathcal{M} \subset\mathcal{X} \times\mathcal{X}^{*} can be written as M=D∘R\mathcal{M} = \mathcal{D} \circ\mathcal{R} for a certain choice of FR,ER\mathcal{F}_{R}, \mathcal{E}_{R}, a Dirac structure D⊂X×X∗×FR×ER\mathcal{D} \subset\mathcal{X} \times\mathcal{X}^{*} \times\mathcal{F}_{R} \times\mathcal{E}_{R} and resistive structure R⊂FR×ER\mathcal{R} \subset\mathcal{F}_{R} \times\mathcal{E}_{R}.

For this analysis, let us first recall the definition of a maximally monotone structure.

Definition 6.2 Let X\mathcal{X} be a finite-dimensional linear space. A subspace M⊂X×X∗\mathcal{M} \subset\mathcal{X} \times\mathcal{X}^{*} is called a monotone structure if the quadratic form defined by the bilinear form ⟨⋅,⋅⟩+\langle\cdot,\cdot\rangle_{+} is nonnegative on M\mathcal{M}. It is a maximally monotone structure if moreover M\mathcal{M} is maximal with respect to this property, i.e., there does not exist another monotone structure M′\mathcal{M}' with M⊊M′\mathcal{M} \subsetneq\mathcal{M}'.

Note that Dirac structures are a special type of maximally monotone structures, namely maximal subspaces for which ⟨⋅,⋅⟩+\langle\cdot,\cdot\rangle_{+} is zero restricted to this subspace. In general, we first recall the following proposition from [29]. Note that a linear map M:X∗→XM : \mathcal{X}^{*} \to\mathcal{X} is called monotone if M+MT≥0M + M^{T} \geq0 or, equivalently, eTMe≥0e^{T}Me \geq0 for all e∈X∗e \in\mathcal{X}^{*}.

Proposition 6.3 A subspace M⊂X×X∗\mathcal{M} \subset\mathcal{X} \times\mathcal{X}^{*} is a monotone structure if and only if

⟨e∣f⟩≥0\langle e \mid f \rangle\geq0

for all (f,e)∈M(f,e) \in\mathcal{M}, and a maximally monotone structure if additionally M\mathcal{M} is maximal with respect to this property. Any monotone structure M\mathcal{M} satisfies dim⁡M≤dim⁡X\dim\mathcal{M} \leq\dim\mathcal{X} and is a maximally monotone structure if and only if dim⁡M=dim⁡X\dim\mathcal{M} = \dim\mathcal{X}. Furthermore, the graph {(Me,e)∈X×X∗∣e∈X∗}\{(Me,e) \in\mathcal{X} \times\mathcal{X}^{*} \mid e \in\mathcal{X}^{*}\} of a linear map M:X∗→XM : \mathcal{X}^{*} \to\mathcal{X} is a maximally monotone structure if and only if MM is monotone.

The following proposition from [29] formulates the equivalence between the composition of Dirac structures with resistive structures and maximally monotone structures.

Proposition 6.4 Consider linear spaces FR\mathcal{F}_{R} and ER=FR∗\mathcal{E}_{R} = \mathcal{F}_{R}^{*} such that M=D∘R\mathcal{M} = \mathcal{D} \circ\mathcal{R} for some Dirac structure D⊂X×X∗×FR×ER\mathcal{D} \subset\mathcal{X} \times\mathcal{X}^{*} \times\mathcal{F}_{R} \times\mathcal{E}_{R} and a nonnegative Lagrange structure R⊂FR×ER\mathcal{R} \subset\mathcal{F}_{R} \times\mathcal{E}_{R}. Then M\mathcal{M} is a maximally monotone structure.

Conversely, let M⊂X×X∗\mathcal{M} \subset\mathcal{X} \times\mathcal{X}^{*} be a maximally monotone structure. Then there exist linear spaces FR\mathcal{F}_{R} and ER=FR∗\mathcal{E}_{R} = \mathcal{F}_{R}^{*} such that M=D∘R\mathcal{M} = \mathcal{D} \circ\mathcal{R} for some Dirac structure D⊂X×X∗×FR×ER\mathcal{D} \subset\mathcal{X} \times\mathcal{X}^{*} \times\mathcal{F}_{R} \times\mathcal{E}_{R} and some nonnegative Lagrange structure R⊂FR×ER\mathcal{R} \subset\mathcal{F}_{R} \times\mathcal{E}_{R}.

This means that in the definition of a linear dissipative port-Hamiltonian DAE system (with Dirac structure D\mathcal{D} and resistive structure R\mathcal{R}), we can always replace the pair D,R\mathcal{D},\mathcal{R} by a maximally monotone structure M\mathcal{M}. Thus, dissipative port-Hamiltonian systems (D,L,R)(\mathcal{D},\mathcal{L},\mathcal{R}) can be equivalently defined by a pair (M,L)(\mathcal{M},\mathcal{L}), with M\mathcal{M} a maximally monotone structure, and L\mathcal{L} a Lagrange structure.

Dissipative port-Hamiltonian systems (M,L)(\mathcal{M},\mathcal{L}) admit the following coordinate representations (not involving resistive variables fR,eRf_R,e_R). Obviously, any subspace M⊂X×X∗\mathcal{M}\subset\mathcal{X}\times\mathcal{X}^* can be represented in image representation as

M=im⁡[VW]\mathcal{M}=\operatorname{im}\begin{bmatrix}V\\W\end{bmatrix}

for square matrices V,WV,W of dimension equal to dim⁡X\dim\mathcal{X}. It is easily seen that M\mathcal{M} represented in this way is maximally monotone if and only if V,WV,W are such that

WTV+VTW≥0,rank⁡[VTWT]=dim⁡X.(30)W^{\mathsf{T}}V+V^{\mathsf{T}}W\geq0,\quad\operatorname{rank}\begin{bmatrix}V^{\mathsf{T}}&W^{\mathsf{T}}\end{bmatrix}=\dim\mathcal{X}. \tag*{(30)}

However, in order to obtain equations we need kernel representations instead of image representations. Thus let V,WV,W satisfy (30), and let F,GF,G be a maximal annihilator of im⁡[VW]\operatorname{im}\begin{bmatrix}V\\W\end{bmatrix}, i.e., FV+GW=0FV+GW=0 and rank⁡[FG]=dim⁡X\operatorname{rank}\begin{bmatrix}F&G\end{bmatrix}=\dim\mathcal{X}. Then the dissipative port-Hamiltonian system (M,L)(\mathcal{M},\mathcal{L}) takes the form

FPz˙=GSz,FP\dot{z}=GSz,

where the pair P,SP,S specifies as before the Lagrange structure L\mathcal{L}. In particular, the algebraic constraints are determined by E=FPE=FP, and similar to the case without energy dissipation we may distinguish between algebraic constraints due to singularity of PP (Lagrange algebraic constraints) and due to singularity of FF (algebraic constraints arising from the maximally monotone structure). In particular, we have the algebraic constraints

Sz∈im⁡W,Sz\in\operatorname{im}W,

generalizing Dirac algebraic constraints. Furthermore, it is immediately seen that the dynamics of any dissipative port-Hamiltonian systems satisfies the inequality

ddt12zTSTPz=zTSTPz˙≤0,\frac{\mathrm{d}}{\mathrm{d}t}\frac{1}{2}z^{\mathsf{T}}S^{\mathsf{T}}Pz=z^{\mathsf{T}}S^{\mathsf{T}}P\dot{z}\leq0,

since

[Pz˙−Sz]∈M=ker⁡[FG].\begin{bmatrix}P\dot{z}\\-Sz\end{bmatrix}\in\mathcal{M}=\operatorname{ker}\begin{bmatrix}F&G\end{bmatrix}.

While (30) is a direct characterization of maximal monotonicity of a subspace M\mathcal{M} given in image representation, we do not yet have a corresponding characterization for kernel representations FF, GG. This is done in the following proposition.

Proposition 6.5 The matrix

M=im⁡[VW]\mathcal{M} = \operatorname{im} \begin{bmatrix} V \\ W \end{bmatrix}

is the image representation of a maximally monotone structure if and only if for every maximal annihilator [FG]\begin{bmatrix} F & G \end{bmatrix} of M\mathcal{M} one has GFT+FGT≤0GF^{\mathsf{T}} + FG^{\mathsf{T}} \le0.

Proof. If M=ker⁡[FG]\mathcal{M} = \operatorname{ker} \begin{bmatrix} F & G \end{bmatrix} with FF invertible, then the (f,e)∈M(f,e) \in\mathcal{M} are satisfying f=−F−1Gef=-F^{-1}Ge. Since ⟨e∣f⟩≥0\langle e \mid f\rangle\ge0 for all (f,e)∈M(f,e) \in\mathcal{M}, it follows that eTF−1Ge≤0e^{\mathsf{T}}F^{-1}Ge \le0 for all ee. Thus F−1G+GTF−T≤0F^{-1}G+G^{\mathsf{T}}F^{-\mathsf{T}}\le0, or equivalently GFT+FGT≤0GF^{\mathsf{T}}+FG^{\mathsf{T}}\le0. On the other hand, if M\mathcal{M} is such that FF is not invertible, then arbitrarily close to M\mathcal{M} there will exist a maximally monotone M′\mathcal{M}' with associated F′F' being invertible, and thus by continuity GFT+FGT≤0GF^{\mathsf{T}}+FG^{\mathsf{T}}\le0 remains to hold. □\square

These observations are immediately extended to linear dissipative port-Hamiltonian systems with external ports. In fact, let FP×EP\mathcal{F}_P \times\mathcal{E}_P, with EP=FP∗\mathcal{E}_P=\mathcal{F}_P^* (here the index PP denotes external ports), be the space of external flows and efforts (inputs and outputs). Then a linear dissipative port-Hamiltonian system with external ports is specified by a maximally monotone structure M⊂X×X∗×FP×EP\mathcal{M}\subset\mathcal{X}\times\mathcal{X}^*\times\mathcal{F}_P\times\mathcal{E}_P, together with a Lagrange structure L⊂X×X∗\mathcal{L}\subset\mathcal{X}\times\mathcal{X}^* modeling energy storage.

After recalling the extension of linear port-Hamiltonian DAE systems to system with resistive and external ports, in the next subsection we proceed analogously for the nonlinear case.

The nonlinear case

In order to eliminate the resistive port variables fR,eRf_R,e_R in the nonlinear case we proceed as follows. Importantly, here we restrict ourselves to modulated linear energy dissipation relations R\mathcal{R} which means that R\mathcal{R} is assumed to be defined by subspaces

R(x)⊂FR×ER,(31)\mathcal{R}(x)\subset\mathcal{F}_R\times\mathcal{E}_R, \tag*{(31)}

depending on x∈Xx\in\mathcal{X}, in the sense that for every x∈Xx\in\mathcal{X} the subspace R(x)⊂FR×ER\mathcal{R}(x)\subset\mathcal{F}_R\times\mathcal{E}_R is a nonnegative Lagrange structure. Thus, energy dissipation is assumed to be a modulated resistive structure. In this case we can apply the same reasoning as in the linear case in the following way.

Let D\mathcal{D} be a Dirac structure on X\mathcal{X} as before. Thus, for every x∈Xx \in\mathcal{X} we have that

D(x)⊂TxX×Tx∗X×FR×ER.(32)\mathcal{D}(x) \subset T_x\mathcal{X} \times T_x^*\mathcal{X} \times\mathcal{F}_{R} \times\mathcal{E}_{R}. \tag*{(32)}

is a Dirac structure as in the linear case. Then consider for every x∈Xx \in\mathcal{X} the composition

M(x):=D(x)∘R(x)={(f,e)∈TxX×Tx∗X∣∃(−fR,eR)∈R(x) s.t. (f,e,fR,eR)∈D(x)}.(33)\mathcal{M}(x) := \mathcal{D}(x) \circ\mathcal{R}(x) = \{(f,e) \in T_x\mathcal{X} \times T_x^*\mathcal{X} \mid \exists(-f_R,e_R) \in\mathcal{R}(x)\ \text{s.t.}\ (f,e,f_R,e_R) \in\mathcal{D}(x)\}. \tag*{(33)}

Using the same arguments as in the linear case, this defines for every xx a maximally monotone structure M(x)⊂TxX×Tx∗X\mathcal{M}(x) \subset T_x\mathcal{X} \times T_x^*\mathcal{X}. Thus the composition of the Dirac structure modulated by xx and the resistive structure modulated by the same xx defines a maximally monotone structure, again modulated by this xx. Conversely, again using the results of the linear case, under regularity conditions every maximally monotone structure M(x)\mathcal{M}(x) modulated by xx can be written as the composition of a Dirac structure D(x)\mathcal{D}(x) and resistive structure R(x)\mathcal{R}(x), both modulated by xx. Using the matrix representation developed for the linear case this means that there exist matrices F(x),G(x)F(x), G(x) such that

M(x)={(f,e)∈TxX×Tx∗X∣F(x)f+G(x)e=0},(34)\mathcal{M}(x) = \{(f,e) \in T_x\mathcal{X} \times T_x^*\mathcal{X} \mid F(x)f + G(x)e = 0\}, \tag*{(34)}

where

F(x)GT(x)+G(x)FT(x)≤0,rank⁡[F(x)G(x)]=dim⁡X, x∈X.(35)F(x)G^{\mathsf{T}}(x) + G(x)F^{\mathsf{T}}(x) \le0,\quad\operatorname{rank}\begin{bmatrix}F(x) & G(x)\end{bmatrix} = \dim\mathcal{X},\ x \in\mathcal{X}. \tag*{(35)}

If the Lagrangian submanifold is generated by a function H\mathcal{H}, this means that the dissipative port-Hamiltonian dynamics is given as

F(x)x˙=G(x)∂H∂x(x).(36)F(x)\dot{x} = G(x)\frac{\partial\mathcal{H}}{\partial x}(x). \tag*{(36)}

In particular, if F(x)F(x) is invertible then the dynamics takes the form x˙=−M(x)∂H∂x(x)\dot{x} = -M(x)\frac{\partial\mathcal{H}}{\partial x}(x) for some matrix (modulated by xx) that is monotone, i.e., M(x)+MT(x)≥0M(x) + M^{\mathsf{T}}(x) \ge0. Splitting M(x)=J(x)−R(x)M(x) = J(x) - R(x) into its skew-symmetric and symmetric part, the dynamics thus takes the well-known port-Hamiltonian ODE form

x˙=[J(x)−R(x)]∂H∂x(x),J(x)=−JT(x), R(x)=RT(x)≥0.(37)\dot{x} = [J(x) - R(x)]\frac{\partial\mathcal{H}}{\partial x}(x),\quad J(x) = -J^{\mathsf{T}}(x),\ R(x) = R^{\mathsf{T}}(x) \ge0. \tag*{(37)}

Finally, external port variables fPf_P, ePe_P, i.e., inputs and outputs, are added by starting from an extended modulated Dirac structure

D(x)⊂TxX×Tx∗X×FR×ER×FP×EP,(38)\mathcal{D}(x) \subset T_x\mathcal{X} \times T_x^*\mathcal{X} \times\mathcal{F}_R \times\mathcal{E}_R \times\mathcal{F}_P \times\mathcal{E}_P, \tag*{(38)}

together with a modulated resistive structure R(x)\mathcal{R}(x). Composition through the fR,eRf_R,e_R variables leads to a modulated maximally monotone structure

M(x)⊂TxX×Tx∗X×FP×EP,(39)\mathcal{M}(x) \subset T_x\mathcal{X} \times T_x^*\mathcal{X} \times\mathcal{F}_P \times\mathcal{E}_P, \tag*{(39)}

given as M(x)=ker⁡[F(x)G(x)FP(x)GP(x)]\mathcal{M}(x) = \ker\begin{bmatrix} F(x) & G(x) & F_P(x) & G_P(x) \end{bmatrix} for matrix functions F(x)F(x), G(x)G(x), FR(x)F_R(x), GR(x)G_R(x) satisfying

F(x)GT(x)+G(x)FT(x)+FP(x)GPT(x)+GP(x)FPT(x)≤0,(40)F(x)G^{\mathsf{T}}(x) + G(x)F^{\mathsf{T}}(x) + F_P(x)G_P^{\mathsf{T}}(x) + G_P(x)F_P^{\mathsf{T}}(x) \le0, \tag*{(40)}
rank⁡[F(x)G(x)FP(x)GP(x)]=dim⁡X×FP.\operatorname{rank}\begin{bmatrix} F(x) & G(x) & F_P(x) & G_P(x) \end{bmatrix} = \dim\mathcal{X} \times\mathcal{F}_P.

The resulting dissipative port-Hamiltonian system with external ports is thus given as

F(x)x˙=G(x)∂H∂x(x)+FP(x)fP+GP(x)eP.(41)F(x)\dot{x} = G(x)\frac{\partial H}{\partial x}(x) + F_P(x)f_P + G_P(x)e_P. \tag*{(41)}

with external port variables fPf_P, ePe_P.

In this section we have shown how to incorporate dissipation as well as external ports into port-Hamiltonian differential equations which completes the picture.

Conclusion and Outlook

We have presented a systematic study of constrained nonlinear port-Hamiltonian systems and have shown how constraints (of Lagrange or Dirac type) can be incorporated into the port-Hamiltonian formulation, and how one can be converted into the other. The analysis uses Morse families and their skew counterparts and is illustrated in detail for mechanical systems. It is also shown how to incorporate dissipation and external ports. Further extensions could be the analysis of the regularity requirements (index) of these equations, as well as the extension to infinite dimensional constrained port-Hamiltonian operator equations.

Augmentation of Dirac, Lagrange, and maximally monotone structures to graphs of mappings.

We recall from [27], see also [6], the following basic result concerning Dirac structures on linear spaces. Denote the projection from X×X∗\mathcal{X} \times\mathcal{X}^{*} to X\mathcal{X} by π\pi, and from X×X∗\mathcal{X} \times\mathcal{X}^{*} to X∗\mathcal{X}^{*} by π∗\pi^{*}.

Proposition 8.1 Let X\mathcal{X} be a finite-dimensional linear space. Consider any Dirac structure D⊂X×X∗\mathcal{D} \subset\mathcal{X} \times\mathcal{X}^{*}, and suppose that π∗(D)⊂X∗\pi^{*}(\mathcal{D}) \subset\mathcal{X}^{*} is (n−k)(n-k)-dimensional, where π∗:X×X∗→X∗\pi^{*}:\mathcal{X} \times\mathcal{X}^{*} \to\mathcal{X}^{*} is the projection onto the second argument. With Λ:=Rk\Lambda:= \mathbb{R}^{k}, there exists a full-rank n×kn \times k map CΛ:Λ∗→XC_{\Lambda}:\Lambda^{*} \to\mathcal{X} and a skew-symmetric map J:X∗→XJ:\mathcal{X}^{*} \to\mathcal{X}, such that D\mathcal{D} is given as

D={(f,e)∈X×X∗∣∃eΛ∈Λ∗ s.t. −f=Je+CΛeΛ, 0=CΛTe}.\mathcal{D} = \{(f,e) \in\mathcal{X} \times\mathcal{X}^{*} \mid\exists e_{\Lambda} \in\Lambda^{*}\ \text{s.t.}\ -f = Je + C_{\Lambda}e_{\Lambda},\ 0 = C_{\Lambda}^{\mathsf{T}}e\}.

In fact, one can take any CΛC_{\Lambda} such that ker⁡CΛT=π∗(D)\ker C_{\Lambda}^{\mathsf{T}} = \pi^{*}(\mathcal{D}). Conversely, any such equations for a skew-symmetric map J:X∗→XJ:\mathcal{X}^{*} \to\mathcal{X} define a Dirac structure.

Hence any Dirac structure D⊂X×X∗\mathcal{D} \subset\mathcal{X} \times\mathcal{X}^{*} can be augmented to the graph of the skew-symmetric map

Ja:=[−J−CΛCΛT0]J_{a} := \begin{bmatrix} -J & -C_{\Lambda} \\ C_{\Lambda}^{\mathsf{T}} & 0 \end{bmatrix}

from X∗×Λ∗\mathcal{X}^{*} \times\Lambda^{*} to X×Λ\mathcal{X} \times\Lambda.

Analogously, for Lagrange structures one has the following result, see [27].

Proposition 8.2 For any Lagrange structure L⊂X×X∗\mathcal{L} \subset\mathcal{X} \times\mathcal{X}^{*} there exists a full-rank n×kn \times k matrix CμC_{\mu} and a symmetric n×nn \times n matrix QQ such that

L={(x,e)∈X×X∗∣∃μ∈Rk s.t. e=Qx+Cμμ,0=CμTx}.\mathcal{L} = \{(x,e) \in\mathcal{X} \times\mathcal{X}^{*} \mid\exists\mu\in\mathbb{R}^{k}\ \mathrm{s.t.}\ e = Qx + C_{\mu}\mu, 0 = C_{\mu}^{\mathsf{T}}x\}.

In fact, one can take any CμC_{\mu} such that ker⁡CμT=π(L)\ker C_{\mu}^{\mathsf{T}} = \pi(\mathcal{L}). Conversely, any such equations for a symmetric map Q:X→X∗Q:\mathcal{X} \to\mathcal{X}^{*} define a Lagrange structure.

Hence any Lagrange structure L⊂X×X∗\mathcal{L} \subset\mathcal{X} \times\mathcal{X}^{*} can be augmented to the graph of a symmetric map

Qa:=[QCμCμT0]:X×Rk→X∗×Rk∗.Q_{a} := \begin{bmatrix} Q & C_{\mu} \\ C_{\mu}^{\mathsf{T}} & 0 \end{bmatrix} : \mathcal{X} \times\mathbb{R}^{k} \to\mathcal{X}^{*} \times\mathbb{R}^{k*}.

The quadratic function 12xTQx+μTCμTx\frac{1}{2}x^{\mathsf{T}}Qx + \mu^{\mathsf{T}}C_{\mu}^{\mathsf{T}}x associated with this symmetric map is called a Morse family of the Lagrange structure L\mathcal{L}.

Finally, as shown in [29], any maximal monotone structure M⊂X×X∗\mathcal{M} \subset\mathcal{X} \times\mathcal{X}^{*} can be augmented to the graph of a monotone mapping. Recall that a mapping M:X∗→XM:\mathcal{X}^{*} \to\mathcal{X} is monotone if its matrix representation (also denoted by MM) satisfies M+MT≥0M + M^{\mathsf{T}} \ge0.

Proposition 8.3 Consider a maximally monotone structure M⊂X×X∗\mathcal{M} \subset\mathcal{X} \times\mathcal{X}^{*}. Write π∗M=ker⁡CλT\pi^{*}\mathcal{M} = \ker C_{\lambda}^{\mathsf{T}} for some matrix Cλ:Λ→XC_{\lambda}:\Lambda\to\mathcal{X} with full column rank and linear space Λ\Lambda. Then there exists a monotone map M:X∗→XM:\mathcal{X}^{*} \to\mathcal{X} such that

M={(f,e)∈X×X∗∣∃eλ∈Λ∗ s.t. [f0]=[−M−CλCλT0][eeλ]}.\mathcal{M} = \left\{(f,e) \in\mathcal{X} \times\mathcal{X}^{*} \mid\exists e_{\lambda} \in\Lambda^{*}\ \mathrm{s.t.}\ \begin{bmatrix} f \\ 0 \end{bmatrix} = \begin{bmatrix} -M & -C_{\lambda} \\ C_{\lambda}^{\mathsf{T}} & 0 \end{bmatrix}\begin{bmatrix} e \\ e_{\lambda} \end{bmatrix}\right\}.

Conversely, for any monotone map MM this defines a maximally monotone structure.

Thus, any maximally monotone structure M\mathcal{M} can be augmented to the graph of the monotone mapping

Ma:=[−M−CλCλT0]:X∗×Λ∗→X×Λ.M_{a} := \begin{bmatrix} -M & -C_{\lambda} \\ C_{\lambda}^{\mathsf{T}} & 0 \end{bmatrix} : \mathcal{X}^{*} \times\Lambda^{*} \to\mathcal{X} \times\Lambda.

Augmentation of Dirac structures and Lagrangian submanifolds; Morse families.

As a direct extension of the linear case (Proposition 8.1), any Dirac structure D\mathcal{D} on a manifold X\mathcal{X} can be locally written as the graph of a modulated skew-symmetric map on an augmented state manifold Xa\mathcal{X}_a, cf. [6]. Denote in analogy with the linear case the projection of TxX×Tx∗XT_x\mathcal{X} \times T_x^*\mathcal{X} to TxXT_x\mathcal{X} by π\pi, and the projection of TxX×Tx∗XT_x\mathcal{X} \times T_x^*\mathcal{X} to Tx∗XT_x^*\mathcal{X} by π∗\pi^*.

Proposition 9.1 Consider any Dirac structure D\mathcal{D} on a manifold X\mathcal{X}. Suppose that π∗(D(x))⊂Tx∗X\pi^*(\mathcal{D}(x)) \subset T_x^*\mathcal{X} is (n−k)(n-k)-dimensional and set Λ:=Rk\Lambda:= \mathbb{R}^k. Then there exists a full-rank n×kn \times k matrix function Cλ(x):Λ∗→TxXC_\lambda(x): \Lambda^* \to T_x\mathcal{X} and a skew-symmetric n×nn \times n matrix function J(x)J(x) such that locally

D(x)={(f,e)∈TxX×Tx∗X∣∃eλ∈Λ∗ s.t. −f=J(x)e+Cλ(x)eλ,0=CλT(x)e}.(42)\mathcal{D}(x) = \left\{(f,e) \in T_x\mathcal{X} \times T_x^*\mathcal{X} \mathrel{\big|} \exists e_\lambda\in\Lambda^* \ \mathrm{s.t.}\ -f = J(x)e + C_\lambda(x)e_\lambda,\quad0 = C_\lambda^\mathsf{T}(x)e\right\}. \tag*{(42)}

Conversely, any such equations for a skew-symmetric map J(x):Tx∗X→TxXJ(x): T_x^*\mathcal{X} \to T_x\mathcal{X} define a Dirac structure.

The generalization of Proposition 8.2 from Lagrange structures to Lagrangian manifolds is more involved. See e.g. [3] and the references quoted in there.

Proposition 9.2 Consider a Lagrangian submanifold L⊂T∗X\mathcal{L} \subset T^*\mathcal{X}, a point ℓ∈L\ell\in\mathcal{L} and its projection π(ℓ)∈X\pi(\ell) \in\mathcal{X}. Then there exists a neighborhood VV of π(ℓ)\pi(\ell), a natural number kk, a neighborhood WW of 0∈Rk0 \in\mathbb{R}^k, together with a smooth function F:V×W→RF: V \times W \to\mathbb{R}, such that the rank of ∂F∂μ\frac{\partial F}{\partial\mu}, with μ∈Rk\mu\in\mathbb{R}^k, is equal to kk on (∂F∂μ)−1(0)\left(\frac{\partial F}{\partial\mu}\right)^{-1}(0), and

{(x,∂F∂x(x,μ))∣∂F∂μ(x,μ)=0}(43)\left\{\left(x,\frac{\partial F}{\partial x}(x,\mu)\right)\mathrel{\big|}\frac{\partial F}{\partial\mu}(x,\mu)=0\right\} \tag*{(43)}

is a neighborhood of the point ℓ\ell in L\mathcal{L}. The function F(x,μ)F(x,\mu), seen as a function of xx and parametrized by μ∈Rk\mu\in\mathbb{R}^k, is called a Morse family for the Lagrangian submanifold L\mathcal{L}.

Thus, locally any Lagrangian submanifold L⊂T∗X\mathcal{L} \subset T^*\mathcal{X} can be locally augmented to a regular Lagrangian submanifold La⊂T∗(X×Rk)\mathcal{L}_a \subset T^*(\mathcal{X} \times\mathbb{R}^k), with generating function F(x,μ)F(x,\mu).

References

  1. [1]R. Altmann and P. Schulze. A novel energy-based modeling framework. Math. Control Signals Systems, 37(2):395–414, 2025.
  2. [2]V. I. Arnold. Mathematical Methods of Classical Mechanics. Springer-Verlag, Berlin, Germany, 1978.
  3. [3]M. Barbero-Linan, D. I. Ponte, and D. Martin de Diego. Morse families in optimal control problems. SIAM J. Cont. Optim., 53(1):414–433, 2015.
  4. [4]C. Beattie, V. Mehrmann, H. Xu, and H. Zwart. Port-Hamiltonian descriptor systems. Math. Control Signals Systems, 30(17):1–27, 2018.arxiv.org/abs/1705.09081
  5. [5]V. Boltyanskii, R. Gamkrelidze, E. Mishenko, and L. S. Pontryagin. The Mathematical Theory of Optimal Processes. Interscience, New York, NY, 1962.
  6. [6]M. Dalsmo and A. J. van der Schaft. On representations and integrability of mathematical structures in energy-conserving physical systems. SIAM J. Control Optim., 37:54–91, 1999.DOI
  7. [7]M. Diehl, D. B. Leineweber, A. Schäfer, H. G. Bock, and J. P. Schlöder. Optimization of multiple-fraction batch distillation with recycled waste cuts. AIChE Journal, 48(12):2869–2874, 2002.DOI
  8. [8]M. Diehl, I. Uslu, R. Findeisen, S. Schwarzkopf, F. Allgöwer, H. G. Bock, T. Bürner, E. D. Gilles, A. Kienle, J. P. Schlöder, and E. Stein. Real-time optimization for large scale processes: Nonlinear model predictive control of a high purity distillation column. In M. Grötschel, S. O. Krumke, and J. Rambau, editors, Online Optimization of Large Scale Systems: State of the Art, pages 363–384. Springer, 2001.DOI
  9. [9]P. M. A. Dirac. Generalized Hamiltonian dynamics. Proc. Roy. Soc. London Ser. A, 2462:326–332, 1958.
  10. [10]E. Eich-Soellner and C. Führer. Numerical Methods in Multibody Dynamics. Vieweg+Teubner Verlag, Wiesbaden, 1998.
  11. [11]C. W. Gear, B. Leimkuhler, and G. K. Gupta. Automatic integration of Euler-Lagrange equations with constraints. J. Comput. Appl. Math., 12/13:77–90, 1985.DOI
  12. [12]M. Günther and U. Feldmann. CAD-based electric-circuit modeling in industry. I. Mathematical structure and index of network equations. Surveys Math. Indust., 8:97–129, 1999.
  13. [13]M. Günther and U. Feldmann. CAD-based electric-circuit modeling in industry. II. Impact of circuit configurations and parameters. Surveys Math. Indust., 8:131–157, 1999.
  14. [14]M. W. Hirsch. Differential topology. New York, 1976.DOI
  15. [15]J.C. Willems H.J. Sussmann. 300 years of optimal control: from the brachystochrone to the maximum principle. IEEE Control Systems Magazine, 17:32–44, 1997.DOI
  16. [16]P. Kinon, P. Betsch, and S. Schneider. Structure-preserving integrators based on a new variational principle. Nonlinear Dynamics, 111(15):14231–14261, 2023.DOI
  17. [17]P. Kunkel and V. Mehrmann. Differential-Algebraic Equations. Analysis and Numerical Solution. EMSPress, Berlin, 2nd edition, 2024.
  18. [18]G.H. Livens. IX.—on Hamilton’s principle and the modified function in analytical dynamics. Proceedings of the Royal Society of Edinburgh, 39:113–119, 1920.DOI
  19. [19]V. Mehrmann and R. Morandin. Structure-preserving discretization for port-Hamiltonian descriptor systems. In 58th IEEE Conference on Decision and Control (CDC), Nice, France, pages 6863–6868, 2019.arxiv.org/abs/1903.10451
  20. [20]V. Mehrmann and B. Unger. Control of port-Hamiltonian differential-algebraic systems and applications. Acta Numerica, To appear, 2023.arxiv.org/abs/2201.06590
  21. [21]V. Mehrmann and A.J. van der Schaft. Differential-algebraic systems with dissipative Hamiltonian structure. Math. Control Signals Systems, 35:541–584, 2023.
  22. [22]H. Nijmeijer and A.J. van der Schaft. Nonlinear Dynamical Control Systems. Springer, New York, NY, 1990.DOI
  23. [23]P. J. Rabier and W. C. Rheinboldt. Theoretical and Numerical Analysis of Differential-Algebraic Equations, volume VIII of Handbook of Numerical Analysis. Elsevier, Amsterdam, The Netherlands, 2002.
  24. [24]W. Schiehlen. Multibody Systems Handbook. Springer-Verlag, Heidelberg, Germany, 1990.
  25. [25]A. van der Schaft. Port-Hamiltonian differential-algebraic systems. In A. Ilchmann and T. Reis, editors, Surveys in Differential-Algebraic Equations I, Differential-Algebraic Equations Forum, pages 173–226. Springer-Verlag, Berlin, Heidelberg, 2013.
  26. [26]A. van der Schaft and D. Jeltsema. Port-Hamiltonian systems theory: An introductory overview. Foundations and Trends in Systems and Control, 1(2-3):173–378, 2014.
  27. [27]A. van der Schaft and B. Maschke. Generalized port-Hamiltonian DAE systems. Systems Control Lett., 121:31–37, 2018.arxiv.org/abs/1808.01845
  28. [28]A. van der Schaft and B. Maschke. Dirac and Lagrange algebraic constraints in nonlinear port-Hamiltonian systems. Vietnam J. Mathematics, 48(4):929–939, 2020.arxiv.org/abs/1909.07025
  29. [29]A.J. van der Schaft and V. Mehrmann. Linear port-Hamiltonian DAE systems revisited. System and Control Letters, 177, 2023.

Paper details

vlnc:W_j68nux95
Version
v1 · latest
Published
Fresh — added to the Hub within the last 30 days
Added
License
CC BY 4.0
Usage

views · 0

downloads · 0

A view counts once per browser per day, a download each time the PDF is requested.

  • Mathematics

Not recorded for this paper

View statement
Looking for related papers…
Contents