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 slack buses when using multi slacks #1116

Merged
merged 7 commits into from
Nov 15, 2024

Conversation

vmouradian
Copy link
Member

@vmouradian vmouradian commented Nov 7, 2024

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)

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?

  • No

@vmouradian vmouradian force-pushed the bugfix/multi-slack-target-vector branch from 280c440 to b12d471 Compare November 7, 2024 10:51
@vmouradian vmouradian self-assigned this Nov 7, 2024
@vmouradian vmouradian added the bug Something isn't working label Nov 7, 2024
@vmouradian vmouradian force-pushed the bugfix/multi-slack-target-vector branch from b12d471 to 0739fab Compare November 7, 2024 11:14
@vmouradian vmouradian changed the title [Draft] Bug : Load/Gen ignored on slack buses in multi slack Draft: Bug : Load/Gen ignored on slack buses in multi slack Nov 7, 2024
@jeandemanged jeandemanged changed the title Draft: Bug : Load/Gen ignored on slack buses in multi slack Fix injections ignored on slack buses when using multi slacks Nov 8, 2024
Copy link
Member

@jeandemanged jeandemanged left a 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
Copy link
Contributor

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

Copy link
Member

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

vmouradian and others added 7 commits November 15, 2024 15:41
Signed-off-by: vmouradian <valentin.mouradian@artelys.com>
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>
Signed-off-by: Damien Jeandemange <damien.jeandemange@artelys.com>
Signed-off-by: Damien Jeandemange <damien.jeandemange@artelys.com>
Signed-off-by: Damien Jeandemange <damien.jeandemange@artelys.com>
@vidaldid-rte vidaldid-rte force-pushed the bugfix/multi-slack-target-vector branch from d44796f to bb2947b Compare November 15, 2024 14:41
@vidaldid-rte vidaldid-rte merged commit 305fa38 into main Nov 15, 2024
7 checks passed
@vidaldid-rte vidaldid-rte deleted the bugfix/multi-slack-target-vector branch November 15, 2024 14:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working December 2024 release
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

4 participants