Question: ( 4 ) Write a general Matlab routine for implementing the conjugate gradient method. minimize Rosenbrock function and also use same strategies to obtain the

(4) Write a general Matlab routine for implementing the conjugate gradient method.
minimize Rosenbrock function and also use same strategies
to obtain the step sizes and same termination criteria & initial vector x(0)=[35].(Use same
constant step size, variable step size and quadratic fitting parameters for a reasonable
comparison with Steepest Descent Method)
Add an extra "Golden Section Line Search" for the step size.
(B) Plot the error as ||gradf|| with respect to the iteration number.
(C) Compare the convergence rates, computation times, final error and final iteration number
with those of Steepest Descent Method in a neat table and give your brief comments.
 (4) Write a general Matlab routine for implementing the conjugate gradient

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!