lsqnonlin seems stuck at the same residual value,norm step and first order optimality for a while now
2 views (last 30 days)
Show older comments
Hi hi, my lsqnonlin seems stuck after 7th iteration.
Iteration Func-count f(x) step optimality CG-iters
0 9 0.247067 0.0282
1 18 0.23938 10 0.0413 0
2 27 0.238046 20 0.0464 0
3 36 0.236123 40 0.0529 0
4 45 0.232245 80 0.124 0
5 54 0.221193 160 0.0699 0
6 63 0.208611 320 0.0877 0
7 72 0.208611 34.3923 0.0877 0
8 81 0.208611 34.3923 0.0877 0
9 90 0.208611 34.3923 0.0877 0
10 99 0.208611 34.3923 0.0877 0
11 108 0.208611 34.3923 0.0877 0
12 117 0.208611 34.3923 0.0877 0
13 126 0.208611 34.3923 0.0877 0
14 135 0.208611 34.3923 0.0877 0
15 144 0.208611 34.3923 0.0877 0
16 153 0.208611 34.3923 0.0877 0
what does this mean? Thanks in advance.
5 Comments
Marylen Sun
on 26 Nov 2020
Hello, did you find a way to set up a criteria for lsqnonlin to jump to a different point when the non-differentiability happen, please?
Answers (1)
Matt J
on 26 Nov 2020
Edited: Matt J
on 27 Nov 2020
For a 3-variable problem known to have non-differentiabilities, it would make sense to use fminsearch instead of lsqnonlin. There are no differentiability requirements in fminsearch, though it works better when there is at least continuity.
It may also be practical in a 3-variable problem to sample the objective on a discrete grid and do a simple discrete search for the minimum. This is especially advisable if the function evaluations can be done in a fast, vectorized manner. If nothing else, this is often a useful way to find a good initial guess for iterative solvers like fminsearch.
0 Comments
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!