Skip to content

Commit 5e804e7

Browse files
committed
don't use highslib if not available
1 parent 42f5386 commit 5e804e7

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

mip/highs.py

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -167,13 +167,12 @@
167167
if has_highs:
168168
ffi.cdef(HEADER)
169169

170-
STATUS_ERROR = highslib.kHighsStatusError
170+
STATUS_ERROR = highslib.kHighsStatusError
171171

172-
173-
def check(status):
174-
"Check return status and raise error if not OK."
175-
if status == STATUS_ERROR:
176-
raise mip.InterfacingError("Unknown error in call to HiGHS.")
172+
def check(status):
173+
"Check return status and raise error if not OK."
174+
if status == STATUS_ERROR:
175+
raise mip.InterfacingError("Unknown error in call to HiGHS.")
177176

178177

179178
class SolverHighs(mip.Solver):

0 commit comments

Comments
 (0)