of 15
7/29/2019 2013.01.18-ECE595E-L06
1/15
ECE 595, Section 10Numerical Simulations
Lecture 6: Finding Special Values
Prof. Peter Bermel
January 18, 2013
7/29/2019 2013.01.18-ECE595E-L06
2/15
Outline
Recap from Wednesday
Root Finding Bisection
Newton-Raphson method Brents method
Optimization Golden Section Search
Brents Method Downhill Simplex
Conjugate gradient methods
Multiple level, single linkage (MLSL)
1/18/2013 ECE 595, Prof. Bermel
7/29/2019 2013.01.18-ECE595E-L06
3/15
Recap from Wednesday
1/18/2013 ECE 595, Prof. Bermel
Crouts algorithm
Band diagonal
sparse matrix
7/29/2019 2013.01.18-ECE595E-L06
4/15
Finding Zeros
Relevance in micro & nanoresearch
Key concept: bracketing
Bisection continuously halveintervals
Newton-Raphson method uses tangent
Laguerres method forpolynomials
Brents method adds inversequadratic interpolation
1/18/2013 ECE 595, Prof. Bermel
7/29/2019 2013.01.18-ECE595E-L06
5/15
Importance of Bracketing
Critically important for both root finding and
optimization
Can always guarantee at least one solution for
continuous functions with sign change in 1D
If more than one solution present, may not be
able to guarantee which one is reached
method-dependent
1/18/2013 ECE 595, Prof. Bermel
7/29/2019 2013.01.18-ECE595E-L06
6/15
Bisection
1/18/2013 ECE 595, Prof. Bermel
7/29/2019 2013.01.18-ECE595E-L06
7/15
Newton-Raphson Method
Key assumption: system
is nearly linear in region
between starting point
and root
When sufficiently close,
converge quadratically on
correct value (from Taylorexpansion)
1/18/2013 ECE 595, Prof. Bermel
7/29/2019 2013.01.18-ECE595E-L06
8/15
NR Method Failures
Getting stuck in a limit
cycle is possible
Can even get worse
certain locally flat
curves can send you
into outer space!
1/18/2013 ECE 595, Prof. Bermel
7/29/2019 2013.01.18-ECE595E-L06
9/15
Laguerres Method
1/18/2013 ECE 595, Prof. Bermel
7/29/2019 2013.01.18-ECE595E-L06
10/15
Brents Method: Finding Roots
1/18/2013 ECE 595, Prof. Bermel
7/29/2019 2013.01.18-ECE595E-L06
11/15
Optimization
Relevance in micro & nanoresearch
Convexity
Search classifications
Techniques: Brents Method
Golden Section Search
Downhill Simplex
Conjugate gradientmethods
Multiple level, singlelinkage (MLSL)
1/18/2013 ECE 595, Prof. Bermel
These and further images from Numerical
Recipes, by WH Press et al.
7/29/2019 2013.01.18-ECE595E-L06
12/15
Convexity
1/18/2013 ECE 595, Prof. Bermel
7/29/2019 2013.01.18-ECE595E-L06
13/15
Search Types
Local assumes convex/concave problem
Global uses heuristics to deal with multiple
optima
Non-derivative based no specific
assumptions about best search direction
Derivative based incorporates derivatives to
determine search direction
1/18/2013 ECE 595, Prof. Bermel
7/29/2019 2013.01.18-ECE595E-L06
14/15
Brents Method: Finding Optima
1/18/2013 ECE 595, Prof. Bermel
7/29/2019 2013.01.18-ECE595E-L06
15/15
Next Class
Is on Wednesday, Jan. 23 (because of Martin LutherKing, Jr. Day)
Discussion of optimization and eigenproblems
Please read Chapter 11 of Numerical Recipes byW.H. Press et al.
1/18/2013 ECE 595, Prof. Bermel