I am going to develop a matlab code to optimize my problem by means of Gauss-Newton optimization method. I am doing the iterations by a while loop. x2 and x1 are new and former parameters respectively. after obtaining the x2 in each iteration I have put x1=x2, so x2 will be the current parameter in the next iteration to get another new parameter.
I run my program, However it does not improve after 2 iterations! that is, the obtained parameters are the same as the previous ones after second iteration.
does anyone know what the problem is?
0 · ·