Creating a gradient ascent matlab function?
조회 수: 6 (최근 30일)
이전 댓글 표시
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
채택된 답변
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).
댓글 수: 0
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Statics and Dynamics에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!