GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - okasha-ahmed-phys/pinns-deepxde: Physics-informed neural networks with DeepXDE: Allen–Cahn, nonlinear Schrödinger, Black–Scholes and an integro-differential equation.

BranchesTags
Open more actions menu

Latest commit

 

History

1 Commit
1 Commit

Folders and files

NameName
Last commit message
Last commit date
code
code
 
 
data
data
 
 
report
report
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
pinns_allen_cahn_schrodinger.pdf
pinns_allen_cahn_schrodinger.pdf
 
 
pinns_ide_black_scholes.pdf
pinns_ide_black_scholes.pdf
 
 
requirements.txt
requirements.txt
 
 

Repository files navigation

Physics-Informed Neural Networks with DeepXDE

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.

Schrödinger PINN prediction

Results

Problem Equation Technique shown Result
Nonlinear Schrödinger $i h_t + \tfrac12 h_{xx} + \lvert h\rvert^2 h = 0$ Splitting a complex PDE into two real ones Final training loss $4.4\times10^{-6}$
Allen–Cahn $u_t = 0.001,u_{xx} + 5(u-u^3)$ Initial/boundary conditions built into the network output Phase separation into $u=\pm1$
Black–Scholes (European call) $V_\tau = \tfrac12\sigma^2S^2V_{SS} + rSV_S - rV$ Sobol sampling; comparison with the analytical price Relative $L^2$ error ≈ 0.1%
Integro-differential equation $\int_0^x y,dt + y' = 2\pi\cos 2\pi x + \sin^2(\pi x)/\pi$ Integral operator via Gauss–Legendre quadrature Relative $L^2$ error $1.5\times10^{-4}$

Full write-ups:

  • report/pinns_allen_cahn_schrodinger.pdf
  • report/pinns_ide_black_scholes.pdf

Repository structure

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

How to run

pip install -r requirements.txt
cd code
python allen_cahn.py
python black_scholes_call.py
DDE_BACKEND=tensorflow.compat.v1 python ide.py

ide.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.

Credits

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).

About

Physics-informed neural networks with DeepXDE: Allen–Cahn, nonlinear Schrödinger, Black–Scholes and an integro-differential equation.

Topics

allen-cahnblack-scholesdeepxdepdephysics-informed-neural-networkspinnschrodinger-equationscientific-machine-learningtensorflow

Resources

Readme
LGPL-2.1 license
Activity

Stars

0 stars

Watchers

0 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.