Compatible Problem in Matlab: LineSearchType option is no longer valid in using optimset

4 views (last 30 days)
I'm the user of Matlab 2014b and I have a code in hand which is written in the previous version of Matlab, which will result in the Compatible Problem.
The old code can't be executed is listed below:
options = optimset('LargeScale', 'off', 'HessUpdate', 'dfp', 'LineSearchType', 'quadcubic','MaxFunEvals', MaxFunEvals, ... 'display', 'off', 'MaxIter', MaxIter, 'TolFun', 1e-8, 'TolX', 1e-8);
The report error is:
"LineSearchType option is no longer valid in using optimset"
I'm wondering which is the new function that can help me get the same results? Alternatively, is any code can support the Matlab to run the old code?
Your help is very appreciated.

Answers (1)

Matt J
Matt J on 30 Oct 2020
options = optimset('LargeScale', 'off', 'HessUpdate', 'dfp','MaxFunEvals', MaxFunEvals, ...
'display', 'off', 'MaxIter', MaxIter, 'TolFun', 1e-8, 'TolX', 1e-8)

Community Treasure Hunt

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

Start Hunting!