OpenGridGym
No description available
Install / Use
/learn @tamu-engineering-research/OpenGridGymREADME
OpenGridGym
OpenGridGym is an Open-Source AI-friendly toolkit for distribution market simulation, referenced and described here: https://arxiv.org/abs/2203.04410. Please refer to the paper for details on authors and contact information.
As it is completely Python-based, OpenGridGym can be used on any operating system where Python 3 can be used, including Windows/Mac/Linux. It can also be run online using Google COLAB.
It is currently in its initial stages. Feedback is welcomed, and the developers plan to continue to upload more examples, similar to the ones described in the paper.
Getting Started
- Please clone this repository to a local directory.
- Make sure you have already installed all Python packages listed in
requirements.txt. The most notable isdss-python(see here for more), which is used to interface with OpenDSS from Python on any operating system. - In the
Examplesfolder, you will find a quick tutorial indemos.ipynb. Make sure to run the notebook section by section first to ensure no installation errors are encountered.
Example usage
Once you have created your own (or imported existing) grid, market and agent classes, you may run an environment episode as follows:
-
Instantiate the objects
grid = CustomGrid(...) market = CustomMaraket(...) agents = [CustomAgent(...), ..., CustomAgent(...)] env = Environment(grid=grid, market=market, agent=agents) -
Run the environment
env.reset() for t in env.iterate(): ... # customize as needed (e.g. observe measurements)
