ODIL (Optimizing a DIscrete Loss) is a framework for solving inverse problems for differential equations
Project description
ODIL
ODIL (Optimizing a Discrete Loss) is a Python framework for solving inverse and data assimilation problems for partial differential equations. ODIL formulates the problem through optimization of a loss function including the residuals of a finite-difference and finite-volume discretization along with data and regularization terms. ODIL solves the same problems as the popular PINN (Physics-Informed Neural Networks) framework.
Key features:
- automatic differentiation using TensorFlow or JAX
- optimization by gradient-based methods (Adam, L-BFGS) and Newton's method
- orders of magnitude lower computational cost than PINN [1]
- multigrid decomposition for faster optimization [2]
Installation
pip install odil
or
pip install git+https://github.com/cselab/odil.git
Using GPU
To enable GPU support, provide a non-empty list of devices in CUDA_VISIBLE_DEVICES
.
Values CUDA_VISIBLE_DEVICES=
and CUDA_VISIBLE_DEVICES=-1
disable GPU support.
Developers
ODIL is developed by researchers at Harvard University
advised by
Publications
-
Karnakov P, Litvinov S, Koumoutsakos P. Solving inverse problems in physics by optimizing a discrete loss: Fast and accurate learning without neural networks. PNAS Nexus, 2024. DOI:10.1093/pnasnexus/pgae005 arXiv:2205.04611
-
Karnakov P, Litvinov S, Koumoutsakos P. Flow reconstruction by multiresolution optimization of a discrete loss with automatic differentiation. Eur. Phys. J, 2023. DOI:10.1140/epje/s10189-023-00313-7 arXiv:2303.04679 slides
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file odil-0.1.1.tar.gz
.
File metadata
- Download URL: odil-0.1.1.tar.gz
- Upload date:
- Size: 46.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e404e48ec21850cf60cb0e198e53918d60aca696ec588236decef7ad739ca7b6 |
|
MD5 | de1870d41b2dfbf795f20169e63f51cf |
|
BLAKE2b-256 | 257e60ff03b4c35ba25d1a942d0ca06afa0e3866bb6eadc6d2a26160796c51ad |
File details
Details for the file odil-0.1.1-py2.py3-none-any.whl
.
File metadata
- Download URL: odil-0.1.1-py2.py3-none-any.whl
- Upload date:
- Size: 39.0 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f82d46ff3671075ac4c1c13e0862b186aaf96ae7afb48946d19191c2c1105342 |
|
MD5 | 697d7c1a9110f7d56bcc8a9ca55a23ea |
|
BLAKE2b-256 | b1fb366d807cb1e06777bf8103f8566064fbb369d335be23eba3083b8c91d02d |