Calculate the sum of squared errors sse

Assignment Help Python Programming
Reference no: EM132863685

MAE 3403 Computer Methods in Analysis and Design - Oklahoma State University

Question 1. On exam 3, we created a program to model the vertical position of a car that is rolling along at constant speed and hits a linear ramp to a new level of y=6 inches. We modeled the behavior of the car using only a single wheel (i.e., the quarter car model) and treated the tire as a spring between the road and the hub of the wheel and the suspension as a spring and dashpot in parallel between the wheel hub and the car body.

To estimate the spring constants, we could guess that a static compression of the spring of the suspension should be between say 3" to 6" and for the tire between 1.5" to 0.75". Given a car with a mass of 0.25mcar=450kg, use minimize from scipy.optimize to calculate the best combination of k1, c1 and k2 for our car model to minimize the sum of squared errors between the vertical position of the car and the contour of the road.

Necessary steps:

1. Calculate the minimum and maximum values for k1 and k2 based on the static compression values.

2. Calculate the sum of squared errors SSE as Σ(ycar(t)-yroad(t))2 with penalties if k1 or k2 violate the limits from 1.

3. Use minimize(SSE, x0, method='Nelder-Mead'), where x0=[self.model.mink1, self.model.c1, self.model.mink2]

4. You will want to update the values for k1, c1, and k2 on your GUI to show the optimized values and update the plot.

A program stem has been provided on canvas with the #$MISSING CODE$ marker to help you find where to focus your effort.

EXTRA CREDIT OPPORTUNITY: This simplified optimization of the suspension focuses solely on following the road contour as closely as possible. In reality, this would likely make for a bumpy ride since we are not imposing any limits on accelerations acting on the passengers.

For 20 bonus points (added to your exam total) both plot the acceleration experienced by the car passengers and limit the acceleration to something reasonable (say ~1.0g) in your suspension optimization.

Attachment:- linear ramp.rar

Reference no: EM132863685

Questions Cloud

How much direct materials cost was incurred : If the overhead applied to these goods is $3476 and the overhead rate is 79% of direct labor, how much direct materials cost was incurred in producing thee unit
What has someone done to undermine team cohesion : how teams are formed. From your experience, of being a part of a team, what has someone done to undermine team cohesion, and what was the fallout resulting from
Record the tax effect of the above : Record the tax effect of the above for 2019. Show the income tax section and loss section of the income statement for 2019
How does data visualization use database technologies : How does data visualization use database technologies?
Calculate the sum of squared errors sse : Calculate the minimum and maximum values for k1 and k2 based on the static compression values - Calculate the sum of squared errors SSE as S(ycar(t)-yroad(t))
Describe intent of post national security legislative acts : Explain at least one insight you gained or conclusion you had about post-9/11 national security legislation as a result of completing this assignment.
Key components making up effective teams : The team effectiveness model identifies three categories of key components making up effective teams. What are these three categories? Give examples of each cat
Research the counterterrorism laws and policies of country : Research the counterterrorism laws and policies of the country you have selected. Be sure to focus on laws and policies that differ from U.S. laws and policies
Outline the requirements of the australian tax office : Explain Australian, international and local legislation and conventions that are relevant to financial arrangements in Australia.

Reviews

Write a Review

Python Programming Questions & Answers

  Write a python program to implement the diff command

Without using the system() function to call any bash commands, write a python program that will implement a simple version of the diff command.

  Write a program for checking a circle

Write a program for checking a circle program must either print "is a circle: YES" or "is a circle: NO", appropriately.

  Prepare a python program

Prepare a Python program which evaluates how many stuck numbers there are in a range of integers. The range will be input as two command-line arguments.

  Python atm program to enter account number

Write a simple Python ATM program. Ask user to enter their account number, and print their initail balance. (Just make one up). Ask them if they wish to make deposit or withdrawal.

  Python function to calculate two roots

Write a Python function main() to calculate two roots. You must input a,b and c from keyboard, and then print two roots. Suppose the discriminant D= b2-4ac is positive.

  Design program that asks user to enter amount in python

IN Python Design a program that asks the user to enter the amount that he or she has budget in a month. A loop should then prompt the user to enter his or her expenses for the month.

  Write python program which imports three dictionaries

Write a Python program called hours.py which imports three dictionaries, and uses the data in them to calculate how many hours each person has spent in the lab.

  Write python program to create factors of numbers

Write down a python program which takes two numbers and creates the factors of both numbers and displays the greatest common factor.

  Email spam filter

Analyze the emails and predict whether the mail is a spam or not a spam - Create a training file and copy the text of several mails and spams in to it And create a test set identical to the training set but with different examples.

  Improve the readability and structural design of the code

Improve the readability and structural design of the code by improving the function names, variables, and loops, as well as whitespace. Move functions close to related functions or blocks of code related to your organised code.

  Create a simple and responsive gui

Please use primarily PHP or Python to solve the exercise and create a simple and responsive GUI, using HTML, CSS and JavaScript.Do not use a database.

  The program is to print the time

The program is to print the time in seconds that the iterative version takes, the time in seconds that the recursive version takes, and the difference between the times.

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