e2nIEE / pandapower

Convenient Power System Modelling and Analysis based on PYPOWER and pandas
https://www.pandapower.org
Other
848 stars 479 forks source link

run_control argument not in runopp but in runpp for Trafo Control #1705

Closed Horreyneeyo closed 1 year ago

Horreyneeyo commented 2 years ago

Hello,

I am trying to run OPF on a network whilst also accounting for transformer tap control (run_control= True). However, this seems not to be working as there is no argument for it in the runopp function, but there is in the runpp function. How can i go about this? Is there an updated version that can allow me to control transformer tap change in a OPF setting?

SteffenMeinecke commented 2 years ago

Dear @Horreyneeyo, tap controling and optimization at the same time is not trivial since both methods are changing the system state significantly. Therefore, it is not standard use case and runopp() does not have such parameter run_control. Another reason is that runopp() is not much more than the functionality of pypower which has not the best convergence behavior. What you can do is to run run_control passing run_control_fct=runopp as key word argument.

rbolgaryn commented 2 years ago

In practice it can be a better strategy to use a different approach rather then runopp if you have controllers. One such approach is using distribution factors to set up an LP problem. It can have better convergence, and can work together with any controller in runpp. ut you would have to calculate the DF and set up the LP problem yourself because it is not included in pandapower.