From b7899787cf2c565d91856076d270a58d4d54ac11 Mon Sep 17 00:00:00 2001 From: Max Parzen Date: Fri, 16 Dec 2022 10:50:20 +0000 Subject: [PATCH] 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)]