# Alternatives to LsqFit for nonlinear curve fitting?

**URL:** <https://discourse.julialang.org/t/alternatives-to-lsqfit-for-nonlinear-curve-fitting/107685>\
**Category:** General Usage\
**Tags:** curve-fitting\
**Created:** [December 15, 2023, 7:58pm UTC](https://discourse.julialang.org/t/alternatives-to-lsqfit-for-nonlinear-curve-fitting/107685 "2023-12-15T19:58:11Z")\
**Posts on this page:** 1\
**Showing post:** 12

<div class="post-metadata">

**Author:** ![stevengj](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/stevengj/32/71_2.png) [@stevengj](https://discourse.julialang.org/u/stevengj)\
**Post date:** [December 19, 2023, 4:28pm UTC](https://discourse.julialang.org/t/alternatives-to-lsqfit-for-nonlinear-curve-fitting/107685/12 "2023-12-19T16:28:03Z")

</div>

> [@bjarthur](#):
>
> so [LsqFit.jl](https://juliahub.com/ui/Packages/LsqFit) then is the go-to package for fitting equations like this in julia? no one who responded to this post so far has addressed this portion of the OP.

There are plenty of other optimization packages if you want to treat least-square fitting as a general optimization problem.

But if you want to take advantage of the special structure of least-square optimization, some options currently seem to be LsqFit.jl, [LeastSquaresOptim.jl](https://github.com/matthieugomez/LeastSquaresOptim.jl), [NLLSsolver.jl](https://github.com/ojwoodford/NLLSsolver.jl), and [ManOpt.jl](https://manoptjl.org/stable/solvers/LevenbergMarquardt/). (_Update:_ See replies for more packages.) See also [Comparing non-linear least squares solvers](https://discourse.julialang.org/t/comparing-non-linear-least-squares-solvers/104752)

In the particular problem raised in the present thread, however, the lack of robustness was intrinsic to the optimization problem being posed rather than a property of the algorithm, since the minimum was ill-conditioned.

---

_[View the full topic](https://discourse.julialang.org/t/alternatives-to-lsqfit-for-nonlinear-curve-fitting/107685)._
