For reproducibility purposes, this repository contains the code used in the examples described in the "Numerical experiments" section of the manuscript "Control of partial differential equations via physics-informed neural networks", (2022), by Carlos J. García-Cervera1, Mathieu Kessler2 and Francisco Periago2. Published as open access in Journal of Optimization Theory and Applications: link to the paper.
- Clone the present project in the folder of your choice:
git clone https://github.com/fperiago/deepcontrol.git
- Create the conda virtual enviromment
deepcontrol
cd deepcontrol
conda env create -f deepcontrol_env.yml
- Activate the deepcontrol virtual environment:
conda activate deepcontrol
- Download and install the development version of
deepxde
, the library for scientific machine learning and physics-informed learning, see Github repo
Note: as of March 25th 2022, the development version if required for the multidimensional linear heat equation, section 4.2
git clone https://github.com/lululxvi/deepxde.git
cd deepxde
python3 -m pip install .
cd ..
- Run any of the scripts by:
python3 scripts/script_name.py