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.

Réponses (1)

options = optimset('LargeScale', 'off', 'HessUpdate', 'dfp','MaxFunEvals', MaxFunEvals, ...
'display', 'off', 'MaxIter', MaxIter, 'TolFun', 1e-8, 'TolX', 1e-8)

Catégories

En savoir plus sur Scope Variables and Generate Names dans Centre d'aide et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by