Skip to content

Commit 0b264f4

Browse files
committed
test_model: add HiGHS solver conditionally
1 parent cf863d4 commit 0b264f4

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

test/test_model.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
import pytest
55

66
import mip
7+
import mip.highs
78
from mip import (
89
CBC,
910
Column,
@@ -21,9 +22,11 @@
2122
)
2223

2324
TOL = 1e-4
24-
SOLVERS = [CBC, HIGHS]
25+
SOLVERS = [CBC]
2526
if "GUROBI_HOME" in os.environ:
2627
SOLVERS += [GUROBI]
28+
if mip.highs.has_highs:
29+
SOLVERS += [HIGHS]
2730

2831
# Overall Optimization Tests
2932

0 commit comments

Comments
 (0)