jacobusmmsmit / social-force-jax

An implementation of a simple Social Force model in JAX

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

social-force-jax

An implementation of a simple Social Force model in JAX + Diffrax as well as a differentiable density-based optimisation of the parameters with Optax or numpyro.

To run the code in this repo, install the poetry package manager, navigate to the folder, and run poetry install. This will install all dependencies.

Note: The local file imports are kinda messed up for this repo, you may need to play around with the path to get it working properly.

Known issues:

  • The wall force sometimes lets pedestrians escape (see animation), oops.

About

An implementation of a simple Social Force model in JAX

License:MIT License


Languages

Language:Python 98.2%Language:Julia 1.8%