Skip to content

Conversation

@SylvestreSakti
Copy link
Member

@SylvestreSakti SylvestreSakti commented Dec 1, 2025

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?
Bug fix (WIP : For the moment, only the test case is implemented)

What is the current behavior?
When all generators are at maxP after slackDistribution, some rare situations can have a very small residual slack mismatch. If this mismatch is still above P_RESIDUE_EPS, the slack distribution result is defined as fail. (And a log message shows : "Failed to distribute slack bus active power mismatch, 0.00 MW remains")

What is the new behavior (if this is a feature change)?
If the remaining mismatch is under slackBusPMaxMismatch, the result of slack distribution should be a success.

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

  • Yes
  • No

Signed-off-by: PRABAKARAN Sylvestre <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants