JOURNAL ARTICLE

Constrained Hamiltonian systems and physics-informed neural networks: Hamilton-Dirac neural networks

D. A. Kaltsas

Year: 2025 Journal:   Physical review. E Vol: 111 (2)Pages: 025301-025301   Publisher: American Physical Society

Abstract

The effectiveness of physics-informed neural networks (PINNs) for learning the dynamics of constrained Hamiltonian systems is demonstrated using the Dirac theory of constraints for regular systems with holonomic constraints and systems with nonstandard Lagrangians. By utilizing Dirac brackets, we derive the Hamilton-Dirac equations and minimize their residuals, incorporating also energy conservation and the Dirac constraints, using appropriate regularization terms in the loss function. The resulting PINNs, referred to as Hamilton-Dirac neural networks (HDNNs), successfully learn constrained dynamics without deviating from the constraint manifold. Two examples with holonomic constraints are presented: the nonlinear pendulum in Cartesian coordinates and a two-dimensional, elliptically restricted harmonic oscillator. In both cases, HDNNs exhibit superior performance in preserving energy and constraints compared to traditional explicit solvers. To demonstrate applicability in systems with singular Lagrangians, we computed the guiding center motion in a strong magnetic field starting from the guiding center Lagrangian. The imposition of energy conservation during the neural network training proved essential for accurately determining the orbits of the guiding center. The HDNN architecture enables the learning of parametric dependencies in constrained dynamics by incorporating a problem-specific parameter as an input, in addition to the time variable. Additionally, an example of semisupervised, data-driven learning of guiding center dynamics with parameter inference is presented.

Keywords:
Artificial neural network Hamiltonian (control theory) Hamiltonian system Dirac (video compression format) Physics Neural system Computer science Mathematical physics Quantum mechanics Mathematics Artificial intelligence Psychology Neuroscience Mathematical optimization

Metrics

3
Cited By
10.49
FWCI (Field Weighted Citation Impact)
49
Refs
0.94
Citation Normalized Percentile
Is in top 1%
Is in top 10%

Citation History

Topics

Model Reduction and Neural Networks
Physical Sciences →  Physics and Astronomy →  Statistical and Nonlinear Physics
Control and Stability of Dynamical Systems
Physical Sciences →  Engineering →  Control and Systems Engineering
Numerical methods for differential equations
Physical Sciences →  Mathematics →  Numerical Analysis
© 2026 ScienceGate Book Chapters — All rights reserved.