Beruflich Dokumente
Kultur Dokumente
Nonlinear Equation
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
Vd
I1 Ir Id I d I s (e Vt
1) 0
Need to Solve
I r I d I1 0
e1
1
e1 I s (e 1) I1 0
Vt
g (e1 ) I1
R
Solve iteratively
Ask
• When does it converge to correct solution ?
• What is the convergence rate ?
June 7, 2018 5 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.
df *
f ( x) f ( x ) ( x )( x x* )
*
Taylor Ser ies
dx
k 1 df k k 1 k
f ( x ) f ( x ) ( x )( x x )
k
dx
1
k 1 df k
x x ( x ) f ( x k )
k
Iteration function
dx
Note: at each step need to evaluate f and f’
June 7, 2018 6 courtesy Alessandra Nardi UCB
Newton-Raphson Method – Graphical View
Define iteration
Do k = 0 to ….
1
k 1 df k
x x ( x ) f ( x k )
k
dx
until convergence
k 1 q
June 7, 2018 x xˆ 8x xˆ
k
courtesy Alessandra Nardi UCB
Newton-Raphson Method – Convergence
2
df d f
0 f ( x ) f ( x ) ( x )( x x ) 2 ( x)( x* x k ) 2
* k k * k
dx dx
some x [ x k , x* ]
But
df k k 1 k by Newton
0 f ( x ) ( x )( x x )
k
dx definition
df k k 1 * d 2 f
Subtracting ( x )( x x ) 2 ( x)( x x )
k * 2
dx d x
2
k 1 df k 1 d f
Dividing through ( x x ) [ ( x )]
*
2
( x )( x k
x * 2
)
dx d x
df k 1 d 2 f
Let [ ( x )] 2
( x ) K k
dx d x
k 1 * 2
then x x K x x
* k k
Convergence is quadratic
June 7, 2018 10 courtesy Alessandra Nardi UCB
Newton-Raphson Method – Convergence
If
df
a) bounded away from zero
dx
K is bounded
d2 f
b) bounded
dx 2
Then Newton’s method converges given a
sufficiently close initial guess (and
convergence is quadratic)
June 7, 2018 11 courtesy Alessandra Nardi UCB
Newton-Raphson Method – Convergence
Example 1
f ( x) x 2 1 0, find x ( x* 1)
df k
( x ) 2 xk
dx
k
2x (x k 1
x ) x
k
k
2
1
x
2 2
k 1
k
2x (x x ) 2x (x x ) x
* k * k k *
k 1 1
or ( x x ) k ( x k x* ) 2
*
2x Convergence is quadratic
June 7, 2018 12 courtesy Alessandra Nardi UCB
Newton-Raphson Method – Convergence
Example 2
f ( x) x 0, x 0
2 *
1
df
df k Note : not bounded
(x ) 2 x k
dx
dx away from zero
k 1
2 x ( x 0) ( x 0)
k k 2
k 1
x 0 x 0
2
1 k
for x k x* 0
1
or ( xk 1 x ) ( xk x )
* *
2
Convergence is linear
June 7, 2018 13 courtesy Alessandra Nardi UCB
Newton-Raphson Method – Convergence
Example 1,2
x = Initial Guess, k 0
0
Repeat {
f x k
x
x k 1 x k f x k
k k 1
} Until ?
x k 1
x threshold ?
k
f x k 1
threshold ?
June 7, 2018 15 courtesy Alessandra Nardi UCB
Newton-Raphson Method – Convergence
Convergence Check
k 1 k *
x x x X
f x k 1 fa
Convergence Check
f x k 1
fa
*
x
X
x k 1 x k
x k 1
x xa xr x
k k 1
demo2
Local Convergence
f(x)
1 1
x x
2 0 0 X
x x x
Local Convergence
x
* N
and F : N
N
F ( x) F ( x ) J ( x )( x x )
* * *
Taylor Ser ies
F1 ( x) F1 ( x)
x
x
1 N
J ( x) Jacobian Matrix
FN ( x) FN ( x)
x1 x N
k 1 k 1
x x J (x ) F (x )
k k
Iteration function
June 7, 2018 23 courtesy Alessandra Nardi UCB
Multidimensional Newton Method
Computational Aspects
Iteration : x k 1 x k J ( x k ) 1 F ( x k )
k 1
Do not compute J ( x ) (it is not sparse).
Instead solve : J ( x k )( x k 1 x k ) F ( x k )
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)
June 7, 2018 24 courtesy Alessandra Nardi UCB
Multidimensional Newton Method
Algorithm
x = Initial Guess, k 0
0
Repeat {
Compute F x k , J F x k
Solve J F x x x F x for x
k k 1 k k k 1
k k 1
} Until x k 1 x k ,
f x k 1 small enough
If
a) J F1 x k Inverse is bounded
b) J F x J F y x y Derivative is Lipschitz Cont
Limiting Schemes
Direction Corrupting
Non corrupting (Damped Newton)
Globally Convergent if Jacobian is
Nonsingular
Difficulty with Singular Jacobians
Continuation Schemes
Source stepping
Local
Minimum
f
At a local minimum, 0
x
Multidimensional Case: J F x is singular
June 7, 2018 38 courtesy Alessandra Nardi UCB
Multidimensional Newton Method
Convergence Problems – Nearly singular
f(x)
x1
X
x0
f(x)
0
X
x 1
x
Repeat {
Compute F x k , J F x k
Solve J F x x F x for x
k k 1 k k 1
x k 1 x k limited x
k 1
k k 1
} Until x k 1
, F x k 1
small enough
June 7, 2018 41 courtesy Alessandra Nardi UCB
Newton Method with Limiting
Limiting Methods
• Direction Corrupting
limited x k 1 x k 1
xik 1 if xik 1
limited x k 1
sign xik 1 otherwise
i
• NonCorrupting
limited x k 1 x k 1
x k 1
limited x k 1
min 1, k 1
x
2 T
F x x
k k k 1
F x xk k k 1
F x k k x k 1
2
a) J F1 x k Inverse is bounded
b) J F x J F y x y Derivative is Lipschitz Cont
Then
There exists a set of k ' s 0,1 such that
F x k 1 F x k k x k 1 F xk with <1
x = Initial Guess, k 0
0
Repeat {
Compute F x k , J F x k
Solve J x x F x for x
F
k k 1 k k 1
x2
1 0 X
x 1 xD x
R
v
f v , idiode v v Vs 0
1
+ R
Vs -
Diode
f v, idiode v 1
Not dependent!
v v R
NO
Did NR converge?
YES
Test solution accuracy
NO
Done?
June 7, 2018 51 courtesy Alessandra Nardi UCB