This code heavily draws on the implementation of the PINN approach published by Jan Blechschmidt under https://github.com/janblechschmidt/PDEsByNNs/ (MIT license).
In the following, we will solve the dimensionless 1D Schrödinger equation with inhomogeneous Dirichlet boundary conditions using a Physics Informed Neural Network (PINN). This boundary values problem can be stated as
In the first approach considered here - the continuous time approach - we approximate
- The mean squared residual
- The mean squared misfit w.r.t. initial conditions
- The mean squared misfit w.r.t. boundary conditions
It is minimised over a number of collocation points that are randomly sampled from