Skip to content

Commit 4df6f9d

Browse files
committed
make sure bound constraints are not mistakenly considered
1 parent 1dcd16d commit 4df6f9d

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

test/get_equality.jl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,9 @@ end
5151
function test_with_fixed_variables()
5252
m = JuMP.Model()
5353
@JuMP.variable(m, x[1:2])
54+
# These bound constraints are picked up, then discarded as the
55+
# one-sided interval sets never "imply equality"
56+
@JuMP.variable(m, 0 <= y <= 1)
5457
JuMP.fix(x[1], 1.0)
5558
eq_cons = get_equality_constraints(m)
5659
@test length(eq_cons) == 1

0 commit comments

Comments
 (0)