Fix load variable in reserve constraint

This commit is contained in:
Max Parzen 2022-12-16 10:50:20 +00:00 committed by GitHub
parent bc8ac24c33
commit b7899787cf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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)]