필터 지우기
필터 지우기

TolFun don't work for lsqnonlin?

조회 수: 1 (최근 30일)
21did21
21did21 2011년 6월 7일
Hello world! i use lsqnonlin but TolFun don't work !
i do this: options = optimset('Display','iter','TolFun',1e-8) [x,resnorm] = lsqnonlin(@myfun,parametresInitiaux*normalisation,xxmin,xxmax,options)
and when i run my programm i have this message: Optimization terminated: the first-order optimality measure is less than 1e-4 times options.TolFun.
i don't want this limit: 1e-4, i want 1e-15, how i can have this ???

답변 (2개)

Walter Roberson
Walter Roberson 2011년 6월 7일
Notice that is 1e-4 times options.TolFun . Your TolFun value is 1e-8 so the optimization stopped when the "first-order optimality measure" was less than 1E-4 * 1E-8 = 1E-12 . If you want to retarget that to 1E-15 change your TolFun to 1E-11 or smaller (but then be very careful about round off error!!)

21did21
21did21 2011년 6월 7일
i sorry, my english is not very nice. So, i don't understand very well your answer...
i have try to put: options = optimset('Display','iter','TolFun',1e-15)
but i have the same problem
  댓글 수: 1
Walter Roberson
Walter Roberson 2011년 6월 7일
Please show your myfun function.

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

카테고리

Help CenterFile Exchange에서 Manual Performance Optimization에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by