-
Notifications
You must be signed in to change notification settings - Fork 8
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
Conversation
src/test/java/com/powsybl/openloadflow/sensi/ac/AcSensitivityAnalysisTest.java
Outdated
Show resolved
Hide resolved
src/main/java/com/powsybl/openloadflow/sensi/AbstractSensitivityAnalysis.java
Outdated
Show resolved
Hide resolved
src/main/java/com/powsybl/openloadflow/sensi/AbstractSensitivityAnalysis.java
Outdated
Show resolved
Hide resolved
src/main/java/com/powsybl/openloadflow/sensi/AbstractSensitivityAnalysis.java
Outdated
Show resolved
Hide resolved
dffe1f3
to
386f1a5
Compare
386f1a5
to
bd44446
Compare
SonarCloud Quality Gate failed. |
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>
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>
94b39f6
to
bd44446
Compare
bd44446
to
055ff67
Compare
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. |
There was a problem hiding this comment.
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>
# Conflicts: # src/test/java/com/powsybl/openloadflow/sensi/ac/AcSensitivityAnalysisContingenciesTest.java
Signed-off-by: Florian Dupuy <florian.dupuy@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) { |
There was a problem hiding this comment.
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?
SonarCloud Quality Gate failed. |
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)Does this PR already have an issue describing the problem ? If so, link to this issue using
'#XXX'
and skip the restWhat 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:
Other information:
(if any of the questions/checkboxes don't apply, please delete them entirely)