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.

# Levenberg-Marquardt in Optim.jl 0.9.0

**mzaffalon**#1

**pkofod**#4

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

**mzaffalon**#5

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.