Skip to content
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

Merged
merged 5 commits into from
Jan 13, 2025

Conversation

SylvestreSakti
Copy link
Contributor

Please check if the PR fulfills these requirements

  • The commit message follows our guidelines
  • Tests for the changes have been added (for bug fixes / features)
  • Docs have been added / updated (for bug fixes / features)

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?

  • Yes
  • No

Other information:

@vidaldid-rte vidaldid-rte force-pushed the fix_multislack_targetP_on_first_slack branch from a18bb28 to ad5f28c Compare January 13, 2025 16:59
SylvestreSakti and others added 5 commits January 13, 2025 18:42
Signed-off-by: PRABAKARAN Sylvestre <[email protected]>
Signed-off-by: PRABAKARAN Sylvestre <[email protected]>
Signed-off-by: Didier Vidal <[email protected]>
@vidaldid-rte vidaldid-rte force-pushed the fix_multislack_targetP_on_first_slack branch from ad5f28c to c3464f7 Compare January 13, 2025 17:42
@vidaldid-rte vidaldid-rte merged commit 3cecabf into main Jan 13, 2025
8 checks passed
@vidaldid-rte vidaldid-rte deleted the fix_multislack_targetP_on_first_slack branch January 13, 2025 17:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants