-
Notifications
You must be signed in to change notification settings - Fork 3
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
Add concise and detailed logs for shunt compensators activation #70
Add concise and detailed logs for shunt compensators activation #70
Conversation
…tween reactive discretized and reactive optimal value is over a configured threshold. Signed-off-by: Franck LECUYER <franck.lecuyer@rte-france.com>
…n discrete and optimal value over the threshold. Signed-off-by: Franck LECUYER <franck.lecuyer@rte-france.com>
...-reac/src/main/java/com/powsybl/openreac/parameters/output/network/NetworkModifications.java
Outdated
Show resolved
Hide resolved
.../main/java/com/powsybl/openreac/parameters/output/network/ShuntCompensatorNetworkOutput.java
Outdated
Show resolved
Hide resolved
.../main/java/com/powsybl/openreac/parameters/output/network/ShuntCompensatorNetworkOutput.java
Outdated
Show resolved
Hide resolved
.../main/java/com/powsybl/openreac/parameters/output/network/ShuntCompensatorNetworkOutput.java
Outdated
Show resolved
Hide resolved
LoadFlowResult loadFlowResult = LoadFlow.run(network); | ||
assertTrue(loadFlowResult.isOk()); | ||
assertTrue(loadFlowResult.isFullyConverged() || loadFlowResult.isPartiallyConverged()); |
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 saw that isOk()
is deprecated. But is that function equivalent to isFullyConverged() || isPartiallyConverged()
?
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.
Replaced by a call to isFullyConverged (same was previously done in powsybl-open-loadflow)
Signed-off-by: Franck LECUYER <franck.lecuyer@rte-france.com>
Signed-off-by: Franck LECUYER <franck.lecuyer@rte-france.com>
Quality Gate passedIssues Measures |
Please check if the PR fulfills these requirements
Does this PR already have an issue describing the problem?
What kind of change does this PR introduce?
Feature
What is the current behavior?
No logs are generated for shunt compensators, when the delta between the discretized reactive value and the optimal reactive value given by the optimizer is too big, and thus can lead to further loadflow divergence problem.
What is the new behavior (if this is a feature change)?
Concise and detailed logs are now generated for shunt compensators activation, when the delta between the discretized reactive value and the optimal reactive value is over a configured threshold.
Does 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)
Other information: