Skip to content

Commit a1cf555

Browse files
authored
Merge pull request #3511 from michaelbynum/highspy_version
fix highspy version check for keyboard interrupt
2 parents db80ff9 + 89c6da5 commit a1cf555

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pyomo/contrib/appsi/solvers/highs.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -273,7 +273,7 @@ def _solve(self, timer: HierarchicalTimer):
273273
self._warm_start()
274274
timer.start('optimize')
275275
ostreams[-1].write("RUN!\n")
276-
if self.version()[0] >= 1 and self.version()[1] >= 8:
276+
if self.version()[:2] >= (1, 8):
277277
self._solver_model.HandleKeyboardInterrupt = True
278278
self._solver_model.run()
279279
timer.stop('optimize')

0 commit comments

Comments
 (0)