-
Notifications
You must be signed in to change notification settings - Fork 8
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
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this 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 packagecom.powsybl.openloadflow.lf.outerloop.config
- please enhance
outerLoopNames
description indocs/loadflow/parameters.md
: mention used for both AC and DC, and list the currently existing outer loops. - please address the Sonar reported issues
src/main/java/com/powsybl/openloadflow/lf/outerloop/config/OuterLoopConfig.java
Outdated
Show resolved
Hide resolved
aa5b091
to
967b179
Compare
Signed-off-by: vmouradian <[email protected]>
Signed-off-by: vmouradian <[email protected]>
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]>
967b179
to
b666c0b
Compare
Signed-off-by: Damien Jeandemange <[email protected]>
Signed-off-by: Damien Jeandemange <[email protected]>
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"; |
There was a problem hiding this comment.
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"; |
There was a problem hiding this comment.
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
Please check if the PR fulfills these requirements
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 flowWhat 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 ACDoes this PR introduce a breaking change or deprecate an API?
If yes, please check if the following requirements are fulfilled
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 implementcom.powsybl.openloadflow.lf.outerloop.config.AcOuterLoopsConfig
replacing of the formercom.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
.