Question: Write your own conjugate gradient algorithms in MATLAB. Instead of re-writing the line search code, re-use your code from the previous labs. The new functions

Write your own conjugate gradient algorithms in MATLAB. Instead of re-writing the line search code, re-use your code from the previous labs. The new functions / scripts you will have to code may include: (a) multi-variable objective function (accepts a vector as input and outputs a scalar)
(b) gradient function (accepts a vector as input and outputs a vector)
(c) conjugate gradient code that can use use either the golden section or quadratic approximation as line search method1
(d) a script to run all your tests.
Write your own conjugate gradient algorithms in Matlab. Instead of re-writing the line search code, re-use your code from the previous labs. The new functions / scripts you will have to code may include: (a) multi-variable objective function (accepts a vector as input and outputs a scalar), (b) gradient function (accepts a vector as input and outputs a vector). (c) conjugate gradient code that can use use either the golden section or quadratic approximation as line search method 1, (d) a script to run all your tests
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
