Papers
Topics
Authors
Recent
Search
2000 character limit reached

Port-Hamiltonian Systems on Graphs

Updated 15 March 2026
  • Port-Hamiltonian systems on graphs are an energy-based modeling framework that captures conservation and dissipation in networked physical systems.
  • They leverage incidence and Laplacian matrices along with Dirac structures to unify models of electrical circuits, mechanical systems, and transport networks.
  • Recent advances extend the framework to data-driven discovery and automated composition for scalable, thermodynamically consistent system models.

Port-Hamiltonian systems on graphs furnish a rigorous, energy-based modeling framework for networked physical systems, in which the interconnection structure is directly encoded by a graph and the dynamics capture both conservation laws and dissipative effects. By leveraging the formalism of incidence and Laplacian matrices, Dirac structures, and, more broadly, the syntax of wiring diagrams, the port-Hamiltonian approach unifies the treatment of electrical circuits, mechanical networks, transport systems, and even higher-order chain complexes. Recent developments have further extended this paradigm to data-driven model discovery and thermodynamically consistent system composition.

1. Graph Structures, Incidence Matrices, and Laplacians

Let G=(V,E)\mathcal{G}=(\mathcal{V},\mathcal{E}) denote a directed graph with n=Vn=|\mathcal{V}| vertices and m=Em=|\mathcal{E}| edges. The n×mn\times m (node-to-edge) incidence matrix BB assigns each edge jj a +1+1 in the row of its head, 1-1 in the row of its tail, and zeros elsewhere. For edge weights encoded by a diagonal matrix Re=diag(r1,...,rm)R_e= \operatorname{diag}(r_1, ..., r_m), the symmetric Laplacian is defined by

L=BReBTL = B R_e B^T

which is symmetric, positive semidefinite, with L1=0L \mathbf{1}=0 and 1TL=0\mathbf{1}^T L =0. This structure naturally emerges in the conservation law for stored quantities xRnx\in\mathbb{R}^n at graph nodes, with flows fRmf\in\mathbb{R}^m along edges:

x˙=Bf\dot{x} = B f

If f=Reef = -R_e e with efforts e=BTHxe = B^T \frac{\partial H}{\partial x}, and a separable Hamiltonian H(x)=iHi(xi)H(x)=\sum_i H_i(x_i), then

x˙=LHx\dot{x} = -L \frac{\partial H}{\partial x}

which encodes passive, energy-dissipative dynamics governing key physical network models (Schaft, 2015).

2. Port-Hamiltonian System Structure and Energy-Based Network Dynamics

A finite-dimensional port-Hamiltonian system (PHS) with input uRku\in\mathbb{R}^k and output yRky\in\mathbb{R}^k takes the canonical form:

x˙=[J(x)R(x)]Hx+G(x)u,y=GT(x)Hx\dot{x} = [J(x) - R(x)] \frac{\partial H}{\partial x} + G(x)u,\quad y = G^T(x) \frac{\partial H}{\partial x}

where J(x)=JT(x)J(x) = -J^T(x) encodes the lossless interconnection structure (Dirac structure), R(x)=RT(x)0R(x) = R^T(x) \geq 0 governs dissipation, and H(x)0H(x) \geq 0 is the Hamiltonian (total stored energy). For graph-based networks where storage resides only at vertices, J=0J=0 and R=LR=L, so:

x˙=LHx+Bu\dot{x} = -L \frac{\partial H}{\partial x} + B u

with y=BTHx+Duy = B^T \frac{\partial H}{\partial x} + Du, where a direct feedthrough DD arises for resistive ports (Schaft, 2015). The formulation directly preserves passivity, and recasts many classic models—mass-spring-damper arrays, power grids, resistive-capacitive circuits, consensus protocols—in a unified port-Hamiltonian language (Schaft et al., 2011).

3. Non-Symmetric Laplacians, Kirchhoff Balancing, and Generalized Graphs

In non-reversible transport or asymmetric influence networks, the flow Laplacian Lns=BReL_{\text{ns}} = -B R_e is generally non-symmetric but still satisfies 1TLns=0\mathbf{1}^T L_{\text{ns}}=0 (column sums vanish, ensuring conservation). For strongly connected components, there exists a positive vector σR>0n\sigma \in \mathbb{R}^n_{>0} such that Lnsσ=0L_{\text{ns}} \sigma =0, constructible using the Kirchhoff Matrix-Tree theorem (sum of spanning trees directed to each node, weighted by edge weights). The balancing transformation

Lbal:=Dσ1LnsDσL_{\text{bal}} := D_\sigma^{-1} L_{\text{ns}} D_\sigma

with Dσ=diag(σ)D_\sigma = \operatorname{diag}(\sigma), yields a Laplacian with both row and column sums zero, and symmetric if and only if detailed balance holds. Introducing scaled state z=Dσxz=D_\sigma x, and corresponding scaled Hamiltonian H~(z)=H(Dσ1z)\tilde{H}(z)=H(D_\sigma^{-1}z), the dynamics in zz take standard pH-form

z˙=[JR]H~z+B~u,B~=DσB\dot{z} = [J - R] \frac{\partial \tilde{H}}{\partial z} + \tilde{B} u, \quad \tilde{B}=D_\sigma B

with Lbal=JRL_{\text{bal}} = J - R for J=JTJ=-J^T, R=RT0R=R^T \geq 0 (Schaft, 2015). This structure generalizes the approach to settings beyond symmetric networks, including directed consensus algorithms and distribution systems.

4. Dirac Structures, Compositionality, and Network Interconnection

Port-Hamiltonian structure fundamentally relies on Dirac structures, which are power-conserving subspaces of flow/effort pairs satisfying symmetry and dimensionality properties (Schaft et al., 2011). On a graph, flow-continuous (Df\mathcal{D}_f) and effort-continuous (De\mathcal{D}_e) Dirac structures encode coupling conditions via the incidence matrix and manage the interconnection of internal, boundary, and edge variables. Graph composition—attaching subgraphs via common boundary vertices—is represented as categorical pushouts of Dirac or bond-graph structures. This induces modular assembly: coupled systems inherit the passivity and energetic properties of their constituents (Lohmayer et al., 2022, Lohmayer et al., 2024).

The diagrammatic or operadic syntax for compositional modeling has been formalized in modern frameworks such as the EPHS modeling language. Primitive components, junctions, and their interconnections are presented as typed undirected wiring diagrams, with semantics functorially assigning to any wiring diagram a global (aggregate) port-Hamiltonian model. Hierarchical modeling and automated elimination of internal variables are then encoded by syntactic composition, ensuring that system-theoretic properties such as passivity, conservation, and structure preservation are maintained under arbitrary hierarchical interconnection (Lohmayer et al., 2022, Lohmayer et al., 2024).

5. Analytical Tools: Storage Functions and System-Theoretic Analysis

Port-Hamiltonian models on graphs admit explicit computation of available storage or minimal storage functions. For passive systems x˙=Dsu\dot{x} = D_s u, y=DsTHxy = D_s^T \frac{\partial H}{\partial x}, the available storage is

Sa(x)=supu(),T0(0Ty(t)Tu(t)dt)=H(x)H(x)S_a(x) = \sup_{u(\cdot),T\geq 0} \left( -\int_0^T y(t)^T u(t) dt \right) = H(x) - H(x^*)

where xx^* is the reachable minimizer of HH over all xx^* with Hx(x)=λ1\frac{\partial H}{\partial x}(x^*) = \lambda \mathbf{1} and mass conservation 1Tx=1Tx1^T x^* = 1^T x enforced. For quadratic Hamiltonians, this yields

Sa(x)=12xT[I1n11T]xS_a(x) = \frac{1}{2} x^T [I - \frac{1}{n} 11^T] x

representing the maximal extractable energy constrained by invariant total mass (Schaft, 2015).

Equilibria, Lyapunov analysis, and the existence of Casimir invariants fall naturally out of the Hamiltonian structure. Under quadratic HH, necessary and sufficient conditions for convergence to equilibrium involve the interplay of the Laplacian, mass/damping assignment, and graph connectivity. Robustness to disturbances and symmetry reduction can be treated algebraically within the same formalism (Schaft et al., 2011).

6. Higher-Order Complexes, Infinite-Dimensional Extensions, and Metric Graphs

Directed graphs are 1-complexes in the framework of chain complexes. For higher-order kk-complexes, a sequence of boundary operators djd_j satisfying dj1dj=0d_{j-1} \circ d_j = 0 encodes structure on faces, edges, and higher-dimensional cells. Port-Hamiltonian equations can be written on these complexes, e.g., to model heat transfer on a 2-complex where stored energy is associated to faces, fluxes to edges, and efforts determined via the coboundary operator djTd_j^T. The resulting Laplacian has the general form dkRdkTd_k R d_k^T, encoding physical laws on combinatorial or simplicial complexes (Schaft, 2015).

For infinite-dimensional settings, particularly hyperbolic PDEs (telegraph systems) on metric graphs, the port-Hamiltonian approach provides explicit semigroup representations under general Kirchhoff-type boundary conditions (Banasiak et al., 2021). The formulation splits boundary data into incoming and outgoing ports, with the coupling governed by a boundary matrix BB. The long-term dynamic behavior is completely determined by the spectrum of BB, with invariant subspace decompositions yielding periodic and decaying modes. Rigorous criteria for "graph realizability" of Kirchhoff port-boundary conditions are available in terms of the structure of the boundary matrix and its relation to the adjacency matrix of line-digraphs (Banasiak et al., 2021).

7. Data-Driven and Automated Discovery of Graph Port-Hamiltonian Structure

Algorithms have been recently developed for learning port-Hamiltonian descriptions—starting from unlabelled ODE data, one first infers the underlying graph structure via pooling network approaches or cross-correlation of observed trajectories, then reconstructs the Hamiltonian, Poisson, and port structures for each identified subsystem (Salnikov et al., 2022). The algorithm clusters variables to recover network modules, learns normal forms via catalogs of symplectic and Poisson tensors, and separates internal Hamiltonian flows from port and dissipative terms. The process is scalable, modular, and supports both nonlinear and large-scale models. Automated translation from bond-graph representations to explicit input-state-output port-Hamiltonian models has also been rigorously formalized via rank criteria and constructive algorithms (Pfeifer et al., 2019), allowing for algorithmic assembly and passivity verification.


Principal References:

Topic to Video (Beta)

No one has generated a video about this topic yet.

Whiteboard

No one has generated a whiteboard explanation for this topic yet.

Follow Topic

Get notified by email when new papers are published related to Port-Hamiltonian Systems on Graphs.