-
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 first slack bus when using multiple slacks #1160
base: main
Are you sure you want to change the base?
Conversation
… of first slack Signed-off-by: PRABAKARAN Sylvestre <[email protected]>
Signed-off-by: PRABAKARAN Sylvestre <[email protected]>
void loadOnSlackBusTest(boolean ac) { | ||
@ParameterizedTest(name = "ac : {0}, switchSlacks : {1}") | ||
@MethodSource("allModelAndSwitchingTypes") | ||
void loadOnSlackBusTest(boolean ac, boolean switchSlacks) { |
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.
Could you add another test that runs one (or more models) with one slack and without multiple and checks that the solution is close enough ? (bus injections, bus voltage, terminal flows...)
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.
Yes, done a few minutes ago, I'll add more asserts to check bus injections, bus voltages as you mentioned (in the test differentNbSlackbusesTest
)
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.
Done
Signed-off-by: PRABAKARAN Sylvestre <[email protected]>
Signed-off-by: PRABAKARAN Sylvestre <[email protected]>
Quality Gate passedIssues Measures |
Please check if the PR fulfills these requirements
Does this PR already have an issue describing the problem?
No
What kind of change does this PR introduce?
A previous PR (#1116) fixes injections that are ignored in slack buses when using multiple slacks. But actually, the problem is just partially solved because injections are still ignored when being in the first slack. This is due to the distribution equations.
What is the current behavior?
Example with 3 slack buses
Before the previous fix (#1116) we had these distribution equation between slacks :
slack_p2 - slack_p1 = 0
slack_p3 - slack_p1 = 0
After the previous fix (#1116) we had these distribution equation between slacks :
slack_p2 - slack_p1 = target_p2
slack_p3 - slack_p1 = target_p3
What is the new behavior (if this is a feature change)?
Now we have these distribution equation between slacks :
slack_p2 - slack_p1 = target_p2 - target_p1
slack_p3 - slack_p1 = target_p3 - target_p1
Does this PR introduce a breaking change or deprecate an API?
Other information: