Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Write a conjugate gradient program to solve the following minimization problems. You can use fminbnd to help with the line search. In addition, solve the
Write a conjugate gradient program to solve the following minimization problems. You can use fminbnd to help with the line search. In addition, solve the same problems using MATLAB's fminunc and compare the results of your program with that given by fminunc. Note: You will need to write a small MATLAB function that implements central difference to compute gradients to be used in Conjugate Gradient method] 1. x225+ (x2-2r)10 a. Let the starting design be (1, 2,3, 4). b. (Try different starting points in the range, x E [-5,5], and comment on the solutions that you obtain with both your programand fminunc) For the above problems, . Report your final optimum (x,f), number of iterations taken to reach the . Plot the convergence history, i.e., function value over iterations optimum, and what criteria triggered the termination of your program. .For the problem b, use contourf to plot the filled contours of the 2D function, and show the progression of the points given by the conjugate gradient method on this plot. Clearlylabel the initial pointand the optimum point. Write a conjugate gradient program to solve the following minimization problems. You can use fminbnd to help with the line search. In addition, solve the same problems using MATLAB's fminunc and compare the results of your program with that given by fminunc. Note: You will need to write a small MATLAB function that implements central difference to compute gradients to be used in Conjugate Gradient method] 1. x225+ (x2-2r)10 a. Let the starting design be (1, 2,3, 4). b. (Try different starting points in the range, x E [-5,5], and comment on the solutions that you obtain with both your programand fminunc) For the above problems, . Report your final optimum (x,f), number of iterations taken to reach the . Plot the convergence history, i.e., function value over iterations optimum, and what criteria triggered the termination of your program. .For the problem b, use contourf to plot the filled contours of the 2D function, and show the progression of the points given by the conjugate gradient method on this plot. Clearlylabel the initial pointand the optimum point
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started