91
ECE 552 Numerical Circuit Analysis Chapter Three SOLUTION OF LINEAR ALGEBRAIC EQUATIONS Copyright © I. Hajj 2012 All rights reserved

ECE 552 Numerical Circuit Analysis Chapter Three SOLUTION OF LINEAR ALGEBRAIC EQUATIONS Copyright © I. Hajj 2012 All rights reserved

Embed Size (px)

Citation preview

Page 1: ECE 552 Numerical Circuit Analysis Chapter Three SOLUTION OF LINEAR ALGEBRAIC EQUATIONS Copyright © I. Hajj 2012 All rights reserved

ECE 552Numerical Circuit Analysis

Chapter Three

SOLUTION OF LINEAR ALGEBRAIC EQUATIONS

Copyright © I. Hajj 2012 All rights reserved

Page 2: ECE 552 Numerical Circuit Analysis Chapter Three SOLUTION OF LINEAR ALGEBRAIC EQUATIONS Copyright © I. Hajj 2012 All rights reserved

References:

VLACH & SlNGHAL, Chap. 2

PILLAGE, ROHRER, and VlSWESWARIAH, Chaps. 3 and 7

F. NAJM, Chapter 3

Press, Teukolsky, Vettering, Flannery, “Numerical Recipe in C”, Cambridge

University Press, 1995 (Check for latest Edition)

G.H. Gulub & C.F. Van Loan, “Matrix Computation,”

John Hopkins Univ. Press, 3rd Edition, 1996

Y. Saad, Iterative Methods for Sparse Linear Systems, 2nd Edition, 2nd Edition, Siam 2003.

Page 3: ECE 552 Numerical Circuit Analysis Chapter Three SOLUTION OF LINEAR ALGEBRAIC EQUATIONS Copyright © I. Hajj 2012 All rights reserved

Linear Equation Solution Methods

Consider a set of n linear algebraic equations Ax = b

where A is a real or complex n x n nonsingular matrix.

There are many ways of solving Ax =b

I. Direct Methods: Cramer’s Rule, Inverse, Gaussian Elimination or LU Factorization, Sparse Matrix Techniques

II. Iterative or Relaxation Methods: Gauss-Jacobi; Gauss-Seidel, Projection Methods ...

Page 4: ECE 552 Numerical Circuit Analysis Chapter Three SOLUTION OF LINEAR ALGEBRAIC EQUATIONS Copyright © I. Hajj 2012 All rights reserved

(1) Cramer's Rule

Computationally very expensive.

(2) Compute the inverse A-1, then for every b, x = A-1b Note: The inverse can be obtained by transforming:

Then A-1 ≡ B

Also computationally expensive, but much less than Cramer’s Rule

Page 5: ECE 552 Numerical Circuit Analysis Chapter Three SOLUTION OF LINEAR ALGEBRAIC EQUATIONS Copyright © I. Hajj 2012 All rights reserved

Using the inverse: x = A-1 b

• Computing A-1 requires n3 operations (we’ll prove this later)

• The computation of x = A-1 b requires n2 operations.

Total: n3 + n2 operations

Storage: n2 for A, n2 for A-1, n for b and n for x; total = 2(n2 + n)

• An operation is considered a multiplication or a division, not counting additions and subtractions, which are almost as many as multiplications and divisions in solving Ax = b.

Page 6: ECE 552 Numerical Circuit Analysis Chapter Three SOLUTION OF LINEAR ALGEBRAIC EQUATIONS Copyright © I. Hajj 2012 All rights reserved

If A is sparse (i.e., the percentage of nonzero elements in A is small), then A-1, in general, is full and the solution process still requires n3 + n2 operation and 2(n2 + n) storage locations.

A more efficient method, from both computation and storage, is to use

Gaussian Elimination or LU factorization

Page 7: ECE 552 Numerical Circuit Analysis Chapter Three SOLUTION OF LINEAR ALGEBRAIC EQUATIONS Copyright © I. Hajj 2012 All rights reserved

Gaussian Elimination

Page 8: ECE 552 Numerical Circuit Analysis Chapter Three SOLUTION OF LINEAR ALGEBRAIC EQUATIONS Copyright © I. Hajj 2012 All rights reserved
Page 9: ECE 552 Numerical Circuit Analysis Chapter Three SOLUTION OF LINEAR ALGEBRAIC EQUATIONS Copyright © I. Hajj 2012 All rights reserved

Final result of elimination:

or U x = z

Solution of Ux = z by Backward Substitution:

xn = zn

xn-1 = zn-1 – un-1, xn

x1 = z1 – u12x2 – u13x3 … -u1nxn

Page 10: ECE 552 Numerical Circuit Analysis Chapter Three SOLUTION OF LINEAR ALGEBRAIC EQUATIONS Copyright © I. Hajj 2012 All rights reserved

Suppose b changes, while A remains unchanged.

Question: Is it possible to solve for the new x without repeating all the elimination steps since the U matrix remains the same, and only b, and subsequently z, changes?

The answer is YES: Save the operations that operate on b to generate the new z.

How?

Save the lower part of the "triangular" matrix.

Page 11: ECE 552 Numerical Circuit Analysis Chapter Three SOLUTION OF LINEAR ALGEBRAIC EQUATIONS Copyright © I. Hajj 2012 All rights reserved

More formally

Page 12: ECE 552 Numerical Circuit Analysis Chapter Three SOLUTION OF LINEAR ALGEBRAIC EQUATIONS Copyright © I. Hajj 2012 All rights reserved

Both L and U are stored in place of A

Page 13: ECE 552 Numerical Circuit Analysis Chapter Three SOLUTION OF LINEAR ALGEBRAIC EQUATIONS Copyright © I. Hajj 2012 All rights reserved

Summary of Solution Steps Ax = b

• Factorize A = LU (LUx = b)

• Forward Substitution: Lz = b, where Ux ≡ z

• Backward Substitution: Solve Ux = z

• Factorization is always possible when A is nonsingular, provided pivoting is allowed. Pivoting will be explained later.

• Factorization is not unique

• There are different ways and different implementations, depending on computer architecture and on memory access. The solution, however, is unique.

Page 14: ECE 552 Numerical Circuit Analysis Chapter Three SOLUTION OF LINEAR ALGEBRAIC EQUATIONS Copyright © I. Hajj 2012 All rights reserved

Remarks

1. The matrices L and U can overwrite the values aij of A. There is no need to provide separate storage locations for A and for its factors L and U. There is no need to store the diagonal unit entries of U or L.

2. If only the right-hand-side vector b is changed, there is no need to repeat the factorization step; only the forward and backward substitutions need to be performed.

Page 15: ECE 552 Numerical Circuit Analysis Chapter Three SOLUTION OF LINEAR ALGEBRAIC EQUATIONS Copyright © I. Hajj 2012 All rights reserved

Determinant of A

• det A = det (LU) = det L det U

• det A = l11 × l22 × … × lnn (if U has 1s on diagonal

• det A = u11 × u22 × … × unn (if L has 1s on diagonal

Page 16: ECE 552 Numerical Circuit Analysis Chapter Three SOLUTION OF LINEAR ALGEBRAIC EQUATIONS Copyright © I. Hajj 2012 All rights reserved

Transpose Systems

• The solution of the transpose system

ATx = c can be found by using the same

LU factors of A.

• ATx = (LU)Tx = UTLTx = c

• Forward substitution: Solve UTz = c

• Backward substitution: Solve LTx = z

Page 17: ECE 552 Numerical Circuit Analysis Chapter Three SOLUTION OF LINEAR ALGEBRAIC EQUATIONS Copyright © I. Hajj 2012 All rights reserved

Remark

• Transpose systems are used in small-change sensitivity calculations and optimization.

Page 18: ECE 552 Numerical Circuit Analysis Chapter Three SOLUTION OF LINEAR ALGEBRAIC EQUATIONS Copyright © I. Hajj 2012 All rights reserved

Gauss Algorithm

Continue until n. U will have 1’s on the diagonal.

Page 19: ECE 552 Numerical Circuit Analysis Chapter Three SOLUTION OF LINEAR ALGEBRAIC EQUATIONS Copyright © I. Hajj 2012 All rights reserved

Variation

=> L will have 1's on the diagonal

Page 20: ECE 552 Numerical Circuit Analysis Chapter Three SOLUTION OF LINEAR ALGEBRAIC EQUATIONS Copyright © I. Hajj 2012 All rights reserved

Gauss Algorithm Factorization

Given A, a nonsingular nxn matrix

Page 21: ECE 552 Numerical Circuit Analysis Chapter Three SOLUTION OF LINEAR ALGEBRAIC EQUATIONS Copyright © I. Hajj 2012 All rights reserved
Page 22: ECE 552 Numerical Circuit Analysis Chapter Three SOLUTION OF LINEAR ALGEBRAIC EQUATIONS Copyright © I. Hajj 2012 All rights reserved
Page 23: ECE 552 Numerical Circuit Analysis Chapter Three SOLUTION OF LINEAR ALGEBRAIC EQUATIONS Copyright © I. Hajj 2012 All rights reserved

Forward Substitution: Lz = b column-by-column

• Let b(1) ≡ b

• For k = 1 to n

Page 24: ECE 552 Numerical Circuit Analysis Chapter Three SOLUTION OF LINEAR ALGEBRAIC EQUATIONS Copyright © I. Hajj 2012 All rights reserved

Backward Substitution: Ux = z row-by-row

OR

Page 25: ECE 552 Numerical Circuit Analysis Chapter Three SOLUTION OF LINEAR ALGEBRAIC EQUATIONS Copyright © I. Hajj 2012 All rights reserved

Backward Substitution: Ux = z column-by-column

OR

Page 26: ECE 552 Numerical Circuit Analysis Chapter Three SOLUTION OF LINEAR ALGEBRAIC EQUATIONS Copyright © I. Hajj 2012 All rights reserved

Other Factorization Procedures (Doolittle’s and Crout’s)

Page 27: ECE 552 Numerical Circuit Analysis Chapter Three SOLUTION OF LINEAR ALGEBRAIC EQUATIONS Copyright © I. Hajj 2012 All rights reserved

Gauss

Entire submatrix Ar is updated at each step

Page 28: ECE 552 Numerical Circuit Analysis Chapter Three SOLUTION OF LINEAR ALGEBRAIC EQUATIONS Copyright © I. Hajj 2012 All rights reserved

Doolittle

(L has l’s on Diagonal)

kth subrow and kth subcolumn are updated at each step

Page 29: ECE 552 Numerical Circuit Analysis Chapter Three SOLUTION OF LINEAR ALGEBRAIC EQUATIONS Copyright © I. Hajj 2012 All rights reserved

Crout

(U has l’s on Diagonal)

For k = l,...,n

kth subrow and kth subcolumn are updated at each step

Page 30: ECE 552 Numerical Circuit Analysis Chapter Three SOLUTION OF LINEAR ALGEBRAIC EQUATIONS Copyright © I. Hajj 2012 All rights reserved

Operation Count

Useful identities

Page 31: ECE 552 Numerical Circuit Analysis Chapter Three SOLUTION OF LINEAR ALGEBRAIC EQUATIONS Copyright © I. Hajj 2012 All rights reserved

Number of operations in LU factorization

(assume L and U are full)

Count divisions and multiplications only. Number of additions and subtractions is almost equal to the number of divisions and multiplications

Page 32: ECE 552 Numerical Circuit Analysis Chapter Three SOLUTION OF LINEAR ALGEBRAIC EQUATIONS Copyright © I. Hajj 2012 All rights reserved

Forward and Backward Substitutions

Page 33: ECE 552 Numerical Circuit Analysis Chapter Three SOLUTION OF LINEAR ALGEBRAIC EQUATIONS Copyright © I. Hajj 2012 All rights reserved

Pivoting

(1) For Numerical Accuracy and Stability

(2) For Sparsity Preservation

Page 34: ECE 552 Numerical Circuit Analysis Chapter Three SOLUTION OF LINEAR ALGEBRAIC EQUATIONS Copyright © I. Hajj 2012 All rights reserved

(1) Pivoting for numerical stability

(a) To avoid division by zero

Example

Page 35: ECE 552 Numerical Circuit Analysis Chapter Three SOLUTION OF LINEAR ALGEBRAIC EQUATIONS Copyright © I. Hajj 2012 All rights reserved

Pivoting for numerical stability (cont.)

• Pivoting for numerical stability to offset computation errors caused by round-off errors due to computer word length.

• WILKINSON: “To minimize round-off errors in Gaussian elimination it is important to avoid growth in the size of aij(k+1) and bi(k+1) .” That is, the pivot should not be ‘too’ small.

Page 36: ECE 552 Numerical Circuit Analysis Chapter Three SOLUTION OF LINEAR ALGEBRAIC EQUATIONS Copyright © I. Hajj 2012 All rights reserved

Different types of pivoting

(1) Complete pivoting: Ax = b

Page 37: ECE 552 Numerical Circuit Analysis Chapter Three SOLUTION OF LINEAR ALGEBRAIC EQUATIONS Copyright © I. Hajj 2012 All rights reserved

• Complete pivoting can be used with GAUSS’ algorithm, but not with CROUT’S and DOOLITTLE’S.

• In complete pivoting the order of the variables and the rhs may change according to the reordering.

Page 38: ECE 552 Numerical Circuit Analysis Chapter Three SOLUTION OF LINEAR ALGEBRAIC EQUATIONS Copyright © I. Hajj 2012 All rights reserved

Partial Pivoting

(2) Row Pivoting At the k-th step in the factorization process choose

i.e., choose the largest element in column k as a pivot by performing row interchange.

Page 39: ECE 552 Numerical Circuit Analysis Chapter Three SOLUTION OF LINEAR ALGEBRAIC EQUATIONS Copyright © I. Hajj 2012 All rights reserved

Different types of pivoting (cont.)

• In row pivoting the order of the variables remains the same, while the order of the rhs changes accordingly.

• Row pivoting can be used with GAUSS’, CROUT’S, and DOOLITTLES.

Page 40: ECE 552 Numerical Circuit Analysis Chapter Three SOLUTION OF LINEAR ALGEBRAIC EQUATIONS Copyright © I. Hajj 2012 All rights reserved

Different types of pivoting (cont.)

(3) Column Pivoting

Page 41: ECE 552 Numerical Circuit Analysis Chapter Three SOLUTION OF LINEAR ALGEBRAIC EQUATIONS Copyright © I. Hajj 2012 All rights reserved

Different types of pivoting (cont.)

• In column pivoting the order of the variables changes, while the order of the rhs remains the same.

• Column pivoting can be used with GAUSS’, CROUT’S, and DOOLITTLE’S.

Page 42: ECE 552 Numerical Circuit Analysis Chapter Three SOLUTION OF LINEAR ALGEBRAIC EQUATIONS Copyright © I. Hajj 2012 All rights reserved

Different types of pivoting (cont.)

(4) Diagonal Pivoting

Page 43: ECE 552 Numerical Circuit Analysis Chapter Three SOLUTION OF LINEAR ALGEBRAIC EQUATIONS Copyright © I. Hajj 2012 All rights reserved

Different types of pivoting (cont.)

• Diagonal pivoting requires both row and column interchanges in a symmetrical way. It is used, for example, to preserve symmetry. Both the orders of the variables and the rhs change accordingly.

• Diagonal pivoting can be used with GAUSS’, but not with CROUT’S or DOOLITTLE’S.

• Diagonally dominant matrices require no pivoting to maintain numerical stability. The reduced matrix remains diagonally dominant.

• Pivoting, however, may be necessary to maintain sparsity (explained later).

Page 44: ECE 552 Numerical Circuit Analysis Chapter Three SOLUTION OF LINEAR ALGEBRAIC EQUATIONS Copyright © I. Hajj 2012 All rights reserved

Different types of pivoting (cont.)

•The nodal admittance matrix of a circuit with no controlled sources is diagonally dominant (e.g., power system load flow equations).

Diagonal dominance depends on equation and variable ordering, i.e., diagonal dominance may be destroyed (or created) by pivoting (other than diagonal pivoting). Example:

Page 45: ECE 552 Numerical Circuit Analysis Chapter Three SOLUTION OF LINEAR ALGEBRAIC EQUATIONS Copyright © I. Hajj 2012 All rights reserved

Why is pivoting possible?

• Theorem: If at any step in the factorization process, a column or a row of the reduced matrix is zero, then A is singular.

• In other words, if A is nonsingular, then it is always possible to carry out complete, row, or column pivoting (but not necessarily diagonal pivoting).

• In some cases all the nonzero elements in the reduced matrix are small => matrix could be ill-conditioned.

• Advice: Always use double-precision

Page 46: ECE 552 Numerical Circuit Analysis Chapter Three SOLUTION OF LINEAR ALGEBRAIC EQUATIONS Copyright © I. Hajj 2012 All rights reserved

Pivoting and Permutation Matrix

• Row pivoting amounts to multiplying matrix A by a permutation matrix P:

PAx =Pb

• P is a reordered identity matrix• Example

P can be encoded as a row vector pr =[2 4 1 3]

Page 47: ECE 552 Numerical Circuit Analysis Chapter Three SOLUTION OF LINEAR ALGEBRAIC EQUATIONS Copyright © I. Hajj 2012 All rights reserved

Pivoting and Permutation Matrix

• Column pivoting amounts to post-multiplying matrix A by a permutation matrix Q:

AQ

• Q is a reordered identity matrix• Example

Q can be encoded as a row vector qc =[3 1 4 2]

Page 48: ECE 552 Numerical Circuit Analysis Chapter Three SOLUTION OF LINEAR ALGEBRAIC EQUATIONS Copyright © I. Hajj 2012 All rights reserved

Pivoting and Permutation Matrix

• Complete pivoting

PAQ

• Diagonal pivoting

PAPT

Page 49: ECE 552 Numerical Circuit Analysis Chapter Three SOLUTION OF LINEAR ALGEBRAIC EQUATIONS Copyright © I. Hajj 2012 All rights reserved

Condition Number

If is small, A is well-conditioned

=> Solution can be obtained accurately

If Is large, A is ill-conditioned

=> Solution not accurate

Page 50: ECE 552 Numerical Circuit Analysis Chapter Three SOLUTION OF LINEAR ALGEBRAIC EQUATIONS Copyright © I. Hajj 2012 All rights reserved

Residual Error and Accuracy

• Residual error: r = b – Ax(s)

=>Small ||r|| indicates convergence• Accuracy is related to number of correct decimal

digits in solution, related to condition number

• In circuit simulation small ||r|| is more important, and Gaussian elimination with pivoting is adequate.

Page 51: ECE 552 Numerical Circuit Analysis Chapter Three SOLUTION OF LINEAR ALGEBRAIC EQUATIONS Copyright © I. Hajj 2012 All rights reserved

Improving Accuracy

Page 52: ECE 552 Numerical Circuit Analysis Chapter Three SOLUTION OF LINEAR ALGEBRAIC EQUATIONS Copyright © I. Hajj 2012 All rights reserved

If A is numerically symmetric, i.e., A = AT, and positive definite, then A can be factorized as:

A = LLT (Cholesky Factorization)OR

A = LDLT

Page 53: ECE 552 Numerical Circuit Analysis Chapter Three SOLUTION OF LINEAR ALGEBRAIC EQUATIONS Copyright © I. Hajj 2012 All rights reserved

Factoring A = LDLT avoids computing the square root

Only lower (or upper part) is stored. Storage = (n2 + n)/2

Page 54: ECE 552 Numerical Circuit Analysis Chapter Three SOLUTION OF LINEAR ALGEBRAIC EQUATIONS Copyright © I. Hajj 2012 All rights reserved

Solution of LDLTx = b

Page 55: ECE 552 Numerical Circuit Analysis Chapter Three SOLUTION OF LINEAR ALGEBRAIC EQUATIONS Copyright © I. Hajj 2012 All rights reserved

Solution Updating

(used in large-change sensitivity calculations and other applications)

• Suppose the LU factors of A and the solution xo of Ax = b are known.

• Suppose A is “perturbed” (or some entries changed); find the new solution from LU and xo.

Page 56: ECE 552 Numerical Circuit Analysis Chapter Three SOLUTION OF LINEAR ALGEBRAIC EQUATIONS Copyright © I. Hajj 2012 All rights reserved

Sherman-Morrison-Woodbury (Householder) Formula

New Solution of

( We’ll prove later)

Page 57: ECE 552 Numerical Circuit Analysis Chapter Three SOLUTION OF LINEAR ALGEBRAIC EQUATIONS Copyright © I. Hajj 2012 All rights reserved

Solution Updating Algorithm

• Given x° and LU factors of A

• (1) Solve AV = P => V = A-1P

• (2) Form (D-1 + QTV) ≡H

• (3) Form y = QTxo

• (4) Solve Hz = y ← k x k system

• (5) xnew = xo - Vz

Page 58: ECE 552 Numerical Circuit Analysis Chapter Three SOLUTION OF LINEAR ALGEBRAIC EQUATIONS Copyright © I. Hajj 2012 All rights reserved

Proof of Housholder formula

Back substitute:

OR

Page 59: ECE 552 Numerical Circuit Analysis Chapter Three SOLUTION OF LINEAR ALGEBRAIC EQUATIONS Copyright © I. Hajj 2012 All rights reserved

Applications:

• Design, • optimization, • tolerance, • statistical analysis, • reliability studies, • failure analysis,• .....................

Sensitivity Analysis of Linear Resistive Circuits and Linear RLC Circuits in the Frequency Domain:

Linear Algebraic Systems

Page 60: ECE 552 Numerical Circuit Analysis Chapter Three SOLUTION OF LINEAR ALGEBRAIC EQUATIONS Copyright © I. Hajj 2012 All rights reserved

Large-Change Sensitivity

• Let F(p) represent a scalar output function of a system, where p is the set of system parameters. Let p° be the nominal value of p.

• F(p° + ∆p) - F(p°) Large-change sensitivity of F(p) with respect to p at p = p°

• Apply solution updating method

Page 61: ECE 552 Numerical Circuit Analysis Chapter Three SOLUTION OF LINEAR ALGEBRAIC EQUATIONS Copyright © I. Hajj 2012 All rights reserved
Page 62: ECE 552 Numerical Circuit Analysis Chapter Three SOLUTION OF LINEAR ALGEBRAIC EQUATIONS Copyright © I. Hajj 2012 All rights reserved

Solution Updating Algorithm

Page 63: ECE 552 Numerical Circuit Analysis Chapter Three SOLUTION OF LINEAR ALGEBRAIC EQUATIONS Copyright © I. Hajj 2012 All rights reserved

Example on Large-Change Sensitivity Calculation

•Find large-change sensitivity of V1 and V2 wrt ∆g2.

Find the “Nominal Solution”:

Page 64: ECE 552 Numerical Circuit Analysis Chapter Three SOLUTION OF LINEAR ALGEBRAIC EQUATIONS Copyright © I. Hajj 2012 All rights reserved

Example on Large-Change Sensitivity Calculation (cont.)

Page 65: ECE 552 Numerical Circuit Analysis Chapter Three SOLUTION OF LINEAR ALGEBRAIC EQUATIONS Copyright © I. Hajj 2012 All rights reserved

Example on Large-Change Sensitivity Calculation (cont.)

Page 66: ECE 552 Numerical Circuit Analysis Chapter Three SOLUTION OF LINEAR ALGEBRAIC EQUATIONS Copyright © I. Hajj 2012 All rights reserved

Example on Large-Change Sensitivity Calculation (cont.)

Page 67: ECE 552 Numerical Circuit Analysis Chapter Three SOLUTION OF LINEAR ALGEBRAIC EQUATIONS Copyright © I. Hajj 2012 All rights reserved

Small-Change Sensitivity

• small-change sensitivity of F(p) with respect to p at p = p°

If F(p) is available as an explicit function of p, then the sensitivities, both small and large, could be computed in a straight-forward manner. Usually, such an explicit function is not available.

• Consider a linear algebraic system described by: 

A(p)x = b

where A could be real or complex.

Page 68: ECE 552 Numerical Circuit Analysis Chapter Three SOLUTION OF LINEAR ALGEBRAIC EQUATIONS Copyright © I. Hajj 2012 All rights reserved

Small-Change Sensitivity (Cont.)

Suppose the output is a linear combination of the system variables:

a linear combination of the rows of the sensitivity matrix. The output could also be a vector xout = ETx.

Page 69: ECE 552 Numerical Circuit Analysis Chapter Three SOLUTION OF LINEAR ALGEBRAIC EQUATIONS Copyright © I. Hajj 2012 All rights reserved

Small-Change Sensitivity (Cont.)

Differentiate system equations A(p) x = b with respect to p:

(evaluated at nominal solution x = x°, p = p°)

Suppose xout = eTx, then

Page 70: ECE 552 Numerical Circuit Analysis Chapter Three SOLUTION OF LINEAR ALGEBRAIC EQUATIONS Copyright © I. Hajj 2012 All rights reserved

Algorithm

1. Solve Ax = b at p = p° and find LU and x°

2. Construct

3. Solve the adjoint system (or transpose)

ATu = e → UTLTu = e (i.e., uT= eTA-l)

Page 71: ECE 552 Numerical Circuit Analysis Chapter Three SOLUTION OF LINEAR ALGEBRAIC EQUATIONS Copyright © I. Hajj 2012 All rights reserved

Example

• Find the small-change sensitivity of vout with respect to g1, g2, and g3.

 • Suppose we use nodal analysis, then

Page 72: ECE 552 Numerical Circuit Analysis Chapter Three SOLUTION OF LINEAR ALGEBRAIC EQUATIONS Copyright © I. Hajj 2012 All rights reserved

Example (cont.)

(1) Find nominal solution:

(2) Construct Constructed from the stamp connectivity

Page 73: ECE 552 Numerical Circuit Analysis Chapter Three SOLUTION OF LINEAR ALGEBRAIC EQUATIONS Copyright © I. Hajj 2012 All rights reserved

Example (cont.)

(3) Solve ATu = e (Adjoint system)

Page 74: ECE 552 Numerical Circuit Analysis Chapter Three SOLUTION OF LINEAR ALGEBRAIC EQUATIONS Copyright © I. Hajj 2012 All rights reserved

Nonlinear Performance Function

• If the performance function is nonlinear

ϕ = f(x, p) (the system is still linear), then

and are evaluated at xo and po.

is computed by the small-change

sensitivity algorithm.

Page 75: ECE 552 Numerical Circuit Analysis Chapter Three SOLUTION OF LINEAR ALGEBRAIC EQUATIONS Copyright © I. Hajj 2012 All rights reserved

Partitioning and Block Decomposition

Page 76: ECE 552 Numerical Circuit Analysis Chapter Three SOLUTION OF LINEAR ALGEBRAIC EQUATIONS Copyright © I. Hajj 2012 All rights reserved

Partitioning and Block Decomposition

Page 77: ECE 552 Numerical Circuit Analysis Chapter Three SOLUTION OF LINEAR ALGEBRAIC EQUATIONS Copyright © I. Hajj 2012 All rights reserved

Partitioning and Block Decomposition

Page 78: ECE 552 Numerical Circuit Analysis Chapter Three SOLUTION OF LINEAR ALGEBRAIC EQUATIONS Copyright © I. Hajj 2012 All rights reserved

Bordered-Block Diagonal Form

Node Tearing:

In general:

Page 79: ECE 552 Numerical Circuit Analysis Chapter Three SOLUTION OF LINEAR ALGEBRAIC EQUATIONS Copyright © I. Hajj 2012 All rights reserved

Branch Tearing

Page 80: ECE 552 Numerical Circuit Analysis Chapter Three SOLUTION OF LINEAR ALGEBRAIC EQUATIONS Copyright © I. Hajj 2012 All rights reserved

Floating Subcircuit

Page 81: ECE 552 Numerical Circuit Analysis Chapter Three SOLUTION OF LINEAR ALGEBRAIC EQUATIONS Copyright © I. Hajj 2012 All rights reserved

Bordered-Block Diagonal Form

Page 82: ECE 552 Numerical Circuit Analysis Chapter Three SOLUTION OF LINEAR ALGEBRAIC EQUATIONS Copyright © I. Hajj 2012 All rights reserved

Solution of BBD Equations: Subcircuit Eqns. Factorization and Forward Subst

Page 83: ECE 552 Numerical Circuit Analysis Chapter Three SOLUTION OF LINEAR ALGEBRAIC EQUATIONS Copyright © I. Hajj 2012 All rights reserved

Subcircuit Equations

Terminal representation of the subcircuit at the tearing points

Page 84: ECE 552 Numerical Circuit Analysis Chapter Three SOLUTION OF LINEAR ALGEBRAIC EQUATIONS Copyright © I. Hajj 2012 All rights reserved

Solution of BBD Equations: Alg. I

Page 85: ECE 552 Numerical Circuit Analysis Chapter Three SOLUTION OF LINEAR ALGEBRAIC EQUATIONS Copyright © I. Hajj 2012 All rights reserved

Solution of BBD Equations: Alg. I (cont.)

Page 86: ECE 552 Numerical Circuit Analysis Chapter Three SOLUTION OF LINEAR ALGEBRAIC EQUATIONS Copyright © I. Hajj 2012 All rights reserved

Solution of BBD Equations: Alg. II

Page 87: ECE 552 Numerical Circuit Analysis Chapter Three SOLUTION OF LINEAR ALGEBRAIC EQUATIONS Copyright © I. Hajj 2012 All rights reserved

Solution of BBD Equations: Alg. II (cont.)

Page 88: ECE 552 Numerical Circuit Analysis Chapter Three SOLUTION OF LINEAR ALGEBRAIC EQUATIONS Copyright © I. Hajj 2012 All rights reserved

Solution of BBD Equations: Alg. III

Page 89: ECE 552 Numerical Circuit Analysis Chapter Three SOLUTION OF LINEAR ALGEBRAIC EQUATIONS Copyright © I. Hajj 2012 All rights reserved

Solution of BBD Equations: Alg. III (cont.)

Page 90: ECE 552 Numerical Circuit Analysis Chapter Three SOLUTION OF LINEAR ALGEBRAIC EQUATIONS Copyright © I. Hajj 2012 All rights reserved

Nested Decomposition

• Also known as:

Nested Dissection

Domain Decomposition

Page 91: ECE 552 Numerical Circuit Analysis Chapter Three SOLUTION OF LINEAR ALGEBRAIC EQUATIONS Copyright © I. Hajj 2012 All rights reserved

Nested Decomposition