ECOS BB segfaults when no integer/boolean variables
Closed this issue · 5 comments
ECOS BB segfaults if both num_bool_vars=0 and num_int_vars=0. There should be at least an error instead of a segfault. Ideally it would just call normal ecos and solve the problem.
Here's some code to trigger the issue:
from cvxpy import *
x = Variable()
prob = Problem(Minimize(x), [x >= 2])
prob.solve(solver=ECOS_BB)
Hi Steve,
Can you link me to the ecos_bb wrapper in CVXPY? The way the python interface is implemented, it should switch automatically between ecos_bb and ecos depending on if you pass in the lists of integer and boolean variables.
It's here:
https://github.com/cvxgrp/cvxpy/blob/master/cvxpy/problems/solvers/ecos_bb_intf.py
It's passing in empty lists for bool_var_idx and int_var_idx.
Thanks Steve, please pull the lastest ecos-python and rebuild. I just pushed a patch that should solve this issue.
Can I close this issue now?
Yes, that's fine.
On Tue, Jan 13, 2015 at 1:28 PM, Han Wang notifications@github.com wrote:
Can I close this issue now?
—
Reply to this email directly or view it on GitHub
#101 (comment).