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

Enable negative P0 through scalable for loads #24

Merged
merged 2 commits into from
Apr 20, 2022
Merged

Conversation

TheMaskedTurtle
Copy link
Contributor

Signed-off-by: Joris Mancini joris.mancini@rte-france.com

Please check if the PR fulfills these requirements (please use '[x]' to check the checkboxes, or submit the PR and then click the checkboxes)

  • 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)

What kind of change does this PR introduce? (Bug fix, feature, docs update, ...)
We want to enable loads to have a negative P0. For those, which are defined implicitly (meaning with no direct reference to a node) they would have an infinite range (negative and positive). On the other hand for those that are explicitly defined either minimum and maximum values are specified in the format or an infinite range would be adopted.
For GeneratorScalable, the default constructor defines infinite range by default but for LoadScalable it is defined as [0, +inf[ by default. Then we have to specify the infinite range for loads.

Signed-off-by: Joris Mancini <joris.mancini@rte-france.com>
Copy link
Contributor

@miovd miovd left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Okay for me but could you please add some coverage tests? For example, one that correct incomingMaxP and incomingMinP for loads?

Signed-off-by: VEDELAGO MIORA <miora.ralambotiana@rte-france.com>

# Conflicts:
#	glsk/glsk-document-api/src/main/java/com/powsybl/glsk/api/util/converters/GlskPointScalableConverter.java
@sonarqubecloud
Copy link

SonarCloud Quality Gate failed.    Quality Gate failed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 1 Code Smell

76.0% 76.0% Coverage
0.0% 0.0% Duplication

@miovd miovd merged commit 5f7f951 into main Apr 20, 2022
@miovd miovd deleted the negative_P0_on_loads branch April 20, 2022 13:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants