-
-
Notifications
You must be signed in to change notification settings - Fork 5.1k
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
scipy.optimize.minimise - ValueError: x0
violates bound constraints
#14084
Comments
Ah I am using scipy==1.5.4 - I will try this soon (I've made a fix for now and I need to get something done with this fix in place) and get back to you. I did try to upgrade scipy but it suggested I had the most recent version - I will install it explicitly. |
Yeah... ERROR: Could not find a version that satisfies the requirement scipy==1.6.* (from versions: 0.8.0, 0.9.0, 0.10.0, 0.10.1, 0.11.0, 0.12.0, 0.12.1, 0.13.0, 0.13.1, 0.13.2, 0.13.3, 0.14.0, 0.14.1, 0.15.0, 0.15.1, 0.16.0, 0.16.1, 0.17.0, 0.17.1, 0.18.0, 0.18.1, 0.19.0, 0.19.1, 1.0.0b1, 1.0.0rc1, 1.0.0rc2, 1.0.0, 1.0.1, 1.1.0rc1, 1.1.0, 1.2.0rc1, 1.2.0rc2, 1.2.0, 1.2.1, 1.2.2, 1.2.3, 1.3.0rc1, 1.3.0rc2, 1.3.0, 1.3.1, 1.3.2, 1.3.3, 1.4.0rc1, 1.4.0rc2, 1.4.0, 1.4.1, 1.5.0rc1, 1.5.0rc2, 1.5.0, 1.5.1, 1.5.2, 1.5.3, 1.5.4) That version isn't released yet |
It's definitely released, https://pypi.org/project/scipy/1.6.3/ |
Requires: Python >=3.7, <3.10 ^^ that is my problem my b - so this issue is still apparent in the 3.6 version of python |
Hi @Kieran-Bacon, as you pointed out we are not supporting anymore python 3.6. That being said, you could try to install from source on Python 3.6–but again we would not provide support as we have limited ressources. In case you are not aware of it, Python 3.6 is out of support. The issue being fixed I propose to close this then. @andyfaff, agreed? |
Yes - happy with that. Thanks for your help! Where should I have seen that python3.6 was no longer supported for future reference? |
For SciPy supported versions it is here: https://scipy.github.io/devdocs/dev/toolchain.html#python-versions |
I'm getting an
x0
violates bound constraints while running the minimize function - it seems that this issue doesn't appear for all targets but appears almost randomly.Investigating where the issue is raised and printing out the values - you can see that an equality fails rasing an error, despite the values on first look seeming fine.
Looking precisely at those values the x0 margins turns out to be 0.0499999999999
It shouldn't be the case that the minimize functions updates x0 to an invalid value. (also the documentation (https://docs.scipy.org/doc/scipy/reference/generated/scipy.optimize.minimize.html) doesn't even mention that this error can be raised.)
python3.6.9
scipy==1.5.4
Reproducing code example:
Error message:
Scipy/Numpy/Python version information:
The text was updated successfully, but these errors were encountered: