As seen in an example of fitting a tree of saxs profiles, occasionally fitting can produce strange results due to the starting guess. To avoid this, use a global minimization strategy such as manual brute force (try a few starting parameter guesses) or strategies such as basinhopping which may be already available through lmfit.
As seen in an example of fitting a tree of saxs profiles, occasionally fitting can produce strange results due to the starting guess. To avoid this, use a global minimization strategy such as manual brute force (try a few starting parameter guesses) or strategies such as
basinhopping
which may be already available throughlmfit
.