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

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)

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

Asked:

on 15 Jun 2015

Edited:

on 30 Oct 2020

Community Treasure Hunt

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

Start Hunting!