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
Solver 'CVXOPT' failed when solving LP #2417
Comments
Your example will be reduced to the following CVXOPT linear cone program.
However it raises If you replace
|
Interesting, thanks for your digging. I believe this issue is essentially a duplicate of #1588 , as reporting the CVXOPT ValueError would be helpful for debugging. I will mark as duplicate |
Duplicate of #1588 |
CVXPY is unable to solve a simple LP with solver set to CVXOPT
I am running cvxpy and cvxopt in a virtual environment on Ubuntu 22.04.4. After successfully pip installing both cvxpy and cvxopt, I ran the following model:
This gives the following output:
When the same model is run with the default ECOS solver, the correct answer is returned.
Looking through the traceback in cvxpy/problems/problem.py the error is being raised beginning at line 1410 in the problem.py file:
I am unsure what is causing this, but suspect it is either a syntax issue in the model formulation or a default setting on the CVXOPT solver, but it seems that either documentation is missing, a default setting is insufficient for this use case, or both, and that should be flagged for users in the documentation.
EDIT: adding that the CVXOPT solver works in this environment, for example solving the cvxpy LP example with solver=cp.CVXOPT returns correct answer.
The text was updated successfully, but these errors were encountered: