Skip to content

Commit ceaab05

Browse files
committed
Change the order
1 parent ef5aecf commit ceaab05

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/test_matrix_variable.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -420,11 +420,11 @@ def test_ranged_matrix_cons_with_expr():
420420

421421
# test "==" operator
422422
with pytest.raises(NotImplementedError):
423-
m.addMatrixCons(var + 1 == (m.addMatrixVar(3) <= 1))
423+
m.addMatrixCons((m.addMatrixVar(3) <= 1) == var + 1)
424424

425425
# test "<=" and ">=" operator
426426
x = m.addMatrixVar(3)
427-
m.addMatrixCons(var + 1 <= (x <= 1))
427+
m.addMatrixCons((x <= 1) >= var + 1)
428428

429429
m.setObjective(x.sum())
430430
m.optimize()

0 commit comments

Comments
 (0)