Test OPF against pandapower
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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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