Hi Melika,
> I would like to know how to fit a 2d model with multiple peaks. I have used leastsq and cg methods, but the fit is not good, some parameters are at the initial or the fit is not successful!
Without some details of what you did, we cannot give much guidance beyond what is already documented, including at places like
https://lmfit.github.io/lmfit-py/faq.html#why-are-parameter-values-sometimes-stuck-at-initial-values
We always encourage posting a minimal but complete example. That way, we can better understand what you are doing, and maybe help identify the problem. The process of simplifying code to an example that others might be able to understand is also a good way to find such problems.
--Matt
--
You received this message because you are subscribed to the Google Groups "lmfit-py" group.
To unsubscribe from this group and stop receiving emails from it, send an email to lmfit-py+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/lmfit-py/MN6PR11MB8219B7FF8FEF26F2B983B55596C42%40MN6PR11MB8219.namprd11.prod.outlook.com.