EUVIMEDPoznaj EUVIMED
Open access · CC BY 4.0

Constraint-Aware Hamiltonian Neural Networks: A Comparative Study for Holonomically Constrained Systems

Luis Rojas-Valdivia, Lorena Jorquera, Jose Garcia

Mathematics · 2026-05-14 · 14 (10) · 1676

DOI: 10.3390/math14101676 ↗

At a glance

Journal article in Mathematics, published online on 2026-05-14. Written by Luis Rojas-Valdivia and 2 co-authors. 45 references. The full text is freely available (open access, CC BY 4.0). Funded by: Pontificia Universidad Católica de Valparaíso.

AbstraktDane bibliograficzneCiteRelated studies

Abstract (original language)

This study evaluates structure-preserving neural network architectures for learning holonomically constrained mechanical dynamics in Cartesian coordinates. In contrast to methods using reduced coordinates, the full ambient phase space R2n is retained with explicit algebraic constraints Ci(q)=0 to provide a test bed for constraint-aware learning. The Constraint-Aware Hamiltonian Neural Network (CA-HNN) is proposed, which augments the standard HNN with a dedicated multiplier network λϕ(q,p) for Lagrange multipliers and a composite loss function evaluated on predicted rollouts. The theoretical framework is grounded in the geometry of constrained Hamiltonian systems: the extended phase space R2n+m carries a degenerate antisymmetric structure where an m-dimensional kernel encodes constraint directions, while the symplectic structure emerges on the 2(n−m)-dimensional reduced manifold Σ. It is proven that the physical Hamiltonian is conserved on the constraint surface under augmented flow. Benchmarks on a pendulum (C=x2+y2−l2), double pendulum, and bead on a parabola (C=y−x2) demonstrate that CA-HNN reduces constraint violations ∥C(q)∥ by 5× to 2400× compared to standard HNNs. While the best energy conservation is achieved by PINNs, these findings clarify the roles of architectural inductive bias, constraint augmentation, and soft physics regularization.

Funding

  • Pontificia Universidad Católica de Valparaíso

Cite

APA

Rojas-Valdivia, L., Jorquera, L., & Garcia, J. (2026). Constraint-Aware Hamiltonian Neural Networks: A Comparative Study for Holonomically Constrained Systems. Mathematics, 14(10), 1676. https://doi.org/10.3390/math14101676

Vancouver

Rojas-Valdivia L, Jorquera L, Garcia J. Constraint-Aware Hamiltonian Neural Networks: A Comparative Study for Holonomically Constrained Systems. Mathematics. 2026;14(10):1676. doi:10.3390/math14101676

BibTeX
@article{RojasValdivia2026,
  author = {Rojas-Valdivia, Luis and Jorquera, Lorena and Garcia, Jose},
  title = {Constraint-Aware Hamiltonian Neural Networks: A Comparative Study for Holonomically Constrained Systems},
  journal = {Mathematics},
  year = {2026},
  volume = {14},
  number = {10},
  pages = {1676},
  doi = {10.3390/math14101676}
}
Start for free →