Discussion how well the given ode model fits the datasets

Assignment Help Engineering Mathematics
Reference no: EM131314743

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

Reference no: EM131314743

Questions Cloud

Identify ways in which mentors and mentees can use shadowing : Identify ways in which mentors and mentees can use shadowing as a method for tracking and assessing the ongoing changes within the company after completion of the BPM project.
Shares of general? stock : General? Company's stock currently sells for $80 per share and you believe the price will drop over the next six months. For ?$309 you could purchase one put option? (the right to sell 100 shares of General? stock) that expires in six months and has ..
Standard deviation for the filling process : El Grande Green Tea is sold in 350 milliliter cans. The standard deviation for the filling process is 9 milliliters. What must the target mean for the process be to ensure that the probability of overfilling more than 350 ml in a can is 0.99 perce..
How would this news affect the bond market and why : In mid-September 2016, there was speculation that the Fed would be raising interest rates before the end of the year. How would this news affect the bond market and why?
Discussion how well the given ode model fits the datasets : MATH 615-901 Final Project. 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
How power of compound interest increases wealth : How the power of compound interest increases wealth? Give one example. Discuss what is meant by the Rule of 72 and give one example.
Into the global environment : How vulnerable is the Ford Motor Company firm if it elects not to make a move into the global environment?
Estimate the altitude of the airplane above sea level : On a certain day the barometric pressure at sea level is 30.1 in. Hg, and the temperature is 708F.- Estimate as accurately as possible the altitude of the airplane above sea level.
Maximize the objective value : A T1 truck and a C1 car yield profits of $275 and $220,respectively, per vehicle sold.The aim of the objective function for Green Vehicle Inc. should be to Maximize the objective value. Decision variables:T=number of trucks to be produced per day ..

Reviews

len1314743

12/16/2016 3:44:57 AM

I need help with 5th and 6th part of the question I have attached some codes. windmain2.m calls windsolver. There is no data attached so it will not run. This is one way to structure things and it is a bit different than what is suggested in the assignment, so if yours is different but optimizes then it is fine too.

Write a Review

Engineering Mathematics Questions & Answers

  Determine the general solution of the differential equation

Use Euler's Method or Euler's improved method, find the particular solution of the differential equation, and By using the separation of variables method, find the particular solution of differential equation.

  How is the heat equation related to the laplace equation

Math 054 Partial Differential Equations - HW Assignment 2. Explain in a short paragraph where the uxx(x, y) or ∇2u comes from in the heat equation. This should be understandable to someone outside the class. You can use terminology like heat flux....

  What is the probability of a type i error

What is the probability of a Type I error? Explain this concept in the context of this problem to Julie's coach, who has never studied statistics

  Gage solid copper-coated wire

The panel box supplies 120 volts. The electrician is using No. 12 solid copper-coated wire. What is the approximate voltage delivered to the saw? And what is the approximate voltage drop from the house to garage if No. 10 gage solid copper-coated ..

  List the ordered pairs that belong to the relation

List the ordered pairs that belong to the relation. Keep in mind that a Hasse diagram is a graph of a partial ordering relation so it satisfies the three properties listed in number 5 part(b).

  Determine the rate of heat transfer

The components in the duct are cooled by forced air that enters the duct at 30°C and 1 atm at a rate of 0.6 m3/min and leaves at 40°C. Determine the rate of heat transfer from the outer surfaces of the duct to the ambient.

  Interpret the null hypothesis using your t-statistic

Interpret the null hypothesis using your t-statistic. Interpret the null hypothesis using p-value. Interpret your confidence interval and test the null hypothesis using confidence interval.

  Question 1 the surface is defined by the following

question 1 the surface is defined by the following equationzx y 3 cos 2xe1y3 5xy2 - 6.find the equation of the

  Calculate the eigenvalues and eigenvectors of matrix

Hand calculate the eigenvalues and eigenvectors of matrix A - Outline the steps on how you can use Simulink to demonstrate the linearity and the time invariance of the system.

  A company manufactures three models of a certain product

1. a company manufactures three models of a certain product. each model has to go through three different operations

  Scale of the final grades in a post graduate program

The following table of grades definition is taken from a Students' handbook and it defines the scale of the final grades in a Post Graduate program.

  Estimate how many volunteers you would need

Suppose it's known that the standard deviation of the difference of the service time is 5 minutes. If you want the 95% confidence intervals for the mean difference of the service time between females and males narrower than 4 minutes. Estimate how..

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd