-
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
ContingencyLoadFlowParameters extension support in Security Analysis #1156
base: main
Are you sure you want to change the base?
Conversation
5d88652
to
1a417ae
Compare
69d7eff
to
b59bda3
Compare
b59bda3
to
0f157c9
Compare
69fe35c
to
5a6aa8d
Compare
0f157c9
to
6229d23
Compare
3b552cf
to
2ed030b
Compare
6229d23
to
3cf9f83
Compare
2ed030b
to
aefec28
Compare
3cf9f83
to
2bdbabc
Compare
2bdbabc
to
2b17067
Compare
src/main/java/com/powsybl/openloadflow/sa/AbstractSecurityAnalysis.java
Outdated
Show resolved
Hide resolved
src/main/java/com/powsybl/openloadflow/sa/AbstractSecurityAnalysis.java
Outdated
Show resolved
Hide resolved
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.
Thank you, I did some cleanup: you forgot to use the AbstractSecurityAnalysis
/ AcSecurityAnalysis
/ DcSecurityAnalysis
inheritance, making this simpler imho.
But there is some more work needed about outerloop reconfiguration, I wrote a suggestion, let me know what you think.
src/main/java/com/powsybl/openloadflow/sa/AcSecurityAnalysis.java
Outdated
Show resolved
Hide resolved
src/main/java/com/powsybl/openloadflow/sa/DcSecurityAnalysis.java
Outdated
Show resolved
Hide resolved
src/test/java/com/powsybl/openloadflow/network/impl/LfNetworkLoaderImplTest.java
Show resolved
Hide resolved
46fcfc0
to
9ad5082
Compare
|
||
@Override | ||
protected void applyContingencyParameters(AcLoadFlowParameters parameters, ContingencyLoadFlowParameters contingencyParameters, LoadFlowParameters loadFlowParameters, OpenLoadFlowParameters openLoadFlowParameters) { | ||
AcOuterLoopConfig outerLoopConfig = AcOuterLoopConfig.findOuterLoopConfig() |
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.
a bit worried of calling AcOuterLoopConfig.findOuterLoopConfig()
for each contingency, probably some caching has to be implemented (look for memoize
in other powsybl places, e.g. in core)
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.
I made a proposal in e45f710, tell me what you think
|
||
@Override | ||
protected void applyContingencyParameters(DcLoadFlowParameters parameters, ContingencyLoadFlowParameters contingencyParameters, LoadFlowParameters loadFlowParameters, OpenLoadFlowParameters openLoadFlowParameters) { | ||
DcOuterLoopConfig outerLoopConfig = DcOuterLoopConfig.findOuterLoopConfig() |
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.
same here, probably caching needed for DcOuterLoopConfig.findOuterLoopConfig()
05ccafe
to
310b99c
Compare
3f42c3a
to
b3017c9
Compare
…n to add) Signed-off-by: vmouradian <valentin.mouradian@artelys.com>
Signed-off-by: vmouradian <valentin.mouradian@artelys.com>
Signed-off-by: vmouradian <valentin.mouradian@artelys.com>
Signed-off-by: vmouradian <valentin.mouradian@artelys.com>
Signed-off-by: vmouradian <valentin.mouradian@artelys.com>
Signed-off-by: vmouradian <valentin.mouradian@artelys.com>
Signed-off-by: vmouradian <valentin.mouradian@artelys.com>
Signed-off-by: vmouradian <valentin.mouradian@artelys.com>
Signed-off-by: Damien Jeandemange <damien.jeandemange@artelys.com>
Signed-off-by: vmouradian <valentin.mouradian@artelys.com>
Signed-off-by: vmouradian <valentin.mouradian@artelys.com>
Signed-off-by: vmouradian <valentin.mouradian@artelys.com>
Signed-off-by: vmouradian <valentin.mouradian@artelys.com>
b3017c9
to
2251959
Compare
Quality Gate passedIssues Measures |
Please check if the PR fulfills these requirements
Does this PR already have an issue describing the problem?
Final part of #1091
Since AIC can be activated only for a contingency, LfNetWorkLoader now needs to always converts the areas.
What is the new behavior (if this is a feature change)?
Uses the class ContingencyLoadFlowParameters created in #1139 in SA calculations
Final part of the work on #1091
Does this PR introduce a breaking change or deprecate an API?
If yes, please check if the following requirements are fulfilled
What changes might users need to make in their application due to this PR? (migration steps)
Other information: