Skip to content

Fix DC Load Flow running slack distribution for epsilon mismatch#1389

Open
jeandemanged wants to merge 1 commit intomainfrom
fix-dc-lf-unecessary-slack-distrib
Open

Fix DC Load Flow running slack distribution for epsilon mismatch#1389
jeandemanged wants to merge 1 commit intomainfrom
fix-dc-lf-unecessary-slack-distrib

Conversation

@jeandemanged
Copy link
Copy Markdown
Member

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

What is the current behavior?

In DC Load Flow slack distribution is always performed.
If the mismatch is epsilonesque (lower than P_RESIDUE_EPS=1e-3 MW) this is an unnecessary slack distribution and generates slack distribution reports + logs.
Especially annoying in DC security analysis where each and every contingency not causing an injection loss issues a report+ log showing zero or near zero mismatch distributions.

What is the new behavior (if this is a feature change)?
DC Load Flow slack distribution is executed only if mismatch is above epsilon (P_RESIDUE_EPS).

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

  • No

Signed-off-by: Damien Jeandemange <damien.jeandemange@artelys.com>
@sonarqubecloud
Copy link
Copy Markdown


LoadFlowParameters loadFlowParameters = new LoadFlowParameters()
.setDc(true)
.setHvdcAcEmulation(false);
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

to not have the outerloop in the report, but probably a fix to do in another PR to not create the outerloop if no HVDC in DC emulation in the network

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.

1 participant