operations: add final iteration until end-of-year
This commit is contained in:
parent
26b21144c6
commit
574b77fcc3
@ -83,6 +83,10 @@ def solve_network_myopic(n, config, opts='', **kwargs):
|
|||||||
n.stores.e_initial = n.stores_t.e.loc[last_kept]
|
n.stores.e_initial = n.stores_t.e.loc[last_kept]
|
||||||
n.storage_units.state_of_charge_initial = n.storage_units_t.state_of_charge.loc[last_kept]
|
n.storage_units.state_of_charge_initial = n.storage_units_t.state_of_charge.loc[last_kept]
|
||||||
|
|
||||||
|
# final segment until end of year
|
||||||
|
snapshots = n.snapshots[(i + 1) * kept - 1:]
|
||||||
|
n = solve_network(n, config, opts=opts, snapshots=snapshots, **kwargs)
|
||||||
|
|
||||||
return n
|
return n
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user