Newton's Optimization Method
Ältere Kommentare anzeigen
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 Kommentare
David Hill
am 12 Jan. 2021
What have you tried? What are the variables and what are the constants?
Matt J
am 12 Jan. 2021
Yes, probably. Elaborate on the problem you've encountered.
Aneta Girlovan
am 12 Jan. 2021
Antworten (1)
Doddy Kastanya
am 12 Jan. 2021
0 Stimmen
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.
Kategorien
Mehr zu Calculus finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
