Which mna can provide multiple valid solutions

Assignment Help Computer Engineering
Reference no: EM131097778

E19: Numerical Methods for Engineering Applications Spring 2016 - PROJECT 3

Project: Resistor networks / Cubic spline interpolation

OVERVIEW

In this project, you will write a program to automatically solve two engineering tasks which can be represented as systems of linear equations. The challenges here are a) figuring out how to algorithmically map a problem instance to a linear system of the form Ax = b, and b) exploring linear system solvers that we didn't explicitly cover in class.

TASKS

1. Resistor networks.

Below is depicted a simple electrical circuit, along with a corresponding description of it in a subset of the netlist format used by the SPICE circuit simulator.

1880_Figure.png

The parse_netlist.py code provided on the course website is capable of parsing the netlist format above into a set of Python data structures. Your job is to transform the output of that function into a linear system using Modified Nodal Analysis (MNA), which can subsequently be solved for the voltages across the resistors and the currents through the voltage supplies.

Start by reading Professor Cheever's description of the MNA technique (introduction at https://www.swarthmore.edu/NatSci/echeeve1/Ref/mna/MNA1.html, nice summary of rules at https://www.swarthmore.edu/NatSci/echeeve1/Ref/mna/MNAMatrixRulesOpAmp.html) to find out how to transform the netlist into a linear system.

Next, write a function (A, x, b) = solve_netlist(V, I, R, N) which transforms the output of parse_netlist into a solved linear system using MNA. To solve the underlying matrix equation, your program should use the Gaussian elimination matrix solver.

 • Use your program to verify the solutions of the examples at https://www.swarthmore.edu/NatSci/echeeve1/Ref/mna/MNA4.html. Submit your netlists and program output.

  • Under what circumstances is MNA incapable of finding a valid solution? Are there any nets for which MNA can provide multiple valid solutions? Provide example netlists to support your answers.

2. Cubic spline interpolation.

In the olden days of Engineering design, a spline was a thin, springy strip of flexible rubber, wood, or metal which could be constrained to pass through specific points on a schematic drawing in order to trace out smooth curves, as shown in figure 1. Analogously, we can mathematically define smooth curves which pass through (or interpolate) two or more points. The resulting mathematical objects are also called splines.

1959_Figure2.png

First, read about the so-called natural cubic spline at MathWorld: https://mathworld.wolfram.com/CubicSpline.html and Wikipedia: https://en.wikipedia.org/wiki/Spline_interpolation.

Next, create a program which's takes as input a list of n + 1 floating point numbers y(t) for integer values t = 0, . . . , n, and outputs the tridiagonal matrix of coefficients A and right-hand side b for the linear system described in the MathWorld article.

Finally, solve the linear system both with your own solver, as well as with the scipy.linalg.solve_banded method, and make sure the solutions agree.

Also, please consider the following:

  • Choose a set of n ≥ 8 points y(t) and plot the resulting piecewise cubic curve using matplotlib after solving the tridiagonal system.
  • Explain how you might extend the system you have here to solve for a curve passing through n points in the plane by reusing the A matrix and simply supplying two different b vectors for the x and y coordinates. Note that the final, 2D example in the Wikipedia page actually does a horrible job of this. It specifies y as a function of x; in general, we would prefer to specify x and y as functions of a common independent variable t. Why is this more general than Wikipedia's approach?

WHAT TO TURN IN

You should submit all of your source code, and a PDF write-up containing the outputs of your programs and which addresses the questions at the end of each task outlined above.

Attachment:- Assignment.zip

Reference no: EM131097778

Questions Cloud

Explosion in national growth : Answer the following questions relating to the scenario above: What country are you recommending the organization expand into for global growth? Why?
About the the market demand function : Suppose the market demand function is given by: Q=100-2P, where Q: total quantity, P: market price. And in this market there are two firms with MC=AV= $10.  Perfect competition price, quantity, and consumer surplus? Monopoly price, quantity, consumer..
Major risks of using international strategies : Your organization has made the transition into the global community and has been operating for one month. Discuss the two major risks of using international strategies. Define the strategies in terms of your growth plan.
History and future of problem-solving : Problem-solving was first described by Professor Herman Goldstein. He authored the book Problem-Oriented Policing and has been at the forefront of this topic since its inception. Goldstein's research concluded that police agencies generally respo..
Which mna can provide multiple valid solutions : Under what circumstances is MNA incapable of finding a valid solution? Are there any nets for which MNA can provide multiple valid solutions? Provide example netlists to support your answers
Director of sales position : Congratulations, you have just been promoted to the Director of Sales position within a gym. Your gym is open 24 hours a day, 7 days a week. You have a team of 60 and you are in charge of the department structure.
What is the equilibrium wage : Suppose that the demand for undocumented immigrants by U.S. employers is Ed =100–w, and the supply of labor by undocumented immigrants is Es =3w, where E is measured in thousands.  In the absence of any enforcement efforts (border or otherwise), how ..
What is the equilibrium wage and level of employment : Let E = En + Ei denote the total size of the labor force, where En and Ei represent native-born workers and immigrants, respectively (measured in thousands). Suppose that initially there is no immigration at all: Ei =0. What is the equilibrium wage a..
Super-efficient management of people-equipment and materials : The heart of Toyota’s strategy in motor vehicles is to outcompete rivals by manufacturing world-class, quality vehicles at lower costs and selling them at competitive price levels. Executing this strategy requires top-notch manufacturing capability a..

Reviews

Write a Review

Computer Engineering Questions & Answers

  Write down an essay of 500-750 words in which you describe

using a graphic organizer of your choice identify and explain six technology- induced methods that can be used in your

  Example of a business problem solved using a case statement

offer an example of a business problem solved using a case statement. Give an example for a business problem solved with an IF statement. Can IF statements replace SELECT statements, why or why not.

  1nbspunder the von neumann architecture a program and its

1.nbspunder the von neumann architecture a program and its data are both stored in memory. it is therefore possible for

  Explain the role of signature analysis in computer forensics

Discuss one of the general set of procedures that an enterprise should follow to preserve digital evidence when faced with a suspected insider breach if information security?

  Validate the input begins with a series of characters

expalin how cookies can be used to store information on a computer and how the information can be retrieved by a PHP program. Assume that cookies are not disabled on the client.

  Revealing and exploring system topology

Code and a 1000 word report on revealing and exploring system topology - what it reveals about the system topology and why this is a useful thing to know

  Pseudocode and flowchart

Develop a flowchart or puesdocode that carry out the following task: Begin the program. Declares the strings.

  Appraise the individual and organizational consequences of

while information systems has one meaning it can be used in different ways for companies to keep a competitive edge

  Why does the windows frequently crash

Why use functions at all? Programs could be written without them, so why bother with all the overhead.

  Implementing the sql query

Employees relation describes pilots and other kinds of the employees as well; every pilot is certified for some aircraft, and only pilots are certified to fly. Write down each of following queries in SQL.

  Selecting the operating system

What operating system must the library consider for this facility? And also explain why?

  Effects of technology

Select a new technology that interests you and analyze it from the sociological point of view. What do you consider this technology would contribute towards the society?

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