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

  Create a module currency which includes the functions

You are having a problem with writhing this code. Create a module currency, which includes the following three functions that do currency conversions.

  Create an employee class that keeps data attributes

Create an Employee class that keeps data attributes for the following pieces of information: Employee Name and Employee Number

  Write a program to process an input j?le where data in j?le

Write a program to process an input J?le where data in the J?le is individual lines of credit card numbers.Your program must indicate.

  Describe what it actually does when called with a string

Describe what it actually does when called with a string argument. If it does not correctly check for lowercase letters, give an example argument.

  Write a program to find the area of a rectangle

Rewrite the below program to have a separate function for the area of a square, the area of a rectangle, and the area of a circle.

  Write program that is capable of generating a set words

You will write a Python program that is capable of generating a likely set of completion words given the start of a word as input to the program.

  Design a program for the hollywood movie rating guide

Design a program for the Hollywood Movie Rating Guide, in which users continuously enter a value from 0 to 4 that indicates the number of stars.

  Write a program to print consecutive letters in the alphabet

Write a program in python that accepts a word as input and determines whether or not it has three consecutive letters that are also consecutive letters in the

  What prompted the authors to try and address

What is the question that this study is trying to answer and what prompted the authors to try and address this question?

  ECE 228 Machine Learning for Physical Applications

ECE 228 Machine Learning for Physical Applications Assignment help and Solution, University of California - Assessment Writing Service

  Code a console-based program in python

CP1404/CP5632 2016 SP2/22/52 Assignment - Shopping List 1.0. You are to plan and then code a console-based program in Python 3, as described in the following information and sample output. This assignment will help you build skills using selection,..

  Create dictionary with a grocery list

Create dictionary with a grocery list. Assign the dictionary to the variable grocery_list. Create dictionary with a grocery list. Assign the dictionary.

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