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 d987a81 commit 0214136Copy full SHA for 0214136
test/test_model.py
@@ -1375,7 +1375,7 @@ def test_solve_relaxation(solver):
1375
1376
# double-check constraint expressions
1377
assert c1.idx == 0
1378
- expr1 = c1.expr
+ expr1 = c1.expr # store to avoid repeated calls
1379
assert expr1.expr == pytest.approx({x: 1.0, z: -10.0})
1380
assert expr1.const == pytest.approx(0.0)
1381
assert expr1.sense == mip.LESS_OR_EQUAL
@@ -1389,7 +1389,7 @@ def test_solve_relaxation(solver):
1389
1390
assert c1.slack == pytest.approx(0.5)
1391
assert c2.slack == pytest.approx(0.0)
1392
- assert c3.slack == pytest.approx(0.0)
+ assert c3.slack == pytest.approx(0.5)
1393
1394
# then compare LP relaxation
1395
# (seems to fail for CBC?!)
0 commit comments