Fit function between specific y values

I have already answered to this question in Fit function uses initial parameter values

@evdv it is not efficient to open different posts for the same problem. Please refrain to do it, It just creates confusion