Answered step by step
Verified Expert Solution
Link Copied!

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

image text in transcribed

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Modeling And Design

Authors: Toby J. Teorey, Sam S. Lightstone, Tom Nadeau, H.V. Jagadish

5th Edition

0123820200, 978-0123820204

More Books

Students also viewed these Databases questions

Question

Please answer parts 1-6. Thank you!

Answered: 1 week ago

Question

What is electric dipole explain with example

Answered: 1 week ago

Question

What is polarization? Describe it with examples.

Answered: 1 week ago