Ask Question, Ask an Expert

+61-413 786 465

info@mywordsolution.com

Ask Engineering Mathematics Expert

MATH Final Project -

Consider the following mathematical model for a spring-mass-dashpot system, found on p.11 of the Optimization text:

u′′(t)+ cu′(t)+ ku(t) = 0

on the interval [0, T] with initial conditions u(0) = u0 and u′(0) = v0. There are N =2 parameters x? = (c, k)T. There are M observations of displacement {ud,i}Mi=1 sampled at {ti}Mi=1, where ti = (i - 1)T/(M - 1).

1. Solve the system analytically, letting c = 0.2 and k = 10, with initial condition u0 = 3 and v0 = -10. You may use a computational tool to assist.

2. Compute the numerical solution to the above 2nd order differential equation for t ∈ [0, 20] using a Matlab routine such as ode23 or ode15s. To use either you will need to rewrite the above equation as a system of two 1st order equations. Let M =301. At this point you will likely have two user-defined functions, one that calls the ode solver and one that contains your system of first-order ODEs. Store your solution as a "'data"' vector ud,i to be used in the next steps.

3. Create two new data sets that include the original data ud found in step 2 plus noise. Use the form uˆd(ti) = ud(ti)+nl · randi where randi are the normally distributed random numbers with zero mean and variance 1.0. You may use randn in MATLAB to generate an n-vector with random entries. Choose nl = 0.001, 0.01. Store these two noisy data sets as well.

4. Access/load a separate dataset beam_new from the beam_new.mat ?le in MATLAB, obtained from a vibrating beam experiment. At this point you should have 4 datasets: 1 'original' generated from the known parameters for the spring-mass-dashpot system, 2 modified from the original with different levels of noise and 1 provided from the vibrating beam.

5. Create a routine to solve the inverse problem, i.e. one that will find optimal parameters to describe your system given a set of data and a set of guess parameters. You will likely create two new files, one main function to call an optimizer and another function to evaluate the objective function. Recall that you are minimizing the objective function

J(x) = R(x)T R(x)/2 ≡ (||R(x)||22/2) = ½i=1M|um(ti : x) - ud,i|2

You may end up with 4 files: the main function calls the objective, which calls the solver, which calls the ODE. You may want to use fminsearch as the optimizer to begin.

6. For all 4 data sets, estimate the parameters c and k using the inverse least squares method using the initial guess x =(0.3, 10.2)T. Do this first using fminsearch or another Nelder-Mead based optimizer which not require the gradient. Then do with levmar.m or another gradient-based optimizer, which will require modifications to your code. To use levmar.m you will need to evaluate and return the objective cost (J(x), what you are minimizing), the Jacobian, and the gradient within your objective function / solver that calls the ODE(these two could be combined), as described in its help file and in the class notes. Report the following outputs for each of the 4 datasets and 2 optimization routines:

  • Table listing the estimated optimal values of the parameters, values of the objective function, number of iterations, and total CPU time.
  • Plot of data vs. model solution with each set of optimal parameters (separately or combined).
  • Plot of residual vs time (do these separately).

7. Comment on your results, including a discussion of how well the given ODE model fits the datasets and any pattern you may or may not see in the residual plots.

Attachment:- Assignment.rar

Engineering Mathematics, Engineering

  • Category:- Engineering Mathematics
  • Reference No.:- M92069353

Have any Question?


Related Questions in Engineering Mathematics

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 ...

All these questions should be answered in matlab 1 generate

All these questions should be answered in MATLAB !!! 1. Generate a set of 3 random patterns of dimension 12 where each value is +1 or -1.(3 random 12*12 matrix) 2. Create a 12-unit Hopfield network (a 12x12 matrix) from ...

Assignment - lp problemsthe data for all the problems in

Assignment - LP problems The data for all the problems in this HW are included in the LP_problems_xlsx spreadsheet Problem 1: Cash Planning A startup investment project needs money to cover its cash flow needs. At the en ...

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 - ...

Question a suppose that you are given an instance of the

Question : (a) Suppose that you are given an instance of the MST problem on a graph G, with edge weights that are all positive and distinct. Let T be the minimum spanning tree for G returned by Kruskal's algorithm. Now s ...

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 ...

Assignment - lp problemsthe data for all the problems in

Assignment - LP problems The data for all the problems in this HW are included in the LP_problems_xlsx spreadsheet. Problem 1 - Cash Planning A startup investment project needs money to cover its cash flow needs. At the ...

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 suppose that g is a directed graph in class we

Question : Suppose that G is a directed graph. In class we discussed an algorithm that will determine whether a given vertex can reach every other vertex in the graph (this is the 1-to-many reachability problem). Conside ...

Assignment -1 let t and or 0 1 be a boolean algebradefine

Assignment - 1. Let (T, ∧, ∨,', 0, 1) be a Boolean Algebra. Define ∗ : T × T → T and o : T × T → T as follows: x ∗ y := (x ∨ y)' x o y := (x ∧ y)' (a) Show, using the laws of Boolean Algebra, how to define x ∗ y using on ...

  • 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