We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a26d3dc commit 1e9207cCopy full SHA for 1e9207c
1 file changed
linopy/solvers.py
@@ -458,6 +458,10 @@ def solve_problem_from_file(
458
status.legacy_status = first_line
459
460
# Use HiGHS to parse the problem file and find the set of variable names, needed to parse solution
461
+ if "highs" not in available_solvers:
462
+ raise ModuleNotFoundError(
463
+ f"highspy is not installed. Please install it to use {self.solver_name.name} solver."
464
+ )
465
h = highspy.Highs()
466
h.silent()
467
h.readModel(path_to_string(problem_fn))
0 commit comments