Skip to main content

Agent Based Simulation and MultiAgent Reinforcement Learning

Project description

Abmarl

Abmarl is a package for developing Agent-Based Simulations and training them with MultiAgent Reinforcement Learning (MARL). We provide an intuitive command line interface for engaging with the full workflow of MARL experimentation: training, visualizing, and analyzing agent behavior. We define an Agent-Based Simulation Interface and Simulation Manager, which control which agents interact with the simulation at each step. We support integration with popular reinforcement learning simulation interfaces, including gym.Env and MultiAgentEnv.

Abmarl leverages RLlib’s framework for reinforcement learning and extends it to more easily support custom simulations, algorithms, and policies. We enable researchers to rapidly prototype MARL experiments and simulation design and lower the barrier for pre-existing projects to prototype RL as a potential solution.

Build and Test Badge Sphinx docs Badge Lint Badge

Quickstart

To use Abmarl, install via pip: pip install abmarl

To develop Abmarl, clone the repository and install via pip's development mode. Note: Abmarl requires python3.7 or python3.8.

git clone git@github.com:LLNL/Abmarl.git
cd abmarl
pip install -r requirements.txt
pip install -e . --no-deps

Train agents in a multicorridor simulation:

abmarl train examples/multi_corridor_example.py

Visualize trained behavior:

abmarl visualize ~/abmarl_results/MultiCorridor-2020-08-25_09-30/ -n 5 --record

Note: If you install with conda, then you must also include ffmpeg in your virtual environment.

Documentation

You can find the latest Abmarl documentation, on our ReadTheDocs page.

Documentation Status

Community

Reporting Issues

Please use our issue tracker to report any bugs or submit feature requests. Great bug reports tend to have:

  • A quick summary and/or background
  • Steps to reproduce, sample code is best.
  • What you expected would happen
  • What actually happens

Contributing

Please submit contributions via pull requests from a forked repository. Find out more about this process here. All contributions are under the BSD 3 License that covers the project.

Additional support

Release

LLNL-CODE-815883

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

abmarl-0.1.3.tar.gz (39.5 kB view details)

Uploaded Source

Built Distribution

abmarl-0.1.3-py3-none-any.whl (50.0 kB view details)

Uploaded Python 3

File details

Details for the file abmarl-0.1.3.tar.gz.

File metadata

  • Download URL: abmarl-0.1.3.tar.gz
  • Upload date:
  • Size: 39.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.8.9

File hashes

Hashes for abmarl-0.1.3.tar.gz
Algorithm Hash digest
SHA256 b3ab5b5ac937cf7c0b0a26e5cb3e304e45bebe6a3b9c3bd64b1b4aef1ce74bf1
MD5 440d096007ac40cc96080698e500b545
BLAKE2b-256 15a774ba4a209324bb5e3d05e48a4b97dbae152918e6b9047cede77852b34af4

See more details on using hashes here.

File details

Details for the file abmarl-0.1.3-py3-none-any.whl.

File metadata

  • Download URL: abmarl-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 50.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.8.9

File hashes

Hashes for abmarl-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 97e106082e73a01c890cca5ac51fa36c2014697424349060bd2b9e99d9456179
MD5 04667aaa4a21fea1b017890c1f7d5e16
BLAKE2b-256 60790f372e01f518852d7b5699177da1248b5de84425469f29a9cbb9c5a40f17

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