Skip to content

Commit 88fe800

Browse files
committed
fix breaking tests with new preset
1 parent c90edde commit 88fe800

2 files changed

Lines changed: 3 additions & 0 deletions

File tree

tests/test_iis.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,8 @@ def test_custom_iis_finder():
5858

5959
def test_iisGreddyMakeIrreducible():
6060
m = infeasible_model()
61+
62+
m.setParam("iis/greedy/priority", -1)
6163
my_iis = myIIS(m, skip=True)
6264
m.includeIISfinder(my_iis, "", "")
6365
iis = m.generateIIS()

tests/test_model.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -558,6 +558,7 @@ def test_getVarPseudocost():
558558
p = m.getVarPseudocost(var, SCIP_BRANCHDIR.UPWARDS)
559559
assert m.isEQ(p, 1)
560560

561+
m.optimize()
561562
m.updateVarPseudocost(var, 1, 12, 1)
562563
p = m.getVarPseudocost(var, SCIP_BRANCHDIR.UPWARDS)
563564

0 commit comments

Comments
 (0)