Skip to content

Commit 0150144

Browse files
committed
restrict OCGT expansion in ST models to DE
1 parent 50b43a5 commit 0150144

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

scripts/pypsa-de/prepare_regret_network.py

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -512,15 +512,20 @@ def _unfix_bottlenecks(new, deci, name, extendable_i):
512512
# Biomass for 2035 when gas is banned
513513
"rural biomass boiler",
514514
"urban decentral biomass boiler",
515-
# OCGT as last resort to avoid load shedding
516-
# (previously the model sometimes expanded waste CHPs)
517-
"OCGT",
518515
]
519516
_idx = new.loc[new.carrier.isin(bottleneck_links)].index.intersection(
520517
extendable_i
521518
)
522519
new.loc[_idx, "p_nom_extendable"] = True
523520
new.loc[_idx, "p_nom_min"] = deci.loc[_idx, "p_nom_opt"]
521+
# OCGT as last resort to avoid load shedding
522+
# allowed only in DE
523+
# (previously the model sometimes expanded waste CHPs)
524+
_idx = new.loc[
525+
(new.carrier == "OCGT") & (new.index.str.startswith("DE"))
526+
].index.intersection(extendable_i)
527+
new.loc[_idx, "p_nom_extendable"] = True
528+
new.loc[_idx, "p_nom_min"] = deci.loc[_idx, "p_nom_opt"]
524529

525530
if name == "generators":
526531
fuels = [

0 commit comments

Comments
 (0)