Skip to content

Commit

Permalink
Do not set e_inital for DSM and e-Mob charging
Browse files Browse the repository at this point in the history
  • Loading branch information
ClaraBuettner committed Mar 18, 2024
1 parent 9be7cbf commit ae5b2b4
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion etrago/execute/market_optimization.py
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,11 @@ def optimize_with_rolling_horizon(
)

if not n.stores.empty:
n.stores.e_initial = n.stores_t.e.loc[snapshots[start - 1]]
stores_no_dsm = n.stores[~n.stores.carrier.isin([
"dsm", "battery_storage"])].index
n.stores.loc[
stores_no_dsm, "e_initial"] = n.stores_t.e.loc[
snapshots[start - 1], stores_no_dsm]

# Select seasonal stores
seasonal_stores = n.stores.index[
Expand Down

0 comments on commit ae5b2b4

Please sign in to comment.