Skip to content

mohamedkhalifa9/scigrid-optimization-powerflow

Repository files navigation

scigrid-optimization-powerflow

PyPSA workflow on SciGrid-DE: rolling linear OPF, plots (dispatch, loading, LMPs, curtailment), then AC power flow after fix_optimal_dispatch. Follows the official example with inline comments; maps use geomap=False (no Cartopy).

Reference: SciGRID LOPF then PF

Setup

python -m venv .venv
source .venv/bin/activate   # Windows: .venv\Scripts\activate
pip install -r requirements.txt

First run downloads the SciGrid example network (~tens of MB) into PyPSA’s cache.

Scripts

File Purpose
scigrid.py Full pipeline + figures (scigrid_*.png). Full day can take several minutes.
toy_network.py Small 3-bus congestion / LMP example.

Push to GitHub

git init
git add .
git commit -m "Initial commit: SciGrid LOPF + AC PF workflow"
git remote add origin https://github.com/mohamedkhalifa9/scigrid-optimization-powerflow.git
git branch -M main
git push -u origin main

About

PyPSA SciGrid-DE tutorial in code: rolling LOPF, dispatch & storage plots, line loading, LMPs, wind curtailment, then AC Newton PF after fix_optimal_dispatch. Heavily commented; plots use bus x/y (no Cartopy). Based on official PyPSA docs.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages