필터 지우기
필터 지우기

help needed for matlab error levenberg marquardt

조회 수: 4 (최근 30일)
divya
divya 2016년 2월 14일
댓글: Star Strider 2016년 2월 15일
i am using matlab 2015 but how to get out of this error?
Error using optimset (line 213)
Unrecognized parameter name 'LevenbergMarquardt'. Please see the options table in the documentation for a list of
acceptable option parameters. Note that some parameters are only supported by OPTIMOPTIONS. Link to options table
Error in gluc_mm_mle (line 83)
options = optimset('Display','iter','TolFun', 1e-4,...%'iter' default:1e-4

채택된 답변

Star Strider
Star Strider 2016년 2월 14일
To begin with, you’re mis-spelling it. From the documentation (for optimoptions):
options = optimoptions(@lsqnonlin,'Algorithm','levenberg-marquardt','MaxFunEvals',1500)
That still may not work, depending on what solver you’re using.
In order to find out what options you have, again from the documentation for optimset:
  • options = optimset(optimfun) creates an options structure options with all option names and default values relevant to the optimization function optimfun.
  댓글 수: 7
Walter Roberson
Walter Roberson 2016년 2월 15일
Star Strider: FYI, the syntax
options = optimset('Display','iter','TolFun', 1e-4,...%default: 1e-4
'TolX',1e-5,... %default: 1e-4
'LevenbergMarquardt','on',... %default: on
'LargeScale','on'); %default: on
is fine. The ... operator defines everything remaining on the line as being a comment to be ignored, so it is as if those %default things are not there at all as far as MATLAB is concerned.
Star Strider
Star Strider 2016년 2월 15일
I cannot make any sense of that.
This is invalid MATLAB syntax:
gluc = *gluc_sim*(tspan,x0,tu, p, sigma_nu,sigma_mu,0);

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 2-D and 3-D Plots에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by