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

Add concise and detailed logs for shunt compensators activation #70

Conversation

FranckLecuyer
Copy link
Contributor

@FranckLecuyer FranckLecuyer commented May 22, 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?

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?

  • Yes
  • No

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)

Other information:

…tween reactive discretized and reactive optimal value is over a configured threshold.

Signed-off-by: Franck LECUYER <[email protected]>
…n discrete and optimal value over the threshold.

Signed-off-by: Franck LECUYER <[email protected]>
@FranckLecuyer FranckLecuyer requested review from jonenst and ayolab May 28, 2024 09:06
@So-Fras So-Fras changed the title Add concise and detailed logs for shunt compensators activatioin Add concise and detailed logs for shunt compensators activation May 29, 2024
@FranckLecuyer FranckLecuyer requested a review from So-Fras May 30, 2024 07:38
LoadFlowResult loadFlowResult = LoadFlow.run(network);
assertTrue(loadFlowResult.isOk());
assertTrue(loadFlowResult.isFullyConverged() || loadFlowResult.isPartiallyConverged());
Copy link
Member

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()?

Copy link
Contributor Author

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 <[email protected]>
@FranckLecuyer FranckLecuyer requested a review from So-Fras June 17, 2024 09:39
Copy link

@So-Fras So-Fras merged commit 904cf5c into main Jun 17, 2024
6 checks passed
@So-Fras So-Fras deleted the log_differences_between_discretized_and_optimized_shunt_compensator_reactive_power_value branch June 17, 2024 11:52
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.

3 participants