-
Notifications
You must be signed in to change notification settings - Fork 149
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add PV bus voltage set-point correction #797
Conversation
Codecov Report
@@ Coverage Diff @@
## master #797 +/- ##
==========================================
- Coverage 94.04% 94.00% -0.04%
==========================================
Files 42 42
Lines 9800 9813 +13
==========================================
+ Hits 9216 9225 +9
- Misses 584 588 +4
Continue to review full report at Codecov.
|
Thanks @jd-lara, as I understand the issue you are raising here, this is a known issue to me. My general concern about how MP implements this feature is what happens if two generators are connected to one bus and they have different target voltage values? In my mind this is an infeasible model. In your proposal, one of those generators will be nominated to be the "preferred" set-point. This is why in PM I have adopted to use the bus voltage value for setting the PV voltage value, there can be no ambiguity. A clear and intuitive rule for how to distinguish such ambiguities is not clear to me. So I concluded to generate an warning message if the bus VM value does not match a generator's desired target, https://github.com/lanl-ansi/PowerModels.jl/blob/master/src/core/data.jl#L1843 And leave it to the user to resolve the ambiguity. Do you have other suggestions on how we might address these edge cases in a way that would be more user friendly for MP users? |
@ccoffrin I see where you are coming from and I agree that if the set-points are inconsistent that's an input issue. I added a memento error log. I would suggest throwing an Exception instead if there are inconsistencies. I think it is better to keep the voltage reference from the generators and let the model solve adjust. In cases where the MP data solve induced large deviations in the |
@ccoffrin I can see the infeasible case argument where multiple generators with disparate voltage settings are connected to the same bus. But, simple disagreement between the voltage setting in the bus table vs. the gen voltage setting just seems like a shortcoming of the data format - and since the voltage is actually being controlled by the generator, we should use that. |
I am open to making a change to address this in the next breaking release, it would be a fairly substantial one. This is what I am thinking:
The biggest change will be that in OPF (and related optimization models), these generator voltage set point values will become part of the standard solution data. |
This sounds like a reasonable plan and it addresses our main concern with the pf solution |
I have opened an issue #798 to make sure this gets into the next breaking release. I propose to close this PR for now, as the proposed implementation will be quite different. I will endeavor to complete it in the next couple of weeks. |
Ok, I will merge the change in PSY in the meantime since we need this fix for some current work. Once 0.19 gets released we will update the code. |
This PR addresses a small issue in matpower files that were generated after running
run_pf
with q-limits enforced. In these cases matpower stores in the bus field the resulting voltage value. When parsing if the bus is a PV bus, the parser stores the voltage from the resulting power which causes the voltage to be enforced at the q limited voltage value.