Ask Your Question

Revision history [back]

Instead of using solve, you could use solve_ineq which is more appropriate. So, you can replace:

sol=[solve(ieq[0],x[0]) for ieq in Ineq]

with

sol=[solve_ineq(ieq,[x[0]]) for ieq in Ineq]