Skip to content

Commit

Permalink
Adapt parameters for GS optimisation
Browse files Browse the repository at this point in the history
  • Loading branch information
KathiEsterl committed Oct 30, 2024
1 parent 7ac36b8 commit 04bc3bb
Showing 1 changed file with 42 additions and 2 deletions.
44 changes: 42 additions & 2 deletions etrago/tools/utilities.py
Original file line number Diff line number Diff line change
Expand Up @@ -3450,7 +3450,7 @@ def add_line_with_costs_and_snommax(bus0, bus1, voltage, overhead=False):
p_nom=(1.762-0.625),
p_nom_min=(1.762-0.625),
p_nom_extendable=False,
marginal_cost=59,
marginal_cost=25, #59
capital_cost=40750,
)
gen_id = str(int(gen_id)+1)
Expand Down Expand Up @@ -3486,7 +3486,7 @@ def add_line_with_costs_and_snommax(bus0, bus1, voltage, overhead=False):
p_nom=4.35,
p_nom_min=4.35,
efficiency=0.4,
marginal_cost=5,
marginal_cost=4.4, #5
capital_cost=41800,
)
link_id = str(int(link_id)+1)
Expand Down Expand Up @@ -3621,6 +3621,44 @@ def add_line_with_costs_and_snommax(bus0, bus1, voltage, overhead=False):
)
sto_id = str(int(sto_id)+1)

# Abwärme

self.network.add("Bus", bus_id, carrier="heat", x=8.998612, y=54.646649)
self.network.buses.loc[bus_id, "scn_name"] = self.args['scn_name']
self.network.buses.loc[bus_id, "country"] = "DE"
abw_bus = bus_id
bus_id = str(int(bus_id) + 1)

self.network.add(
"Link",
name=link_id,
carrier='heat_Abw',
bus0=heat_bus,
bus1=abw_bus,
p_nom_extendable=True,
p_nom=0,
p_nom_min=0,
efficiency=1,
marginal_cost=0,
capital_cost=0,
)
link_id = str(int(link_id)+1)

self.network.add(
"Store",
name='Abw',
carrier='heat_Abw',
bus=abw_bus,
e_nom_extendable=True,
e_nom=0,
e_nom_min=0,
standing_loss=0,
e_cyclic=False,
marginal_cost=0,
capital_cost=0,
)
sto_id = str(int(sto_id)+1)

# heat load

self.network.add("Load",
Expand Down Expand Up @@ -3680,6 +3718,8 @@ def add_line_with_costs_and_snommax(bus0, bus1, voltage, overhead=False):
load = pd.DataFrame(index=load.index, columns=['load'], data=load.values)
self.network.loads_t.p_set[idx] = self.network.loads_t.p_set[idx] - load['load']

import pdb; pdb.set_trace()

if x:

time_series_set = pd.read_csv('opties-data/IES_Synth.csv').set_index('Unnamed: 0')
Expand Down

0 comments on commit 04bc3bb

Please sign in to comment.