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

Option to bypass bracketMinimum's exponential increase in dx #5

Open
AlvyneZ opened this issue Jul 31, 2024 · 0 comments
Open

Option to bypass bracketMinimum's exponential increase in dx #5

AlvyneZ opened this issue Jul 31, 2024 · 0 comments

Comments

@AlvyneZ
Copy link

AlvyneZ commented Jul 31, 2024

I like the package and I'm trying to integrate it into a project I'm working on.

The function I want to search through has multiple extremas that do not have a predictable period between each other. With the exponential increase in dx, the minimize will miss a couple of extremas which is unacceptable in my use case.

Everything works perfectly after this line (ln46) of bracket-minimum.js is commented out:

dx *= n < 4 ? 2 : Math.exp(n * 0.5);

I think adding this option will make the function much more robust.
Thanks.

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

1 participant