Code Monkey home page Code Monkey logo

online-event-triggered-switching-for-frequency-control's Introduction

Online Event-Triggered Switching for Frequency Control in Power Grids with Variable Inertia

This repository contains the code for the paper "Online Event-Triggered Switching for Frequency Control in Power Grids with Variable Inertia", submitted to Transactions on Power Systems.

Project Overview

This project implements a Neural-PI controller framework for frequency control in power grids with variable inertia. The framework uses reinforcement learning to train controllers that adaptively switch based on system events, ensuring stability and performance under varying conditions.

Repository Structure

  • online-event-triggered-switching-neural-pi.ipynb: Jupyter notebook containing the main code for training and evaluating the Neural-PI controllers.
  • data/: Directory containing the simulation data, such as the IEEE 39-bus system data.
  • checkpoints/: Directory containing trained model checkpoints.

Prerequisites

To run the code in this repository, you will need the following libraries:

  • matplotlib
  • numpy
  • tensorflow
  • networkx
  • scipy
  • mat4py
  • pickle
  • time

You can install the required libraries using pip:

pip install matplotlib numpy tensorflow networkx scipy mat4py

Usage

  1. Set Up the Environment: Ensure you have a suitable Python environment with the required libraries installed.

  2. Load the Notebook: Open the online-event-triggered-switching-neural-pi.ipynb notebook in Jupyter.

  3. Run the Cells: Execute the cells in the notebook to train the Neural-PI controllers and evaluate their performance on the provided simulation data.

Key Components

Frequency Control Environment

The Frequency class in the notebook defines the environment for the frequency control problem. It initializes system parameters and defines the state transition dynamics.

Simulation Data

Simulation data is loaded from the IEEE 39-bus system using the mat4py library. Key parameters include system inertia, damping, and network topology.

Training and Evaluation

The notebook provides a detailed implementation of the training procedure for the Neural-PI controllers, including the reinforcement learning setup and evaluation metrics.

Results

The notebook includes plots and metrics to demonstrate the performance of the trained controllers under different inertia modes. The best performance for each mode is highlighted in bold in the results section.

Citation

If you use this code in your research, please cite our paper once it is published.

License

This project is licensed under the MIT License - see the LICENSE file for details.

online-event-triggered-switching-for-frequency-control's People

Contributors

jiefeng-cse avatar

Stargazers

 avatar

Watchers

 avatar

Forkers

kacjer

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.