Initialize α = [α(1), α(2)], convergence threshold ε, maximum number of iteration N. |
Set j = 1. Set mean square error D0 and difference between iterations d to be sufficiently large. |
while d >ε and j<N |
v1 = v̄+ α(1)m1, v2 = v̄+ α(2)m1, T1 = B(v1) and, T2 = B(v2) |
If D(T1(A), M) > D(T2(A), M) |
α =[(α(1) + α(2))/2, α(2)] |
else |
α =[α(1), (α(1) + α(2))/2] |
end |
d = D0 – min (D(T1(A), M), D(T2(A), M)) |
D0 = min (D(T1(A), M), D(T2(A), M)) |
j = j + 1 |
end |
if D(T1(A), M) > D(T2(A), M) |
output α(2) |
else |
output α(1) |
end |