What are all the options to improve Fsolve?
조회 수: 89 (최근 30일)
이전 댓글 표시
Hi All
Using FSolve , to solve a set of non linear equations , I get warnings like :
optimization terminated : first order optimality is less than options.TolFun.
I added :
options = optimset('MaxFunEvals',1e20);
to use as options, is it enough ? too high ? too low ?
and what are all the options that I can deliver a precise solution ?
댓글 수: 2
Torsten
2019년 6월 4일
The message you obtain is not a warning, but you are informed that the calculation has been successfully terminated.
채택된 답변
Matt J
2019년 6월 4일
The complete list of fsolve options is given here
Generally, speaking, they are tweak parameters, i.e., the best values of these parameters will be problem specific. You should, in any case, check the exitflag output,
to interpret why fsolve stopped, and if it thinks it was successful.
댓글 수: 5
Matt J
2019년 6월 5일
편집: Matt J
2019년 6월 5일
Documentation for older versions of Matlab can be found here
You need to consult the R2007 documentation page for fsolve to read about the options avaialble and their meanings. Optimoptions replaced/deprecated optimset in later versions of Matlab. Both allow you to set multiple option parameters in the same call, however. The page for optimset in R2007a, lists this as the first syntax
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Get Started with Optimization Toolbox에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!