I am running some code that uses LSQNONLIN with two different versions of MATLAB R2007b and R2011a and I obtain different results in the optimization. The options that I have defined in OPTIMSET are the same in both cases:
options0=optimset('Display', 'off', 'TolFun', 1e-9, 'TolX', 1e-9, 'MaxIter', 2000,...'MaxFunEvals', 2000, 'Jacobian', 'on');
However I receive a different solution. Why is that?
Best Answer