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

Use cvxpy to abstract MILP solver #19

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 2 additions & 6 deletions pycombina/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,11 @@
from ._binary_approximation import BinApprox

try:
import gurobipy

if gurobipy.gurobi.version() < (8, 0, 0):
raise ImportError
import cvxpy

from ._combina_milp import CombinaMILP
except ImportError:
print("- gurobipy version > 8.0.0 not found, CombinaMILP disabled.\n")
print("- cvxpy not found, CombinaMILP disabled.\n")

try:
from ._combina_bnb import CombinaBnB
Expand All @@ -41,4 +38,3 @@
from ._combina_sur import CombinaSUR
except ImportError:
print("- Sum-Up-Rounding solver extension not found, CombinaSUR disabled.\n")

Loading