From 6c29cf48fc1ed4984131bfaf31d0640c87ea2232 Mon Sep 17 00:00:00 2001 From: ClaraBuettner Date: Mon, 18 Mar 2024 15:10:20 +0100 Subject: [PATCH] Set DC and CH4 links bidirectional The way the unit commitment attributes are set currently overwrite existing entries --- etrago/execute/market_optimization.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/etrago/execute/market_optimization.py b/etrago/execute/market_optimization.py index d4af4c87..54db6e84 100644 --- a/etrago/execute/market_optimization.py +++ b/etrago/execute/market_optimization.py @@ -328,7 +328,7 @@ def build_market_model(self): net.links.min_up_time = net.links.min_up_time.astype(int) net.links.min_down_time = net.links.min_down_time.astype(int) net.links[committable_links.columns].loc["ramp_limit_down"] = 1. - + net.links.loc[net.links.carrier.isin(["CH4", "DC", "AC"]), "p_min_pu"] =-1. # Set stores and storage_units to cyclic net.stores.loc[net.stores.carrier!="battery_storage", "e_cyclic"] = True net.storage_units.cyclic_state_of_charge = True @@ -402,7 +402,7 @@ def build_shortterm_market_model(self): m.links[committable_links.columns] = committable_links m.links.min_up_time = m.links.min_up_time.astype(int) m.links.min_down_time = m.links.min_down_time.astype(int) - + m.links.loc[m.links.carrier.isin(["CH4", "DC", "AC"]), "p_min_pu"] =-1. # Set stores and storage_units to not cyclic # That would be in conflict with the e_min_pu and e_max_pu limit m.stores.loc[m.stores.carrier!="battery_storage", "e_cyclic"] = False