MATPOWER / matpower

MATPOWER – steady state power flow simulation and optimization for MATLAB and Octave
https://matpower.org
Other
423 stars 151 forks source link

Power flow calculation with distributed slack bus #136

Open richardkue opened 2 years ago

richardkue commented 2 years ago

To the best of my knowledge there is no power flow calculation with a distributed slack bus in matpower. I am thinking about making a contribution in this regard. Is it enough to implement a power flow with distributed slack bus in only one algorithm (e.g. newton (power, polar))?

At my own fork of the matpower repository I created a pull request with a concept/idea on how to implement a power flow with a distributed slack bus. I would appreciate it if you have a quick look and give me some feedback.

rdzman commented 2 years ago

For reference, richardkue/matpower#1 is the PR referred to above.

Thanks for sketching this out. I'm a bit torn about how to respond. The approach looks fine if you need the capability right away, but honestly, I'm hesitant about promising it'll be included in a release.

And it's not because there is anything wrong with it. I'm definitely interested in including distributed slack in MATPOWER's power flow, but I'm also well into what amounts to a massive MATPOWER re-design/re-write that will deprecate this code with the next release. My preference would be for you to work on implementing distributed slack in the new code (see MP-Element). It should be cleaner to implement there, but the downside is that the code is more of a moving target, is not well documented yet, and is still incomplete in certain areas.

I'm happy to schedule a call to discuss if that would be helpful. We can coordinate by e-mail if interested.

richardkue commented 2 years ago

Thanks for your feedback. I understand your concerns about the design. I also see it as a bit of a code degradation. I will have a look at MP-Elements. But I am not yet familiar with it. I will come back in the next weeks with a new idea.