1. Write a python program to determine the minimum of below equation using gradient de- scent...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
1. Write a python program to determine the minimum of below equation using gradient de- scent method. f(x, y) = -0.5+ (x+6)/7+ (y + 3.5)/3+0.4tan(x² + y²) 2. Calculate the minimum of the above function and compare with the answer you obtained in part 1. 3. Plot the above function in excel and prove your answer in part I and II (please include your plot). 1. Write a python program to determine the minimum of below equation using gradient de- scent method. f(x, y) = -0.5+ (x+6)/7+ (y + 3.5)/3+0.4tan(x² + y²) 2. Calculate the minimum of the above function and compare with the answer you obtained in part 1. 3. Plot the above function in excel and prove your answer in part I and II (please include your plot).
Expert Answer:
Answer rating: 100% (QA)
Python program to determine the minimum using gradient descent method import numpy as np Define the function def fx y return 05 x 6 7 y 35 3 04 nptanx 2 y 2 Partial derivatives of the function with re... View the full answer
Related Book For
Thermodynamics An Engineering Approach
ISBN: 978-0073398174
8th edition
Authors: Yunus A. Cengel, Michael A. Boles
Posted Date:
Students also viewed these programming questions
-
The company's production manager has a policy that at the end of the month there needs to be sufficient inventory to cover 40% of the following month's sales. Below is a sales forecast for the next...
-
Discuss which organizational structure (i.e. functional, product-market divisional, matrix) you would recommend Guelph General Hospital implement, assuming the hospital moves forward with the...
-
You are required to write a Python program that will manage character (heroes and villain) information. Character (hero and villain) information will be stored in a text file that will be read in...
-
Reference frame S is moving along the x axis at 0.6c relative to frame S. A particle that is originally at x = 10 m at t 1 = 0 is suddenly accelerated and then moves at a constant speed of c/3 in...
-
What alkyne would you start with and what reagents would you use if you wanted to synthesize: a. Pentane? b. Cis-2-butene? c. Trans-2-pentene? d. 1-hexene?
-
In Problems 5358, convert each angle in radians to degrees. Express your answer in decimal form, rounded to two decimal places. 7
-
Enter the data in Table 8-4 into a spreadsheet and perform the following tasks: Required a. Calculate an example of these batch totals: a hash total a financial total a record count b. For each of...
-
ZIA Motors is a small automobile manufacturer. Chris Rickard, the companys president, is currently evaluating the companys performance and is considering options that might be effective at increasing...
-
A company has expected sales for January through April of $ 9 , 8 0 0 , $ 9 , 5 0 0 , $ 1 3 , 8 0 0 , and $ 9 , 5 0 0 , respectively. Assume each month has 3 0 days and the accounts receivable period...
-
The dean of a school of nursing (SON) and the associate deans of undergraduate and graduate programs have experienced increasing frustration with a lack of clinical placements for the students. The...
-
18-73. A small post office has two open windows. Customers arrive according to a Poisson distribution at the rate of 1 every 3 minutes. However, only 80% of them seek service at the windows. The...
-
BB Corporation uses material "A-B" to produce a product "Abab. The material is purchased in two-ton container at a cost of P50,000 per ton. A supplier offered a discount term of 5/10, n/30 and...
-
How would Walmart's break even point change by using robots rather than hourly employees?
-
1.The Richardson Oil Company is considering issuing additional debt. They wish to use the yield on their existing debt as a guide to the cost of new debt. They currently have a zero-coupon bond...
-
Calculate this integral. Show and annotate the various steps in the process. (6) 23 -dx +22 Calculate this integral. Show and annotate the various steps in the process. (6) (9-12)dx
-
1. Chiyutu plans to retire from teaching at the end of 2025 and starts a business of his own. He decided to deposit starting 2022 for P50,000, 2023 for P60,000, 2024 for P75,000 and 2025 P100,000....
-
Canyoneer Products incurs the following costs for 20,000 pairs of high-tech hiking books. Total Per Unit Direct materials Direct labor Variable manufacturing overhead Fixed manufacturing overhead...
-
A city maintains a solid waste landfill that was 12 percent filled at the end of Year 1 and 26 percent filled at the end of Year 2. During those periods, the government estimated that total closure...
-
A house is losing heat at a rate of 1800 kJ/h per C temperature difference between the indoor and the outdoor temperatures. Express the rate of heat loss from this house per (a) K, (b) F, and (c) R...
-
Consider a glass of water in a room at 27C and 97 kPa. If the relative humidity in the room is 100 percent and the water and the air are in thermal and phase equilibrium, determine (a) The mole...
-
In large gas-turbine power plants, air is preheated by the exhaust gases in a heat exchanger called the regenerator before it enters the combustion chamber. Air enters the regenerator at 1 MPa and...
-
Many retailers have installed point-of-sale (POS) systems to better manage their inventory and to save time and cut costs associated with ringing up customer sales. How should employees be trained to...
-
Airlines have long used database technology to monitor capacity and maximize revenue by charging different prices to almost every passenger on a given flight. To what extent can other industries...
-
Why not use copies of the sales order as the picking ticket, packing list, and sales invoice?
Study smarter with the SolutionInn App