CSE245 Lab 3 In this lab we will use KLU (klu), GMRES (gmres) and Preconditioned Conjugate Gradients (pcg) methods in Matlab to solve four circuit matrices*

Slides:



Advertisements
Similar presentations
Corso di Eccellenza ottobre Cell Lab a MATLAB environment for the development of 2D cell method codes Applications of the Cell Method in Engineering.
Advertisements

Selective, Embedded Just-in- Time Specialization (SEJITS) As a platform for implementing communication-avoiding algorithms accessible from Python.
Torque Analysis Results Front Motor Location Expanded Sizing Differences P11213.
Lecture 7 Sept 17 Goals: Complete Chapter 4 Chapters 5 and 6.
Sparse Matrix Methods Day 1: Overview Day 2: Direct methods
General Computer Science for Engineers CISC 106 Lecture 08 Dr. John Cavazos Computer and Information Sciences 2/27/2009.
The Landscape of Ax=b Solvers Direct A = LU Iterative y’ = Ay Non- symmetric Symmetric positive definite More RobustLess Storage (if sparse) More Robust.
MATLAB FOR PATTERN RECOGNITION By: Özge Öztimur. How Much Do We Know? Anybody who has never used MATLAB?
EXAMPLE 2 Solve a matrix equation SOLUTION Begin by finding the inverse of A = Solve the matrix equation AX = B for the 2 × 2 matrix X. 2 –7 –1.
Reproducible Environment for Scientific Applications (Lab session) Tak-Lon (Stephen) Wu.
Using Inverse Matrices Solving Systems. You can use the inverse of the coefficient matrix to find the solution. 3x + 2y = 7 4x - 5y = 11 Solve the system.
Matlab vs. Scilab Rafael Brunner.
1 Functions 1 Parameter, 1 Return-Value 1. The problem 2. Recall the layout 3. Create the definition 4. "Flow" of data 5. Testing 6. Projects 1 and 2.
1 Lab of COMP 406 Teaching Assistant: Pei-Yuan Zhou Contact: Lab 1: 12 Sep., 2014 Introduction of Matlab (I)
Chapter 1: Getting Started with MATLAB MATLAB for Scientist and Engineers Using Symbolic Toolbox.
Chapters 2 & 3 MATLAB Skills This tutorial revisits Examples 3.1 to 3.4 to show how MATLAB can be used to solve the same problems 1.Scatter Plots 2.Other.
Introduction to Engineering MATLAB – 7 Script Files - 2 Agenda Script files continued.
Introduction to Scripting Workshop October
CS 290H Administrivia: May 14, 2008 Course project progress reports due next Wed 21 May. Reading in Saad (second edition): Sections
Unix Servers Used in This Class  Two Unix servers set up in CS department will be used for some programming projects  Machine name: eustis.eecs.ucf.edu.
Chapter 4 Section 5 and 6 Finding and Using Inverses Algebra 2 Notes February 26, 2009.
CSE 455 : Computer Vision MATLAB 101 Getting Started with MATLAB.
Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. A Concise Introduction to MATLAB ® William J. Palm III.
Timer Alarm. What Is The Timer Alarm? The Timer Alarm provides a method for triggering time- based alarms during script playback.
Introduction to Programming on MATLAB Ecological Modeling Course Sep 11th, 2006.
Warm Up Multiply the matrices. 1. Find the determinant. 2. –1 Welcome! I’m so glad you’re here! Please get your Calculator. Please get started on this.
Converting Matrix Market matrices to Matlab format The Matrix Market is an interesting collection of matrices from a variety of applications.
Debugging Lab Antonio Gómez-Iglesias Texas Advanced Computing Center.
Conjugate gradient iteration One matrix-vector multiplication per iteration Two vector dot products per iteration Four n-vectors of working storage x 0.
FAIRROOT RECONSTRUCTION Panda Computing Week 2012, Torino.
The Landscape of Sparse Ax=b Solvers Direct A = LU Iterative y’ = Ay Non- symmetric Symmetric positive definite More RobustLess Storage More Robust More.
Process Chain for Optimization using ANSA, LS-OPT and μETA
Use Inverse Matrices to Solve Linear Systems
PreCalculus Section 14.3 Solve linear equations using matrices
Solving Linear Systems Syed Nasrullah
GRUB 2 Dave Soergel.
Introduction to Matlab
Prof. Mark Glauser Created by: David Marr
AndeShape Labs Andes Technology.
Conifer Cast 2.5 New Features: Numerical Options
MATLAB Introduction Dr. Theodore Cleveland University of Houston
ECE544: Software Assignment 3
Scripts & Functions Scripts and functions are contained in .m-files
Warm-Up BC 3. |A|.
CSE245 Lab 2 R1=1k R2=2k R3=3k C1=100f C2=200f L1=1000n
Outline Matlab tutorial How to start and exit Matlab Matlab basics.
Introduction to MATLAB
Project1: Unix Shell using Multi-Processing
MATLAB – What Is It ? Name is from matrix laboratory Powerful tool for
MATLAB EXAMPLES Matrix Solution Methods
Use Inverse Matrices to Solve Linear Systems
Derivatives of Exponential Functions
Assignment 4 For this assignment refer to the notes on MATLAB from an MIT course that you can find here (or at the original website, lectures 14, 15, 16).
MATLAB – What Is It ? Name is from matrix laboratory Powerful tool for
GROpt.m (1) Copy the 7 files from GRopt.zip into one directory.
Inverse & Identity MATRICES Last Updated: October 12, 2005.
Matrix Operations and Their Applications
Glance and demonstration
Part 3 Chapter 10 LU Factorization
Numerical Linear Algebra
Introduction to Scientific Computing II
Determining Airfoil Self-Noise Levels
Using Script Files and Managing Data
Scripts In Matlab.
Administrivia: November 9, 2009
Programming assignment # 3 Numerical Methods for PDEs Spring 2007
Do Now Solve. 1. –8p – 8 = d – 5 = x + 24 = 60 4.
The Python interpreter
ME 123 Computer Applications I Lecture 4: Vectors and Matrices 3/14/03
ME 123 Computer Applications I Lecture 5: Input and Output 3/17/03
Presentation transcript:

CSE245 Lab 3 In this lab we will use KLU (klu), GMRES (gmres) and Preconditioned Conjugate Gradients (pcg) methods in Matlab to solve four circuit matrices* and compare the results. Setup: ssh to cselab1.ucsd.edu and execute the following commands: cp /home/hepeng/cse245_lab3.tar.gz . tar xvzf cse245_lab3.tar.gz cd cse245_lab3 matlab & Generate a random right hand side b for the matrices. For example, run the following commands in Matlab: %load matlab file scircuit.mat load scircuit; A = Problem.A; % generate RHS b = sum(A,2); % solve Ax = b ….. * Matrix Source: http://www.cise.ufl.edu/research/sparse/matrices/

CSE245 Lab 3 Before you start, please read the matlab reference pages for these solvers. (Type doc klu or doc gmres or doc pcg in Matlab to access these reference pages) Use ILU (luinc) as preconditioner for GMRES and PCG. Do not use PCG unless the matrix is symmetric and positive definite. It is suggested that you read and run the KLU demo in Matlab: edit /home/hepeng/klu/KLU/MATLAB/klu_demo.m For more information about KLU: http://cseweb.ucsd.edu/classes/fa04/cse245/notes/KLU.pdf http://www.cise.ufl.edu/research/sparse/klu/ Tune input parameters for each solver and try to get the best runtime** results. Deliverable: A Matlab script that reads the circuit matrices and calls klu/gmres/pcg to solve the matrices. A report that compares the runtime of these three different solvers. Explain the runtime difference. ** Run doc cputime in Matlab