From 1cd658c03fe3168154604cad7f8fcf07909c455b Mon Sep 17 00:00:00 2001 From: lisazeyen <35347358+lisazeyen@users.noreply.github.com> Date: Thu, 20 Apr 2023 09:55:50 +0200 Subject: [PATCH] rename constraint rename constraint to fit to other syntax Co-authored-by: Fabian Hofmann --- 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 30540da0..5b580bac 100644 --- a/scripts/solve_network.py +++ b/scripts/solve_network.py @@ -463,7 +463,7 @@ def add_operational_reserve_margin(n, sns, config): rhs = (p_max_pu[fix_i] * capacity_fixed).reindex(columns=gen_i, fill_value=0) - n.model.add_constraints(lhs <= rhs, name="updated_capacity_constraint") + n.model.add_constraints(lhs <= rhs, name="Generator-p-reserve-upper") def add_battery_constraints(n):