From 6bab2c2e6e75ee5f394d3e9a416a636a85e7c13f Mon Sep 17 00:00:00 2001 From: "Alexander V. Hopp" Date: Thu, 9 Jan 2025 14:07:25 +0100 Subject: [PATCH] Update hypothesis strategy for continuous linear inequalities --- tests/hypothesis_strategies/constraints.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tests/hypothesis_strategies/constraints.py b/tests/hypothesis_strategies/constraints.py index a1acf10c3..a2fab2b9b 100644 --- a/tests/hypothesis_strategies/constraints.py +++ b/tests/hypothesis_strategies/constraints.py @@ -236,12 +236,15 @@ def continuous_linear_constraints( ) ) rhs = draw(finite_floats()) + is_interpoint = draw(st.booleans()) # Optionally add the operator operators = operators or ["=", ">=", "<="] operator = draw(st.sampled_from(operators)) - return ContinuousLinearConstraint(parameter_names, operator, coefficients, rhs) + return ContinuousLinearConstraint( + parameter_names, operator, coefficients, rhs, is_interpoint + ) continuous_linear_equality_constraints = partial(