Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Use python please and show the optimization path on each contour plot. Write a numerical code to minimize the Rosenbrock function defined below using a

Use python please and show the optimization path on each contour plot. Write a numerical code to minimize the Rosenbrock function defined below using a slew of gradient
based optimization algorithmsWrite a numerical code to minimize the Rosenbrock function defined below using a slew of gradient
based optimization algorithms. The function is a non-convex function and has a global minimum at
(1,1). The minimum is at the bottom of a narrow parabolic valley that is curved on the x-y plane.
The function is often used to test the performance of optimization algorithms.
f(x,y)=(1-x)2+100(y-x2)2
(a) Write four codes using the steepest descent method, nonlinear conjugate gradient, quasi-Newton, and Newton method to
solve for the minimum of the function. Use a simple backtracking line search method to compute
the step length. You may choose one particular algorithm for the conjugate gradient (either the
Hestenes-Stiefel, Polak-Ribiere, or Fletcher-Reeves) and quasi-Newton (DFP or BFGS) method.
(b) Provide the following in a written report:
(a) Convergence of the gradient (y-axis: log of the gradient, x-axis: iteration) and a comparison
of the convergence.
(b) Contour plot of the path of the optimization algorithm.use python U
image text in transcribed

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

Fundamentals Of Database Systems

Authors: Sham Navathe,Ramez Elmasri

5th Edition

B01FGJTE0Q, 978-0805317558

More Books

Students also viewed these Databases questions