Skip to content

Commit

Permalink
Fix print statement in example that broke doc building
Browse files Browse the repository at this point in the history
  • Loading branch information
AVHopp committed Nov 22, 2024
1 parent 1e65b7b commit fcdd291
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions examples/Constraints_Continuous/interpoint.py
Original file line number Diff line number Diff line change
Expand Up @@ -106,14 +106,14 @@
# Check interpoint constraints

print(
"Is the sum of `x_1` across all batches needs at least >= 2.5?",
"The sum of `x_1` across all batches is at least >= 2.5",
rec["x_1"].sum() >= 2.5 - TOLERANCE,
)
print(
"Is the sum of `x_2` across all batches exactly 5?",
"The sum of `x_2` across all batches is exactly 5",
np.isclose(rec["x_2"].sum(), 5),
)
print(
"Is the sum of `2*x_3` minus the sum of `x_4` across all batches at least >= 5?",
"The sum of `2*x_3` minus the sum of `x_4` across all batches is at least >= 5",
2 * rec["x_3"].sum() - rec["x_4"].sum() >= 2.5 - TOLERANCE,
)

0 comments on commit fcdd291

Please sign in to comment.