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

  Prime number theorem

Dirichlet series

  Proof of bolzano-weierstrass to prove the intermediate value

Every convergent sequence contains either an increasing, or a decreasing subsequence.

  Antisymmetric relations

How many relations on A are both symmetric and antisymmetric?

  Distributed random variables

Daily Airlines fies from Amsterdam to London every day. The price of a ticket for this extremely popular flight route is $75. The aircraft has a passenger capacity of 150.

  Prepare a system of equations

How much money will Dave and Jane raise for charity

  Managing ashland multicomm services

This question is asking you to compare the likelihood of your getting 4 or more subscribers in a sample of 50 when the probability of a subscription has risen from 0.02 to 0.06.]  Talk about the comparison of probabilities in your explanation.

  Skew-symmetric matrices

Skew-symmetric matrices

  Type of taxes and rates in spokane wa

Describe the different type of taxes and their rates in Spokane WA.

  Stratified random sample

Suppose that in the four player game, the person who rolls the smallest number pays $5.00 to the person who rolls the largest number. Calculate each player's expected gain after one round.

  Find the probability density function

Find the probability density function.

  Develop a new linear programming for an aggregate production

Linear programming applied to Aggregate Production Planning of Flat Screen Monitor

  Discrete-time model for an economy

Discrete-time model for an economy

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