Project Name | Stars | Downloads | Repos Using This | Packages Using This | Most Recent Commit | Total Releases | Latest Release | Open Issues | License | Language |
---|---|---|---|---|---|---|---|---|---|---|
Stable Baselines3 | 6,995 | 79 | a day ago | 80 | November 17, 2023 | 81 | mit | Python | ||
PyTorch version of Stable Baselines, reliable implementations of reinforcement learning algorithms. | ||||||||||
Keras Rl | 5,348 | 51 | 3 | a year ago | 8 | June 01, 2018 | 43 | mit | Python | |
Deep Reinforcement Learning for Keras. | ||||||||||
Cleanrl | 3,724 | 12 hours ago | 44 | other | Python | |||||
High-quality single file implementation of Deep Reinforcement Learning algorithms with research-friendly features (PPO, DQN, C51, DDPG, TD3, SAC, PPG) | ||||||||||
Stable Baselines | 3,064 | 25 | 10 | 3 years ago | 31 | April 06, 2021 | n,ull | mit | Python | |
A fork of OpenAI Baselines, implementations of reinforcement learning algorithms | ||||||||||
Muzero General | 2,203 | 3 months ago | 54 | mit | Python | |||||
MuZero | ||||||||||
Awesome Ai Books | 1,086 | 8 months ago | mit | Jupyter Notebook | ||||||
Some awesome AI related books and pdfs for learning and downloading, also apply some playground models for learning | ||||||||||
Rex Gym | 759 | 2 years ago | 17 | October 08, 2020 | 9 | apache-2.0 | Python | |||
OpenAI Gym environments for an open-source quadruped robot (SpotMicro) | ||||||||||
Deep Learning Wizard | 664 | a month ago | 2 | mit | HTML | |||||
Open source guides/codes for mastering deep learning to deploying deep learning in production in PyTorch, Python, C++ and more. | ||||||||||
Sumo Rl | 467 | 4 months ago | 8 | June 15, 2023 | 15 | mit | Python | |||
Reinforcement Learning environments for Traffic Signal Control with SUMO. Compatible with Gymnasium, PettingZoo, and popular RL libraries. | ||||||||||
Agilerl | 438 | 9 hours ago | 1 | apache-2.0 | Python | |||||
Streamlining reinforcement learning with RLOps |
The OpenModelica Microgrid Gym (OMG) package is a software toolbox for the simulation and control optimization of microgrids based on energy conversion by power electronic converters.
The main characteristics of the toolbox are the plug-and-play grid design and simulation in OpenModelica as well as the ready-to-go approach of intuitive reinfrocement learning (RL) approaches through a Python interface.
The OMG toolbox is built upon the OpenAI Gym environment definition framework. Therefore, the toolbox is specifically designed for running reinforcement learning algorithms to train agents controlling power electronic converters in microgrids. Nevertheless, also arbritary classical control approaches can be combined and tested using the OMG interface.
Following is a short YouTube video introduction, to get a fist impression how to use OMG.
This is the short installation guide for Windows and Linux. OpenModelica is hardly supported for Mac, they suggest to install in a Linux VM. For this reason, running OMG in a Linux VM is strongly recommended for Mac users!
Since it is not possible to install PyFMI, a package which is necessary for the communication between the python interface and the environment, via pip, we recommend to install this package in advance in a conda environment. As of now, only Windows and Linux are supported officially.
If conda is NOT installed on your PC, install miniconda for python 3.8
Create a new conda environment (e.g. in PyCharm)
Install PyFMI from the conda-forge channel in the terminal:
$ conda install -c conda-forge pyfmi
Install OpenModelica MicrogridGym from PyPI (recommended):
$ pip install openmodelica_microgrid_gym
OMG was create by using OMEdit v1.16
In case of installation issues you can resort to their pre-built virtual machine.
The environment is initialized and run like any other OpenAI Gym
import gym
if __name__ == '__main__':
env = gym.make('openmodelica_microgrid_gym:ModelicaEnv-v1',
max_episode_steps=None,
net='../net/net.yaml',
model_path='../omg_grid/grid.network.fmu')
env.reset()
for _ in range(1000):
env.render()
env.step(env.action_space.sample()) # take a random action
env.close()
OMG uses the FMI standard for the exchange of the model between OpenModelica and Python.
An example network consisting out of two inverters, three filters and an inductive load.
You can either use one of the provided FMUs (Windows and Linux, 64-bit, both included in the grid.network.fmu) or create your own by running:
openmodelica_microgrid_gym\fmu> omc create_fmu.mos
Windows users might need to open the terminal out of OpenModelica by clicking 'tools' => 'OpenModelica Command Prompt' to make sure that the command 'omc' gets recognized.
Running the staticctrl.py
starts a simulation with a manually tuned cascaded PIPI controller
A save Bayesian approach of a reinforcement learning agent is provided under examples/berkamkamp.py.
OMG provides a big range of tests to ensure correct working toolbox after changes are done. On some windows machines, the tests can only be started from the terminal via 'pytest'.
The standard test OS for the development is Linux. In some cases, we have noticed that the test_modelica.py on windows PCs might throw an error. Since on Linux everything works fine, it seems to be a numerical issue connected with the FMUs.
Please find a white paper on the OMG toolbox including an exemplary usage scenario here:
Please use the following BibTeX entry for citing us:
@article{OMG-code2020, title = {OMG: A Scalable and Flexible Simulation and Testing Environment Toolbox for Intelligent Microgrid Control}, author = {Stefan Heid and Daniel Weber and Henrik Bode and Eyke Hllermeier and Oliver Wallscheid}, year = {2020}, doi = {10.21105/joss.02435}, url = {https://doi.org/10.21105/joss.02435}, publisher = {The Open Journal}, volume = {5}, number = {54}, pages = {2435}, journal = {Journal of Open Source Software} } @article{OMG-whitepaper2020, title={Towards a Scalable and Flexible Simulation and Testing Environment Toolbox for Intelligent Microgrid Control}, author={Henrik Bode and Stefan Heid and Daniel Weber and Eyke Hllermeier and Oliver Wallscheid}, year={2020}, eprint={http://arxiv.org/abs/2005.04869}, archivePrefix={arXiv}, primaryClass={eess.SY} }
Please refer to the contribution guide.
This package was created with Cookiecutter and the audreyr/cookiecutter-pypackage project template.