ABM package in JAX.
Project description
Foragax is an Agent Based Modelling (ABM) package based on JAX. It provides scalable and efficient ABM simulations by leveraging JAX's automatic vectorization and just-in-time compilation capabilities. The main features of Foragax include:
- Agent manipulation (adding, removing, updating, selecting, and sorting agents) with just-in-time compilation.
- Vectorized ray-casting and wall-detection for simulating agents moving in a continuous 2D environment with custom boundaries and obstacles.
- Tutorials and examples to help users get started with ABM using JAX.
- Familiar ABM interface for creating and manipulating agents.
Installation
pip install foragax
Requires Python 3.10+, JAX 0.4.13+, and flax 0.7.4+
Citation
If this framework was useful in your work, please consider starring and cite: (arXiv link)
@misc{chaturvedi2024foragaxagentbasedmodelling,
title={Foragax: An Agent Based Modelling framework based on JAX},
author={Siddharth Chaturvedi and Ahmed El-Gazzar and Marcel van Gerven},
year={2024},
eprint={2409.06345},
archivePrefix={arXiv},
primaryClass={cs.MA},
url={https://arxiv.org/abs/2409.06345},
}
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
foragax-0.0.5.tar.gz
(10.9 kB
view details)
Built Distribution
foragax-0.0.5-py3-none-any.whl
(16.5 kB
view details)
File details
Details for the file foragax-0.0.5.tar.gz
.
File metadata
- Download URL: foragax-0.0.5.tar.gz
- Upload date:
- Size: 10.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.10.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2045bedb7dd145d0443f3c0a018ae63de233dcd0e8e9a4d0f0ce23802a61a8ab |
|
MD5 | f1e1baafa92ddb37030856ad46913d39 |
|
BLAKE2b-256 | 6ce3360b136b32f5e68090a38776274f915ce6a2478af70795a498f87a108dd6 |
File details
Details for the file foragax-0.0.5-py3-none-any.whl
.
File metadata
- Download URL: foragax-0.0.5-py3-none-any.whl
- Upload date:
- Size: 16.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.10.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 781f8c6e367401ab440e5cbebd7833346faa977c211d2affe2029d363136791c |
|
MD5 | 94439938c1e7aa77ccf94943e94e2404 |
|
BLAKE2b-256 | 44526d9faa69b2d249191e892925fceed411e21a0b2aee47ebcce22f621e5a2a |