What does this have to do with the problem you’re trying to solve? What is i*pi
supposed to do?
I don’t believe you are following the instructions for Bisection in section 4.2.5 of https://web.stanford.edu/~boyd/cvxbook/bv_cvxbook.pdf .Nor, as far, as I know,is it possible to do so on your problem.