-
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
Handle slack distribution failure behavior in DC Load Flow #1146
Handle slack distribution failure behavior in DC Load Flow #1146
Conversation
Signed-off-by: Damien Jeandemange <damien.jeandemange@artelys.com>
14665d2
to
36dc40a
Compare
6bb3947
to
36d804d
Compare
…lowResult Signed-off-by: PRABAKARAN Sylvestre <sylvestre.prabakaran@rte-france.com>
Signed-off-by: PRABAKARAN Sylvestre <sylvestre.prabakaran@rte-france.com>
Signed-off-by: PRABAKARAN Sylvestre <sylvestre.prabakaran@rte-france.com>
Signed-off-by: PRABAKARAN Sylvestre <sylvestre.prabakaran@rte-france.com>
Signed-off-by: PRABAKARAN Sylvestre <sylvestre.prabakaran@rte-france.com>
Signed-off-by: PRABAKARAN Sylvestre <sylvestre.prabakaran@rte-france.com>
Signed-off-by: PRABAKARAN Sylvestre <sylvestre.prabakaran@rte-france.com>
Signed-off-by: Damien Jeandemange <damien.jeandemange@artelys.com>
36d804d
to
30b29e8
Compare
Signed-off-by: Damien Jeandemange <damien.jeandemange@artelys.com>
…avior_fail # Conflicts: # src/main/java/com/powsybl/openloadflow/ac/outerloop/DistributedSlackOuterLoop.java # src/main/java/com/powsybl/openloadflow/network/util/ActivePowerDistribution.java
9dec4c9
to
5331ad0
Compare
distributedActivePower = distributeSlack(network, network.getBuses(), parameters.getBalanceType(), parameters.getNetworkParameters().isUseActiveLimits()); | ||
LoadFlowParameters.BalanceType balanceType = parameters.getBalanceType(); | ||
boolean useActiveLimits = parameters.getNetworkParameters().isUseActiveLimits(); | ||
ActivePowerDistribution activePowerDistribution = ActivePowerDistribution.create(balanceType, false, useActiveLimits); |
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.
Can't we use the distributeSlack()
method to avoid duplication ? The output of distributeSlack() is not used anywhere else (in WoodburyEngine the method is called without using its output) so it can be changed to return the result
variable
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.
I inlined it to avoid a double-call to getActivePowerMismatch, indeed we should perhaps move distributeSlack() to Woodbury, and create an issue about usage of slack distribution failure behavior in Woodbury engine
} | ||
|
||
@Test | ||
void testSlackDistributionDisabledResults() { |
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.
Can be done with a @ParameterizedTest ?
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.
done
Signed-off-by: Damien Jeandemange <damien.jeandemange@artelys.com>
Quality Gate passedIssues Measures |
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?
The parameter
slackDistributionFailureBehavior
is now taken into account in DC load flow mode which wasn't the case.What is the current behavior?
No use of the parameter
slackDistributionFailureBehavior
for DC load flowWhat is the new behavior (if this is a feature change)?
Using the parameter
slackDistributionFailureBehavior
for DC load flowDoes this PR introduce a breaking change or deprecate an API?