-
Notifications
You must be signed in to change notification settings - Fork 19
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
cvxopt should be an optional dependency #15
Comments
We have replaced all of the "I was able to run the ‘continuous.py’ script with an input bound of 1.0 in 11:42 using scipy. This is is still much slower than using cvxopt with glpk, which solved it in 1:47, but is much better than cvxopt without glpk. I found a similar result when running ‘pwa.py’ (input bound of 0.4). Scipy ran it in 85.0 seconds and cvxopt with glpk ran it in 17.41 seconds—both better than cvxopt without glpk." Note that the first example above stalls when using I suggest the following changes that will render
Let me know if you have any suggestions. Andrew can create a pull-request that implements the suggested changes if it sounds OK for everyone. |
I think this is a good option. It can be achieved by trying to use try:
import cvxopt.glpk
solver = 'glpk'
except ImportError:
import scipy._....
solver = 'scipy' |
On PyPI there are This is not to recommend changing |
cvxopt
is a notorious dependency, both in terms of installing and using it. We should aspire to regarding it as optional becausepolytope
can still be useful without having an optimization package available, andcvxopt
optional is some progress in that direction.An example of how to achieve this is being considered for introduction into Tulip. The relevant pull request there is 122.
The text was updated successfully, but these errors were encountered: