-
Notifications
You must be signed in to change notification settings - Fork 18
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ValueError: H contains Nan/Inf values #23
Comments
I just reinstalled from git and it still fails. Does it work for you? numba==0.54.1 |
I tried with those package versions (and the latest Py-BOBYQA from git), with Python 3.8 on Ubuntu, but still can't replicate this error. However, looking more carefully at your traceback, you were getting the same error as #14 but from a different place in the code. I have hopefully addressed that in 7a87380 (Py-BOBYQA should now finish solving and return an error message, rather than raising an error) |
Thanks! The error is different now:
I'm using Python 3.8.10 with ubuntu 20.04. Not sure if there is a way to dump more debugging output out of Py-BOBYQA. |
I also get: /home/manu/.local/lib/python3.8/site-packages/pybobyqa/solver.py:797: RuntimeWarning: x0 below lower bound, adjusting But this is not true. |
For the "x0 below lower bound" warning, this is generated when x0 <= lower in any entry (not just strictly). In your case you have x0=lower for one entry, I think, which explains this warning. I admit, it probably shouldn't show a warning in that situation (or at least be clearer). I have opened #24 for this. For the other issue, it seems that the code might not be detecting a singular interpolation matrix properly (usually this is done by catching a LinAlgError). There are two things to try to get more information from the solver:
|
See attached log. |
Reproducible with the latest version in github. See code below for how to reproduce it.
The text was updated successfully, but these errors were encountered: