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 -dimensional linear space with elements denoted by . Let denote the tangent space to at . Obviously, since is a linear space can be identified with for any . Nevertheless, the distinction will be important if we generalize (later on) to manifolds (instead of linear spaces). The elements of will be denoted by and will be called flow vectors. Furthermore, consider the dual space of , with elements denoted by and called effort vectors. Obviously, in the linear case can be identified with .
The space is endowed with two natural bilinear forms. First, the plus-bilinear form
where denotes the duality product between the dual spaces and .
Second, the minus-bilinear form
In coordinates for and dual coordinates for these bilinear forms are represented by the matrices
respectively.
Definition 2.1 A subspace is called a Dirac structure if the bilinear form is zero on and, moreover, is maximal with respect to this property. A subspace is called a Lagrange structure3 if the bilinear form is zero on and, moreover, is maximal with respect to this property. Furthermore, a Lagrange structure is called nonnegative if the bilinear form is nonnegative whenever restricted to .
Note that for any we have . This corresponds physically to power conservation. In fact, an equivalent definition of a Dirac structure is that for any , and that 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 to , see also Appendix § 9. Similarly, a special type of Lagrange structure is the graph of a symmetric linear map from to .
This last fact means that any quadratic function on with defines a Lagrange structure. Indeed the graph of the map defined by the gradient of this quadratic function, i.e.,
is a Lagrange structure.
A Dirac structure is called regular if its projection on is equal to , or equivalently, if is the graph of a linear map from to . If not, then we will call a singular Dirac structure. Similarly, we will call a Lagrange structure regular if the projection of on is equal to , or equivalently, if is the graph of a linear map from to . If this is not the case, then is called singular Lagrange structure.
Dirac and Lagrange structures admit the following coordinate representations, see e.g. [26, 27]. Take any coordinates for the -dimensional linear space and dual coordinates for . Then using matrices , any Dirac structure admits the kernel/image representation
with satisfying and the generalized skew-symmetry condition
Conversely, any such pair defines a Dirac structure.
Analogously, any Lagrange structure can be represented as
for certain matrices satisfying , as well as the generalized symmetry condition
Conversely any such pair defines a Lagrange structure.
The above definition of Dirac structures and Lagrange structures modelled on linear spaces can be extended to manifolds as follows. Let be a finite-dimensional manifold. Denote by the tangent space to at , and by the cotangent space to at . Then for every , the product space can be endowed with the bilinear forms defined in (1) and (2).
A Dirac structure modelled on a manifold is defined as a subbundle such that for every the subspace is a Dirac structure as in Definition 2.1. A Dirac structure on is called regular if for any the subspace , where is the projection of on , can be written as the graph of a linear mapping . In this case, is skew-symmetric. Otherwise, the Dirac structure is called singular.4
Furthermore, a submanifold is called Lagrangian if at every the tangent space is a Lagrangian subspace of , where is the projection of on . The Lagrangian submanifold is called regular if locally can be written as the graph of the gradient of a differentiable function , that is,
(and conversely, for any differentiable this defines a Lagrangian submanifold). Equivalently, is regular if locally the projection of on is equal to . If there does not exist locally such a function , then the Lagrangian submanifold 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 () on a linear state space is defined by a pair , where is a Dirac structure, and is a Lagrange structure. Its dynamics is given by the relation
In coordinates for the Dirac structure is specified as before by a pair of matrices , and the Lagrange structure is determined by a pair of matrices . Then in view of (5) can be written as for a certain -vector . Furthermore, amounts to . Substitution of the first expressions into the second results in the following coordinate representation of a linear port-Hamiltonian DAE system
This constitutes a system of differential-algebraic equations (DAEs) , where and . In fact, there are two types of algebraic constraints corresponding to singularity of . The first is specified by the singularity of the matrix (corresponding to singularity of the Lagrange structure ), and the second by the singularity of the matrix (corresponding to singularity of the Dirac structure ). 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 , and the Dirac algebraic constraints as . (Note that because of (3) .)
Note that if for some symmetric matrix , then the port-Hamiltonian DAE system satisfies
since . In physical applications equals the total stored energy (Hamiltonian), in which case (9) represents conservation of total energy.
In the case that the Lagrange structure is singular, it is not generated by a Hamiltonian for some . However in this case one may consider the quadratic function of the vector . Indeed,
since and , and . Thus takes over the role of the stored energy.
A special case of (8) are pHDAEs as defined in [19] with and skew-symmetric, and thus only exhibiting Lagrange algebraic constraints. The dual special case are pHDAEs as defined in [25] with and 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 is defined by a pair , where is a Dirac structure on (i.e., a subbundle of ), and is a Lagrangian submanifold. Its dynamics is given by the relation
In the case that is generated by a Hamiltonian , i.e., , we again obtain energy conservation
since .
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 , there locally exists a Morse family such that locally
Hence for the port-Hamiltonian DAE system represented by it holds that
Here the second equality results from the equation in (10), while the last equality follows from the fact that .
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 is singular then the inclusion entails an algebraic constraint on , and if is singular then defines a constraint on , which via translates into an algebraic constraint on .
Analogously to (4), any Dirac structure on the -dimensional state space manifold can be locally written as
for certain square matrix functions satisfying
This means that if the Lagrange submanifold is regular, i.e., of the form for a certain , then the nonlinear port-Hamiltonian DAE locally takes the form
Obviously Dirac algebraic constraints correspond to the singularity of .
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 given by (7), with coordinate representation (8).
Singular Lagrange structure
Consider a regular Dirac structure , where is a skew-symmetric matrix and a singular Lagrange structure .
As detailed in Appendix A such a singular Lagrange structure can be always, see e.g. [14], represented as for certain matrices and . The function is called a Morse family for the Lagrange structure.
To obtain an augmented pHDAE representation, we consider the augmented state , and augmented efforts , together with the augmented Lagrange structure
Furthermore, we consider the augmented Dirac structure
Note that the augmented Lagrange structure is regular, while the augmented Dirac structure is now singular. This results in an augmented pHDAE of the form (8) given by
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 -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
Thus the Lagrange multiplier 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 subject to geometric constraints for some matrix . The Hamiltonian is of the form kinetic energy plus potential energy:
where are the momenta, and is a matrix defining the potential energy. Note that the geometric constraints are Lagrange algebraic constraints, corresponding to the singular Lagrange structure
which can be equivalently written as
Thus, the regular augmented Lagrange structure in the augmented state is given as
Correspondingly, the singular augmented Dirac structure is
Taken together, this results in the augmented pHDAE system
As a consequence, the Lagrange algebraic constraints 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 , where is a symmetric matrix, and a singular Dirac structure . As detailed in Appendix A such a singular Dirac structure can be always represented as
for a certain skew-symmetric matrix and a matrix . To obtain an extended pHDAE representation we consider an augmented state vector tuple and an augmented tuple of flows and efforts. This leads to a regular augmented Dirac structure
and a singular augmented Lagrange structure
Taken together, this gives an augmented pHDAE of the form (8) in the augmented state with
where, compared to the original system, the Dirac algebraic constraint is now interpreted as a Lagrange algebraic constraint with respect to the extended state . Finally, note that the energy function of the augmented system (12) is given as
Thus, again, the Lagrange multiplier 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 for some matrix . Inserting , the kinematic constraints can be expressed as the Dirac algebraic constraint .
By d’Alembert’s principle the kinematic constraints give rise to constraint forces for some vector of Lagrange multipliers . This results in the extended pHDAE of the form (8) in given by
where again the Hamiltonian is
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 , on a state space manifold , where the Dirac structure is singular, while the Lagrangian submanifold is regular, i.e., locally for some generating function (the Hamiltonian). Then by Proposition 9.1 in Appendix A, the Dirac structure can be locally written as
for some skew-symmetric matrix function and a matrix function . This means that on the augmented state space manifold one defines the regular Dirac structure as the graph of the skew-symmetric matrix function
On the other hand, the regular Lagrangian submanifold is augmented to a singular Lagrangian submanifold defined as
corresponding to the Lagrange algebraic constraints . This results in the following proposition.
Proposition 4.3 Consider a port-Hamiltonian DAE system on a state space manifold , where the Dirac structure is singular, while the Lagrangian submanifold is regular. Then it can be augmented to a port-Hamiltonian DAE system on the augmented space manifold with regular Dirac structure and singular Lagrangian submanifold. Furthermore, the -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 representing the singular Lagrange structure), we note that the singular Lagrangian submanifold defined in (13) can be also represented as the solution set of
where
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
Indeed , and therefore
by the skew-symmetry of and since . Thus (independent of ) is still the Hamiltonian of the augmented system .
Singular Lagrangian submanifolds
Alternatively, consider a nonlinear port-Hamiltonian DAE system , where the Lagrangian submanifold is singular. Then, using Proposition 9.2, can be locally represented, using a Morse family , as
This leads to the regular augmented Lagrangian submanifold
on the augmented space of points . Furthermore, the Dirac structure on may be augmented with the trivial Dirac structure , so as to obtain an augmented Dirac structure . This defines an extended port-Hamiltonian system with an explicit energy function , and thus without any Lagrange algebraic constraints.
This is summarized in the following proposition.
Proposition 4.4 Consider a port-Hamiltonian DAE system with Lagrange algebraic constraints. Represent by a Morse family on as in (14), and define the augmented Dirac structure as the product of with the Dirac structure . Then has been transformed into the port-Hamiltonian system with state space , in such a way that its -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 for a control system , with , , . Define the optimal control Hamiltonian
with 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 , given as
The underlying Dirac structure is given as
i.e., the direct product of the Dirac structure on the space given by the graph of the canonical skew-symmetric map from to , with the trivial Dirac structure . The resulting Dirac algebraic constraints are .
System (15) can be equivalently rewritten as a port-Hamiltonian system only involving the variables, with implicit energy storage relation given by the Lagrangian submanifold
Thus, the optimal control Hamiltonian defines a Morse family for (with 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 with
natural coordinates , with a Morse family of the separable form
for some Hamiltonian and constraint mapping . This means that is given as
where and are Lagrange multipliers. Combined with a general Dirac structure on with coefficient functions , this leads to a port-Hamiltonian DAE system
or equivalently
A special case of (17) is
where , and we obtain the following energy balance
On the other hand is chosen such that the constraint remains satisfied. Hence by differentiation, satisfies
Together with (19) this yields energy conservation, i.e.,
A special case of (18) are mechanical systems with position constraints , where . 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 arise from nonsurjectivity of the map from to , for a singular Lagrangian function . This means that the Hamiltonian is , where is undetermined. By possibly differentiating the primary constraints to secondary constraints one is led to a constraint submanifold of the state space . 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 , where are the configuration coordinates of the mechanical system and the corresponding generalized velocities. Using variational calculus for optimizing the action integral one derives the Euler-Lagrange equations
describing the second-order equations of motion. Next one defines the Hamiltonian function as the partial Legendre transform, see e.g. [2], (assuming it exists) of with respect to , with the vector of momenta. As a result, the Euler-Lagrange equations (20) transform into the classical Hamiltonian equations
For example, if (kinetic minus potential energy), for some invertible mass matrix , then the Hamiltonian is given as as the total energy .
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 as an extra variable, and considering the augmented Lagrangian
Thus in the Lagrangian is replaced by , while interpreting the equality as a constraint with Lagrange multiplier . Application of variational calculus to this augmented Lagrangian (and exploiting affine dependence on ) yields the following system
in the extended set of state variables , with Hamiltonian
This constitutes a port-Hamiltonian DAE system with Dirac algebraic constraints , which are replacing the definition in the standard approach. If we can solve these algebraic constraints for , then we are back to the standard case (21), with Hamiltonian . However, solvability of the algebraic constraints (or, equivalently, existence of the partial Legendre transform of ) 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 with respect to dynamics ; see Example 4.5. Then the first-order necessary conditions of Pontryagin’s maximum principle amount to the port-Hamiltonian DAE system
with being the optimal control Hamiltonian. Thus, seen from this angle the Livens principle corresponds to the special case . 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 as in (21), and with geometric constraints for some mapping , where is the state space or manifold of the vectors. The equations of motion are given as
with the matrix function defining the constraint forces , where are appropriate Lagrange multipliers. This constitutes a port-Hamiltonian DAE system with state variables and Lagrange algebraic constraints . Indeed, the submanifold
is a Lagrangian submanifold of , where is the state space with natural coordinates . Note that the Dirac structure is simply given as the graph of .
The Lagrange algebraic constraints are converted into Dirac algebraic constraints by introducing the Lagrange multipliers and considering the Morse family
Then (24) is rewritten as the augmented port-Hamiltonian DAE system
with Dirac algebraic constraints . These equations can be more explicitly rewritten as
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 , and the Hamiltonian
The resulting port-Hamiltonian formulation takes the form
This leads to two sets of Dirac algebraic constraints, namely and . Solving (if possible!) the Livens algebraic constraint for leads back to (26).
Kinematic constraints
Kinematic constraints for mechanical systems are of the form for some matrix function . In this case, applying d’Alembert’s principle, (21) extends to the port-Hamiltonian DAE system
with the vector of constraint forces, and the energy as in (21). Here, the last line represents Dirac algebraic constraints resulting from the singular Dirac structure
As before, these Dirac algebraic constraints can be converted into Lagrange algebraic constraints by extending the state to , with . The augmented Dirac structure is given as the graph of the skew-symmetric map
Furthermore, the singular augmented Lagrangian submanifold is given as
The resulting augmented port-Hamiltonian DAE system takes the form
where .
Finally, the treatment of kinematic constraints can be also combined with the Livens principle. This is done by adding variables and replacing the Hamiltonian as in (21) by the Hamiltonian introduced before. This results in the following port-Hamiltonian DAE system with state variables given as
This system has, on the one hand, Dirac algebraic constraints of the form , and, on the other hand, Lagrange algebraic constraints .
Differentiating geometric to kinematic constraints
Another way that kinematic constraints arise is by differentiating geometric constraints with respect to time, resulting in kinematic constraints , where . These kinematic constraints are of a special type; classically called holonomic constraints. (Conversely, kinematic constraints for which there does not exist an invertible matrix and map such that are called non-holonomic.)
Of course, by differentiating geometric constraints to kinematic constraints 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
However, since , the two constraint forces can be taken together as the single constraint force .
Alternatively, a classical approach in the numerical solution of mechanical systems with geometric constraints is to interpret the differentiated geometric constraints as new ’geometric’ constraints in the variables. From a port-Hamiltonian perspective this means that we do not regard the differentiated geometric constraints as kinematic constraints (and thus as Dirac algebraic constraints), but instead as Lagrange algebraic constraints, directly constraining the state variables via another Lagrange multiplier . 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 , and leads to the port-Hamiltonian DAE system
where , , , , and .
Substitution of yields
By using , then (28) implies that
or equivalently
If has full rank and is invertible then this implies that actually ; see [16].
Thus, from a mathematical modeling point of view, the inclusion of the differentiated geometric constraints as additional Lagrange constraints 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 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 , where
is a Dirac structure
with the state space manifold, and are dual flow and effort linear spaces corresponding to energy dissipation, and and are dual flow and effort linear spaces corresponding to external ports,
is a Lagrangian submanifold
corresponding to energy storage, and
is a resistive relation defined by a submanifold
with .
The resulting port-Hamiltonian DAE system is defined by the equations
Note that the description of the dynamics (29) involves the intermediate variables satisfying . In order to obtain an explicit description in terms of only the state variables (and their time-derivatives ) and the external port variables these variables need to be eliminated.
In order to do so, we will look closely at the composition of the Dirac structure and the resistive relation . 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 are eliminated by considering the composition of the Dirac structure and the resistive structure via the resistive port variables . For simplicity of exposition we first consider the case without external port variables .
Throughout this subsection, we will assume that the resistive structure is given by a nonnegative Lagrange structure . The composition of with a Dirac structure via the resistive port variables is then defined as
As we will demonstrate now, such a composition can be fully characterized as a maximally monotone structure . Conversely any maximally monotone structure can be written as for a certain choice of , a Dirac structure and resistive structure .
For this analysis, let us first recall the definition of a maximally monotone structure.
Definition 6.2 Let be a finite-dimensional linear space. A subspace is called a monotone structure if the quadratic form defined by the bilinear form is nonnegative on . It is a maximally monotone structure if moreover is maximal with respect to this property, i.e., there does not exist another monotone structure with .
Note that Dirac structures are a special type of maximally monotone structures, namely maximal subspaces for which is zero restricted to this subspace. In general, we first recall the following proposition from [29]. Note that a linear map is called monotone if or, equivalently, for all .
Proposition 6.3 A subspace is a monotone structure if and only if
for all , and a maximally monotone structure if additionally is maximal with respect to this property. Any monotone structure satisfies and is a maximally monotone structure if and only if . Furthermore, the graph of a linear map is a maximally monotone structure if and only if 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 and such that for some Dirac structure and a nonnegative Lagrange structure . Then is a maximally monotone structure.
Conversely, let be a maximally monotone structure. Then there exist linear spaces and such that for some Dirac structure and some nonnegative Lagrange structure .
This means that in the definition of a linear dissipative port-Hamiltonian DAE system (with Dirac structure and resistive structure ), we can always replace the pair by a maximally monotone structure . Thus, dissipative port-Hamiltonian systems can be equivalently defined by a pair , with a maximally monotone structure, and a Lagrange structure.
Dissipative port-Hamiltonian systems admit the following coordinate representations (not involving resistive variables ). Obviously, any subspace can be represented in image representation as
for square matrices of dimension equal to . It is easily seen that represented in this way is maximally monotone if and only if are such that
However, in order to obtain equations we need kernel representations instead of image representations. Thus let satisfy (30), and let be a maximal annihilator of , i.e., and . Then the dissipative port-Hamiltonian system takes the form
where the pair specifies as before the Lagrange structure . In particular, the algebraic constraints are determined by , and similar to the case without energy dissipation we may distinguish between algebraic constraints due to singularity of (Lagrange algebraic constraints) and due to singularity of (algebraic constraints arising from the maximally monotone structure). In particular, we have the algebraic constraints
generalizing Dirac algebraic constraints. Furthermore, it is immediately seen that the dynamics of any dissipative port-Hamiltonian systems satisfies the inequality
since
While (30) is a direct characterization of maximal monotonicity of a subspace given in image representation, we do not yet have a corresponding characterization for kernel representations , . This is done in the following proposition.
Proposition 6.5 The matrix
is the image representation of a maximally monotone structure if and only if for every maximal annihilator of one has .
Proof. If with invertible, then the are satisfying . Since for all , it follows that for all . Thus , or equivalently . On the other hand, if is such that is not invertible, then arbitrarily close to there will exist a maximally monotone with associated being invertible, and thus by continuity remains to hold.
These observations are immediately extended to linear dissipative port-Hamiltonian systems with external ports. In fact, let , with (here the index 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 , together with a Lagrange structure 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 in the nonlinear case we proceed as follows. Importantly, here we restrict ourselves to modulated linear energy dissipation relations which means that is assumed to be defined by subspaces
depending on , in the sense that for every the subspace 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 be a Dirac structure on as before. Thus, for every we have that
is a Dirac structure as in the linear case. Then consider for every the composition
Using the same arguments as in the linear case, this defines for every a maximally monotone structure . Thus the composition of the Dirac structure modulated by and the resistive structure modulated by the same defines a maximally monotone structure, again modulated by this . Conversely, again using the results of the linear case, under regularity conditions every maximally monotone structure modulated by can be written as the composition of a Dirac structure and resistive structure , both modulated by . Using the matrix representation developed for the linear case this means that there exist matrices such that
where
If the Lagrangian submanifold is generated by a function , this means that the dissipative port-Hamiltonian dynamics is given as
In particular, if is invertible then the dynamics takes the form for some matrix (modulated by ) that is monotone, i.e., . Splitting into its skew-symmetric and symmetric part, the dynamics thus takes the well-known port-Hamiltonian ODE form
Finally, external port variables , , i.e., inputs and outputs, are added by starting from an extended modulated Dirac structure
together with a modulated resistive structure . Composition through the variables leads to a modulated maximally monotone structure
given as for matrix functions , , , satisfying
The resulting dissipative port-Hamiltonian system with external ports is thus given as
with external port variables , .
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 to by , and from to by .
Proposition 8.1 Let be a finite-dimensional linear space. Consider any Dirac structure , and suppose that is -dimensional, where is the projection onto the second argument. With , there exists a full-rank map and a skew-symmetric map , such that is given as
In fact, one can take any such that . Conversely, any such equations for a skew-symmetric map define a Dirac structure.
Hence any Dirac structure can be augmented to the graph of the skew-symmetric map
from to .
Analogously, for Lagrange structures one has the following result, see [27].
Proposition 8.2 For any Lagrange structure there exists a full-rank matrix and a symmetric matrix such that
In fact, one can take any such that . Conversely, any such equations for a symmetric map define a Lagrange structure.
Hence any Lagrange structure can be augmented to the graph of a symmetric map
The quadratic function associated with this symmetric map is called a Morse family of the Lagrange structure .
Finally, as shown in [29], any maximal monotone structure can be augmented to the graph of a monotone mapping. Recall that a mapping is monotone if its matrix representation (also denoted by ) satisfies .
Proposition 8.3 Consider a maximally monotone structure . Write for some matrix with full column rank and linear space . Then there exists a monotone map such that
Conversely, for any monotone map this defines a maximally monotone structure.
Thus, any maximally monotone structure can be augmented to the graph of the monotone mapping
Augmentation of Dirac structures and Lagrangian submanifolds; Morse families.
As a direct extension of the linear case (Proposition 8.1), any Dirac structure on a manifold can be locally written as the graph of a modulated skew-symmetric map on an augmented state manifold , cf. [6]. Denote in analogy with the linear case the projection of to by , and the projection of to by .
Proposition 9.1 Consider any Dirac structure on a manifold . Suppose that is -dimensional and set . Then there exists a full-rank matrix function and a skew-symmetric matrix function such that locally
Conversely, any such equations for a skew-symmetric map 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 , a point and its projection . Then there exists a neighborhood of , a natural number , a neighborhood of , together with a smooth function , such that the rank of , with , is equal to on , and
is a neighborhood of the point in . The function , seen as a function of and parametrized by , is called a Morse family for the Lagrangian submanifold .
Thus, locally any Lagrangian submanifold can be locally augmented to a regular Lagrangian submanifold , with generating function .
References
- [1]R. Altmann and P. Schulze. A novel energy-based modeling framework. Math. Control Signals Systems, 37(2):395–414, 2025.
- [2]V. I. Arnold. Mathematical Methods of Classical Mechanics. Springer-Verlag, Berlin, Germany, 1978.
- [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]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]V. Boltyanskii, R. Gamkrelidze, E. Mishenko, and L. S. Pontryagin. The Mathematical Theory of Optimal Processes. Interscience, New York, NY, 1962.
- [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]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]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]P. M. A. Dirac. Generalized Hamiltonian dynamics. Proc. Roy. Soc. London Ser. A, 2462:326–332, 1958.
- [10]E. Eich-Soellner and C. Führer. Numerical Methods in Multibody Dynamics. Vieweg+Teubner Verlag, Wiesbaden, 1998.
- [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]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]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]M. W. Hirsch. Differential topology. New York, 1976.DOI
- [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]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]P. Kunkel and V. Mehrmann. Differential-Algebraic Equations. Analysis and Numerical Solution. EMSPress, Berlin, 2nd edition, 2024.
- [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]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]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]V. Mehrmann and A.J. van der Schaft. Differential-algebraic systems with dissipative Hamiltonian structure. Math. Control Signals Systems, 35:541–584, 2023.
- [22]H. Nijmeijer and A.J. van der Schaft. Nonlinear Dynamical Control Systems. Springer, New York, NY, 1990.DOI
- [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]W. Schiehlen. Multibody Systems Handbook. Springer-Verlag, Heidelberg, Germany, 1990.
- [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]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]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]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]A.J. van der Schaft and V. Mehrmann. Linear port-Hamiltonian DAE systems revisited. System and Control Letters, 177, 2023.