Академический Документы
Профессиональный Документы
Культура Документы
Stephen Boyd
EE103
Stanford University
December 6, 2016
Outline
Examples
Levenberg-Marquardt algorithm
fi (x1 , . . . , xn ) = 0, i = 1, . . . , m
∂fi
Df (x̂)ij = (x̂), i = 1, . . . , m, j = 1, . . . , n
∂xj
I optimality condition reduces to normal equations when f is affine
Examples
Levenberg-Marquardt algorithm
Examples 7
Computing equilibrium points
Examples 8
Location from range measurements
ρi = kx − ai k + vi , i = 1, . . . , m
Examples 9
Outline
Examples
Levenberg-Marquardt algorithm
Levenberg-Marquardt algorithm 10
The basic idea
Levenberg-Marquardt algorithm 11
Levenberg-Marquardt algorithm
(λ(k) > 0)
I we want kfˆ(x; x(k) )k2 small, but we don’t want to move too far
from x(k) , where fˆ(x; x(k) ) ≈ f (x) no longer holds
Levenberg-Marquardt algorithm 12
Adjusting λ
idea:
I if λ(k) is too big, x(k+1) is too close to x(k) , and progress is slow
I if λ(k) is too small, x(k+1) is too far from x(k) , and the linearization
approximation is poor
update mechanism:
I if kf (x(k+1) )k2 < kf (x(k) )k2 , accept iterate and reduce λ:
λ(k+1) = 0.8λ(k)
I otherwise, increase λ and do not update x:
λ(k+1) = 2λ(k) and x(k+1) = x(k)
Levenberg-Marquardt algorithm 13
Levenberg-Marquardt iteration
−1
x(k+1) = x(k) − Df (x(k) )T Df (x(k) ) + λ(k) I Df (x(k) )T f (x(k) )
Levenberg-Marquardt algorithm 14
Example: Location from range measurements
4
x2
2
1
4
2
0 00 x2
0 1 2 3 4 1 2 3 40
x1 x1
Levenberg-Marquardt algorithm 15
Levenberg-Marquardt from 3 initial points
3
x2
0
0 1 2 3 4
x1
Levenberg-Marquardt algorithm 16
Levenberg-Marquardt from 3 initial points
kf (x(k) )k2
2
0
1 2 3 4 5 6 7 8 9 10
0.3
0.2
λ(k)
0.1
0
1 2 3 4 5 6 7 8 9 10
k
Levenberg-Marquardt algorithm 17
Outline
Examples
Levenberg-Marquardt algorithm
φ(u)
u
−4 −2 2 4
−1
10
Classification error (%)
Data set
6 Test set