Creating a gradient ascent matlab function?

6 ビュー (過去 30 日間)
Andrew
Andrew 2014 年 12 月 1 日
回答済み: Mohammad Abouali 2014 年 12 月 1 日
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?

採用された回答

Mohammad Abouali
Mohammad Abouali 2014 年 12 月 1 日
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).
check this.

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeEvent Functions についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by