Skip to content

SyedZainAbbas/GridGEN

Repository files navigation

📋 Overview

This project explores the application of deep learning techniques, specifically Variational Graph Autoencoders (VGAEs), to generate realistic synthetic power distribution networks. These synthetic networks serve as benchmarks for power system analysis, planning, and optimization studies when actual grid data is limited or unavailable due to confidentiality concerns. The framework supports various decoder architectures, including standard MLPs, Graph Convolutional Networks (GCNs), and an innovative Iterative GCN approach for improved graph generation.

🛠️ Installation

  1. Clone the repository:
  2. Create and activate the Conda environment:
    conda env create --name GridGEN --file GridGEN.yml
    conda activate GridGEN
    
  3. Install additional dependencies with pip:
    pip install -r requirements.txt
    

Now your environment is ready to use the Synthetic Grid Generation framework.

🚀 Getting Started: Framework & Data Setup

Framework Integration

The system is designed with a modular, plug-and-play architecture:

  1. Configure Parameters: Modify the config.json file to set your desired model parameters
  2. Train Your Model: Run train_model.py to train with your configuration
  3. Access Saved Models: Trained models are automatically saved to the models directory
  4. Evaluate Results: Use test_model.py with the path to your trained model / generate synthetic grids

⚠️ Important: When evaluating a model, ensure your configuration settings match those used during training. Configuration mismatches will prevent the model from loading correctly.

Dataset Preparation

Dingo Dataset

  1. Download the dataset from Zenodo
  2. Extract the grids.zip folder
  3. Place the extracted contents in a folder named grids_data_v03
  4. Run prepare_data.py to convert the data to PyTorch Geometric format

GraphPF Dataset

  • Ensure the GraphPF dataset is located in the graphpf_data folder

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •