From 248fbfa42e9c9f3365503e68b4ee26a5b8d7c381 Mon Sep 17 00:00:00 2001 From: KathiEsterl Date: Thu, 19 Oct 2023 16:19:52 +0200 Subject: [PATCH] Add minus in chp-constraint --- etrago/tools/constraints.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/etrago/tools/constraints.py b/etrago/tools/constraints.py index 9785e580..0893523b 100755 --- a/etrago/tools/constraints.py +++ b/etrago/tools/constraints.py @@ -2929,7 +2929,7 @@ def add_chp_constraints_nmp(n): for e_chp in elec_chp ) - lhs = linexpr((1, lhs_1), (1, lhs_2)) + lhs = linexpr((1, lhs_1), (-1, lhs_2)) define_constraints( n, lhs, "<=", 0, "chplink_" + str(i), "backpressure"