-
Notifications
You must be signed in to change notification settings - Fork 591
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
Use of uninitialized variable in bobyqa altmov_() #36
Comments
Hmm, digging through the BOBYQA spaghetti code, it seems like |
Maybe what is happening here is that BOBYQA doesn't handle the case where the lower and upper bounds are equal. Normally, NLopt checks for this case and eliminates empty dimensions (fixed parameters) before calling BOBYQA. However, because you have set |
Or rather, I think that it may be the default step size that is subnormal in this case. |
Should be fixed now, thanks. |
Under some circumstances the variable
ibdsav
is used uninitialized.altmov_()
in bobyqa.cThe following test code shows the situation that causes lots of NANs in
altmov_()
and leaves theibdsav
uninitialized. I have no idea, how the correct result for this input should look like - at least it shouldn't segfault. Tested on 64 Bit Linux architectures, gcc 4.8.2.nlopt-test.cc
The text was updated successfully, but these errors were encountered: