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

Support of three windings transformers as variable or function in sensitivity analysis #654

Merged
merged 30 commits into from
Jan 18, 2023

Conversation

obrix
Copy link
Member

@obrix obrix commented Nov 16, 2022

Try supporting three windings transformers in sensitivity analysis.

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

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

What is the current behavior? (You can also link to an open issue here)

What is the new behavior (if this is a feature change)?

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)

@obrix obrix changed the title [WIP] Tree windings transformers in sensitivity analysis. Tree windings transformers in sensitivity analysis. Nov 18, 2022
@obrix obrix requested a review from annetill November 18, 2022 10:41
@annetill annetill changed the title Tree windings transformers in sensitivity analysis. Support of three windings transformers as variable or function in sensitivity analysis Nov 18, 2022
@flo-dup flo-dup force-pushed the 3windingsTranformersInSensi branch 3 times, most recently from dffe1f3 to 386f1a5 Compare November 23, 2022 13:55
Signed-off-by: Anne Tilloy <anne.tilloy@rte-france.com>
@obrix obrix force-pushed the 3windingsTranformersInSensi branch from 386f1a5 to bd44446 Compare December 14, 2022 16:04
@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 2 Code Smells

84.8% 84.8% Coverage
0.0% 0.0% Duplication

geofjamg and others added 15 commits January 10, 2023 11:00
Signed-off-by: Geoffroy Jamgotchian <geoffroy.jamgotchian@rte-france.com>
Signed-off-by: Geoffroy Jamgotchian <geoffroy.jamgotchian@gmail.com>
Signed-off-by: Anne Tilloy <anne.tilloy@rte-france.com>
Signed-off-by: Bertrand Rix <bertrand.rix@artelys.com>
Signed-off-by: Bertrand Rix <bertrand.rix@artelys.com>
Signed-off-by: Bertrand Rix <bertrand.rix@artelys.com>
Signed-off-by: Bertrand Rix <bertrand.rix@artelys.com>
Signed-off-by: Bertrand Rix <bertrand.rix@artelys.com>
Signed-off-by: Anne Tilloy <anne.tilloy@rte-france.com>
Signed-off-by: Bertrand Rix <bertrand.rix@artelys.com>
Signed-off-by: Bertrand Rix <bertrand.rix@artelys.com>
Signed-off-by: Anne Tilloy <anne.tilloy@rte-france.com>
annetill and others added 6 commits January 17, 2023 14:50
Signed-off-by: Anne Tilloy <anne.tilloy@rte-france.com>
Signed-off-by: Anne Tilloy <anne.tilloy@rte-france.com>
Signed-off-by: Bertrand Rix <bertrand.rix@artelys.com>
Signed-off-by: Florian Dupuy <florian.dupuy@rte-france.com>
Signed-off-by: Florian Dupuy <florian.dupuy@rte-france.com>
Signed-off-by: Florian Dupuy <florian.dupuy@rte-france.com>
@flo-dup flo-dup force-pushed the 3windingsTranformersInSensi branch from 94b39f6 to bd44446 Compare January 17, 2023 14:11
@flo-dup flo-dup changed the base branch from main to integration-core-5.1.0-SNAPSHOT January 17, 2023 14:12
@flo-dup flo-dup force-pushed the 3windingsTranformersInSensi branch from bd44446 to 055ff67 Compare January 17, 2023 14:15
List<SensitivityFactor> factors = List.of(factorPhase1, factorPhase2, factorPhase3);
SensitivityAnalysisResult result = sensiRunner.run(network, factors, Collections.emptyList(), Collections.emptyList(), sensiParameters);
assertEquals(3, result.getValues().size());
// FIXME.
Copy link
Member

Choose a reason for hiding this comment

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

@obrix do you remember why I put this FIXME ? Because of the API bug ?

Signed-off-by: Anne Tilloy <anne.tilloy@rte-france.com>
Signed-off-by: Anne Tilloy <anne.tilloy@rte-france.com>
Base automatically changed from integration-core-5.1.0-SNAPSHOT to main January 17, 2023 19:36
# Conflicts:
#	src/test/java/com/powsybl/openloadflow/sensi/ac/AcSensitivityAnalysisContingenciesTest.java
annetill and others added 4 commits January 18, 2023 09:39
Signed-off-by: Florian Dupuy <florian.dupuy@rte-france.com>
Signed-off-by: Geoffroy Jamgotchian <geoffroy.jamgotchian@rte-france.com>
Signed-off-by: Geoffroy Jamgotchian <geoffroy.jamgotchian@rte-france.com>
Signed-off-by: Anne Tilloy <anne.tilloy@rte-france.com>
@@ -1177,4 +1218,33 @@ protected static <V extends Enum<V> & Quantity, E extends Enum<E> & Quantity> do
protected static <V extends Enum<V> & Quantity, E extends Enum<E> & Quantity> double unscaleFunction(LfSensitivityFactor<V, E> factor, double value) {
return value * getFunctionBaseValue(factor);
}

protected static int getLegNumber(SensitivityFunctionType type) {
Copy link
Contributor

Choose a reason for hiding this comment

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

It would make sense to put that int (or Integer) inside the enum, don't you think?

@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 2 Code Smells

88.7% 88.7% Coverage
0.0% 0.0% Duplication

@annetill annetill merged commit 49993dc into main Jan 18, 2023
@annetill annetill deleted the 3windingsTranformersInSensi branch January 18, 2023 10:16
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.

4 participants