-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Closed
Labels
maintenanceContinuous integration, unit testing & package distributionContinuous integration, unit testing & package distribution
Description
@robertmartin8 That's a good point. When running the discrete allocation without any MI solvers (or only ECOS_BB), cvxpy raises a very informative error, detailing the issue. It also provides two quick fixes to the user:
Quick fix 1: if you install the python package CVXOPT (pip install cvxopt),
then CVXPY can use the open-source mixed-integer solver `GLPK`.
Quick fix 2: you can explicitly specify solver='ECOS_BB'. This may result
in incorrect solutions and is not recommended.
One could even go one step further and catch it early, but I do not think that would add a lot of value.
Another approach would be to switch the default MI solver to either CPLEX or XPRESS. Both run the tests just fine and I never had an issue with installation. Check the cvxpy Docs for the limitations. Even though they are installing the free editions by default, some users might have issues with closed source dependencies for various reasons.
Originally posted by @phschiele in #284 (comment)
Metadata
Metadata
Assignees
Labels
maintenanceContinuous integration, unit testing & package distributionContinuous integration, unit testing & package distribution