Skip to content

Commit

Permalink
Fix bug in construction of endogenous transport constraint
Browse files Browse the repository at this point in the history
  • Loading branch information
koen-vg committed May 14, 2024
1 parent 8dd01d3 commit 2bed28a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/solve_network.py
Original file line number Diff line number Diff line change
Expand Up @@ -879,7 +879,7 @@ def add_endogenous_transport_constraints(n, snapshots):
f = (
n.links.loc[ev_i, "p_nom"]
.rename(n.links.bus0)
.div(n.stores.loc[bev_dsm_i, "e_nom"].rename(n.links.bus1))
.div(n.stores.loc[bev_dsm_i, "e_nom"].rename(n.stores.bus))
)

store_e_nom = n.model.variables.Store_e_nom
Expand Down

0 comments on commit 2bed28a

Please sign in to comment.