Skip to main content

Reinforcement Learning environments for learning the Optimal Power Flow

Project description

PyPi | Read the Docs | Github | mail

lifecycle MIT License Test OPF-gym

General

A set of benchmark environments to solve the Optimal Power Flow (OPF) problem with reinforcement learning (RL) algorithms. It is also easily possible to create custom OPF environments. All environments use the gymnasium API. The modelling of the power systems and the calculation of power flows happens with pandapower. The benchmark power grids and time-series data of loads and generators are taken from SimBench.

Documentation can be found on https://opf-gym.readthedocs.io/en/latest/.

If you want to use the benchmark environments or the general framework to build your own environments, please cite this repository (see CITATION.cff) and/or cite the following publication, where the framework is first mentioned (in an early stage): https://doi.org/10.1016/j.egyai.2024.100410

Environments

Currently, five OPF benchmark environments are available.

  • EcoDispatch: Economic dispatch
  • VoltageControl: Voltage Control with reactive power
  • MaxRenewable: Maximize renewable feed-in
  • QMarket: Reactive power market
  • LoadShedding: Load shedding problem

Additionally, some example environments for more advanced features can be found in opfgym/examples.

Contribution

Any kind of contribution is welcome! Feel free to create issues or merge requests. Also, additional benchmark environment are highly appreciated. For example, the examples environments could be refined to difficult but solvable RL-OPF benchmarks. Here, it would be especially helpful to incorporate an OPF solver that is more capable than the very limited pandapower OPF. For example, it should be able to deal with multi-stage problems, discrete actuators like switches, and stochastic problems, which the pandapower OPF cannot. For questions, feedback, collaboration, etc., contact thomas.wolgast@uni-oldenburg.de.

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

opfgym-1.0.1.tar.gz (40.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

opfgym-1.0.1-py3-none-any.whl (48.1 kB view details)

Uploaded Python 3

File details

Details for the file opfgym-1.0.1.tar.gz.

File metadata

  • Download URL: opfgym-1.0.1.tar.gz
  • Upload date:
  • Size: 40.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for opfgym-1.0.1.tar.gz
Algorithm Hash digest
SHA256 c70fd273d24fef4269f5c09a54e63204543dd4d2d078e8deed8dd94c6f9c891d
MD5 11563c0cb007fd8fd96c38b0d74b73e4
BLAKE2b-256 3a52291c8159d8dc10770d70e3ab1eda0aaff31e8c0363473b644d20e1a3dab1

See more details on using hashes here.

File details

Details for the file opfgym-1.0.1-py3-none-any.whl.

File metadata

  • Download URL: opfgym-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 48.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for opfgym-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 801042f9a6aeb5357513055ccbb77eb1d505da674977b5618d2f0bff61a6dc7c
MD5 9127271aab5ce3ce2e9514e2ecf0abe2
BLAKE2b-256 7283c6bf8fcc7ced9feaa8073c96c9e8bc9479423a066c06f8aa0b8c28499e96

See more details on using hashes here.

Supported by

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