How to understand solutions provided by fsolve

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

 채택된 답변

Star Strider
Star Strider 2019년 10월 26일

0 개 추천

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.

댓글 수: 2

Thanks, thats what I was assuming but could you provide me a very broef explanation how does fsolve thonk about the solution- just to be very clear about it or suggest me where I can read about it?
Arpita
As always, my pleasure.
The fsolve function is a root-finder. To understand how it works, see the Algorithms section of its documentation, as well as the links in the See Also section, that will link you to discussions of the various aspects of the algorithms. They explain it much better than I can.

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Systems of Nonlinear Equations에 대해 자세히 알아보기

질문:

2019년 10월 26일

댓글:

2019년 10월 26일

Community Treasure Hunt

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

Start Hunting!

Translated by