Skip to content

Commit

Permalink
Fix typo in constraint definition
Browse files Browse the repository at this point in the history
  • Loading branch information
AVHopp committed Jan 9, 2025
1 parent af03496 commit abee721
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/Constraints_Continuous/interpoint.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 = [
Expand All @@ -69,7 +69,7 @@
parameters=["x_3", "x_4"],
operator=">=",
coefficients=[2, -1],
rhs=5,
rhs=2.5,
interpoint=True,
),
]
Expand Down

0 comments on commit abee721

Please sign in to comment.