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

Error for zero valued constraints #199

Open
SteveDiamond opened this issue May 30, 2021 · 0 comments
Open

Error for zero valued constraints #199

SteveDiamond opened this issue May 30, 2021 · 0 comments

Comments

@SteveDiamond
Copy link
Collaborator

SteveDiamond commented May 30, 2021

The following cvxpy problem causes ECOS to crash:

import cvxpy as cp
a = cp.Variable ()
b = cp.Variable ()
c = cp.transforms.indicator([a+b == 5])
o = cp.Minimize (0)
p = cp.Problem(o, [c <= 0])
p.solve (verbose=True, solver=cp.ECOS)

If we investigate the inputs to ECOS with p.get_problem_data(cp.ECOS), we see that there is a single inequality constraint of the form 0 <= 0. I suspect that causes the error. The other solvers work for this problem, so it would be great if ECOS could handle it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant