Skip to content

Commit

Permalink
Set DC and CH4 links bidirectional
Browse files Browse the repository at this point in the history
The way the unit commitment attributes are set currently overwrite existing entries
  • Loading branch information
ClaraBuettner committed Mar 18, 2024
1 parent ae5b2b4 commit 6c29cf4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions etrago/execute/market_optimization.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 6c29cf4

Please sign in to comment.