File "/home/callegar/.local/lib/python2.7/site-packages/cvxpy/procedures/call_solver.py", line 77, in call_solver
r = solvers.conelp(c,G,h,dims,A,b)
File "/home/callegar/.local/lib/python2.7/site-packages/cvxopt/coneprog.py", line 1400, in conelp
misc.update_scaling(W, lmbda, ds, dz)
File "/home/callegar/.local/lib/python2.7/site-packages/cvxopt/misc.py", line 628, in update_scaling
a = 1.0 / math.sqrt(lmbda[ind+i])
ZeroDivisionError: float division by zero
The problems derives from an application where cvxopt is indirectly called via the cvxpy DCP wrapper by Tinoco de Rubeira (http://www.stanford.edu/~ttinoco/cvxpy/start.html, possibly now superseeded).
What is puzzling me is that the ZeroDivisionError only occurs about 1 time over 5 restarting the same code with the same data.
Any clue at how to avoid it?
Hi,Do you have a small example? Multithreaded execution may lead to different results with the same data because of roundoff errors.
Martin
On Monday, September 30, 2013 4:05:30 PM UTC+2, Sergio wrote:Hi,
I have a problem where cvxopt at times fails with a 'float division by zero' exception.
This uses the conelp solver and exits with a stack trace ending in
File "/home/callegar/.local/lib/python2.7/site-packages/cvxpy/procedures/call_solver.py", line 77, in call_solver
r = solvers.conelp(c,G,h,dims,A,b)
File "/home/callegar/.local/lib/python2.7/site-packages/cvxopt/coneprog.py", line 1400, in conelp
misc.update_scaling(W, lmbda, ds, dz)
File "/home/callegar/.local/lib/python2.7/site-packages/cvxopt/misc.py", line 628, in update_scaling
a = 1.0 / math.sqrt(lmbda[ind+i])
ZeroDivisionError: float division by zero
The problems derives from an application where cvxopt is indirectly called via the cvxpy DCP wrapper by Tinoco de Rubeira (http://www.stanford.edu/~ttinoco/cvxpy/start.html, possibly now superseeded).
What is puzzling me is that the ZeroDivisionError only occurs about 1 time over 5 restarting the same code with the same data.
Any clue at how to avoid it?
--
You received this message because you are subscribed to the Google Groups "CVXOPT" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cvxopt+un...@googlegroups.com.
To post to this group, send email to cvx...@googlegroups.com.
Visit this group at http://groups.google.com/group/cvxopt.
For more options, visit https://groups.google.com/groups/opt_out.
The problem is the strict reltol/abstol which is far beyond what you can expect from a double precision solver. Consider using SDPA-GMP (http://sdpa.sourceforge.net) if you need high accuracy.
Martin