We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ef5aecf commit ceaab05Copy full SHA for ceaab05
tests/test_matrix_variable.py
@@ -420,11 +420,11 @@ def test_ranged_matrix_cons_with_expr():
420
421
# test "==" operator
422
with pytest.raises(NotImplementedError):
423
- m.addMatrixCons(var + 1 == (m.addMatrixVar(3) <= 1))
+ m.addMatrixCons((m.addMatrixVar(3) <= 1) == var + 1)
424
425
# test "<=" and ">=" operator
426
x = m.addMatrixVar(3)
427
- m.addMatrixCons(var + 1 <= (x <= 1))
+ m.addMatrixCons((x <= 1) >= var + 1)
428
429
m.setObjective(x.sum())
430
m.optimize()
0 commit comments