Newton's Optimization Method

조회 수: 11 (최근 30일)
Aneta Girlovan
Aneta Girlovan 2021년 1월 12일
답변: Doddy Kastanya 2021년 1월 12일
I have to find the maximum of a function:
fc1= (log(c1)+alpha*log((e-c1)/p))
i need to write a code to find its gradient and hessian matrix, and after that to solve it with Newton's Method, can anyone help me?
thank you
  댓글 수: 3
Matt J
Matt J 2021년 1월 12일
Yes, probably. Elaborate on the problem you've encountered.
Aneta Girlovan
Aneta Girlovan 2021년 1월 12일
I have to solve problem 1.2. To solve it via Newton's Method, i need to firstly have the Hessian. what i don't know is how to construct this Hessian matrix.

댓글을 달려면 로그인하십시오.

답변 (1개)

Doddy Kastanya
Doddy Kastanya 2021년 1월 12일
The following link provides information about Hessian Matrix for a scalar function: https://www.mathworks.com/help/symbolic/hessian.html#buiej1q-2 . However, I believe you need to have access to Symbolic Math Toolbox to invoke this.
Otherwise, the function is relatively straight-forward for you to derive the corresponding Jacobian. So, I would suggest derive the Jacobian first and then implement it within the Newton's Method (using MATLAB).
Good luck.

카테고리

Help CenterFile Exchange에서 Calculus에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by