lsqcurvefit - initial condition

8 views (last 30 days)
Hi I would like to contact people using the optimization toolbox, specifically lsqcurvefit on matlab version 2022a.
Actually I have some experimental data and I am trying to combine the numerical results with the experimental points by determining new optimized parameters. Unfortunately, I do not get a good fit. Every time I change the initial conditions, the results change, and that's normal. But I would like to know if there is a more practical way to keep lsqcurvefit itself finding the correct result regardless of the initial conditions? Has anyone encountered the same issue?
Thank you in advance.

Accepted Answer

Star Strider
Star Strider on 2 Oct 2022
The problem with nonlinear parameter estimation is that the results can be highly dependent on the initial parameter estimates. The best way to approach this is with Global Optimization Toolbox functions, if you have it. I particularly like the ga function, and I have also used Global or Multiple Starting Point Search approaches successfully. They will likely provide an optimal result.
  2 Comments
Sana KHALED
Sana KHALED on 3 Oct 2022
Thank you for ur answer, will try this.
Star Strider
Star Strider on 3 Oct 2022
As always, my pleasure!

Sign in to comment.

More Answers (0)

Products


Release

R2022a

Community Treasure Hunt

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

Start Hunting!