Since keyboard interrupt support was added for HiGHS:
|
self._solver_model.HandleKeyboardInterrupt = True |
the minimum version of highspy required is 1.8.0.
This is not enforced or mentioned anywhere, so when this code is called using an earlier version, it fails with:
AttributeError: 'Highs' object has no attribute 'HandleKeyboardInterrupt'
Expected behavior:
A check on the highspy version and a message or exception if insufficient, much like the check for the Gurobi solver:
|
if gurobipy.GRB.VERSION_MAJOR < 7: |
|
Gurobi._available = Gurobi.Availability.BadVersion |
|
raise ImportError('The APPSI Gurobi interface requires gurobipy>=7.0.0') |
Since keyboard interrupt support was added for HiGHS:
pyomo/pyomo/contrib/appsi/solvers/highs.py
Line 250 in 03dcc22
the minimum version of highspy required is 1.8.0.
This is not enforced or mentioned anywhere, so when this code is called using an earlier version, it fails with:
Expected behavior:
A check on the highspy version and a message or exception if insufficient, much like the check for the Gurobi solver:
pyomo/pyomo/contrib/appsi/solvers/gurobi.py
Lines 54 to 56 in 03dcc22