PyPSA / PyPSA/PyPSA

Test OPF against pandapower

Open
#478 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
2.2k
Forks
699
Avg merge
2d 10h
Merged PRs (30d)
13

Description

Describe the feature you'd like to see

We currently test only the static AC powerflow against pandapower. It would be nice to extend this by also testing the OPF against pandapower. One can build an OPF from scratch similar to the PF case written here: https://github.com/PyPSA/PyPSA/blob/2ebe53261424c2f7318c1be351679f48037de835/test/conftest.py#L66-L88

And/or import the OPF directly from pandapower. See here an OPF case in pandapower: https://github.com/e2nIEE/pandapower/blob/master/tutorials/opf_basic.ipynb

We recently worked on restoring the pandapower import and powerflow comparison in https://github.com/PyPSA/PyPSA/pull/332. To understand where and what changes are required analysing this https://github.com/PyPSA/PyPSA/pull/332 PR might be helpful.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with test/test_pf_against_pandapower.py and the OPF-related fixture setup in test/conftest.py. Review pull request #332 and the linked pandapower opf_basic.ipynb example to understand the existing import and comparison approach. Done means the test suite compares PyPSA OPF results with pandapower for a representative case.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
testing-qa
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.