Solving four differential equations with physics-informed neural networks (PINNs): the Allen–Cahn equation, the nonlinear Schrödinger equation, the Black–Scholes equation and a Volterra integro-differential equation. The networks are trained only on the governing equations and their initial and boundary conditions, with no labelled solution data.
Research project at the School of Natural Sciences, NUST (2026), supervised by Dr. Asif Farooq. Team: Talha Sajjad, Nimra Akhtar Randhawa, Okasha Ahmed.
| Problem | Equation | Technique shown | Result |
|---|---|---|---|
| Nonlinear Schrödinger | Splitting a complex PDE into two real ones | Final training loss |
|
| Allen–Cahn | Initial/boundary conditions built into the network output | Phase separation into |
|
| Black–Scholes (European call) | Sobol sampling; comparison with the analytical price | Relative |
|
| Integro-differential equation | Integral operator via Gauss–Legendre quadrature | Relative |
Full write-ups:
code/
allen_cahn.py Allen–Cahn with hard-constrained initial/boundary conditions
schrodinger.ipynb Nonlinear Schrödinger equation (Colab notebook)
black_scholes_call.py Black–Scholes European call option
ide.py Volterra integro-differential equation
data/
Allen_Cahn.mat Reference solution for Allen–Cahn (from DeepXDE)
NLS.mat Reference solution for Schrödinger (from Raissi et al.)
report/ LaTeX sources, PDFs and figures
pip install -r requirements.txt
cd code
python allen_cahn.py
python black_scholes_call.py
DDE_BACKEND=tensorflow.compat.v1 python ide.pyide.py needs the tensorflow.compat.v1 (or paddle) backend. The Schrödinger notebook is written for Google Colab; training takes about 25 minutes on a CPU runtime.
The scripts are the official DeepXDE examples, which we ran, studied and wrote up, with small changes to paths and evaluation. DeepXDE is © Lu Lu and contributors and licensed under the GNU LGPL v2.1; that licence applies to the code in this repository (see LICENSE).
- L. Lu, X. Meng, Z. Mao, G. E. Karniadakis, DeepXDE: A deep learning library for solving differential equations, SIAM Review 63, 208 (2021).
- M. Raissi, P. Perdikaris, G. E. Karniadakis, Physics-informed neural networks, J. Comput. Phys. 378, 686 (2019).
- R. Tanios, Physics Informed Neural Networks in Computational Finance, MSc thesis, ETH Zürich (2021).
