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

Disable switch without removing variables #455

Merged
merged 27 commits into from
Mar 10, 2022
Merged

Disable switch without removing variables #455

merged 27 commits into from
Mar 10, 2022

Conversation

geofjamg
Copy link
Member

@geofjamg geofjamg commented Feb 22, 2022

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)

Does this PR already have an issue describing the problem ? If so, link to this issue using '#XXX' and skip the rest
No

What kind of change does this PR introduce? (Bug fix, feature, docs update, ...)
feature

What is the current behavior? (You can also link to an open issue here)
When we disable a switch, we also disable the 2 dummy variables in AC (dummy P and dummy Q).

What is the new behavior (if this is a feature change)?
When we disable a switch, we keep dummy P and Q and set it to zero. As a consequence, the Jacobian dimension is constant, allowing further performance improvements.

Does this PR introduce a breaking change or deprecate an API? If yes, check the following:

  • The Breaking Change or Deprecated label has been added
  • The migration guide has been updated in the github wiki (What changes might users need to make in their application due to this PR?)

Other information:

(if any of the questions/checkboxes don't apply, please delete them entirely)

Signed-off-by: Geoffroy Jamgotchian <[email protected]>
Signed-off-by: Geoffroy Jamgotchian <[email protected]>
Signed-off-by: Geoffroy Jamgotchian <[email protected]>
Signed-off-by: Geoffroy Jamgotchian <[email protected]>
Signed-off-by: Geoffroy Jamgotchian <[email protected]>
Signed-off-by: Geoffroy Jamgotchian <[email protected]>
Signed-off-by: Geoffroy Jamgotchian <[email protected]>
Signed-off-by: Geoffroy Jamgotchian <[email protected]>
# Conflicts:
#	src/main/java/com/powsybl/openloadflow/network/BusState.java
Signed-off-by: Geoffroy Jamgotchian <[email protected]>
Signed-off-by: Geoffroy Jamgotchian <[email protected]>
Signed-off-by: Geoffroy Jamgotchian <[email protected]>
Signed-off-by: Geoffroy Jamgotchian <[email protected]>
# Conflicts:
#	src/main/java/com/powsybl/openloadflow/sensi/AcSensitivityAnalysis.java
Signed-off-by: Geoffroy Jamgotchian <[email protected]>
@geofjamg geofjamg requested a review from annetill February 22, 2022 22:38
@geofjamg geofjamg changed the title Disable switch without removing variables [WIP] Disable switch without removing variables Feb 22, 2022
@geofjamg geofjamg changed the title [WIP] Disable switch without removing variables Disable switch without removing variables Feb 22, 2022
Signed-off-by: Geoffroy Jamgotchian <[email protected]>
@geofjamg geofjamg changed the title Disable switch without removing variables [WIP] Disable switch without removing variables Feb 22, 2022
Base automatically changed from remove_equation_util2 to main February 23, 2022 13:37
geofjamg and others added 4 commits February 23, 2022 15:01
# Conflicts:
#	src/main/java/com/powsybl/openloadflow/ac/equations/AcEquationSystemUpdater.java
Signed-off-by: Geoffroy Jamgotchian <[email protected]>
Signed-off-by: Geoffroy Jamgotchian <[email protected]>
@geofjamg geofjamg changed the base branch from main to refactor_min_imp February 27, 2022 19:56
@geofjamg geofjamg changed the base branch from refactor_min_imp to main February 27, 2022 19:57
@geofjamg geofjamg changed the base branch from main to refactor_min_imp February 28, 2022 07:01
@geofjamg geofjamg changed the base branch from refactor_min_imp to main February 28, 2022 07:03
# Conflicts:
#	src/test/java/com/powsybl/openloadflow/sa/OpenSecurityAnalysisTest.java
@geofjamg geofjamg changed the title [WIP] Disable switch without removing variables Disable switch without removing variables Mar 1, 2022
@@ -1234,4 +1235,18 @@ void testViolationsWeakenedOrEquivalent() {

assertFalse(AbstractSecurityAnalysis.violationWeakenedOrEquivalent(violation1, violation4, violationsParameters));
}

@Test
void testWithNonImpedendantLineConnectedToSlackBus() {
Copy link
Member

Choose a reason for hiding this comment

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

Impedendant?

Signed-off-by: Anne Tilloy <[email protected]>
@sonarqubecloud
Copy link

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

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

97.6% 97.6% Coverage
0.0% 0.0% Duplication

@annetill annetill merged commit 2a60fac into main Mar 10, 2022
@annetill annetill deleted the switch_open branch March 10, 2022 09:49
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