ASSUME - Agent-Based Electricity Markets Simulation Toolbox
Project description
ASSUME: Agent-Based Electricity Markets Simulation Toolbox
ASSUME is an open-source toolbox for agent-based simulations of European electricity markets, with a primary focus on the German market setup. Developed as an open-source model, its primary objectives are to ensure usability and customizability for a wide range of users and use cases in the energy system modeling community.
Introduction
A unique feature of the ASSUME toolbox is its integration of Deep Reinforcement Learning methods into the behavioral strategies of market agents. The model offers various predefined agent representations for both the demand and generation sides, which can be used as plug-and-play modules, simplifying the reinforcement of learning strategies. This setup enables research into new market designs and dynamics in energy markets.
Documentation
Installation
You can install ASSUME using pip. Choose the appropriate installation method based on your needs:
Using pip
To install the core package:
pip install assume-framework
To install with reinforcement learning capabilities:
pip install 'assume-framework[learning]'
We also include network-based market clearing algorithms such as for the re-dispatch or nodal market clearing, which requires the PyPSA library. To install the package with these capabilities, use:
pip install 'assume-framework[network]'
To install with testing capabilities:
pip install 'assume-framework[test]'
Timescale Database and Grafana Dashboards
If you want to benefit from a supported database and integrated Grafana dashboards for scenario analysis, you can use the provided Docker Compose file.
Follow these steps:
- Clone the repository and navigate to its directory:
git clone https://github.com/assume-framework/assume.git
cd assume
- Start the database and Grafana using the following command:
docker-compose up -d
This will launch a container for TimescaleDB and Grafana with preconfigured dashboards for analysis. You can access the Grafana dashboards at http://localhost:3000
.
Using Learning Capabilities
If you intend to use the reinforcement learning capabilities of ASSUME and train your agents, make sure to install Torch. Detailed installation instructions can be found here.
Trying out ASSUME and the provided Examples
To ease your way into ASSUME we provided some examples and tutorials. The former are helpful if you would like to get an impression of how ASSUME works and the latter introduce you into the development of ASSUME.
The Tutorials
The tutorials work completely detached from your own machine on google colab. They provide code snippets and task that show you, how you can work with the software package one your own. We have two tutorials prepared, one for introducing a new unit and one for getting reinforcement learning ready on ASSUME.
How to configure a new unit in ASSUME?
How to use reinforcement learning for new market participants in ASSUME?
How to change and adapt reinforcement learning algorithms in ASSUME?
The Examples
To explore the provided examples, follow these steps:
- Clone the repository and navigate to its directory:
git clone https://github.com/assume-framework/assume.git
cd assume
- Quick Start:
There are three ways to run a simulation:
- Local:
python examples/examples.py
- Using the provided Docker setup:
If you have installed Docker and set up the Docker Compose file previously, you can select 'timescale' in examples.py
before running the simulation. This will save the simulation results in a Timescale database, and you can access the Dashboard at http://localhost:3000
.
- Using the CLI to run simulations:
assume -s example_01b -db "postgresql://assume:assume@localhost:5432/assume"
For additional CLI options, run assume -h
.
Development
If you're contributing to the development of ASSUME, follow these steps:
- Install pre-commit:
pip install pre-commit
pre-commit install
To run pre-commit checks directly, use:
pre-commit run --all-files
Release
To release a new version, increase the version in pyproject.toml
and create a git tag of the release commit and release notes in GitHub.
To push to PyPi run:
rm -r dist
python -m build .
twine upload --repository pypi dist/*
See also: https://twine.readthedocs.io/en/stable/index.html#using-twine
Creating Documentation
First, create an environment that includes the documentation dependencies:
conda env create -f environment_docs.yaml
To generate or update the automatically created docs in docs/source/assume*
, run:
sphinx-apidoc -o docs/source -Fa assume
To create and serve the documentation locally, use:
cd docs/source && python -m sphinx . ../build && cd ../.. && python -m http.server --directory docs/build
Contributors and Funding
The project is developed by a collaborative team of researchers from INATECH at the University of Freiburg, IISM at Karlsruhe Institute of Technology, Fraunhofer Institute for Systems and Innovation Research, Fraunhofer Institution for Energy Infrastructures and Geothermal Energy, and FH Aachen - University of Applied Sciences. Each contributor brings valuable expertise in electricity market modeling, deep reinforcement learning, demand side flexibility, and infrastructure modeling.
ASSUME is funded by the Federal Ministry for Economic Affairs and Climate Action (BMWK). We are grateful for their support in making this project possible.
License
Copyright 2022-2024 ASSUME developers.
ASSUME is licensed under the GNU Affero General Public License v3.0. This license is a strong copyleft license that requires that any derivative work be licensed under the same terms as the original work. It is approved by the Open Source Initiative.
Project details
Release history Release notifications | RSS feed
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 assume_framework-0.4.3.tar.gz
.
File metadata
- Download URL: assume_framework-0.4.3.tar.gz
- Upload date:
- Size: 222.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 04722c7118cd34ffe924b34a5070f9346dd7c6cc0f187d1cfb440c0a92d23b61 |
|
MD5 | e05b8c1bb682af8c85bb6c9d13cf008b |
|
BLAKE2b-256 | 6523a4beda06e0123250ea33f6222cfbaebde5b225d34a5074da8e10466f75f6 |
Provenance
The following attestation bundles were made for assume_framework-0.4.3.tar.gz
:
Publisher:
publish.yaml
on assume-framework/assume
-
Statement type:
https://in-toto.io/Statement/v1
- Predicate type:
https://docs.pypi.org/attestations/publish/v1
- Subject name:
assume_framework-0.4.3.tar.gz
- Subject digest:
04722c7118cd34ffe924b34a5070f9346dd7c6cc0f187d1cfb440c0a92d23b61
- Sigstore transparency entry: 148093917
- Sigstore integration time:
- Predicate type:
File details
Details for the file assume_framework-0.4.3-py3-none-any.whl
.
File metadata
- Download URL: assume_framework-0.4.3-py3-none-any.whl
- Upload date:
- Size: 283.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1e6c436abf8896500a864efbdf07391b5715afcdcc0f62349149ccb150f0d60a |
|
MD5 | b06305c3d0d593c2584b08d3adfc6574 |
|
BLAKE2b-256 | db35e900dce5b7c53f239e98bbfb937174300e1283121dc693e85ca20fa11a77 |
Provenance
The following attestation bundles were made for assume_framework-0.4.3-py3-none-any.whl
:
Publisher:
publish.yaml
on assume-framework/assume
-
Statement type:
https://in-toto.io/Statement/v1
- Predicate type:
https://docs.pypi.org/attestations/publish/v1
- Subject name:
assume_framework-0.4.3-py3-none-any.whl
- Subject digest:
1e6c436abf8896500a864efbdf07391b5715afcdcc0f62349149ccb150f0d60a
- Sigstore transparency entry: 148093918
- Sigstore integration time:
- Predicate type: