# Least squares with SciML NonlinearSolve.jl - how to?

**URL:** <https://discourse.julialang.org/t/least-squares-with-sciml-nonlinearsolve-jl-how-to/113074>\
**Category:** General Usage\
**Tags:** nonlinearsolve, least-squares\
**Created:** [April 17, 2024, 2:25pm UTC](https://discourse.julialang.org/t/least-squares-with-sciml-nonlinearsolve-jl-how-to/113074 "2024-04-17T14:25:02Z")\
**Posts on this page:** 1\
**Showing post:** 12

<div class="post-metadata">

**Author:** ![Eben60](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/eben60/32/13475_2.png) [@Eben60](https://discourse.julialang.org/u/Eben60)\
**Post date:** [April 18, 2024, 4:12pm UTC](https://discourse.julialang.org/t/least-squares-with-sciml-nonlinearsolve-jl-how-to/113074/12 "2024-04-18T16:12:49Z")

</div>

Paul thank you for the suggestion. Actually there are quite a few packages out there, as discussed in [this thread](https://discourse.julialang.org/t/alternatives-to-lsqfit-for-nonlinear-curve-fitting/107685/10) as well as [here](https://discourse.julialang.org/t/comparing-non-linear-least-squares-solvers/104752).

For most cases, LsqFit.jl just does the job, however I got some issues with it, and @ChrisRackauckas recommended to avoid it.

What I need is just a package which I could use for simple _curve fitting_. If there is a SciML package doing what I need, that’d be my default choice.

---

_[View the full topic](https://discourse.julialang.org/t/least-squares-with-sciml-nonlinearsolve-jl-how-to/113074)._
