Filter löschen
Filter löschen

fminunc with quasi-Newton algorithm giving unexpected results

1 Ansicht (letzte 30 Tage)
Why am I getting unexpected results and exitflag = 5 with "fminunc" quasi-Newton algorithm?

Akzeptierte Antwort

MathWorks Support Team
MathWorks Support Team am 25 Jun. 2018
Double check that the "fminunc" function is correct. Small errors in the function to minimize could cause for very unexpected results.
Additionally, setting 'SpecifyObjectiveGradient' to true and defining a gradient function might drastically improve your solution.
Please see the following link for information on defining a gradient for the objective function:

Weitere Antworten (0)

Kategorien

Mehr zu Multidimensional Arrays finden Sie in Help Center und File Exchange

Produkte


Version

R2016a

Community Treasure Hunt

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

Start Hunting!

Translated by