Error using optimset. Unrecognized parameter name 'large'.

조회 수: 1 (최근 30일)
Eric Watson
Eric Watson 2016년 7월 6일
댓글: Alan Weiss 2017년 10월 23일
I am using R2016 Student ($49 version) for Mac. My coworker is using R2013 Full version for Windows and when running the exact same code his works while mine displays this error:
Error using optimset (line 219)
Unrecognized parameter name 'large'. Please see the optimset reference page in the documentation for a list of
acceptable option parameters. Link to reference page.
Error in fit_seetha_2015 (line 138)
opt = optimset('disp','off','large','on','jacobi','on','tolx',1e-4,'tolf',1e-4,'maxi',120);
I have tried Google for similar issues but I can't find a fix. Could this be an issue with a missing toolbox? Version? Student? Mac?
Thanks for any help.

채택된 답변

Steven Lord
Steven Lord 2016년 7월 6일
편집: Steven Lord 2017년 10월 23일
In release R2013a, Optimization Toolbox introduced a new option named Algorithm that replaced an option named LargeScale. See the second item in the Release Notes for that release. At some point between release R2013a and the current release, the Optimization Toolbox functions stopped accepting LargeScale. [My guess is that it was when many more options were renamed in release R2016a.]
The item in the Release Notes to which I linked describes which Algorithm value corresponds to which old LargeScale value. Make that replacement in the code and it should work in both release R2013a and release R2016a.
[SL: edited to fix link to Release Notes.]
  댓글 수: 3
Walter Roberson
Walter Roberson 2017년 10월 23일
Which MATLAB version are you using? I trace GradObj back at least as far as R2015b, and find indication that it should have been supported at least as far back as R2011a.
Alan Weiss
Alan Weiss 2017년 10월 23일
The other thing to check is whether you have an Optimization Toolbox™ license. To check, enter
ver
at the MATLAB command line.
Alan Weiss
MATLAB mathematical toolbox documentation

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Introduction to Installation and Licensing에 대해 자세히 알아보기

태그

제품

Community Treasure Hunt

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

Start Hunting!

Translated by