Question: In this homework, you will implement a Python script that minimizes a multivariate scalar function. As the specific function, you will consider the Himmelblau's function

In this homework, you will implement a Python script that minimizes a multivariate scalar function. As the specific function, you will consider the Himmelblau's function defined as f(31,1%) = (x +39 - 11) + (1+- 7). Implement your algorithm to minimize the Himmelblau's function in a single interactive Python notebook using Azure Lab Services. Your notebook should include at least the following function definition that takes the start- ing point (defined as a numpy array, for example, np.array([0, 0])) and the method name (there should three possible options, namely, "Powell". "BFGS", or "Newton-CG") used in scipy optimize.minimize function and returns the solution found. def minimize_Himmelblau(x0, method): #implement your algorithm here return(x_star, obj_star)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
