Physics-Informed Neural Networks with Hard Nonlinear Equality and Inequality Constraints

Ashfaq Iftakher, Rahul Golder, Bimol Nath Roy, M. M. Faruque Hasan
7/10/2025
cs.LG

No official code found. Best implementation: SOULS-TAMU/kkt-hardnet (10 stars, last commit 2026-04-15).

Abstract

Traditional physics-informed neural networks (PINNs) do not guarantee strict constraint satisfaction. This is problematic in engineering systems where minor violations of governing laws can degrade the reliability and consistency of model predictions. In this work, we introduce KKT-Hardnet, a neural network architecture that enforces linear and nonlinear equality and inequality constraints up to machine precision. It leverages a differentiable projection onto the feasible region by solving Karush-Kuhn-Tucker (KKT) conditions of a distance minimization problem. Furthermore, we reformulate the nonlinear KKT conditions via a log-exponential transformation to construct a sparse system with linear and exponential terms. We apply KKT-Hardnet to nonconvex pooling problem and a real-world chemical process simulation. Compared to multilayer perceptrons and PINNs, KKT-Hardnet achieves strict constraint satisfaction. It also circumvents the need to balance data and physics residuals in PINN training. This enables the integration of domain knowledge into machine learning towards reliable hybrid modeling of complex systems.

View on arXivView PDF

Code Implementations(1)

Implementation of KKT-HardNet from published article "Physics-Informed Neural Networks with Hard Nonlinear Equality and Inequality Constraints"

102Python, Jupyter NotebookAug 20, 20256 months ago

Similar Papers

Cite this paper

@article{iftakher2025physicsinformed,
  title  = {Physics-Informed Neural Networks with Hard Nonlinear Equality and Inequality Constraints},
  author = {Ashfaq Iftakher and Rahul Golder and Bimol Nath Roy and M. M. Faruque Hasan},
  year   = {2025},
  eprint = {2507.08124},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2507.08124v2}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2507.08124.svg)](https://codeofpaper.com/paper/2507.08124)

Discussion