Skip to content
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

BOBYQA gets stuck in infinite loop. #7

Closed
mfeemster opened this issue Sep 13, 2017 · 2 comments
Closed

BOBYQA gets stuck in infinite loop. #7

mfeemster opened this issue Sep 13, 2017 · 2 comments

Comments

@mfeemster
Copy link

mfeemster commented Sep 13, 2017

After calling BOBYQA successfully several thousand times in a row, it seems to be getting stuck on specific data sets. It gets into an infinite loop internally which stops calling the penalty delegate, and just stays in that loop forever. It keeps bouncing between:

if (resid <= ZERO) goto L_90;

and

if (crvmin != ZERO) goto L_50;

Upon debugging inspection, I see the s[], hq[] and other arrays have huge values in them like 2.3E141, ds is -4.9272591443386037E+132 and shs is Infinity. This leads me to believe something is wrong.

I am trying to solve for a few variables in reasonable ranges like -1000 to 1000 and am not doing anything out of the ordinary.

Do you have any idea what might lead to this and how I can overcome it?

I also am unsure what to do with the TrustRegion properties. I leave them as their default of -1.0. Would setting them to something different help out here?

Thanks.

@mfeemster
Copy link
Author

Never mind, I've found the problem. My penalty function was returning some very large numbers in rare cases. Once I solved that, I no longer get the infinite loop.

@anders9ustafsson
Copy link
Contributor

Glad to hear you worked things out, @mfeemster!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants