How do can I improve my results using lsqnonlin

5 views (last 30 days)
Noa Regev
Noa Regev on 17 Nov 2017
Edited: Matt J on 18 Nov 2017
Hi,
I'm trying to solve a trim equation of 6 parameters using lsqnonlin. My problem is that I keep getting VERRYY different results depending on starting conditions and optimset. I set lb and ub so that keeps the values somewhat in place, but still the answers give basically random results.
I tried using ms to try and better search for a trim value but again I don't find any consistent results.
How do can I make it converge to a smaller resnorm? I reached 6, but I think I need a lower value to be sure my results are accurate.
Thanks
  6 Comments
Walter Roberson
Walter Roberson on 18 Nov 2017
You should try some of the Global Optimizations on the residue (sum of squares of differences between the desired values and the computed values.)
Matt J
Matt J on 18 Nov 2017
Edited: Matt J on 18 Nov 2017
I can't give out the code, that's thousands of lines!!
Well, what about a mathematical description of the problem? What are the equations? Is the objective function smooth? Definitely no quantization operations like round(), ceil(), fix(), etc...? What do you do currently to obtain an initial guess?

Sign in to comment.

Answers (0)

Products

Community Treasure Hunt

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

Start Hunting!