Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

highspy >=1.8.0 required but this is not checked #3489

Open
yvanoers opened this issue Feb 24, 2025 · 0 comments
Open

highspy >=1.8.0 required but this is not checked #3489

yvanoers opened this issue Feb 24, 2025 · 0 comments
Assignees

Comments

@yvanoers
Copy link

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')

@michaelbynum michaelbynum self-assigned this Feb 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants