Levenberg-Marquardt in Optim.jl 0.9.0


I am trying to fix this mexjulia example and I cannot figure out what to replace levenberg_marquardt with. In particular, levenberg_marquardt returns a vector of residuals of length m but as far as I can see, all of the Optim.jl 0.9.0 optimization methods require the function to minimize to return a scalar.


I think Levenberg-Marquardt moved to LsqFit.jl


Thank you.



This is correct. We had a pretty long deprecation period though. Happy to help if something isn’t working out as expected!


The deprecation works only if one happens to use the function during the deprecation period and I didn’t. I remember reading about the splitting of the two packages, but I could not find that announcement.