{"action":"created","issue":{"url":"https://api.github.com/repos/stevengj/nlopt/issues/133","repository_url":"https://api.github.com/repos/stevengj/nlopt","labels_url":"https://api.github.com/repos/stevengj/nlopt/issues/133/labels{/name}","comments_url":"https://api.github.com/repos/stevengj/nlopt/issues/133/comments","events_url":"https://api.github.com/repos/stevengj/nlopt/issues/133/events","html_url":"https://github.com/stevengj/nlopt/issues/133","id":252261916,"number":133,"title":"Bobyqa uninitialised variables in rare cases","user":{"login":"ocommowi","id":2983208,"avatar_url":"https://avatars3.githubusercontent.com/u/2983208?v=4","gravatar_id":"","url":"https://api.github.com/users/ocommowi","html_url":"https://github.com/ocommowi","followers_url":"https://api.github.com/users/ocommowi/followers","following_url":"https://api.github.com/users/ocommowi/following{/other_user}","gists_url":"https://api.github.com/users/ocommowi/gists{/gist_id}","starred_url":"https://api.github.com/users/ocommowi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ocommowi/subscriptions","organizations_url":"https://api.github.com/users/ocommowi/orgs","repos_url":"https://api.github.com/users/ocommowi/repos","events_url":"https://api.github.com/users/ocommowi/events{/privacy}","received_events_url":"https://api.github.com/users/ocommowi/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2017-08-23T12:20:52Z","updated_at":"2017-08-24T07:37:34Z","closed_at":null,"body":"Hello,\r\n\r\nI know this is a follow-up to issue #36 but I do not know how to re-open it. I stumbled on the same problem (segmentation fault in altmov_ due to two variables being uninitialised) when using bobyqa together with the augmented lagrangian and a small tolerance as stopping criterion (10^-12). \r\n\r\nI ended up modifying the code of bobyqa a very little which made it work:\r\n\r\n - line 764 : int ksav = 1;\r\n- line 768 : int ibdsav = 1;\r\n\r\nThis is only an ugly correction but I would be curious to know if someone has a better option to avoid this (I suspect all of this comes from the optimised parameters being a tiny little outside the bounds when entering bobyqa - from auglag - , which does not check for it)\r\n\r\nThanks"},"comment":{"url":"https://api.github.com/repos/stevengj/nlopt/issues/comments/324558118","html_url":"https://github.com/stevengj/nlopt/issues/133#issuecomment-324558118","issue_url":"https://api.github.com/repos/stevengj/nlopt/issues/133","id":324558118,"user":{"login":"ocommowi","id":2983208,"avatar_url":"https://avatars3.githubusercontent.com/u/2983208?v=4","gravatar_id":"","url":"https://api.github.com/users/ocommowi","html_url":"https://github.com/ocommowi","followers_url":"https://api.github.com/users/ocommowi/followers","following_url":"https://api.github.com/users/ocommowi/following{/other_user}","gists_url":"https://api.github.com/users/ocommowi/gists{/gist_id}","starred_url":"https://api.github.com/users/ocommowi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ocommowi/subscriptions","organizations_url":"https://api.github.com/users/ocommowi/orgs","repos_url":"https://api.github.com/users/ocommowi/repos","events_url":"https://api.github.com/users/ocommowi/events{/privacy}","received_events_url":"https://api.github.com/users/ocommowi/received_events","type":"User","site_admin":false},"created_at":"2017-08-24T07:37:34Z","updated_at":"2017-08-24T07:37:34Z","body":"I would say yes, I am going to try, thanks ! However, in tour PR, I would be careful in bobyqa. Since it's a translation of a fortran code with indexes starting at 1, I think it is better to make the default values of the index variables (such as the ones I mentioned earlier) be 1 instead of 0. I might be wrong though, I get lost easily with these indexing problems"}}
{"actor":{"display_login":"ocommowi"}}