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 voltage level limit checks against the nominal voltage #64

Merged
merged 4 commits into from
Apr 18, 2024

Conversation

FranckLecuyer
Copy link
Contributor

@FranckLecuyer FranckLecuyer commented Apr 17, 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?

When overriding the voltage level limits, checks are done to verify that the low voltage limit is less than the high voltage limit, and an exception is thrown if it's not the case, and no optimization is launched.
But no check is done to verify that the low voltage limit is less than the nominal voltage, and also to verify that the high voltage limit is greater than the nominal voltage. The consequence is that the optimization is launched and an error similar to the following is produced :

Voltage init has failed : com.powsybl.commons.PowsyblException: Error
during the execution in directory /tmp/ampl_13618596196810462793 exit
codes: Task 0 : 2

What is the new behavior (if this is a feature change)?
Checks are added and an exception is now thrown if the low voltage limit is greater than the nominal voltage, and if the high voltage limit is less than the nominal voltage.

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:

Verify that high voltage limit is greater than nominal voltage.

Signed-off-by: Franck LECUYER <franck.lecuyer@rte-france.com>
Signed-off-by: Franck LECUYER <franck.lecuyer@rte-france.com>
Signed-off-by: Franck LECUYER <franck.lecuyer@rte-france.com>
@FranckLecuyer FranckLecuyer requested a review from So-Fras April 18, 2024 07:27
Copy link

@So-Fras So-Fras merged commit 8a9e43a into main Apr 18, 2024
6 checks passed
@So-Fras So-Fras deleted the check_voltage_level_limits_against_nominal_voltage branch April 18, 2024 10:53
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.

2 participants