Skip to content

Notebook rao #32

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

Merged
merged 5 commits into from
Jul 8, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,4 @@
- Sensitivity analysis and PTDF calculation [![Binder](https://mybinder.org/badge_logo.svg)](https://mybinder.org/v2/gh/powsybl/pypowsybl-notebooks/main?labpath=sensitivity_analysis.ipynb)
- Pypowsybl-Jupyter widgets notebook : [![Binder](https://mybinder.org/badge_logo.svg)](https://mybinder.org/v2/gh/powsybl/pypowsybl-notebooks/main?labpath=pypowsybl_jupyter_widgets_demo.ipynb)
- Network modifications in node/breaker topology notebook: [![Binder](https://mybinder.org/badge_logo.svg)](https://mybinder.org/v2/gh/powsybl/pypowsybl-notebooks/main?labpath=network_modifications_node_breaker.ipynb)
- Open-RAO notebook : [![Binder](https://mybinder.org/badge_logo.svg)](https://mybinder.org/v2/gh/powsybl/pypowsybl-notebooks/main?labpath=open_rao.ipynb)
40 changes: 40 additions & 0 deletions data/rao/12_node_network.uct
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
##C 2007.05.01
##N
##ZBE
BBE1AA1 BE1 0 2 400.00 0.00000 0.00000 0.00000 0.00000 9000.00 -9000.0 9000.00 -9000.0
BBE2AA1 BE2 0 2 400.00 0.00000 0.00000 0.00000 0.00000 9000.00 -9000.0 9000.00 -9000.0
BBE3AA1 BE3 0 2 400.00 0.00000 0.00000 0.00000 0.00000 9000.00 -9000.0 9000.00 -9000.0
##ZDE
DDE1AA1 DE1 0 2 400.00 0.00000 0.00000 0.00000 0.00000 9000.00 -9000.0 9000.00 -9000.0
DDE2AA1 DE2 0 2 400.00 0.00000 0.00000 0.00000 0.00000 9000.00 -9000.0 9000.00 -9000.0
DDE3AA1 DE3 0 2 400.00 0.00000 0.00000 0.00000 0.00000 9000.00 -9000.0 9000.00 -9000.0
##ZFR
FFR1AA1 FR1 0 2 400.00 1000.00 0.00000 00000.0 0.00000 9000.00 -9000.0 9000.00 -9000.0
FFR2AA1 FR2 0 2 400.00 0.00000 0.00000 0.00000 0.00000 9000.00 -9000.0 9000.00 -9000.0
FFR3AA1 FR3 0 2 400.00 0.00000 0.00000 0.00000 0.00000 9000.00 -9000.0 9000.00 -9000.0
##ZNL
NNL1AA1 NL1 0 2 400.00 0000.00 0.00000 -1000.0 0.00000 9000.00 -9000.0 9000.00 -9000.0
NNL2AA1 NL2 0 2 400.00 0.00000 0.00000 0.00000 0.00000 9000.00 -9000.0 9000.00 -9000.0
NNL3AA1 NL3 0 2 400.00 0.00000 0.00000 0.00000 0.00000 9000.00 -9000.0 9000.00 -9000.0
##L
BBE1AA1 BBE2AA1 1 0 0.0000 10.000 0.000000 5000
BBE1AA1 BBE3AA1 1 0 0.0000 10.000 0.000000 5000
FFR1AA1 FFR2AA1 1 0 0.0000 10.000 0.000000 5000
FFR1AA1 FFR3AA1 1 0 0.0000 10.000 0.000000 5000
FFR2AA1 FFR3AA1 1 0 0.0000 10.000 0.000000 5000
DDE1AA1 DDE2AA1 1 0 0.0000 10.000 0.000000 5000
DDE1AA1 DDE3AA1 1 0 0.0000 10.000 0.000000 5000
DDE2AA1 DDE3AA1 1 0 0.0000 10.000 0.000000 5000
NNL1AA1 NNL2AA1 1 0 0.0000 10.000 0.000000 5000
NNL1AA1 NNL3AA1 1 0 0.0000 10.000 0.000000 5000
NNL2AA1 NNL3AA1 1 0 0.0000 10.000 0.000000 5000
FFR2AA1 DDE3AA1 1 0 0.0000 10.000 0.000000 5000
DDE2AA1 NNL3AA1 1 0 0.0000 10.000 0.000000 5000
NNL2AA1 BBE3AA1 1 0 0.0000 10.000 0.000000 410
NNL2AA1 BBE3AA1 2 8 0.0000 10.000 0.000000 410
NNL2AA1 BBE3AA1 3 8 0.0000 10.000 0.000000 410
BBE2AA1 FFR3AA1 1 0 0.0000 10.000 0.000000 5000
##T
BBE2AA1 BBE3AA1 1 0 400.0 400.0 1000. 0.0000 10.000 0.000000 0.0 5000 PST
##R
BBE2AA1 BBE3AA1 1 -0.68 90.00 16 0 SYMM
148 changes: 148 additions & 0 deletions data/rao/N-1_case_crac_curative.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,148 @@
{
"type" : "CRAC",
"version" : "2.6",
"info" : "Generated by PowSyBl OpenRAO https://powsybl.readthedocs.io/projects/openrao",
"id" : "crac",
"name" : "crac",
"instants" : [ {
"id" : "preventive",
"kind" : "PREVENTIVE"
}, {
"id" : "outage",
"kind" : "OUTAGE"
}, {
"id" : "curative",
"kind" : "CURATIVE"
} ],
"ra-usage-limits-per-instant" : [ ],
"networkElementsNamePerId" : { },
"contingencies" : [ {
"id" : "Contingency DE2 DE3",
"networkElementsIds" : [ "DDE2AA1 DDE3AA1 1" ]
} ],
"flowCnecs" : [ {
"id" : "NNL2AA1 BBE3AA1 1 - preventive",
"name" : "NL2 BE3 1 - preventive",
"networkElementId" : "NNL2AA1 BBE3AA1 1",
"operator" : null,
"border" : "",
"instant" : "preventive",
"optimized" : true,
"monitored" : false,
"reliabilityMargin" : 0.0,
"iMax" : [ NaN ],
"nominalV" : [ 400 ],
"thresholds" : [ {
"unit" : "megawatt",
"min" : -410.0,
"max" : 410.0,
"side" : 1
} ]
}, {
"id" : "NNL2AA1 BBE3AA1 1 - Contingency DE2 DE3 - outage",
"name" : "NL2 BE3 1 - Contingency DE2 DE3 - outage",
"networkElementId" : "NNL2AA1 BBE3AA1 1",
"operator" : null,
"instant" : "outage",
"contingencyId" : "Contingency DE2 DE3",
"optimized" : true,
"monitored" : false,
"iMax" : [ NaN ],
"nominalV" : [ 400.0 ],
"thresholds" : [ {
"unit" : "megawatt",
"min" : -450.0,
"max" : 450.0,
"side" : 1
} ]
}, {
"id" : "BBE1AA1 BBE2AA1 1 - Contingency DE2 DE3 - curative",
"name" : "BE1 BE2 1 - Contingency DE2 DE3 - curative",
"networkElementId" : "BBE1AA1 BBE2AA1 1",
"operator" : null,
"instant" : "curative",
"contingencyId" : "Contingency DE2 DE3",
"optimized" : true,
"monitored" : false,
"iMax" : [ NaN ],
"nominalV" : [ 400.0 ],
"thresholds" : [ {
"unit" : "megawatt",
"min" : -300.0,
"max" : 300.0,
"side" : 1
} ]
} ],
"angleCnecs" : [ ],
"voltageCnecs" : [ ],
"pstRangeActions" : [ {
"id" : "pst-range-action",
"name" : "pst-range-action",
"operator" : null,
"onInstantUsageRules" : [ {
"instant" : "preventive",
"usageMethod" : "available"
}, {
"instant" : "curative",
"usageMethod" : "available"
} ],
"networkElementId" : "BBE2AA1 BBE3AA1 1",
"initialTap" : 0,
"tapToAngleConversionMap" : {
"-1" : -0.3896097993971608,
"0" : 0.0,
"-2" : -0.7792105912934298,
"1" : 0.3896097993971608,
"-3" : -1.1687933694373345,
"2" : 0.7792105912934298,
"-4" : -1.5583491300758083,
"3" : 1.1687933694373345,
"-5" : -1.9478688732023104,
"4" : 1.5583491300758083,
"-6" : -2.337343603803646,
"5" : 1.9478688732023104,
"-7" : -2.7267643331050597,
"6" : 2.337343603803646,
"-8" : -3.1161220798131644,
"7" : 2.7267643331050597,
"-9" : -3.505407871356285,
"8" : 3.1161220798131644,
"-10" : -3.894612745121778,
"9" : 3.505407871356285,
"-11" : -4.283727749689918,
"10" : 3.894612745121778,
"-12" : -4.672743946063913,
"11" : 4.283727749689918,
"-13" : -5.061652408895631,
"12" : 4.672743946063913,
"-14" : -5.4504442277066305,
"13" : 5.061652408895631,
"-15" : -5.839110508104064,
"14" : 5.4504442277066305,
"-16" : -6.2276423729910535,
"15" : 5.839110508104064,
"16" : 6.2276423729910535
},
"ranges" : [ {
"min" : -10,
"max" : 10,
"rangeType" : "absolute"
} ]
} ],
"hvdcRangeActions" : [ ],
"injectionRangeActions" : [ ],
"counterTradeRangeActions" : [ ],
"networkActions" : [ {
"id" : "close NL2 BE3 2",
"name" : "close NL2 BE3 2",
"operator" : null,
"onInstantUsageRules" : [ {
"instant" : "preventive",
"usageMethod" : "available"
} ],
"terminalsConnectionActions" : [ {
"networkElementId" : "NNL2AA1 BBE3AA1 2",
"actionType" : "close"
} ]
} ]
}
128 changes: 128 additions & 0 deletions data/rao/N-1_case_crac_outage.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,128 @@
{
"type" : "CRAC",
"version" : "2.6",
"info" : "Generated by PowSyBl OpenRAO https://powsybl.readthedocs.io/projects/openrao",
"id" : "crac",
"name" : "crac",
"instants" : [ {
"id" : "preventive",
"kind" : "PREVENTIVE"
}, {
"id" : "outage",
"kind" : "OUTAGE"
}, {
"id" : "curative",
"kind" : "CURATIVE"
} ],
"ra-usage-limits-per-instant" : [ ],
"networkElementsNamePerId" : { },
"contingencies" : [ {
"id" : "Contingency DE2 DE3",
"networkElementsIds" : [ "DDE2AA1 DDE3AA1 1" ]
} ],
"flowCnecs" : [ {
"id" : "NNL2AA1 BBE3AA1 1 - preventive",
"name" : "NL2 BE3 1 - preventive",
"networkElementId" : "NNL2AA1 BBE3AA1 1",
"operator" : null,
"border" : "",
"instant" : "preventive",
"optimized" : true,
"monitored" : false,
"reliabilityMargin" : 0.0,
"iMax" : [ NaN ],
"nominalV" : [ 400 ],
"thresholds" : [ {
"unit" : "megawatt",
"min" : -410.0,
"max" : 410.0,
"side" : 1
} ]
}, {
"id" : "NNL2AA1 BBE3AA1 1 - Contingency DE2 DE3 - outage",
"name" : "NL2 BE3 1 - Contingency DE2 DE3 - outage",
"networkElementId" : "NNL2AA1 BBE3AA1 1",
"operator" : null,
"instant" : "outage",
"contingencyId" : "Contingency DE2 DE3",
"optimized" : true,
"monitored" : false,
"iMax" : [ NaN ],
"nominalV" : [ 400.0 ],
"thresholds" : [ {
"unit" : "megawatt",
"min" : -450.0,
"max" : 450.0,
"side" : 1
} ]
} ],
"angleCnecs" : [ ],
"voltageCnecs" : [ ],
"pstRangeActions" : [ {
"id" : "pst-range-action",
"name" : "pst-range-action",
"operator" : null,
"onInstantUsageRules" : [ {
"instant" : "preventive",
"usageMethod" : "available"
} ],
"networkElementId" : "BBE2AA1 BBE3AA1 1",
"initialTap" : 0,
"tapToAngleConversionMap" : {
"-1" : -0.3896097993971608,
"0" : 0.0,
"-2" : -0.7792105912934298,
"1" : 0.3896097993971608,
"-3" : -1.1687933694373345,
"2" : 0.7792105912934298,
"-4" : -1.5583491300758083,
"3" : 1.1687933694373345,
"-5" : -1.9478688732023104,
"4" : 1.5583491300758083,
"-6" : -2.337343603803646,
"5" : 1.9478688732023104,
"-7" : -2.7267643331050597,
"6" : 2.337343603803646,
"-8" : -3.1161220798131644,
"7" : 2.7267643331050597,
"-9" : -3.505407871356285,
"8" : 3.1161220798131644,
"-10" : -3.894612745121778,
"9" : 3.505407871356285,
"-11" : -4.283727749689918,
"10" : 3.894612745121778,
"-12" : -4.672743946063913,
"11" : 4.283727749689918,
"-13" : -5.061652408895631,
"12" : 4.672743946063913,
"-14" : -5.4504442277066305,
"13" : 5.061652408895631,
"-15" : -5.839110508104064,
"14" : 5.4504442277066305,
"-16" : -6.2276423729910535,
"15" : 5.839110508104064,
"16" : 6.2276423729910535
},
"ranges" : [ {
"min" : -10,
"max" : 10,
"rangeType" : "absolute"
} ]
} ],
"hvdcRangeActions" : [ ],
"injectionRangeActions" : [ ],
"counterTradeRangeActions" : [ ],
"networkActions" : [ {
"id" : "close NL2 BE3 2",
"name" : "close NL2 BE3 2",
"operator" : null,
"onInstantUsageRules" : [ {
"instant" : "preventive",
"usageMethod" : "available"
} ],
"terminalsConnectionActions" : [ {
"networkElementId" : "NNL2AA1 BBE3AA1 2",
"actionType" : "close"
} ]
} ]
}
58 changes: 58 additions & 0 deletions data/rao/N_case_crac.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
{
"type" : "CRAC",
"version" : "2.6",
"info" : "Generated by PowSyBl OpenRAO https://powsybl.readthedocs.io/projects/openrao",
"id" : "crac",
"name" : "crac",
"instants" : [ {
"id" : "preventive",
"kind" : "PREVENTIVE"
}, {
"id" : "outage",
"kind" : "OUTAGE"
}, {
"id" : "curative",
"kind" : "CURATIVE"
} ],
"ra-usage-limits-per-instant" : [ ],
"networkElementsNamePerId" : { },
"contingencies" : [ ],
"flowCnecs" : [ {
"id" : "NNL2AA1 BBE3AA1 1 - preventive",
"name" : "NNL2AA1 BBE3AA1 1 - preventive",
"networkElementId" : "NNL2AA1 BBE3AA1 1",
"operator" : null,
"border" : "",
"instant" : "preventive",
"optimized" : true,
"monitored" : false,
"reliabilityMargin" : 0.0,
"iMax" : [ NaN ],
"nominalV" : [ 400 ],
"thresholds" : [ {
"unit" : "megawatt",
"min" : -410.0,
"max" : 410.0,
"side" : 1
} ]
} ],
"angleCnecs" : [ ],
"voltageCnecs" : [ ],
"pstRangeActions" : [ ],
"hvdcRangeActions" : [ ],
"injectionRangeActions" : [ ],
"counterTradeRangeActions" : [ ],
"networkActions" : [ {
"id" : "close NL2 BE3 2",
"name" : "close NL2 BE3 2",
"operator" : null,
"onInstantUsageRules" : [ {
"instant" : "preventive",
"usageMethod" : "available"
} ],
"terminalsConnectionActions" : [ {
"networkElementId" : "NNL2AA1 BBE3AA1 2",
"actionType" : "close"
} ]
} ]
}
Loading