MATLAB: How to understand solutions provided by fsolve

fsolve exitflag solution non-linear

Hi,
I am using fsolve to solve a system of non-linear equations. However, my solutions (from complex values to positive) and exitflag (from -2 to 1) change a lot with a change in initial values and parameter values- does that mean that I need to check my equations and there is a problem with that?
Thanks in Advance,
Arpita

Best Answer

Nonlinear optimisation functions are sensitive — and can be very sensitive — to the initial estimates. If your equations re coded correctly, there is no problem with different solutions with respect to different initial parameter estimates.