Merge pull request #451 from PyPSA/pz-max-patch-1
Fix load variable in reserve constraint
This commit is contained in:
commit
a22dc9238d
@ -12,6 +12,8 @@ Upcoming Release
|
|||||||
|
|
||||||
* Carriers of generators can now be excluded from aggregation in clustering network and simplify network.
|
* Carriers of generators can now be excluded from aggregation in clustering network and simplify network.
|
||||||
|
|
||||||
|
* Bugfix in the reserve constraint will increase demand related reserve requirements
|
||||||
|
|
||||||
PyPSA-Eur 0.6.1 (20th September 2022)
|
PyPSA-Eur 0.6.1 (20th September 2022)
|
||||||
=====================================
|
=====================================
|
||||||
|
|
||||||
|
@ -278,7 +278,7 @@ def add_operational_reserve_margin_constraint(n, config):
|
|||||||
).sum(1)
|
).sum(1)
|
||||||
|
|
||||||
# Total demand at t
|
# Total demand at t
|
||||||
demand = n.loads_t.p.sum(1)
|
demand = n.loads_t.p_set.sum(1)
|
||||||
|
|
||||||
# VRES potential of non extendable generators
|
# VRES potential of non extendable generators
|
||||||
capacity_factor = n.generators_t.p_max_pu[vres_i.difference(ext_i)]
|
capacity_factor = n.generators_t.p_max_pu[vres_i.difference(ext_i)]
|
||||||
|
Loading…
Reference in New Issue
Block a user