-
Notifications
You must be signed in to change notification settings - Fork 8
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
Fix injections ignored on slack buses when using multi slacks #1116
Conversation
280c440
to
b12d471
Compare
b12d471
to
0739fab
Compare
src/test/java/com/powsybl/openloadflow/ac/MultipleSlackBusesTest.java
Outdated
Show resolved
Hide resolved
src/test/java/com/powsybl/openloadflow/ac/MultipleSlackBusesTest.java
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ty
// 0 = slack_p1 - slack_p3 | ||
// example for 3 slack buses | ||
// target_p2 = slack_p2 - slack_p1 + inj_p2 | ||
// target_p3 = slack_p3 - slack_p1 + inj_p2 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure about my remark but shouldn't we rather have :
// target_p2 = slack_p2 - slack_p1
// target_p3 = slack_p3 - slack_p1
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you are absolutely right ... thanks / fixed
Signed-off-by: vmouradian <valentin.mouradian@artelys.com>
Signed-off-by: Damien Jeandemange <damien.jeandemange@artelys.com>
Signed-off-by: Damien Jeandemange <damien.jeandemange@artelys.com>
d44796f
to
bb2947b
Compare
Quality Gate passedIssues Measures |
Please check if the PR fulfills these requirements
What kind of change does this PR introduce?
Bug fix
What is the current behavior?
When using multi slack, loads or gens on slack buses are ignored because value for P in target vector is 0. This results in the existing injections to be "mangled"/reported in the slack injection incorrectly.
What is the new behavior (if this is a feature change)?
Take P injection into account on slack buses equations for the multi slack case
Does this PR introduce a breaking change or deprecate an API?