embotech / ecos

A lightweight conic solver for second-order cone programming.
GNU General Public License v3.0
478 stars 123 forks source link

Error for zero valued constraints #199

Open SteveDiamond opened 3 years ago

SteveDiamond commented 3 years ago

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.