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.0.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.0-py3-none-any.whl (48.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: opfgym-1.0.0.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.0.tar.gz
Algorithm Hash digest
SHA256 688094ecbb9a05cebbad72a10cc10037a3c3c6c450973024539a1805a19e21b7
MD5 0cf52beb168e2891b9ca864fe8f52960
BLAKE2b-256 eb28f2dc51b94a32156ab2e075fea4836b7f2280d8f3936e5514fc5783512178

See more details on using hashes here.

File details

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

File metadata

  • Download URL: opfgym-1.0.0-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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 45ff68629285dbe1864644e6fd93fbcc4e93e92a88045bbf33c285958713f66e
MD5 aaf024af1560b0d1a080bfc2f523c93d
BLAKE2b-256 3385c64907b8e75798aa8f3d0f1bd97145ec1401de4ade87ba4ed2e6186a7d48

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