embotech/ecos

Error for zero valued constraints

Opened this issue · 0 comments

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.