is there any command which uses gradient descent to find a minima ?
2 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
I want to run gradient descent to find a minima for some differentiable function. Is there any command in matlab which does this ? is it available in optimization tool box?
0 commentaires
Réponses (1)
John D'Errico
le 14 Avr 2016
Modifié(e) : John D'Errico
le 14 Avr 2016
Why do you think you need explicitly gradient descent? Steepest descent (i.e., directly following the gradient downhill) is often a terribly poor method for minimization in general.
Yes, there are several tools in MATLAB that do optimization. Everything from a Nelder-Mead tool (fminsearch) to more sophisticated tools in the optimization toolbox. It depends on what you have, i.e. constraints or not, and what type of objective function you have, linear or nonlinear. But there are no tools provided by The MathWorks that explicitly do steepest descent, as there are far better schemes available.
So, perhaps you are asking for a general tool that USES the gradient in a more intelligent manner than steepest descent, but just asked the question in a confusing way. Again, yes. Look in the optimization toolbox. You will probably want either fmincon or fminunc.
0 commentaires
Voir également
Catégories
En savoir plus sur Nonlinear Optimization dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!