-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Bug with the sequential domain reduction #476
Comments
Hey @till-m , |
Hey @pawlissimo, my apologies, I know this is annoying. I'm looking into getting this done over the next two weeks (possibly actually today, but no promises). In the meantime, you can always install directly from github. If you don't know how to do that, let me know how you usually install packages and I can help you. |
Hey @pawlissimo @bwkong, I've pushed release 1.5.0 (big thanks to @Panaetius). Could you download the latest version and let me know if it fixes the problem for you? |
Hi @till-m , Btw, just updated my local conda env and verified that the latest In shorts:
Hope, it makes sense and you could point me out on the mistake in my approach P.S. I carefully read whole documentation and followed most of examples., but was not able to find the proper way. |
Hi @pawlissimo This sounds like a slightly different problem to me, in all likelihood related to the serialization of the optimizer/transformer. If I am reading correctly, the problem is not related to the trim or clamping logic of the bounds transformer, but the transformer doesn't work at all? If yes, could you please open a separate issue, ideally with a code snippet that allows us to reproduce the problem? |
It could be a separate issue or slightly related to this one (based on my understanding ot the code and logic). |
Closing in facor of #468 |
Bug1
In domain_reduction.py, line 105-108:
for i, entry in enumerate(new_bounds):
if entry[0] > entry[1]:
new_bounds[i, 0] = entry[1]
new_bounds[i, 1] = entry[0]
I guess it aims to swap the values of two entries but it does not work in that way. When
new_bounds[i, 0]
is rewritten,entry[0]
will also be rewritten andnew_bounds[i, 1]
cannot be designated the appropriate value.Bug2
new_bounds
in the functiontransform
in domain_reduction.py is never trimmed:line 147:
self._trim(new_bounds, self.original_bounds)
is doing nothing.Instead, it should be like:
new_bounds = self._trim(new_bounds, self.original_bounds)
These have caused new bounds not within the original bounds.
The text was updated successfully, but these errors were encountered: