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

Feature request: Seeking stopval or callback, to give greater control over stopping criteria #220

Open
donboyd5 opened this issue Jul 13, 2022 · 1 comment

Comments

@donboyd5
Copy link

donboyd5 commented Jul 13, 2022

Hi,

I am calling LsqFit.levenberg_marquardt directly because I have found it to outperform other Julia least-squares optimizers.

My problem is potentially time consuming and I am satisfied with results that stop well before default g_tol and x_tol are reached. I find that I cannot adjust these tolerances in a way that stops at a point I like.

I would love to be able to tell the algorithm to stop when a specific objective function (sum-of-squares) value is reached (similar to stopval in NLopt.jl) or to use a callback function that returns a boolean that stops the algorithm at a point I define, similar to what is allowed in Optim.jl.

As far as I can tell neither is possible in LsqFit.levenberg_marquardt (if I am wrong and someone could tell me how to do this, I would appreciate it).

Anyway, I would love it if you could add either a callback feature or a stopval parameter to LsqFit.levenberg_marquardt.

Many thanks.

@donboyd5 donboyd5 changed the title Feature request: Seeking greater control over stopping criteria Feature request: Seeking stopval or callback, to give greater control over stopping criteria Jul 13, 2022
@pkofod
Copy link
Member

pkofod commented Sep 3, 2022

Yes, I agree.

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