Skip to main content

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.2.tar.gz (10.9 kB view details)

Uploaded Source

Built Distribution

foragax-0.0.2-py3-none-any.whl (16.6 kB view details)

Uploaded Python 3

File details

Details for the file foragax-0.0.2.tar.gz.

File metadata

  • Download URL: foragax-0.0.2.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

Hashes for foragax-0.0.2.tar.gz
Algorithm Hash digest
SHA256 f2ead625201db234ec7dad6028862c53cb971a292b29a4eef455998d8e030a11
MD5 c05b17dd14b71843af148076ab40774f
BLAKE2b-256 dd5e8747e69e1ba6977782f3e7b23f64b87c1b2734ce1dc4a7da11af4ecbb04c

See more details on using hashes here.

File details

Details for the file foragax-0.0.2-py3-none-any.whl.

File metadata

  • Download URL: foragax-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 16.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.10.10

File hashes

Hashes for foragax-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 5c4c9788bd89b6329924066a640a8e94db474907600db11cd63bc3be46ed564f
MD5 74c482357a6514da00702a094798309c
BLAKE2b-256 bac54ee728716b20d4182a650a49f20f5df44aadc95b4906e3dcb1270c5486f2

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page