assume-framework


Nameassume-framework JSON
Version 0.3.7 PyPI version JSON
download
home_pagehttps://assume.readthedocs.io
SummaryASSUME - Agent-Based Electricity Markets Simulation Toolbox
upload_time2024-03-21 09:53:18
maintainerNone
docs_urlNone
authorASSUME Developers
requires_python<4.0,>=3.10
licenseAGPL-3.0-or-later
keywords agent based simulation energy market reinforcement learning market simulation simulation
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            <!--
SPDX-FileCopyrightText: ASSUME Developers

SPDX-License-Identifier: AGPL-3.0-or-later
-->

# ASSUME: Agent-Based Electricity Markets Simulation Toolbox

![Lint Status](https://github.com/assume-framework/assume/actions/workflows/lint-pytest.yaml/badge.svg)
[![Code Coverage](https://codecov.io/gh/assume-framework/assume/branch/main/graph/badge.svg?token=CZ4FO7P57H)](https://codecov.io/gh/assume-framework/assume)
[![DOI](https://zenodo.org/badge/DOI/10.5281/zenodo.8088760.svg)](https://doi.org/10.5281/zenodo.8088760)
[![REUSE status](https://api.reuse.software/badge/github.com/assume-framework/assume)](https://api.reuse.software/info/github.com/assume-framework/assume)

[![](https://img.shields.io/pypi/v/assume-framework.svg)](https://pypi.org/pypi/assume-framework/)
[![](https://img.shields.io/pypi/pyversions/assume-framework.svg)](https://pypi.org/pypi/assume-framework/)
[![](https://img.shields.io/pypi/l/assume-framework.svg)](https://pypi.org/pypi/assume-framework/)
[![](https://img.shields.io/pypi/status/assume-framework.svg)](https://pypi.org/pypi/assume-framework/)
[![](https://img.shields.io/readthedocs/assume)](https://assume.readthedocs.io/)

[![Try examples in Collab](https://colab.research.google.com/assets/colab-badge.svg)](https://github.com/assume-framework/assume/tree/main/examples/notebooks)

**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

- [User Documentation](https://assume.readthedocs.io/en/latest/)
- [Installation Guide](https://assume.readthedocs.io/en/latest/installation.html)

## Installation

You can install ASSUME using pip. Choose the appropriate installation method based on your needs:

### Using pip

To install the core package:

```bash
pip install assume-framework
```

To install with reinforcement learning capabilities:

```bash
pip install assume-framework[learning]
```

We also include market clearing algorithms for complex bids. These clearing algorithms require pyomo and a solver (we use GLPK). To install the package with these capabilities, use:

```bash
pip install assume-framework[optimization]
```

To install with testing capabilities:

```bash
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:

1. Clone the repository and navigate to its directory:

```bash
git clone https://github.com/assume-framework/assume.git
cd assume
```

2. Start the database and Grafana using the following command:

```bash
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](https://pytorch.org/get-started/locally/).



## 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 completly 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?
**Coming Soon**

How to introduce reinforcement learning to ASSUME?

[![Open Learning Tutorial in Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/assume-framework/assume/blob/main/examples/notebooks/04_reinforcement_learning_example.ipynb)



### The Examples

To explore the provided examples, follow these steps:

1. Clone the repository and navigate to its directory:

```bash
git clone https://github.com/assume-framework/assume.git
cd assume
```

2. Quick Start:

There are three ways to run a simulation:

- Local:

```bash
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:

```bash
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:

1. Install pre-commit:

```bash
pip install pre-commit
pre-commit install
```

To run pre-commit checks directly, use:

```bash
pre-commit run --all-files
```

## Creating Documentation

First, create an environment that includes the documentation dependencies:

```bash
conda env create -f environment_docs.yaml
```

To generate or update the automatically created docs in `docs/source/assume*`, run:

```bash
sphinx-apidoc -o docs/source -Fa assume
```

To create and serve the documentation locally, use:

```bash
make -C docs html && python -m http.server --directory docs/build/html
```

## 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](https://assume.readthedocs.io/en/latest/developers.html).

ASSUME is licensed under the [GNU Affero General Public License v3.0](./LICENSES/AGPL-3.0-or-later.txt). 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](https://opensource.org/licenses/AGPL-3.0).

            

Raw data

            {
    "_id": null,
    "home_page": "https://assume.readthedocs.io",
    "name": "assume-framework",
    "maintainer": null,
    "docs_url": null,
    "requires_python": "<4.0,>=3.10",
    "maintainer_email": null,
    "keywords": "agent based simulation, energy market, reinforcement learning, market simulation, simulation",
    "author": "ASSUME Developers",
    "author_email": "contact@assume-project.de",
    "download_url": "https://files.pythonhosted.org/packages/e2/a3/dbaa7cc19d675ebc3068987aa552cb682990d147cec37c9ea9be8c63bf05/assume_framework-0.3.7.tar.gz",
    "platform": null,
    "description": "<!--\nSPDX-FileCopyrightText: ASSUME Developers\n\nSPDX-License-Identifier: AGPL-3.0-or-later\n-->\n\n# ASSUME: Agent-Based Electricity Markets Simulation Toolbox\n\n![Lint Status](https://github.com/assume-framework/assume/actions/workflows/lint-pytest.yaml/badge.svg)\n[![Code Coverage](https://codecov.io/gh/assume-framework/assume/branch/main/graph/badge.svg?token=CZ4FO7P57H)](https://codecov.io/gh/assume-framework/assume)\n[![DOI](https://zenodo.org/badge/DOI/10.5281/zenodo.8088760.svg)](https://doi.org/10.5281/zenodo.8088760)\n[![REUSE status](https://api.reuse.software/badge/github.com/assume-framework/assume)](https://api.reuse.software/info/github.com/assume-framework/assume)\n\n[![](https://img.shields.io/pypi/v/assume-framework.svg)](https://pypi.org/pypi/assume-framework/)\n[![](https://img.shields.io/pypi/pyversions/assume-framework.svg)](https://pypi.org/pypi/assume-framework/)\n[![](https://img.shields.io/pypi/l/assume-framework.svg)](https://pypi.org/pypi/assume-framework/)\n[![](https://img.shields.io/pypi/status/assume-framework.svg)](https://pypi.org/pypi/assume-framework/)\n[![](https://img.shields.io/readthedocs/assume)](https://assume.readthedocs.io/)\n\n[![Try examples in Collab](https://colab.research.google.com/assets/colab-badge.svg)](https://github.com/assume-framework/assume/tree/main/examples/notebooks)\n\n**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.\n\n## Introduction\n\nA 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.\n\n\n## Documentation\n\n- [User Documentation](https://assume.readthedocs.io/en/latest/)\n- [Installation Guide](https://assume.readthedocs.io/en/latest/installation.html)\n\n## Installation\n\nYou can install ASSUME using pip. Choose the appropriate installation method based on your needs:\n\n### Using pip\n\nTo install the core package:\n\n```bash\npip install assume-framework\n```\n\nTo install with reinforcement learning capabilities:\n\n```bash\npip install assume-framework[learning]\n```\n\nWe also include market clearing algorithms for complex bids. These clearing algorithms require pyomo and a solver (we use GLPK). To install the package with these capabilities, use:\n\n```bash\npip install assume-framework[optimization]\n```\n\nTo install with testing capabilities:\n\n```bash\npip install assume-framework[test]\n```\n\n### Timescale Database and Grafana Dashboards\n\nIf you want to benefit from a supported database and integrated Grafana dashboards for scenario analysis, you can use the provided Docker Compose file.\n\nFollow these steps:\n\n1. Clone the repository and navigate to its directory:\n\n```bash\ngit clone https://github.com/assume-framework/assume.git\ncd assume\n```\n\n2. Start the database and Grafana using the following command:\n\n```bash\ndocker-compose up -d\n```\n\nThis will launch a container for TimescaleDB and Grafana with preconfigured dashboards for analysis. You can access the Grafana dashboards at `http://localhost:3000`.\n\n### Using Learning Capabilities\n\nIf 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](https://pytorch.org/get-started/locally/).\n\n\n\n## Trying out ASSUME and the provided Examples\n\nTo 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.\n\n### The Tutorials\n\nThe tutorials work completly 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.\n\nHow to configure a new unit in ASSUME?\n**Coming Soon**\n\nHow to introduce reinforcement learning to ASSUME?\n\n[![Open Learning Tutorial in Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/assume-framework/assume/blob/main/examples/notebooks/04_reinforcement_learning_example.ipynb)\n\n\n\n### The Examples\n\nTo explore the provided examples, follow these steps:\n\n1. Clone the repository and navigate to its directory:\n\n```bash\ngit clone https://github.com/assume-framework/assume.git\ncd assume\n```\n\n2. Quick Start:\n\nThere are three ways to run a simulation:\n\n- Local:\n\n```bash\npython examples/examples.py\n```\n\n- Using the provided Docker setup:\n\nIf 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`.\n\n- Using the CLI to run simulations:\n\n```bash\nassume -s example_01b -db \"postgresql://assume:assume@localhost:5432/assume\"\n```\n\nFor additional CLI options, run `assume -h`.\n\n## Development\n\nIf you're contributing to the development of ASSUME, follow these steps:\n\n1. Install pre-commit:\n\n```bash\npip install pre-commit\npre-commit install\n```\n\nTo run pre-commit checks directly, use:\n\n```bash\npre-commit run --all-files\n```\n\n## Creating Documentation\n\nFirst, create an environment that includes the documentation dependencies:\n\n```bash\nconda env create -f environment_docs.yaml\n```\n\nTo generate or update the automatically created docs in `docs/source/assume*`, run:\n\n```bash\nsphinx-apidoc -o docs/source -Fa assume\n```\n\nTo create and serve the documentation locally, use:\n\n```bash\nmake -C docs html && python -m http.server --directory docs/build/html\n```\n\n## Contributors and Funding\n\nThe 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.\n\nASSUME is funded by the Federal Ministry for Economic Affairs and Climate Action (BMWK). We are grateful for their support in making this project possible.\n\n## License\n\nCopyright 2022-2024 [ASSUME developers](https://assume.readthedocs.io/en/latest/developers.html).\n\nASSUME is licensed under the [GNU Affero General Public License v3.0](./LICENSES/AGPL-3.0-or-later.txt). 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](https://opensource.org/licenses/AGPL-3.0).\n",
    "bugtrack_url": null,
    "license": "AGPL-3.0-or-later",
    "summary": "ASSUME - Agent-Based Electricity Markets Simulation Toolbox",
    "version": "0.3.7",
    "project_urls": {
        "Homepage": "https://assume.readthedocs.io",
        "Repository": "https://github.com/assume-framework/assume"
    },
    "split_keywords": [
        "agent based simulation",
        " energy market",
        " reinforcement learning",
        " market simulation",
        " simulation"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "2aef9919e0b379b22ba99e1dce270ec43060d8fed258e826f98316700854c2eb",
                "md5": "dc33bc3b3272d03c4ea8ea89b77441ca",
                "sha256": "f9b15c94edfc51f676ac8ecc951a0e626aabff4dd25f6efbf9af4c0c1d487d9f"
            },
            "downloads": -1,
            "filename": "assume_framework-0.3.7-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "dc33bc3b3272d03c4ea8ea89b77441ca",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": "<4.0,>=3.10",
            "size": 173518,
            "upload_time": "2024-03-21T09:53:15",
            "upload_time_iso_8601": "2024-03-21T09:53:15.027012Z",
            "url": "https://files.pythonhosted.org/packages/2a/ef/9919e0b379b22ba99e1dce270ec43060d8fed258e826f98316700854c2eb/assume_framework-0.3.7-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "e2a3dbaa7cc19d675ebc3068987aa552cb682990d147cec37c9ea9be8c63bf05",
                "md5": "9a35665e8cfbecf748db87aa34fc5f69",
                "sha256": "d3e6e56b1be0b40db6f08d8d0ebf65249ac00b6b5380ce11b8e8a8025959c498"
            },
            "downloads": -1,
            "filename": "assume_framework-0.3.7.tar.gz",
            "has_sig": false,
            "md5_digest": "9a35665e8cfbecf748db87aa34fc5f69",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": "<4.0,>=3.10",
            "size": 140215,
            "upload_time": "2024-03-21T09:53:18",
            "upload_time_iso_8601": "2024-03-21T09:53:18.711458Z",
            "url": "https://files.pythonhosted.org/packages/e2/a3/dbaa7cc19d675ebc3068987aa552cb682990d147cec37c9ea9be8c63bf05/assume_framework-0.3.7.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-03-21 09:53:18",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "assume-framework",
    "github_project": "assume",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "lcname": "assume-framework"
}
        
Elapsed time: 0.22062s