Optimize warning
Hi,
Up to this day, I had ocean python libraries installed on the main python 3.7 I use, but when i started to use it, as advised, in a virtual environment, Those messages started to pop up:
/Users/.../ocean/lib/python3.7/site-packages/penaltymodel/lp/generation.py:150: OptimizeWarning: Solving system with option 'cholesky':True failed. It is normal for this to happen occasionally, especially as the solution is approached. However, if you see this frequently, consider setting option 'cholesky' to False.
A_ub=unnoted_matrix, b_ub=unnoted_bound, bounds=bounds)
And also:
/Users/.../ocean/lib/python3.7/site-packages/scipy/optimize/_linprog_ip.py:110: LinAlgWarning: Ill-conditioned matrix (rcond=4.61558e-19): result may not be accurate.
return sp.linalg.solve(M, r, sym_pos=sym_pos)
Can I do something about that?
I'll be grateful for any advice on the topic :)
Comments
Hello,
Just looking into options for you.
Have you looked at the versions of penaltymodel you had installed on the main Python 3.7?
There are a few other things you should be able to do, like installing different penalty models.
Stay tuned, and I will update with more instructions soon!
So, as far as I understand, these are just warnings, so you should be getting results back, and these warnings can just be ignored.
As for accurate results, if lp fails to return good results, another penalty model will be tried.
This means everything should be working fine and you can just use the results that are returned.
In addition, we have a ticket open to look into suppressing these warnings so they are not propagated to the user.
I hope this was helpful!
Please sign in to leave a comment.