Skip to content

fix double slack distribution in SA DC #1209

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

Merged
merged 4 commits into from
Mar 26, 2025

Conversation

vidaldid-rte
Copy link
Collaborator

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)
  • A PR or issue has been opened in all impacted repositories (if any)

Does this PR already have an issue describing the problem?
No

What kind of change does this PR introduce?
In DC the active power mismatch is computer on all bus whether they are enabled or disabled.
This leads to wrong computations in Security Analysis if the lost network contains unbalanced loads and generators.

Note that in general the slack distribution is a loss of time in DC security analysis because it was initially made extactly based on the contingency propagation. So the DC engine performs a useless iteration on all buses in SA.

What is the current behavior?
Slack distribution in DC security analysis (default mode) is long each time a unbalanced part of the network is lost.

What is the new behavior (if this is a feature change)?
Slack distribution in DC security analysis is correct.

Does this PR introduce a breaking change or deprecate an API?

  • Yes
  • No

Signed-off-by: Hadrien <[email protected]>
Signed-off-by: Hadrien <[email protected]>
Copy link
Member

@p-arvy p-arvy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the bugfix @vidaldid-rte.
I confirm this corrects the TUs in PR #1192.
It also fixes some TUs added in PR #1153, adding the switching actions in fast DC SA. For some of them, there were differences between a classic DC SA and an equivalent DC LF.

@vidaldid-rte vidaldid-rte merged commit cbb24e9 into main Mar 26, 2025
8 checks passed
@vidaldid-rte vidaldid-rte deleted the bug/fix_double_slack_distr_dc branch March 26, 2025 15:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants