Skip to content

Commit

Permalink
fix: add mindopt license check (#393)
Browse files Browse the repository at this point in the history
  • Loading branch information
lkstrp authored Dec 13, 2024
1 parent ede48e3 commit 92b25d7
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion linopy/solvers.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,10 @@
with contextlib.suppress(ModuleNotFoundError):
import mindoptpy

available_solvers.append("mindopt")
with contextlib.suppress(mindoptpy.MindoptError):
mindoptpy.Env()

available_solvers.append("mindopt")

with contextlib.suppress(ModuleNotFoundError):
import coptpy
Expand Down

0 comments on commit 92b25d7

Please sign in to comment.