ElectricGrid.jl

A time domain electrical energy grid modeling and simulation tool with a focus on the control of power electronics converters
Author upb-lea
Popularity
12 Stars
Updated Last
1 Year Ago
Started In
December 2021

ElectricGrid.jl

| Reference docs | Install guide | Quickstart | Release notes

Build Status License

ElectricGrid.jl is a library for setting up realistic electric grid simulations with extensive support for control options. With ElectricGrid.jl you can

  • create a simulation environment for an electric grid by defining its sources, loads, and cable connections
  • set detailed parameters of your electric components - or let them be auto-generated
  • choose different control modes for each source in your system
  • use the agent architecture of ReinforcementLearning.jl to either train RL agents as controllers or write your own ones

ElectricGrid Framework

Installation

  • Installation using the julia package manager (recommended): In a julia terminal run the follwing:
]
activate .
add ElectricGrid
  • Install from Github source:
    • Clone the git and navigate to the directory
git clone https://github.com/upb-lea/ElectricGrid.jl.git
  • activate Julia

  • activate the project by pressing ]to access pkg mode and then activate path/to/ElectricGrid or activate . if you started julia in your ElectricGrid directory

  • run instantiate

Getting Started

To get started with ElectricGrid.jl the following interactive notebooks are useful. They show how to use the ElectricGrid.jl framework to build and simulate the dynamics of an electric power grid controlled via classic controllers or train common RL agents for different control tasks:

An overview of all parameters defining the experiment setting with regards to the electric grid can be found here:

To run a simple example, the following few lines of code can be executed:

using ElectricGrid

env =  ElectricGridEnv(num_sources = 1, num_loads = 1)
Multi_Agent =  SetupAgents(env)
hook =  Simulate(Multi_Agent, env)
RenderHookResults(hook = hook)

This is a minimal example of a full ElectricGrid.jl setup. There should also appear a plot that looks like this: output of the minimal example