SlideShare a Scribd company logo
1 of 51
CSE 245: Computer Aided Circuit
Simulation and Verification
Fall 2004, Nov
Nonlinear Equation
October 21, 2023 2 courtesy Alessandra Nardi UCB
Outline
 Nonlinear problems
 Iterative Methods
 Newton’s Method
 Derivation of Newton
 Quadratic Convergence
 Examples
 Convergence Testing
 Multidimensonal Newton Method
 Basic Algorithm
 Quadratic convergence
 Application to circuits
 Improve Convergence
 Limiting Schemes
 Direction Corrupting
 Non corrupting (Damped Newton)
 Continuation Schemes
 Source stepping
October 21, 2023 3 courtesy Alessandra Nardi UCB
Need to Solve
( 1) 0
d
t
V
V
d s
I I e
  
Nonlinear Problems - Example
0
1
Ir
I1 Id
0
)
1
(
1
0
1
1
1
1







I
e
I
e
R
I
I
I
t
V
e
s
d
r
1
1)
( I
e
g 
October 21, 2023 4 courtesy Alessandra Nardi UCB
Nonlinear Equations
 Given g(V)=I
 It can be expressed as: f(V)=g(V)-I
 Solve g(V)=I equivalent to solve
f(V)=0
Hard to find analytical solution for f(x)=0
Solve iteratively
October 21, 2023 5 courtesy Alessandra Nardi UCB
Nonlinear Equations – Iterative Methods
 Start from an initial value x0
 Generate a sequence of iterate xn-1,
xn, xn+1 which hopefully converges to
the solution x*
 Iterates are generated according to
an iteration function F: xn+1=F(xn)
Ask
• When does it converge to correct solution ?
• What is the convergence rate ?
October 21, 2023 6 courtesy Alessandra Nardi UCB
Newton-Raphson (NR) Method
Consists of linearizing the system.
Want to solve f(x)=0  Replace f(x) with its
linearized version and solve.
Note: at each step need to evaluate f and f’
function
Iteration
x
f
dx
x
df
x
x
x
x
dx
x
df
x
f
x
f
ies
Taylor Ser
x
x
dx
x
df
x
f
x
f
k
k
k
k
k
k
k
k
k
)
(
)
(
)
(
)
(
)
(
)
(
)
(
)
(
)
(
)
(
1
1
1
1
*
*
*



















October 21, 2023 7 courtesy Alessandra Nardi UCB
Newton-Raphson Method – Graphical View
October 21, 2023 8 courtesy Alessandra Nardi UCB
Newton-Raphson Method – Algorithm
Define iteration
Do k = 0 to ….
until convergence
 How about convergence?
 An iteration {x(k)} is said to converge with order q if
there exists a vector norm such that for each k  N:
q
k
k
x
x
x
x ˆ
ˆ
1




)
(
)
(
1
1 k
k
k
k
x
f
dx
x
df
x
x









 )
(
)
(
1
1 k
k
k
k
x
f
dx
x
df
x
x









 )
(
)
(
1
1 k
k
k
k
x
f
dx
x
df
x
x










October 21, 2023 9 courtesy Alessandra Nardi UCB
Mean Value theorem
truncates Taylor series
But
by Newton
definition
Newton-Raphson Method – Convergence
2
*
2
2
*
*
)
(
)
~
(
)
(
)
(
)
(
)
(
0 k
k
k
k
x
x
dx
x
f
d
x
x
dx
x
df
x
f
x
f 





)
(
)
(
)
(
0 1 k
k
k
k
x
x
dx
x
df
x
f 

 
October 21, 2023 10 courtesy Alessandra Nardi UCB
Subtracting
2
1 * 1 * 2
2
( ) [ ( )] ( )( )
k k k
df d f
x x x x x x
dx d x
 
  
Convergence is quadratic
Dividing through
2
1
2
2
1 * *
Let [ ( )] ( )
then
k k
k k k
df d f
x x K
dx d x
x x K x x



  
Newton-Raphson Method – Convergence
2
*
2
2
*
1
)
(
)
~
(
)
(
)
(
x
x
dx
x
f
d
x
x
dx
x
df k
k
k




October 21, 2023 11 courtesy Alessandra Nardi UCB
Local Convergence Theorem
If
Then Newton’s method converges given a
sufficiently close initial guess (and
convergence is quadratic)
bounded
is
K
bounded
dx
f
d
b
ro
ay from ze
bounded aw
dx
df
a
)
)
2
2







Newton-Raphson Method – Convergence
October 21, 2023 12 courtesy Alessandra Nardi UCB
 
 
   
 
2
1
2 2
1 * * *
* 2
2
1 *
*
( ) 2
( ) 1 0,
2 ( ) 1
2 ( ) 2 ( )
1
( ) (
( 1
)
2
)
k k
k k k k
k k k k k
k k
k
df
x x
dx
x x x x
x x x x x x x
f x x fin
x
d x x
or x x x x
x




   
    




 
 
Convergence is quadratic
Newton-Raphson Method – Convergence
Example 1
October 21, 2023 13 courtesy Alessandra Nardi UCB
 
1 2
1 *
* *
1
2 *
( ) 2
2 ( 0) ( 0)
1
0 0
( ) 0,
for 0
2
1
( ) ( )
2
0
k k
k k k
k k k
k k
df
x x
dx
x x x
x x x x
or x x x
f x
x
x x




   
    
  
  
Convergence is linear
Note : not bounded
away from zero
1
df
dx

 
 
 
Newton-Raphson Method – Convergence
Example 2
October 21, 2023 14 courtesy Alessandra Nardi UCB
Newton-Raphson Method – Convergence
Example 1,2
October 21, 2023 15 courtesy Alessandra Nardi UCB
0
Initial Guess,
= 0
x k 
Repeat {
 
   
1
k
k k k
f x
x x f x
x


  

} Until ?
 
1 1
? ?
k k k
f x threshold
x x threshold 


 
1
k k
 
Newton-Raphson Method – Convergence
October 21, 2023 16 courtesy Alessandra Nardi UCB
Need a "delta-x" check to avoid false convergence
X
f(x)
1
k
x  k
x *
x
 
1
a
k
f
f x 


1 1
a r
k k k
x x
x x x
 
 
  
Newton-Raphson Method – Convergence
Convergence Check
October 21, 2023 17 courtesy Alessandra Nardi UCB
 
Also need an " " check to avoid false convergence
f x
X
f(x)
1
k
x  k
x
*
x
 
1
a
k
f
f x 


1 1
a r
k k k
x x
x x x
 
 
  
Newton-Raphson Method – Convergence
Convergence Check
October 21, 2023 18 courtesy Alessandra Nardi UCB
demo2
Newton-Raphson Method – Convergence
October 21, 2023 19 courtesy Alessandra Nardi UCB
X
f(x)
Convergence Depends on a Good Initial Guess
0
x
1
x
2
x 0
x
1
x
Newton-Raphson Method – Convergence
Local Convergence
October 21, 2023 20 courtesy Alessandra Nardi UCB
Convergence Depends on a Good Initial Guess
Newton-Raphson Method – Convergence
Local Convergence
October 21, 2023 21 courtesy Alessandra Nardi UCB
Nodal Analysis
1 2
At Node 1: 0
i i
 
1
b
v
+
-
1
i
2
i 2
b
v
3
i
+ -
3
b
v
+
-
Nonlinear
Resistors
 
i g v

1
v 2
v
   
1 1 2 0
g v g v v
   
3 2
At Node 2: 0
i i
 
   
3 1 2 0
g v g v v
   
Two coupled
nonlinear equations
in two unknowns
Nonlinear Problems – Multidimensional Example
October 21, 2023 22 courtesy Alessandra Nardi UCB
Outline
 Nonlinear problems
 Iterative Methods
 Newton’s Method
 Derivation of Newton
 Quadratic Convergence
 Examples
 Convergence Testing
 Multidimensonal Newton Method
 Basic Algorithm
 Quadratic convergence
 Application to circuits
 Improve Convergence
 Limiting Schemes
 Direction Corrupting
 Non corrupting (Damped Newton)
 Continuation Schemes
 Source stepping
October 21, 2023 23 courtesy Alessandra Nardi UCB
 
* *
Problem: Find such tha 0
t
x F x 
* N N N
and :
x F
 
Multidimensional Newton Method
function
Iteration
x
F
x
J
x
x
atrix
Jacobian M
x
x
F
x
x
F
x
x
F
x
x
F
x
J
ies
Taylor Ser
x
x
x
J
x
F
x
F
k
k
k
k
N
N
N
N
)
(
)
(
)
(
)
(
)
(
)
(
)
(
)
)(
(
)
(
)
(
1
1
1
1
1
1
*
*
*




































October 21, 2023 24 courtesy Alessandra Nardi UCB
Multidimensional Newton Method
)
(
)
(
)
(
:
solve
Instead
sparse).
not
is
(it
)
(
compute
not
Do
)
(
)
(
:
1
1
1
1
k
k
k
k
k
k
k
k
k
x
F
x
x
x
J
x
J
x
F
x
J
x
x
Iteration









Each iteration requires:
1. Evaluation of F(xk)
2. Computation of J(xk)
3. Solution of a linear system of algebraic
equations whose coefficient matrix is J(xk)
and whose RHS is -F(xk)
Computational Aspects
October 21, 2023 25 courtesy Alessandra Nardi UCB
0
Initial Guess,
= 0
x k 
Repeat {
    
1 1
Solve for
k k k k k
F
J x x x F x x
 
  
} Until  
1
1
, small en ug
o h
k
k k
x x f x 


1
k k
 
   
Compute ,
k k
F
F x J x
Multidimensional Newton Method
Algorithm
October 21, 2023 26 courtesy Alessandra Nardi UCB
If
   
1
) Inverse is bounded
k
F
a J x 


     
) Derivative is Lipschitz Cont
F F
b J x J y x y
  
Then Newton’s method converges given a
sufficiently close initial guess (and
convergence is quadratic)
Multidimensional Newton Method
Local Convergence Theorem
Convergence
October 21, 2023 27 courtesy Alessandra Nardi UCB
Application of NR to Circuit Equations
 Applying NR to the system of equations we find
that at iteration k+1:
 all the coefficients of KCL, KVL and of BCE of the
linear elements remain unchanged with respect to
iteration k
 Nonlinear elements are represented by a linearization
of BCE around iteration k
 This system of equations can be interpreted as the
STA of a linear circuit (companion network) whose
elements are specified by the linearized BCE.
Companion Network
October 21, 2023 28 courtesy Alessandra Nardi UCB
Application of NR to Circuit Equations
 General procedure: the NR method applied
to a nonlinear circuit whose eqns are
formulated in the STA form produces at
each iteration the STA eqns of a linear
resistive circuit obtained by linearizing the
BCE of the nonlinear elements and leaving
all the other BCE unmodified
 After the linear circuit is produced, there is
no need to stick to STA, but other methods
(such as MNA) may be used to assemble
the circuit eqns
Companion Network
October 21, 2023 29 courtesy Alessandra Nardi UCB
Note: G0 and Id depend on the iteration count k
 G0=G0(k) and Id=Id(k)
Application of NR to Circuit Equations
Companion Network – MNA templates
October 21, 2023 30 courtesy Alessandra Nardi UCB
Application of NR to Circuit Equations
Companion Network – MNA templates
October 21, 2023 31 courtesy Alessandra Nardi UCB
Modeling a MOSFET (MOS Level 1, linear regime)
d
October 21, 2023 32 courtesy Alessandra Nardi UCB
Modeling a MOSFET (MOS Level 1, linear regime)
October 21, 2023 33 courtesy Alessandra Nardi UCB
DC Analysis Flow Diagram
For each state variable in the system
October 21, 2023 34 courtesy Alessandra Nardi UCB
Implications
 Device model equations must be continuous
with continuous derivatives (not all models do
this - - be sure models are decent - beware of
user-supplied models)
 Watch out for floating nodes (If a node
becomes disconnected, then J(x) is singular)
 Give good initial guess for x(0)
 Most model computations produce errors in
function values and derivatives. Want to have
convergence criteria || x(k+1) - x(k) || <  such
that  > than model errors.
October 21, 2023 35 courtesy Alessandra Nardi UCB
Outline
 Nonlinear problems
 Iterative Methods
 Newton’s Method
 Derivation of Newton
 Quadratic Convergence
 Examples
 Convergence Testing
 Multidimensonal Newton Method
 Basic Algorithm
 Quadratic convergence
 Application to circuits
 Improve Convergence
 Limiting Schemes
 Direction Corrupting
 Non corrupting (Damped Newton)
 Continuation Schemes
 Source stepping
October 21, 2023 36 courtesy Alessandra Nardi UCB
Improving convergence
 Improve Models (80% of problems)
 Improve Algorithms (20% of
problems)
Focus on new algorithms:
Limiting Schemes
Continuations Schemes
October 21, 2023 37 courtesy Alessandra Nardi UCB
Improve Convergence
 Limiting Schemes
 Direction Corrupting
 Non corrupting (Damped Newton)
 Globally Convergent if Jacobian is
Nonsingular
 Difficulty with Singular Jacobians
 Continuation Schemes
 Source stepping
October 21, 2023 38 courtesy Alessandra Nardi UCB
At a local minimum, 0
f
x



Local
Minimum
 
Multidimensional Case: is singular
F
J x
Multidimensional Newton Method
Convergence Problems – Local Minimum
October 21, 2023 39 courtesy Alessandra Nardi UCB
f(x)
X
0
x
1
x
Must Somehow Limit the changes in X
Multidimensional Newton Method
Convergence Problems – Nearly singular
October 21, 2023 40 courtesy Alessandra Nardi UCB
Multidimensional Newton Method
f(x)
X
0
x 1
x
Must Somehow Limit the changes in X
Convergence Problems - Overflow
October 21, 2023 41 courtesy Alessandra Nardi UCB
0
Initial Guess,
= 0
x k 
Repeat {
   
1 1
Solve for
k k k k
F
J x x F x x
 
   
} Until  
1 1
, small enough
k
k
x F x 


1
k k
 
   
Compute ,
k k
F
F x J x
 
Newton Algorithm for Solving 0
F x 
 
1 1
limited
k k k
x x x
 
  
Newton Method with Limiting
October 21, 2023 42 courtesy Alessandra Nardi UCB
 
1
limited k
i
x 
 
• NonCorrupting
1 1
if
k k
i i
x x 
 
  
 
1
otherwise
k
i
sign x
 
 
1
k
x 

 
1
limited k
x 

• Direction Corrupting
 
1 1
limited k k
x x

 
  
1
min 1, k
x

 
 
 
  

 
 

1
k
x 

 
1
limited k
x 

Heuristics, No Guarantee of Global Convergence
Newton Method with Limiting
Limiting Methods
October 21, 2023 43 courtesy Alessandra Nardi UCB
General Damping Scheme
Key Idea: Line Search
 
2
1
2
Pick to minimize
k k k k
F x x
  
 
Method Performs a one-dimensional search in
Newton Direction
     
2
1 1 1
2
T
k k k k k k k k k
F x x F x x F x x
  
  
      
1 1
k k k k
x x x

 
  
   
1 1
Solve for
k k k k
F
J x x F x x
 
   
Newton Method with Limiting
Damped Newton Scheme
October 21, 2023 44 courtesy Alessandra Nardi UCB
If
   
1
) Inverse is bounded
k
F
a J x 


     
) Derivative is Lipschitz Cont
F F
b J x J y x y
  
Then
 
There exists a set of ' 0,1 such that
k
s
 
     
1 1
with <1
k k k k k
F x F x x F x
  
 
   
Every Step reduces F-- Global Convergence!
Newton Method with Limiting
Damped Newton – Convergence Theorem
October 21, 2023 45 courtesy Alessandra Nardi UCB
0
Initial Guess,
= 0
x k 
Repeat {
   
1 1
Solve for
k k k k
F
J x x F x x
 
   
} Until  
1 1
, small enough
k
k
x F x 


1
k k
 
   
Compute ,
k k
F
F x J x
   
1
Find 0,1 such that is minimi e
z d
k k k
k
F x x
  
 

1 1
k k k k
x x x

 
  
Newton Method with Limiting
Damped Newton – Nested Iteration
October 21, 2023 46 courtesy Alessandra Nardi UCB
X
0
x
1
x
2
x
1
D
x
Damped Newton Methods “push” iterates to local minimums
Finds the points where Jacobian is Singular
Newton Method with Limiting
Damped Newton – Singular Jacobian Problem
October 21, 2023 47 courtesy Alessandra Nardi UCB
 
 
Solve , 0 where:
F x   
 
 
a) 0 ,0 0 is easy to solve
F x 
 
   
b) 1 ,1
F x F x

 
c) is sufficiently smooth
x 
 Starts the continuation
Ends the continuation
Hard to insure!
Newton with Continuation schemes
Newton converges given a close initial guess
 Idea: Generate a sequence of problems,
s.t. a problem is a good initial guess for the
following one

 0
)
(x
F
Basic Concepts - General setting
October 21, 2023 48 courtesy Alessandra Nardi UCB
 
     
Solve 0 ,0 , 0
prev
F x x x
 
While 1 {
 
}
=0.01,
  

   
0
prev
x x
 

 
 
Try to Solve , 0 with Newton
F x   
If Newton Converged
    , 2
,
prev
x x
    
  
  

Else
,
1
2
prev

  
 
 

Newton with Continuation schemes
Basic Concepts – Template Algorithm
October 21, 2023 49 courtesy Alessandra Nardi UCB
Newton with Continuation schemes
Basic Concepts – Source Stepping Example
October 21, 2023 50 courtesy Alessandra Nardi UCB
+
-
Vs
R
Diode
 
     
1
, 0
diode s
f v i v v V
R
  
   
v
   
, 1
Not dependent!
diode
f v i v
v v R


 
  
 
Source Stepping Does Not Alter Jacobian
Newton with Continuation schemes
Basic Concepts – Source Stepping Example
October 21, 2023 51 courtesy Alessandra Nardi UCB
Transient Analysis Flow Diagram
Predict values of variables at tl
Replace C and L with resistive elements via integration formula
Replace nonlinear elements with G and indep. sources via NR
Assemble linear circuit equations
Solve linear circuit equations
Did NR converge?
Test solution accuracy
Save solution if acceptable
Select new t and compute new integration formula coeff.
Done?
YES
NO
NO

More Related Content

Similar to Newton.ppt

Sorting and Routing on Hypercubes and Hypercubic Architectures
Sorting and Routing on Hypercubes and Hypercubic ArchitecturesSorting and Routing on Hypercubes and Hypercubic Architectures
Sorting and Routing on Hypercubes and Hypercubic Architectures
CTOGreenITHub
 
2012 mdsp pr08 nonparametric approach
2012 mdsp pr08 nonparametric approach2012 mdsp pr08 nonparametric approach
2012 mdsp pr08 nonparametric approach
nozomuhamada
 
Some Multivariate Methods Used by Ecologists
Some Multivariate Methods Used by EcologistsSome Multivariate Methods Used by Ecologists
Some Multivariate Methods Used by Ecologists
Peter Chapman
 
Paper id 21201483
Paper id 21201483Paper id 21201483
Paper id 21201483
IJRAT
 
Pres110811
Pres110811Pres110811
Pres110811
shotlub
 

Similar to Newton.ppt (20)

論文紹介:Towards Robust Adaptive Object Detection Under Noisy Annotations
論文紹介:Towards Robust Adaptive Object Detection Under Noisy Annotations論文紹介:Towards Robust Adaptive Object Detection Under Noisy Annotations
論文紹介:Towards Robust Adaptive Object Detection Under Noisy Annotations
 
From RNN to neural networks for cyclic undirected graphs
From RNN to neural networks for cyclic undirected graphsFrom RNN to neural networks for cyclic undirected graphs
From RNN to neural networks for cyclic undirected graphs
 
Continuum Modeling and Control of Large Nonuniform Networks
Continuum Modeling and Control of Large Nonuniform NetworksContinuum Modeling and Control of Large Nonuniform Networks
Continuum Modeling and Control of Large Nonuniform Networks
 
A Novel Methodology for Designing Linear Phase IIR Filters
A Novel Methodology for Designing Linear Phase IIR FiltersA Novel Methodology for Designing Linear Phase IIR Filters
A Novel Methodology for Designing Linear Phase IIR Filters
 
Wiener Filter Hardware Realization
Wiener Filter Hardware RealizationWiener Filter Hardware Realization
Wiener Filter Hardware Realization
 
Cdc18 dg lee
Cdc18 dg leeCdc18 dg lee
Cdc18 dg lee
 
Random walks and diffusion on networks
Random walks and diffusion on networksRandom walks and diffusion on networks
Random walks and diffusion on networks
 
Lecture27_ali.ppt
Lecture27_ali.pptLecture27_ali.ppt
Lecture27_ali.ppt
 
NANO266 - Lecture 7 - QM Modeling of Periodic Structures
NANO266 - Lecture 7 - QM Modeling of Periodic StructuresNANO266 - Lecture 7 - QM Modeling of Periodic Structures
NANO266 - Lecture 7 - QM Modeling of Periodic Structures
 
Sorting and Routing on Hypercubes and Hypercubic Architectures
Sorting and Routing on Hypercubes and Hypercubic ArchitecturesSorting and Routing on Hypercubes and Hypercubic Architectures
Sorting and Routing on Hypercubes and Hypercubic Architectures
 
FITTED OPERATOR FINITE DIFFERENCE METHOD FOR SINGULARLY PERTURBED PARABOLIC C...
FITTED OPERATOR FINITE DIFFERENCE METHOD FOR SINGULARLY PERTURBED PARABOLIC C...FITTED OPERATOR FINITE DIFFERENCE METHOD FOR SINGULARLY PERTURBED PARABOLIC C...
FITTED OPERATOR FINITE DIFFERENCE METHOD FOR SINGULARLY PERTURBED PARABOLIC C...
 
FITTED OPERATOR FINITE DIFFERENCE METHOD FOR SINGULARLY PERTURBED PARABOLIC C...
FITTED OPERATOR FINITE DIFFERENCE METHOD FOR SINGULARLY PERTURBED PARABOLIC C...FITTED OPERATOR FINITE DIFFERENCE METHOD FOR SINGULARLY PERTURBED PARABOLIC C...
FITTED OPERATOR FINITE DIFFERENCE METHOD FOR SINGULARLY PERTURBED PARABOLIC C...
 
Metodo Monte Carlo -Wang Landau
Metodo Monte Carlo -Wang LandauMetodo Monte Carlo -Wang Landau
Metodo Monte Carlo -Wang Landau
 
2012 mdsp pr08 nonparametric approach
2012 mdsp pr08 nonparametric approach2012 mdsp pr08 nonparametric approach
2012 mdsp pr08 nonparametric approach
 
Some Multivariate Methods Used by Ecologists
Some Multivariate Methods Used by EcologistsSome Multivariate Methods Used by Ecologists
Some Multivariate Methods Used by Ecologists
 
Constant strain triangular
Constant strain triangular Constant strain triangular
Constant strain triangular
 
Convolutional networks and graph networks through kernels
Convolutional networks and graph networks through kernelsConvolutional networks and graph networks through kernels
Convolutional networks and graph networks through kernels
 
Paper id 21201483
Paper id 21201483Paper id 21201483
Paper id 21201483
 
Pres110811
Pres110811Pres110811
Pres110811
 
randomwalk.ppt
randomwalk.pptrandomwalk.ppt
randomwalk.ppt
 

More from Godspower Bruno, GMNSE

More from Godspower Bruno, GMNSE (20)

Introduction to Power Electronics Students Version.ppt
Introduction to Power Electronics Students Version.pptIntroduction to Power Electronics Students Version.ppt
Introduction to Power Electronics Students Version.ppt
 
windenergy.ppt
windenergy.pptwindenergy.ppt
windenergy.ppt
 
MAT1033.12.4.ppt
MAT1033.12.4.pptMAT1033.12.4.ppt
MAT1033.12.4.ppt
 
Thesis schematics.pptx
Thesis schematics.pptxThesis schematics.pptx
Thesis schematics.pptx
 
NAWEA2015_NOVOA_Final_MODIFIED.pptx
NAWEA2015_NOVOA_Final_MODIFIED.pptxNAWEA2015_NOVOA_Final_MODIFIED.pptx
NAWEA2015_NOVOA_Final_MODIFIED.pptx
 
Presentation-for-teachers.pptx
Presentation-for-teachers.pptxPresentation-for-teachers.pptx
Presentation-for-teachers.pptx
 
62-power-semiconductor-devices.ppt
62-power-semiconductor-devices.ppt62-power-semiconductor-devices.ppt
62-power-semiconductor-devices.ppt
 
basicsinstrumentandcontrol-170425220125.pptx
basicsinstrumentandcontrol-170425220125.pptxbasicsinstrumentandcontrol-170425220125.pptx
basicsinstrumentandcontrol-170425220125.pptx
 
62-power-semiconductor-devices (1).ppt
62-power-semiconductor-devices (1).ppt62-power-semiconductor-devices (1).ppt
62-power-semiconductor-devices (1).ppt
 
Lecture-slides_-Literature-review (1).pptx
Lecture-slides_-Literature-review (1).pptxLecture-slides_-Literature-review (1).pptx
Lecture-slides_-Literature-review (1).pptx
 
LoadModeling.ppt
LoadModeling.pptLoadModeling.ppt
LoadModeling.ppt
 
LoadModeling (1).ppt
LoadModeling (1).pptLoadModeling (1).ppt
LoadModeling (1).ppt
 
facts__unit-5_and_6.pptx
facts__unit-5_and_6.pptxfacts__unit-5_and_6.pptx
facts__unit-5_and_6.pptx
 
chapter_33_alternating_current_circuits_0.pptx
chapter_33_alternating_current_circuits_0.pptxchapter_33_alternating_current_circuits_0.pptx
chapter_33_alternating_current_circuits_0.pptx
 
Tranp.pptx
Tranp.pptxTranp.pptx
Tranp.pptx
 
ECE4762011_Lect14.ppt
ECE4762011_Lect14.pptECE4762011_Lect14.ppt
ECE4762011_Lect14.ppt
 
powerflowproblem.ppt
powerflowproblem.pptpowerflowproblem.ppt
powerflowproblem.ppt
 
Load_Flow.pptx
Load_Flow.pptxLoad_Flow.pptx
Load_Flow.pptx
 
NSECOMPILED QUESTIONS.pdf
NSECOMPILED QUESTIONS.pdfNSECOMPILED QUESTIONS.pdf
NSECOMPILED QUESTIONS.pdf
 
Computer-Methods-in-Power-Systems.pptx
Computer-Methods-in-Power-Systems.pptxComputer-Methods-in-Power-Systems.pptx
Computer-Methods-in-Power-Systems.pptx
 

Recently uploaded

Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
Christo Ananth
 
AKTU Computer Networks notes --- Unit 3.pdf
AKTU Computer Networks notes ---  Unit 3.pdfAKTU Computer Networks notes ---  Unit 3.pdf
AKTU Computer Networks notes --- Unit 3.pdf
ankushspencer015
 
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
Dr.Costas Sachpazis
 
result management system report for college project
result management system report for college projectresult management system report for college project
result management system report for college project
Tonystark477637
 
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
dollysharma2066
 
UNIT-V FMM.HYDRAULIC TURBINE - Construction and working
UNIT-V FMM.HYDRAULIC TURBINE - Construction and workingUNIT-V FMM.HYDRAULIC TURBINE - Construction and working
UNIT-V FMM.HYDRAULIC TURBINE - Construction and working
rknatarajan
 

Recently uploaded (20)

CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete RecordCCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
 
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
 
Vivazz, Mieres Social Housing Design Spain
Vivazz, Mieres Social Housing Design SpainVivazz, Mieres Social Housing Design Spain
Vivazz, Mieres Social Housing Design Spain
 
NFPA 5000 2024 standard .
NFPA 5000 2024 standard                                  .NFPA 5000 2024 standard                                  .
NFPA 5000 2024 standard .
 
UNIT-III FMM. DIMENSIONAL ANALYSIS
UNIT-III FMM.        DIMENSIONAL ANALYSISUNIT-III FMM.        DIMENSIONAL ANALYSIS
UNIT-III FMM. DIMENSIONAL ANALYSIS
 
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdfONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
 
AKTU Computer Networks notes --- Unit 3.pdf
AKTU Computer Networks notes ---  Unit 3.pdfAKTU Computer Networks notes ---  Unit 3.pdf
AKTU Computer Networks notes --- Unit 3.pdf
 
UNIT-II FMM-Flow Through Circular Conduits
UNIT-II FMM-Flow Through Circular ConduitsUNIT-II FMM-Flow Through Circular Conduits
UNIT-II FMM-Flow Through Circular Conduits
 
Generative AI or GenAI technology based PPT
Generative AI or GenAI technology based PPTGenerative AI or GenAI technology based PPT
Generative AI or GenAI technology based PPT
 
Extrusion Processes and Their Limitations
Extrusion Processes and Their LimitationsExtrusion Processes and Their Limitations
Extrusion Processes and Their Limitations
 
BSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptx
BSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptxBSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptx
BSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptx
 
chapter 5.pptx: drainage and irrigation engineering
chapter 5.pptx: drainage and irrigation engineeringchapter 5.pptx: drainage and irrigation engineering
chapter 5.pptx: drainage and irrigation engineering
 
Java Programming :Event Handling(Types of Events)
Java Programming :Event Handling(Types of Events)Java Programming :Event Handling(Types of Events)
Java Programming :Event Handling(Types of Events)
 
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
 
Roadmap to Membership of RICS - Pathways and Routes
Roadmap to Membership of RICS - Pathways and RoutesRoadmap to Membership of RICS - Pathways and Routes
Roadmap to Membership of RICS - Pathways and Routes
 
result management system report for college project
result management system report for college projectresult management system report for college project
result management system report for college project
 
PVC VS. FIBERGLASS (FRP) GRAVITY SEWER - UNI BELL
PVC VS. FIBERGLASS (FRP) GRAVITY SEWER - UNI BELLPVC VS. FIBERGLASS (FRP) GRAVITY SEWER - UNI BELL
PVC VS. FIBERGLASS (FRP) GRAVITY SEWER - UNI BELL
 
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
 
Water Industry Process Automation & Control Monthly - April 2024
Water Industry Process Automation & Control Monthly - April 2024Water Industry Process Automation & Control Monthly - April 2024
Water Industry Process Automation & Control Monthly - April 2024
 
UNIT-V FMM.HYDRAULIC TURBINE - Construction and working
UNIT-V FMM.HYDRAULIC TURBINE - Construction and workingUNIT-V FMM.HYDRAULIC TURBINE - Construction and working
UNIT-V FMM.HYDRAULIC TURBINE - Construction and working
 

Newton.ppt

  • 1. CSE 245: Computer Aided Circuit Simulation and Verification Fall 2004, Nov Nonlinear Equation
  • 2. October 21, 2023 2 courtesy Alessandra Nardi UCB Outline  Nonlinear problems  Iterative Methods  Newton’s Method  Derivation of Newton  Quadratic Convergence  Examples  Convergence Testing  Multidimensonal Newton Method  Basic Algorithm  Quadratic convergence  Application to circuits  Improve Convergence  Limiting Schemes  Direction Corrupting  Non corrupting (Damped Newton)  Continuation Schemes  Source stepping
  • 3. October 21, 2023 3 courtesy Alessandra Nardi UCB Need to Solve ( 1) 0 d t V V d s I I e    Nonlinear Problems - Example 0 1 Ir I1 Id 0 ) 1 ( 1 0 1 1 1 1        I e I e R I I I t V e s d r 1 1) ( I e g 
  • 4. October 21, 2023 4 courtesy Alessandra Nardi UCB Nonlinear Equations  Given g(V)=I  It can be expressed as: f(V)=g(V)-I  Solve g(V)=I equivalent to solve f(V)=0 Hard to find analytical solution for f(x)=0 Solve iteratively
  • 5. October 21, 2023 5 courtesy Alessandra Nardi UCB Nonlinear Equations – Iterative Methods  Start from an initial value x0  Generate a sequence of iterate xn-1, xn, xn+1 which hopefully converges to the solution x*  Iterates are generated according to an iteration function F: xn+1=F(xn) Ask • When does it converge to correct solution ? • What is the convergence rate ?
  • 6. October 21, 2023 6 courtesy Alessandra Nardi UCB Newton-Raphson (NR) Method Consists of linearizing the system. Want to solve f(x)=0  Replace f(x) with its linearized version and solve. Note: at each step need to evaluate f and f’ function Iteration x f dx x df x x x x dx x df x f x f ies Taylor Ser x x dx x df x f x f k k k k k k k k k ) ( ) ( ) ( ) ( ) ( ) ( ) ( ) ( ) ( ) ( 1 1 1 1 * * *                   
  • 7. October 21, 2023 7 courtesy Alessandra Nardi UCB Newton-Raphson Method – Graphical View
  • 8. October 21, 2023 8 courtesy Alessandra Nardi UCB Newton-Raphson Method – Algorithm Define iteration Do k = 0 to …. until convergence  How about convergence?  An iteration {x(k)} is said to converge with order q if there exists a vector norm such that for each k  N: q k k x x x x ˆ ˆ 1     ) ( ) ( 1 1 k k k k x f dx x df x x           ) ( ) ( 1 1 k k k k x f dx x df x x           ) ( ) ( 1 1 k k k k x f dx x df x x          
  • 9. October 21, 2023 9 courtesy Alessandra Nardi UCB Mean Value theorem truncates Taylor series But by Newton definition Newton-Raphson Method – Convergence 2 * 2 2 * * ) ( ) ~ ( ) ( ) ( ) ( ) ( 0 k k k k x x dx x f d x x dx x df x f x f       ) ( ) ( ) ( 0 1 k k k k x x dx x df x f    
  • 10. October 21, 2023 10 courtesy Alessandra Nardi UCB Subtracting 2 1 * 1 * 2 2 ( ) [ ( )] ( )( ) k k k df d f x x x x x x dx d x      Convergence is quadratic Dividing through 2 1 2 2 1 * * Let [ ( )] ( ) then k k k k k df d f x x K dx d x x x K x x       Newton-Raphson Method – Convergence 2 * 2 2 * 1 ) ( ) ~ ( ) ( ) ( x x dx x f d x x dx x df k k k    
  • 11. October 21, 2023 11 courtesy Alessandra Nardi UCB Local Convergence Theorem If Then Newton’s method converges given a sufficiently close initial guess (and convergence is quadratic) bounded is K bounded dx f d b ro ay from ze bounded aw dx df a ) ) 2 2        Newton-Raphson Method – Convergence
  • 12. October 21, 2023 12 courtesy Alessandra Nardi UCB           2 1 2 2 1 * * * * 2 2 1 * * ( ) 2 ( ) 1 0, 2 ( ) 1 2 ( ) 2 ( ) 1 ( ) ( ( 1 ) 2 ) k k k k k k k k k k k k k k df x x dx x x x x x x x x x x x f x x fin x d x x or x x x x x                      Convergence is quadratic Newton-Raphson Method – Convergence Example 1
  • 13. October 21, 2023 13 courtesy Alessandra Nardi UCB   1 2 1 * * * 1 2 * ( ) 2 2 ( 0) ( 0) 1 0 0 ( ) 0, for 0 2 1 ( ) ( ) 2 0 k k k k k k k k k k df x x dx x x x x x x x or x x x f x x x x                    Convergence is linear Note : not bounded away from zero 1 df dx        Newton-Raphson Method – Convergence Example 2
  • 14. October 21, 2023 14 courtesy Alessandra Nardi UCB Newton-Raphson Method – Convergence Example 1,2
  • 15. October 21, 2023 15 courtesy Alessandra Nardi UCB 0 Initial Guess, = 0 x k  Repeat {       1 k k k k f x x x f x x       } Until ?   1 1 ? ? k k k f x threshold x x threshold      1 k k   Newton-Raphson Method – Convergence
  • 16. October 21, 2023 16 courtesy Alessandra Nardi UCB Need a "delta-x" check to avoid false convergence X f(x) 1 k x  k x * x   1 a k f f x    1 1 a r k k k x x x x x        Newton-Raphson Method – Convergence Convergence Check
  • 17. October 21, 2023 17 courtesy Alessandra Nardi UCB   Also need an " " check to avoid false convergence f x X f(x) 1 k x  k x * x   1 a k f f x    1 1 a r k k k x x x x x        Newton-Raphson Method – Convergence Convergence Check
  • 18. October 21, 2023 18 courtesy Alessandra Nardi UCB demo2 Newton-Raphson Method – Convergence
  • 19. October 21, 2023 19 courtesy Alessandra Nardi UCB X f(x) Convergence Depends on a Good Initial Guess 0 x 1 x 2 x 0 x 1 x Newton-Raphson Method – Convergence Local Convergence
  • 20. October 21, 2023 20 courtesy Alessandra Nardi UCB Convergence Depends on a Good Initial Guess Newton-Raphson Method – Convergence Local Convergence
  • 21. October 21, 2023 21 courtesy Alessandra Nardi UCB Nodal Analysis 1 2 At Node 1: 0 i i   1 b v + - 1 i 2 i 2 b v 3 i + - 3 b v + - Nonlinear Resistors   i g v  1 v 2 v     1 1 2 0 g v g v v     3 2 At Node 2: 0 i i       3 1 2 0 g v g v v     Two coupled nonlinear equations in two unknowns Nonlinear Problems – Multidimensional Example
  • 22. October 21, 2023 22 courtesy Alessandra Nardi UCB Outline  Nonlinear problems  Iterative Methods  Newton’s Method  Derivation of Newton  Quadratic Convergence  Examples  Convergence Testing  Multidimensonal Newton Method  Basic Algorithm  Quadratic convergence  Application to circuits  Improve Convergence  Limiting Schemes  Direction Corrupting  Non corrupting (Damped Newton)  Continuation Schemes  Source stepping
  • 23. October 21, 2023 23 courtesy Alessandra Nardi UCB   * * Problem: Find such tha 0 t x F x  * N N N and : x F   Multidimensional Newton Method function Iteration x F x J x x atrix Jacobian M x x F x x F x x F x x F x J ies Taylor Ser x x x J x F x F k k k k N N N N ) ( ) ( ) ( ) ( ) ( ) ( ) ( ) )( ( ) ( ) ( 1 1 1 1 1 1 * * *                                    
  • 24. October 21, 2023 24 courtesy Alessandra Nardi UCB Multidimensional Newton Method ) ( ) ( ) ( : solve Instead sparse). not is (it ) ( compute not Do ) ( ) ( : 1 1 1 1 k k k k k k k k k x F x x x J x J x F x J x x Iteration          Each iteration requires: 1. Evaluation of F(xk) 2. Computation of J(xk) 3. Solution of a linear system of algebraic equations whose coefficient matrix is J(xk) and whose RHS is -F(xk) Computational Aspects
  • 25. October 21, 2023 25 courtesy Alessandra Nardi UCB 0 Initial Guess, = 0 x k  Repeat {      1 1 Solve for k k k k k F J x x x F x x      } Until   1 1 , small en ug o h k k k x x f x    1 k k       Compute , k k F F x J x Multidimensional Newton Method Algorithm
  • 26. October 21, 2023 26 courtesy Alessandra Nardi UCB If     1 ) Inverse is bounded k F a J x          ) Derivative is Lipschitz Cont F F b J x J y x y    Then Newton’s method converges given a sufficiently close initial guess (and convergence is quadratic) Multidimensional Newton Method Local Convergence Theorem Convergence
  • 27. October 21, 2023 27 courtesy Alessandra Nardi UCB Application of NR to Circuit Equations  Applying NR to the system of equations we find that at iteration k+1:  all the coefficients of KCL, KVL and of BCE of the linear elements remain unchanged with respect to iteration k  Nonlinear elements are represented by a linearization of BCE around iteration k  This system of equations can be interpreted as the STA of a linear circuit (companion network) whose elements are specified by the linearized BCE. Companion Network
  • 28. October 21, 2023 28 courtesy Alessandra Nardi UCB Application of NR to Circuit Equations  General procedure: the NR method applied to a nonlinear circuit whose eqns are formulated in the STA form produces at each iteration the STA eqns of a linear resistive circuit obtained by linearizing the BCE of the nonlinear elements and leaving all the other BCE unmodified  After the linear circuit is produced, there is no need to stick to STA, but other methods (such as MNA) may be used to assemble the circuit eqns Companion Network
  • 29. October 21, 2023 29 courtesy Alessandra Nardi UCB Note: G0 and Id depend on the iteration count k  G0=G0(k) and Id=Id(k) Application of NR to Circuit Equations Companion Network – MNA templates
  • 30. October 21, 2023 30 courtesy Alessandra Nardi UCB Application of NR to Circuit Equations Companion Network – MNA templates
  • 31. October 21, 2023 31 courtesy Alessandra Nardi UCB Modeling a MOSFET (MOS Level 1, linear regime) d
  • 32. October 21, 2023 32 courtesy Alessandra Nardi UCB Modeling a MOSFET (MOS Level 1, linear regime)
  • 33. October 21, 2023 33 courtesy Alessandra Nardi UCB DC Analysis Flow Diagram For each state variable in the system
  • 34. October 21, 2023 34 courtesy Alessandra Nardi UCB Implications  Device model equations must be continuous with continuous derivatives (not all models do this - - be sure models are decent - beware of user-supplied models)  Watch out for floating nodes (If a node becomes disconnected, then J(x) is singular)  Give good initial guess for x(0)  Most model computations produce errors in function values and derivatives. Want to have convergence criteria || x(k+1) - x(k) || <  such that  > than model errors.
  • 35. October 21, 2023 35 courtesy Alessandra Nardi UCB Outline  Nonlinear problems  Iterative Methods  Newton’s Method  Derivation of Newton  Quadratic Convergence  Examples  Convergence Testing  Multidimensonal Newton Method  Basic Algorithm  Quadratic convergence  Application to circuits  Improve Convergence  Limiting Schemes  Direction Corrupting  Non corrupting (Damped Newton)  Continuation Schemes  Source stepping
  • 36. October 21, 2023 36 courtesy Alessandra Nardi UCB Improving convergence  Improve Models (80% of problems)  Improve Algorithms (20% of problems) Focus on new algorithms: Limiting Schemes Continuations Schemes
  • 37. October 21, 2023 37 courtesy Alessandra Nardi UCB Improve Convergence  Limiting Schemes  Direction Corrupting  Non corrupting (Damped Newton)  Globally Convergent if Jacobian is Nonsingular  Difficulty with Singular Jacobians  Continuation Schemes  Source stepping
  • 38. October 21, 2023 38 courtesy Alessandra Nardi UCB At a local minimum, 0 f x    Local Minimum   Multidimensional Case: is singular F J x Multidimensional Newton Method Convergence Problems – Local Minimum
  • 39. October 21, 2023 39 courtesy Alessandra Nardi UCB f(x) X 0 x 1 x Must Somehow Limit the changes in X Multidimensional Newton Method Convergence Problems – Nearly singular
  • 40. October 21, 2023 40 courtesy Alessandra Nardi UCB Multidimensional Newton Method f(x) X 0 x 1 x Must Somehow Limit the changes in X Convergence Problems - Overflow
  • 41. October 21, 2023 41 courtesy Alessandra Nardi UCB 0 Initial Guess, = 0 x k  Repeat {     1 1 Solve for k k k k F J x x F x x       } Until   1 1 , small enough k k x F x    1 k k       Compute , k k F F x J x   Newton Algorithm for Solving 0 F x    1 1 limited k k k x x x      Newton Method with Limiting
  • 42. October 21, 2023 42 courtesy Alessandra Nardi UCB   1 limited k i x    • NonCorrupting 1 1 if k k i i x x         1 otherwise k i sign x     1 k x     1 limited k x   • Direction Corrupting   1 1 limited k k x x       1 min 1, k x                 1 k x     1 limited k x   Heuristics, No Guarantee of Global Convergence Newton Method with Limiting Limiting Methods
  • 43. October 21, 2023 43 courtesy Alessandra Nardi UCB General Damping Scheme Key Idea: Line Search   2 1 2 Pick to minimize k k k k F x x      Method Performs a one-dimensional search in Newton Direction       2 1 1 1 2 T k k k k k k k k k F x x F x x F x x              1 1 k k k k x x x           1 1 Solve for k k k k F J x x F x x       Newton Method with Limiting Damped Newton Scheme
  • 44. October 21, 2023 44 courtesy Alessandra Nardi UCB If     1 ) Inverse is bounded k F a J x          ) Derivative is Lipschitz Cont F F b J x J y x y    Then   There exists a set of ' 0,1 such that k s         1 1 with <1 k k k k k F x F x x F x          Every Step reduces F-- Global Convergence! Newton Method with Limiting Damped Newton – Convergence Theorem
  • 45. October 21, 2023 45 courtesy Alessandra Nardi UCB 0 Initial Guess, = 0 x k  Repeat {     1 1 Solve for k k k k F J x x F x x       } Until   1 1 , small enough k k x F x    1 k k       Compute , k k F F x J x     1 Find 0,1 such that is minimi e z d k k k k F x x       1 1 k k k k x x x       Newton Method with Limiting Damped Newton – Nested Iteration
  • 46. October 21, 2023 46 courtesy Alessandra Nardi UCB X 0 x 1 x 2 x 1 D x Damped Newton Methods “push” iterates to local minimums Finds the points where Jacobian is Singular Newton Method with Limiting Damped Newton – Singular Jacobian Problem
  • 47. October 21, 2023 47 courtesy Alessandra Nardi UCB     Solve , 0 where: F x        a) 0 ,0 0 is easy to solve F x        b) 1 ,1 F x F x    c) is sufficiently smooth x   Starts the continuation Ends the continuation Hard to insure! Newton with Continuation schemes Newton converges given a close initial guess  Idea: Generate a sequence of problems, s.t. a problem is a good initial guess for the following one   0 ) (x F Basic Concepts - General setting
  • 48. October 21, 2023 48 courtesy Alessandra Nardi UCB         Solve 0 ,0 , 0 prev F x x x   While 1 {   } =0.01,         0 prev x x        Try to Solve , 0 with Newton F x    If Newton Converged     , 2 , prev x x             Else , 1 2 prev          Newton with Continuation schemes Basic Concepts – Template Algorithm
  • 49. October 21, 2023 49 courtesy Alessandra Nardi UCB Newton with Continuation schemes Basic Concepts – Source Stepping Example
  • 50. October 21, 2023 50 courtesy Alessandra Nardi UCB + - Vs R Diode         1 , 0 diode s f v i v v V R        v     , 1 Not dependent! diode f v i v v v R          Source Stepping Does Not Alter Jacobian Newton with Continuation schemes Basic Concepts – Source Stepping Example
  • 51. October 21, 2023 51 courtesy Alessandra Nardi UCB Transient Analysis Flow Diagram Predict values of variables at tl Replace C and L with resistive elements via integration formula Replace nonlinear elements with G and indep. sources via NR Assemble linear circuit equations Solve linear circuit equations Did NR converge? Test solution accuracy Save solution if acceptable Select new t and compute new integration formula coeff. Done? YES NO NO