Test OPF against pandapower
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.