Creating a gradient ascent matlab function?
4 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Andrew
le 1 Déc 2014
Réponse apportée : Mohammad Abouali
le 1 Déc 2014
I have to create a gradient ascent matlab function that finds the maximum of a function of two variables. It can call a function that uses the golden section method to find the maximum of one function, but I don't know how to use this to do it for two variables. Does anyone know how to do this?
0 commentaires
Réponse acceptée
Mohammad Abouali
le 1 Déc 2014
It is the same as gradient descent except that you don't multiply your step by a negative sign. So your step has the same sign as your gradient (or hessian in higher dimensional problem).
0 commentaires
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Statics and Dynamics 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!