Ask Question, Ask an Expert

+61-413 786 465

info@mywordsolution.com

Ask Engineering Mathematics Expert

Problem-1

1.1. Write a program that will find the maxima of the following function using Golden section search algorithm starting from xl = -4 and xu = 1. Your function should take xl , xu, and number of iterations as input parameters. Also plot the graph estimated maxima Vs. iteration number and true error Vs. iteration number.

f(x) = x3 - 10 * x

1.2. Develop a bracketing algorithm to find the maxima of the above function that will generate two random candidate points x1 and x2 with in the bound xl and xu, such that x1 is in the upper half of the bound and x2 is in the lower half of the bound. Then after the algorithm will choose new bounds (xlower and xupper) exactly like in Golden search. Then again two new random candidate points will be generated with in the bound new xl and new xu and the process keeps going till a defined number of iterations.Your function should take xl , xu, and number of iterations as input parameters. Plot the graph estimated maxima Vs. iteration number and true error Vs. iteration number. Also state for this problem was Golden search better or the random bracket search better?

2a. Steepest ascent

Write a Mathematica code to find the maxima of the following multidimensional function using optimal steepest ascent technique. Your function should take the initial starting point and number of iterations as input parameters. Plot the function and the search path on a same graph. [Hint use ContourPlot to plot the function ListLinePlot to draw the search path over the contour]?

f(x, y) = 2xy + 2x - x2 - 2y2

2b. Randomized Steepest ascent

Now repeat the above exercise by moving in the steepest ascent direction with a step size h, which will be user defined. Again plot the function and the search path on a same graph. Which technique you think converges faster to the maxima for this given problem?.

Extra credit

Given a sphere of radius 10 units with 3 particles that interact with each other with in the sphere. The energy of the system for a given configuration of these particles is given by

1190_sphere of radius.jpg

where rij represents the distance between the particles i and j.

Use Mathematica in-built optimization library NMinimize to find out the minimum energy configuration state of this system. Note the particles cannot go outside the sphere neither two particles can occupy the same position with in the sphere. Can you think of a practical application of this simple demonstration.

Engineering Mathematics, Engineering

  • Category:- Engineering Mathematics
  • Reference No.:- M91528316
  • Price:- $30

Priced at Now at $30, Verified Solution

Have any Question?


Related Questions in Engineering Mathematics

1 this problem concerns of the proof of the np-completeness

(1) This problem concerns of the proof of the NP-completeness of 300L a) Convert the formula F into a 300L graph b) Find a solution for the 300L instance of F and verify that it is a solution for F F = (Z 1 V Z 2 ) ^ (z ...

Math assignment -q1 let fx -x3-cosx and p0 1 use newtons

Math Assignment - Q1. Let f(x) = -x 3 -cos(x), and p 0 = 1. Use Newton's method to find p 2 . Could p0=0 be used? Q2. Perform two iterations by Newton's method and the secant method to each of the following: a. e x + 2 - ...

Q undirected vs directed connectivitya prove that in any

Q: Undirected vs. directed connectivity. (a) Prove that in any connected undirected graph G = (V, E) there is a vertex v ? V whose removal leaves G connected. (Hint: Consider the DFS search tree for G.) (b) Give an examp ...

Numerical analysis assignment -q1 define the following

Numerical Analysis Assignment - Q1. Define the following terms: (i) Truncation error (ii) Round-off error Q2. Show that if f(x) = logx, then the condition number, c(x) = |1/logx|. Hence show that log x is ill-conditioned ...

Analytical methods for engineers assignment - calculusthis

ANALYTICAL METHODS FOR ENGINEERS ASSIGNMENT - CALCULUS This assignment assesses Outcome - Analyse and model engineering situations and solve problems using calculus. Questions - Q1. Differentiate the following functions ...

Show all your work not just the answerswhen you multiply 21

(SHOW ALL YOUR WORK, not just the answers) When you multiply: 21 x 68 you most likely do: 8x1 + 8x20 + 60x1 + 60x20 = 1, 428 So, there are 4 multiplications and then 3 additions. How long would it take a computer to do t ...

Question what is the signed binary sum of 1011100 and

Question : What is the signed binary sum of 1011100 and 1110101 in decimal? Show all of your work. What is the hexadecimal sum of 9A88 and 4AF6 in hexadecimal and decimal? Show all of your work.

Assignment - introduction to math programmingdirections

Assignment - Introduction to Math Programming Directions - Formulate a linear programming model for the following description. Include definitions of decision variables, Objective function, and constraints. Augment your ...

Question a signal starts at point x as it travels to point

Question : A signal starts at point X. As it travels to point Y, it loses 8 dB. At point Y, the signal is boosted by 10 bB. As the signal travels to point Z, it loses 7 dB. The dB strength of the signal at point Z is -5 ...

Question 1 - many spas many componentsconsider 4 types of

Question 1 - Many spas, many components Consider 4 types of spa tub: Aqua-Spa (or FirstSpa, or P1), Hydro-Lux (or SecondSpa, or P2), ThirdSpa (or P3) and FourthSpa (or P4), with the production of products P1, ..., P4 in ...

  • 4,153,160 Questions Asked
  • 13,132 Experts
  • 2,558,936 Questions Answered

Ask Experts for help!!

Looking for Assignment Help?

Start excelling in your Courses, Get help with Assignment

Write us your full requirement for evaluation and you will receive response within 20 minutes turnaround time.

Ask Now Help with Problems, Get a Best Answer

Why might a bank avoid the use of interest rate swaps even

Why might a bank avoid the use of interest rate swaps, even when the institution is exposed to significant interest rate

Describe the difference between zero coupon bonds and

Describe the difference between zero coupon bonds and coupon bonds. Under what conditions will a coupon bond sell at a p

Compute the present value of an annuity of 880 per year

Compute the present value of an annuity of $ 880 per year for 16 years, given a discount rate of 6 percent per annum. As

Compute the present value of an 1150 payment made in ten

Compute the present value of an $1,150 payment made in ten years when the discount rate is 12 percent. (Do not round int

Compute the present value of an annuity of 699 per year

Compute the present value of an annuity of $ 699 per year for 19 years, given a discount rate of 6 percent per annum. As