Getting inconsistent results for fitting different series of data to a nonlinear function

1 visualizzazione (ultimi 30 giorni)
I have 15 series of experimental data taken at different frequencies. I also have a function which we think can describe the data. I am trying to fit each series of data which is taken at different frequency domains to the function and obtain the value of the fitting parameters (I have 4 fitting parameters) and use the obtained values of the fitting parameters to calculate the efficiency of the system by another equation and compare it with the experimental efficiency. The problem that I encounter is for about 5 series of data, the obtained fitting parameters make sense physically and the obtained theoretical effciency is consistent with the experimental efficiency which is good. For 3 series of data the fitted curve is good but the calculated theoretical efficiency from the obtained fitting parameters is less than experimental efficiency which is weird (by a factor of 2). And for about 5 series of data the fitted curve is not very good and it doesn't fit data well at the bottom but the calculated effciency from the fitting parameters is consistent with the experiment. I have tried many algorithms and approaches (including all the solvers compatible with my problem in optimiztion and curve fitting toolbox with their different algorithms) to solve the problem but I am still struggling.
I am wondering are there any thoughts or suggestions?
Thank you in advance!

Risposte (1)

Walter Roberson
Walter Roberson il 25 Apr 2022
Nonlinear curve fitting often encounters local minima.
Some kinds of nonlinear systems are notoriously difficult to fit properly -- especially sums of Gaussians. In general if you have a nonlinear system with multiple distinct peaks, it is common to effectively end up fitting one of the peaks and treating the other like noise.
Whether the peaks for a nonlinear system can be fit well depends a fair bit on the system... which you did not happen to describe. So the only advice we can give you is to try multistart methods.
  3 Commenti

Accedi per commentare.


Scopri di più su Systems of Nonlinear Equations in Help Center e File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by