From b7899787cf2c565d91856076d270a58d4d54ac11 Mon Sep 17 00:00:00 2001 From: Max Parzen Date: Fri, 16 Dec 2022 10:50:20 +0000 Subject: [PATCH 1/2] Fix load variable in reserve constraint --- scripts/solve_network.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/solve_network.py b/scripts/solve_network.py index d1331b0d..bcb786f0 100755 --- a/scripts/solve_network.py +++ b/scripts/solve_network.py @@ -278,7 +278,7 @@ def add_operational_reserve_margin_constraint(n, config): ).sum(1) # 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 capacity_factor = n.generators_t.p_max_pu[vres_i.difference(ext_i)] From 3dac13ac3bae6886fb82723c39fec01d87e54b49 Mon Sep 17 00:00:00 2001 From: Max Parzen Date: Fri, 16 Dec 2022 10:58:24 +0000 Subject: [PATCH 2/2] Update release_notes.rst --- doc/release_notes.rst | 2 ++ 1 file changed, 2 insertions(+) diff --git a/doc/release_notes.rst b/doc/release_notes.rst index 812712bc..b1b56416 100644 --- a/doc/release_notes.rst +++ b/doc/release_notes.rst @@ -12,6 +12,8 @@ Upcoming Release * 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) =====================================