Hamilton-Jacobi reachability analysis in JAX.
Project description
hj_reachability: Hamilton-Jacobi reachability analysis in JAX
This package implements numerical solvers for Hamilton-Jacobi (HJ) Partial Differential Equations (PDEs) which, in the context of optimal control, may be used to represent the continuous-time formulation of dynamic programming. Specifically, the focus of this package is on reachability analysis for zero-sum differential games modeled as Hamilton-Jacobi-Isaacs (HJI) PDEs, wherein an optimal controller and (optional) disturbance interact, and the set of reachable states at any time is represented as the zero sublevel set of a value function realized as the viscosity solution of the corresponding PDE.
This package is inspired by a number of related projects, including:
- A Toolbox of Level Set Methods (
toolboxls
, MATLAB) - An Optimal Control Toolbox for Hamilton-Jacobi Reachability Analysis (
helperOC
, MATLAB) - Berkeley Efficient API in C++ for Level Set methods (
beacls
, C++/CUDA C++) - Optimizing Dynamic Programming-Based Algorithms (
optimized_dp
, python)
Installation
This package accommodates different JAX versions (i.e., CPU-only vs. JAX with GPU support); if accelerator support is desired you should first install JAX according to the relevant installation instructions. A minimum JAX version requirement is listed in requirements.txt
, but in general this package should be compatible with the latest JAX releases (please file an issue if you find that this is no longer the case!).
If you only want CPU computation or have already installed JAX with your preferred accelerator support, you may install this package using pip:
pip install --upgrade hj-reachability
TODOs
Aside from the specific TODOs scattered throughout the codebase, a few general TODOs:
- Single-line docstrings (at a bare minimum) for everything. Test coverage, book/paper references, and proper documentation to come... eventually.
- Look into using
jax.pmap
/jax.lax.ppermute
for multi-device parallelism; see, e.g., jax demo notebooks. - Incorporate neural-network-based PDE solvers; see, e.g., Bansal, S. and Tomlin, C. "DeepReach: A Deep Learning Approach to High-Dimensional Reachability." (2020).
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 hj_reachability-0.7.0.tar.gz
.
File metadata
- Download URL: hj_reachability-0.7.0.tar.gz
- Upload date:
- Size: 19.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f90d4aa25eba1fa661aa7a311ec4924274fa1a0074cbb57e1495202875d37335 |
|
MD5 | 4fb8de201bb81fe4f090fba30b73633a |
|
BLAKE2b-256 | c25dab3f2d9b3b78466af78af8855a297d04a18ddd07854d74c3a14e366cbd6d |
File details
Details for the file hj_reachability-0.7.0-py3-none-any.whl
.
File metadata
- Download URL: hj_reachability-0.7.0-py3-none-any.whl
- Upload date:
- Size: 23.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 22a0bc69203037aafd7cbc40585bc023d9dab2b259d623fe5cd3f8ed5c8965b1 |
|
MD5 | cfd6539a1f36726eb9816748c11e07a6 |
|
BLAKE2b-256 | d2b176bf23b54a8846822572f8b97a488b77b0fea06def1277c118a52026c6d4 |