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...
-
A rise in the price of a product whose demand is elastic will reduce the total revenue of the firm. Explain.
-
Given the ANOVA summary table below, calculate η 2 for (a) The rows effect, (b) The columns effect, and (c) The interaction effect. Degrees Source of Sum of of Mean Variability Squares...
-
Prepare a CVP graph (Learning Objective 2)} Use the information from the Bay Cruiseline Data Set. Draw a graph of Bay Cruiseline's CVP relationships. Include the sales revenue line, the fixed expense...
-
Buford Manufacturing Company is considering three new projects, each requiring an equipment investment of $22,000. Each project will last for 3 years and produce the following cash inflows. The...
-
Assume an economy with no foreign sector, where the consumption function is defined as C = 800 + (0.75)YD and the marginal income tax rate is t = 0.5. If autonomous investment decreases by 50 then...
-
Wayland Custom Woodworking is a firm that manufactures custom cabinets and woodwork for business and residential customers. Students will have the opportunity to establish payroll records and to...
-
(i) (ii) (iii) (iv) Show (with clear workings) how the present value of 100 received ten years from now differs depending on whether the discount rate is 10% or 50%. Show with clear workings that the...
-
Why is it important for firms to benchmark their performance against competitors? Explain.
-
Peavey Enterprises purchased a depreciable asset for $ 2 4 , 5 0 0 on April 1 , Year 1 . The asset will be depreciated using the straight - line method over its four - year useful life. Assuming the...
-
Lara, a single individual, has $ 1 5 7 , 0 0 0 taxable income. Assume the taxable year is 2 0 2 3 . Use Individual Tax Rate Schedules. Required: Compute income tax assuming that: Taxable income...
-
h) If a matrix has 12 elements, what are the possible orders it can have. i) Write equation y = 3x + 2 in intercept form. -5 12 j) If cosx = x lies in second quadrant, find value of tanx.
-
Visit the IRCC Website at https://www.canada.ca/en/immigration-refugees-citizenship.html and do your best to fill in the information below. To find the answers to most of these questions, you need to...
-
Daley Company prepared the following aging of receivables analysis at December 31. Accounts receivable Total $ 660,000 0 $ 414,000 1 to 30 $ 108,000 Days Past Due 31 to 60 61 to 90 Over 90 $ 54,000 $...
-
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...
-
What are the main tasks of the board of directors? R1
-
Identify four ways in which the independence of an auditor of a large listed company may be strengthened. E1
-
Why have institutional shareholders become more active in corporate governance issues in recent years? R4
Study smarter with the SolutionInn App