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

  What do mean by digital stratigraphy

What is digital stratigraphy? Give an instance to illustrate how digital stratigraphy is important in the field of Computer Forensics.

  Converts a number from binary to decimal

Write a program that Converts a Number from Binary to Decimal by using reading keyboard input, nested if statements, nested loops, Strings. Also ensure it's in java please! Thanks so much!

  Define open-source and proprietary databases

describe open-source and proprietary databases. What are some advantages and disadvantages of each type of database? What characteristics a business should consider when choosing a database.

  Complete handover of change management

How much control will you expect the Project Manager to have over planned changes, in projects where work has been extensively outsourced to external contractors? Full or partial control, or a complete handover of change management responsibility ..

  What is structured programming

Suppose f is a function that returns the result of reversing the string of symbols given as its input, and g is a function that returns the concatenation of the two strings given as its input. If x is the string abcd, what is returned by g(f(x),x)..

  How to use a nested select case statement

plan and build an application that works as a paper, scissors, and rock game. Draw a flowchart and write pseudocode before coding the application. Use two ComboBox controls to input the selections of the two players and label the ComboBox controls..

  Write down an event handler that automatically displays

design an ASP.NET project with Visual Studio.NET 2005. Add an aspx form to the application. Place an Image control, three RadioButton controls, a Label control, a TextBox control, and a Button control on the form. Add three images to the applicati..

  Developing the flowchart using visual logic

Develop a flowchart by using the Visual Logic for a program which accepts a candy name.

  Questionexecute a class person with two fields name and age

questionexecute a class person with two fields name and age and a class car with three fields-1. the model2. a pointer

  Create a shippedorder class that derives from order

Create a ShippedOrder class that derives from Order.

  Describe why this approach is needed in this scenario

What is complex data binding? What benefits can this capability lend to a multiple-table database application? Present an example of a situation where complex binding would be appropriate in an application and discuss why this approach is needed i..

  If 32 equally spaced steps are used instead of 16 what

consider an analog signal which can range from -4v to 4v. the input signal is sampled at 20000 samples per second. the

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