Compatible Problem in Matlab: LineSearchType option is no longer valid in using optimset
Show older comments
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.
1 Comment
fadloullah issam
on 30 Oct 2020
THE SAME PROBLEM BUT WITH MATLAB 2018
Answers (1)
Matt J
on 30 Oct 2020
options = optimset('LargeScale', 'off', 'HessUpdate', 'dfp','MaxFunEvals', MaxFunEvals, ...
'display', 'off', 'MaxIter', MaxIter, 'TolFun', 1e-8, 'TolX', 1e-8)
Categories
Find more on Scope Variables and Generate Names in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!