Hello,
I am trying to fit five parameters which define the sample contribution to the peak shape. The following is an excerpt of my code:
`
prm pr1 0.007 min 0
prm pr2 0.007 min 0
prm pr3 0.007 min 0
prm pr4 0.007 min 0
prm pr5 0.007 min 0
lor_fwhm = pr1 Tan(Th) + pr2/Cos(Th) ;
gauss_fwhm = ( pr3 Tan2(Th) + pr4 Tan(Th) + pr5 )1/2 ;
`
When I refine these five parameters, I observe that the fit quality depends on the initial values I pick. Some initial values converge to good fits, while slightly different initial values converge to worse fits. I believe the minimization algorithm is getting stuck in local minima. Are there alternative minimization algorithms I could employ to be less sensitive to initial values and improve the chance of reaching a global minimum?