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 a c++ program for little man''s computer

A text file containing machine code (not assembly code) for little man's computer following instruction set . Instructions are in different lines (no need for semicolon at the end of each instruction)

  Write down an application that displays a menu

Write down an application that displays a menu.

  What many regard as preferential treatment from the courts

What are the major similarities and differences between the juvenile and adult justice systems in the U.S. and should juveniles continue to receive what many regard as preferential treatment from the courts Why or why not

  Effectively communicate with stakeholders to determine

assignment gives you the opportunity to apply the course concepts to develop a decision table and a decision tree for

  Define the structures and properties of carbohydrates

Carbohydrates, lipids, and proteins are important biomolecules. explain the structures and properties of carbohydrates, lipids, and proteins including the different forms of these biomolecules that are present within the body.

  How to create two sql scripts

Then make two SQL scripts. The first should be a DDL code for your tables, data, and PL/SQL package. The second should be an SQL script to show the testing of the execution of the package.

  Calculate data bandwidth requirements from and to each site

The next three questions relate to voice communications. Note that this topic was not covered in the class, but it is included to encourage self-learning. research, and analysis.

  What are synchronized methods and synchronized statements

What are synchronized methods and synchronized statements? What are different ways in which a thread can enter the waiting state?

  Explain respect to parsing efficiency

Compare the performance of LZ77, LZ78 and LZW with respect to parsing efficiency, dictionary generation, coding efficiency

  Questionafter estimating and completing support for

questionafter estimating and completing support for high-definition ip cameras to improve security for devry university

  Part-1selecting array elements implement the following c

part-1selecting array elements implement the following c code in assembly language using the block-structured .if and

  Assume 3 values (x, y, and z) are stored in machine''s memory

Suppose three values (x, y, and z) are stored in a machine's memory. explain the sequence of events (loading registers from memory, saving values in memory, and so on) that lead to the computation of x + y + z. How about (2x) + y?

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