--
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+unsubscribe@googlegroups.com.
To post to this group, send email to lmfi...@googlegroups.com.
Visit this group at https://groups.google.com/group/lmfit-py.
To view this discussion on the web visit https://groups.google.com/d/msgid/lmfit-py/622fbec3-299b-411f-b44d-9778a9980196%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
You can try differential_evolution, it's also a good global minimum finder.
On 1 November 2017 at 10:36, Yann Fichou <y.fi...@gmail.com> wrote:
Hi everyone,I'm using the lmfit tools to fit multidimensional data (mostly following this pattern https://github.com/lmfit/lmfit-py/blob/master/examples/fit_multi_datasets.py).My global fit works well, but I find myself often stuck in local minima. My experience is that the basinhopping algorithm is good to avoid this kind of issue.Is there a way to implement scipy.optimize.basinhopping with the lmfit library?It is my understanding that scipy.optimize.minimize, which is called by scipy.optimize.basinhopping, is slightly different from lmfit.minimize. In particular, I would not know how to pass the Parameters into the scipy.optimize.basinhopping.To be clear, here is my current fitting line :>res = lmfit.minimize(residGlob, fit_params, args=(xdata, dataToFit1, dataToFit2))Can we do something like :basinhopping(residGlob, fit_params, args=(xdata, dataToFit1, dataToFit2))?Alternatively, any suggestion on how to find global minima with the lmfit tools?Thanks a lot,Yann
--
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 post to this group, send email to lmfi...@googlegroups.com.
Visit this group at https://groups.google.com/group/lmfit-py.
To view this discussion on the web visit https://groups.google.com/d/msgid/lmfit-py/622fbec3-299b-411f-b44d-9778a9980196%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
To unsubscribe from this group and stop receiving emails from it, send an email to lmfit-py+unsubscribe@googlegroups.com.
To post to this group, send email to lmfi...@googlegroups.com.
Visit this group at https://groups.google.com/group/lmfit-py.
To view this discussion on the web visit https://groups.google.com/d/msgid/lmfit-py/c3ac840d-9b12-4197-903b-97e78f696de0%40googlegroups.com.
Hi everyone,I'm using the lmfit tools to fit multidimensional data (mostly following this pattern https://github.com/lmfit/lmfit-py/blob/master/examples/fit_multi_datasets.py).My global fit works well, but I find myself often stuck in local minima. My experience is that the basinhopping algorithm is good to avoid this kind of issue.Is there a way to implement scipy.optimize.basinhopping with the lmfit library?
To view this discussion on the web visit https://groups.google.com/d/msgid/lmfit-py/a7974075-1dda-4d04-8444-e7298c54f41d%40googlegroups.com.
Thanks for you answers.Matt, I agree with you that it basically "only" asks volunteer work. I actually looked into the basinhopping module, naively hoping to simply switch a optimize.minimize function to a lmfit.minimize, but it does not seem to be so simple :). It would requires a bit of formal programming training, which I completely lack. It makes me even more grateful to you guys for developing such nice tools and for making it public.I do hope someone will be able to implement basinhopping or .AMPGO (didn't know it) to accomodate Parameters, I feel like it would add some value to the lmfit project.Renee, that's a good idea and that's what I'm doing, running global search and then do local minimization.Yann