Skip to content

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

@yvanoers

Description

@yvanoers

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

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions