Question

2) Use the function h(x,y)= as follows: 1+x2+y2+x+xy 2 2D optimization utilizing Excel · Produce a surface plot of the function Utilize Solver to find the optimum value o o 2D optimization utilizing Matlab o o o Produce a surface plot the function Produce a contour plot of the function Utilize fminsearch to find the optimum value

0 0
Add a comment Improve this question Transcribed image text
Answer #1

For matlab

Create a meshgrid for x and y

 [X,Y] = meshgrid(-2:0.25:2) %Create a 2-D grid with uniformily spaced x-coordinates and y-coordinates in the interval [-2,2].
 
F = 1 / (1 + X.^2 + Y.^2 + X. + X. * Y.)
surf(X,Y,F) %Plots the surface graph of the given function
contour(X,Y,F) % Plots the contour graph of the given function
s = fminsearch(F,1) % calculate the local minima of the function F near 1 and stores that value in s
 
For excel
  1. create a new excel spreadsheet
  2. For better understanding we will give name to the cells
  3. enter x , y and z values in Column A (1 to 3)
  4. Select menu item Insert -> Name -> Create
  5. Click on left column then click on OK button (Now it treats row A1 as x, A2 as y and A3 as z)
  6. Click on cell of z and write the function to compute (1/(x^2 + y^2 +x +x*y+1))
  7. create the table data by selecting some section
  8. select menu item Data -> Table -> select row input and column input cell and then ok
  9. open the chart wizard
  10. select surface -> specify x values -> specify y values -> finish
  11. For solver
  12. Select option - > Add ins -> Solver ->Solver-> Ok
  13. Select Data -> Solver will pop up a window
  14. Select cell objective as a cell in which you want min value and By changing the variable cell as data rows
  15. choose min option
  16. Add
  17. Solve

The solved value is stored at a specified cell

Add a comment
Know the answer?
Add Answer to:
2) Use the function h(x,y)= as follows: 1+x2+y2+x+xy 2 2D optimization utilizing Excel · Produce a...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • 4. Following optimization problem is given as follows: Max z= x + y + xy +...

    4. Following optimization problem is given as follows: Max z= x + y + xy + 25 subject to xy = 9 and x>0, y =0 where x, y E R a) Is this linear model or not? (Explain) What is the optimum value of x in this model? What is the optimum value of y in this model? What is the optimum value of z in this model? c)

  • Question 3. Consider the function h: R3 → R h(x, y, 2) = (x2 + y2...

    Question 3. Consider the function h: R3 → R h(x, y, 2) = (x2 + y2 + 2) +3/(x2 + 2xy + y) (a) What is the maximal domain of h? Describe it in words. (it may help to factor the denominator in the second term) > 0 for any a, (b) It is difficult to immediately find the range of h. Using the fact that a show that h cannot take negative values. Can h be an onto function?...

  • 2. Find the slope of the tangent line to f(x, y) 6-x2 + xy - y2...

    2. Find the slope of the tangent line to f(x, y) 6-x2 + xy - y2 at (4, 2), toward the point (7, 1). Then find the maximum slope and its direction 2. Find the slope of the tangent line to f(x, y) 6-x2 + xy - y2 at (4, 2), toward the point (7, 1). Then find the maximum slope and its direction

  • 3. Verify Stokes' Theorem for the vector field F(x, y, z)= (x2)ĩ+(y2)]+(-xy)k where S is the...

    3. Verify Stokes' Theorem for the vector field F(x, y, z)= (x2)ĩ+(y2)]+(-xy)k where S is the surface of the cone +y parametrized by (u,v)-(ucos v, u sin v, hu) x2+y2 a at height h above the xy-plane Z = a V 0<vsa, OSvs 2n, and as is the curve parametrized by ē(f) =(acost,asint, h), 0sis27 as x2+ a 3. Verify Stokes' Theorem for the vector field F(x, y, z)= (x2)ĩ+(y2)]+(-xy)k where S is the surface of the cone +y parametrized...

  • QUESTION 2 Find lim xy +1 (x, y)*(0,0) x2 +y2-1 O-1 O 2 00 O Does...

    QUESTION 2 Find lim xy +1 (x, y)*(0,0) x2 +y2-1 O-1 O 2 00 O Does not exist.

  • 9) Find the absolute maxima and minima of the function f(x,y) = x2 + xy +...

    9) Find the absolute maxima and minima of the function f(x,y) = x2 + xy + y2 on the square -8 < x,y 5 8

  • Problem 2: Create a surface plot and a contour plot of the function f(x, y) =...

    Problem 2: Create a surface plot and a contour plot of the function f(x, y) = xe-I(x-y2)*+y?] Where -2 x 2 and -2 < y s 2. Use a step size of 0.1. Add labels to the axis Problem 2: Create a surface plot and a contour plot of the function f(x, y) = xe-I(x-y2)*+y?] Where -2 x 2 and -2

  • which of the following is a potential function for F(x,y,z)= < y2 +y?ex?,x2 + 2ye*?,xy +...

    which of the following is a potential function for F(x,y,z)= < y2 +y?ex?,x2 + 2ye*?,xy + xy?e *V> f(x,y,z) = xyz + y2exyz f(x,y,z) = xyz + y2e*+2 b. F(x,y,z) has a potential function but it is not one of the other choices. F(x,y,z) does not have a potential function. d. f(x,y,z) = xyz + y2exZ e.

  • (1 point) The region W lies below the surface f(x,y) = 7e-(æ=3)*"-y* and above the disk x2+y2 < 36 in the xy-pla...

    (1 point) The region W lies below the surface f(x,y) = 7e-(æ=3)*"-y* and above the disk x2+y2 < 36 in the xy-plane. (a) Think about what the contours of f look like. You may want to using f(x,y) = 1 as an example. Sketch a rough contour diagram on a separate sheet of paper. (b) Write an integral giving the area of the cross-section of W in the plane = 3. d Area = and b where a= (c) Use...

  • 6 (20 pts). Let F(x, y, z) = x2 + y2 + x2 - 6xyz. (1)...

    6 (20 pts). Let F(x, y, z) = x2 + y2 + x2 - 6xyz. (1) Find the gradient vector of F(x, y, z); (2) Find the tangent plane of the level surface F(x, y, z) = x2 + y2 + x2 - 6xyz = 4 at (0, 0, 2); (3) The level surface F(x, y, z) = 4 defines a function z = f(x,y). Use linear approxi- mation to approximate z = = f(-0.002,0.003).

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT