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

Algorithm turns into infinite loop and never finishes #3

Open
jcb-entrnce opened this issue Jan 21, 2021 · 2 comments
Open

Algorithm turns into infinite loop and never finishes #3

jcb-entrnce opened this issue Jan 21, 2021 · 2 comments

Comments

@jcb-entrnce
Copy link

jcb-entrnce commented Jan 21, 2021

When tot at Cobyla.java:879 is very small, this line evaluates to temp = 0.0. This causes line 880 to divide by zero, evaluating to alpha = NaN. This eventually causes both step and stepful to both be NaN, which causes Cobyla.java:1165 to always evaluate to false (because (NaN == NaN) == false), looping forever.

This is annoying since it makes the algorithm unusable for production purposes.

@xypron
Copy link
Owner

xypron commented Jan 21, 2021

@jcb-entrnce
Thank you for reporting the issue. If you have an idea, how to fix this, please, provide a pull request.

@jcb-entrnce
Copy link
Author

jcb-entrnce commented Jan 21, 2021

@xypron Please see #4

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