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

Support outerLoopNames parameter in DC Load Flow #1159

Open
wants to merge 11 commits into
base: main
Choose a base branch
from

Conversation

vmouradian
Copy link
Member

@vmouradian vmouradian commented Dec 19, 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)

Does this PR already have an issue describing the problem?

No

What kind of change does this PR introduce?

Feature

What is the current behavior?

outerLoopNames parameter has no impact on outer loops creation in DC load flow

What is the new behavior (if this is a feature change)?
outerLoopNames parameter is usable to select outer loops in DC load flow, similarly to what exists for AC

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

  • Yes

If yes, please check if the following requirements are fulfilled

  • The Breaking Change or Deprecated label has been added
  • The migration steps are described in the following section

What changes might users need to make in their application due to this PR? (migration steps)

If you were configuring AC outerloops by providing a custom OuterLoopConfig implementation via the Java Service Loader, you will need to implement com.powsybl.openloadflow.lf.outerloop.config.AcOuterLoopsConfig replacing of the former com.powsybl.openloadflow.OuterLoopConfig.

If you want to also configure DC outerloops by providing a custom implementation via the Java Service Loader, you will need to implement com.powsybl.openloadflow.lf.outerloop.config.DcOuterLoopsConfig.

@vmouradian vmouradian self-assigned this Dec 19, 2024
@vmouradian vmouradian mentioned this pull request Dec 20, 2024
4 tasks
@vmouradian vmouradian requested a review from m-guibert December 20, 2024 09:25
@jeandemanged jeandemanged changed the title Support outerLoopNames parameter in DC [WIP] Support outerLoopNames parameter in DC Dec 20, 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.

  • move all xxxxxOuterLoopConfig classes from com.powsybl.openloadflow to new package com.powsybl.openloadflow.lf.outerloop.config
  • please enhance outerLoopNames description in docs/loadflow/parameters.md: mention used for both AC and DC, and list the currently existing outer loops.
  • please address the Sonar reported issues

@vmouradian vmouradian force-pushed the feature/dc-outerloop-name-param branch from aa5b091 to 967b179 Compare January 6, 2025 16:55
Base automatically changed from feature/refactor-outer-loops to main January 16, 2025 08:44
Signed-off-by: vmouradian <[email protected]>
…g + use right static access for names

Signed-off-by: vmouradian <[email protected]>
Signed-off-by: vmouradian <[email protected]>
Signed-off-by: vmouradian <[email protected]>
Signed-off-by: vmouradian <[email protected]>
Signed-off-by: vmouradian <[email protected]>
@vmouradian vmouradian force-pushed the feature/dc-outerloop-name-param branch from 967b179 to b666c0b Compare January 16, 2025 10:12
@vmouradian vmouradian changed the title [WIP] Support outerLoopNames parameter in DC Support outerLoopNames parameter in DC Jan 16, 2025
Signed-off-by: Damien Jeandemange <[email protected]>
@jeandemanged jeandemanged changed the title Support outerLoopNames parameter in DC Support outerLoopNames parameter in DC Load Flow Jan 16, 2025
Copy link

Please retry analysis of this Pull-Request directly on SonarQube Cloud

@@ -33,7 +33,7 @@ public DcAreaInterchangeControlOuterLoop(ActivePowerDistribution activePowerDist

@Override
public String getName() {
return "AreaInterchangeControl";
Copy link
Contributor

Choose a reason for hiding this comment

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

This method getName() can be moved to the parent abstract class AbstractAreaInterchangeControlOuterLoop

@@ -37,7 +37,7 @@ public DcIncrementalPhaseControlOuterLoop() {

@Override
public String getName() {
return "DC Incremental phase control";
Copy link
Contributor

Choose a reason for hiding this comment

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

Same here with the class AbstractIncrementalPhaseControlOuterLoop

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Approved
Development

Successfully merging this pull request may close these issues.

4 participants