From abee72186bb405de4647a6db4337842166b9fe7c Mon Sep 17 00:00:00 2001 From: "Alexander V. Hopp" Date: Thu, 9 Jan 2025 14:44:34 +0100 Subject: [PATCH] Fix typo in constraint definition --- examples/Constraints_Continuous/interpoint.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/Constraints_Continuous/interpoint.py b/examples/Constraints_Continuous/interpoint.py index 664234b67..068471abc 100644 --- a/examples/Constraints_Continuous/interpoint.py +++ b/examples/Constraints_Continuous/interpoint.py @@ -55,7 +55,7 @@ # This example models the following interpoint constraints: # 1. The sum of `x_1` across all batches needs to be >= 2.5. # 2. The sum of `x_2` across all batches needs to be exactly 5. -# 3. The sum of `2*x_3` minus the sum of `x_4` across all batches needs to be >= 5. +# 3. The sum of `2*x_3` minus the sum of `x_4` across all batches needs to be >= 2.5. inter_constraints = [ @@ -69,7 +69,7 @@ parameters=["x_3", "x_4"], operator=">=", coefficients=[2, -1], - rhs=5, + rhs=2.5, interpoint=True, ), ]