Dual-Network PINNs for Optimal Control: A Reproducible Benchmark on the Mass-Spring-Damper System

· Source: Machine Learning · Field: Technology & Digital — Artificial Intelligence & Machine Learning, Robotics & Autonomous Systems · Depth: Advanced, quick

Summary

A reproducible benchmark study introduces a direct dual-network Physics-Informed Neural Network (PINN) formulation for optimal control of a mass-spring-damper system. This approach solves the classical linear-quadratic optimal control problem, comparing its performance against Pontryagin's Minimum Principle with single shooting and direct transcription via trapezoidal collocation. The PINN employs two feedforward neural networks: a state network enforcing boundary conditions exactly using a composite cubic-and-mask ansatz, and an unconstrained control network. Its composite loss combines physics residuals with a trapezoidal cost functional approximation. The PINN accurately reproduces the classical optimal cost to four significant digits and satisfies terminal state constraints by construction, with errors comparable to classical methods. While training is approximately two orders of magnitude slower than classical shooting, the work prioritizes methodological clarity and provides a Google Colab implementation to simplify entry into PINN-based optimal control for practitioners.

Key takeaway

For machine learning engineers or AI scientists exploring optimal control, this dual-network PINN formulation provides a transparent and reproducible method. You can achieve high accuracy, matching classical optimal costs to four significant digits, even if training is slower. Utilize the provided Google Colab implementation to practically apply PINN-based optimal control without needing prior expertise in adjoint methods or two-point boundary value problems. This lowers the entry barrier for adopting advanced control techniques.

Key insights

A dual-network PINN formulation achieves high accuracy in optimal control by exactly enforcing boundary conditions, offering a clear, reproducible alternative to classical methods.

Principles

Method

Optimal control is recast as a constrained optimization problem solved by two feedforward neural networks: a state network with exact boundary conditions via a composite cubic-and-mask ansatz, and an unconstrained control network. The loss combines physics residuals and a trapezoidal cost approximation.

In practice

Topics

Best for: Research Scientist, AI Scientist, Machine Learning Engineer, AI Student

Related on AIssential

Open in AIssential →

Editorial summary, takeaway, and curation by AIssential. Original article published by Machine Learning.