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

CSA-Profiles fixes #1002

Merged
merged 23 commits into from
Jul 3, 2024
Merged
Show file tree
Hide file tree
Changes from 22 commits
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
721f939
Bug with cnecName instead of instantId
bqth29 Mar 26, 2024
106aaa2
Bug with cnecName instead of instantId
bqth29 Mar 26, 2024
6a01745
Merge branch 'fix/csa/typo_in_flow_cnec_import' into csa/testing
bqth29 Mar 26, 2024
c48c58b
Wrong FlowCnec name with TATL in creation context
bqth29 Mar 26, 2024
a45b2a3
Merge branch 'fix/csa/typo_in_flow_cnec_import' into csa/testing
bqth29 Mar 26, 2024
e7e40de
Don't log geographical filter
bqth29 Mar 26, 2024
edf70fe
Merge branch 'main' into csa/testing
bqth29 Mar 26, 2024
fa824c8
Merge branch 'main' into csa/testing
bqth29 Apr 4, 2024
60d0b76
Merge branch 'main' into csa/testing
bqth29 Apr 8, 2024
4bc4c40
Merge branch 'main' into csa/testing
bqth29 Apr 9, 2024
4fcbd10
Merge branch 'main' into csa/testing
bqth29 Apr 9, 2024
db89b14
Merge main
bqth29 Apr 10, 2024
9e39a3a
Merge branch 'main' into csa/testing
bqth29 Apr 17, 2024
a225d34
Merge branch 'main' into csa/testing
bqth29 Apr 22, 2024
3fc7404
Merge branch 'main' into csa/testing
bqth29 Apr 23, 2024
71f0256
Merge branch 'main' into csa/testing
bqth29 Apr 26, 2024
ed7756a
angle & voltage CNEC import fix
pet-mit May 6, 2024
6ed92c8
Merge branch 'main' into csa/testing
phiedw Jun 24, 2024
a7e86fa
Merge branch 'main' of https://github.com/powsybl/open-rao into csa/t…
phiedw Jun 24, 2024
b107145
Merge branch 'csa/testing' of https://github.com/powsybl/open-rao int…
phiedw Jun 24, 2024
7f4b6a1
remove geographical filter
phiedw Jun 25, 2024
45515a9
Merge branch 'main' into csa/testing
phiedw Jun 26, 2024
4d4a53a
Merge branch 'main' into csa/testing
pet-mit Jul 3, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
import com.powsybl.contingency.Contingency;
import com.powsybl.openrao.data.cracapi.Crac;
import com.powsybl.openrao.data.cracapi.cnec.CnecAdder;
import com.powsybl.openrao.data.cracapi.cnec.FlowCnecAdder;
import com.powsybl.openrao.data.cracapi.cnec.Side;
import com.powsybl.openrao.data.craccreation.creator.csaprofile.craccreator.CsaProfileCracCreationContext;
import com.powsybl.openrao.data.craccreation.creator.csaprofile.craccreator.CsaProfileCracUtils;
Expand Down Expand Up @@ -97,9 +98,12 @@ private void initCnecAdder(CnecAdder<?> cnecAdder, Contingency contingency, Stri
.withId(cnecName)
.withName(cnecName)
.withInstant(instantId)
.withOperator(CsaProfileCracUtils.getTsoNameFromUrl(nativeAssessedElement.operator()))
.withOptimized(aeSecuredForRegion)
.withMonitored(aeScannedForRegion);
.withOperator(CsaProfileCracUtils.getTsoNameFromUrl(nativeAssessedElement.operator()));
if (cnecAdder instanceof FlowCnecAdder) {
// The following 2 lines mustn't be called for angle & voltage CNECs
cnecAdder.withOptimized(aeSecuredForRegion)
.withMonitored(aeScannedForRegion);
}
}

protected void markCnecAsImportedAndHandleRejectedContingencies(String cnecName) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ private void addAngleCnec(String instantId, Contingency contingency) {
}

private AngleCnecAdder initAngleCnec() {
return crac.newAngleCnec().withReliabilityMargin(0);
return crac.newAngleCnec().withReliabilityMargin(0).withOptimized(false).withMonitored(true);
}

private void addAngleLimit(AngleCnecAdder angleCnecAdder) {
Expand Down
Loading