Research Article

An Algorithm for Optimally Fitting a Wiener Model

Algorithm 5

BFGS algorithm used.
Let 𝑛 = number of iterations to be run, 𝜎 = 1 × 1 0 1 2 , and 𝐵 1 = 𝐼 .
Choose 𝛿 based on current value of 𝑅 2 and subset of parameters to be fit.
for   𝑖 = 1 to 𝑛   do
if   𝑖 > 1   then
   𝑡 = 𝐽 𝐽 + ( 𝐽 𝐽 ) 𝑓
   𝐵 1 = 𝐵 1 + 𝑡 + 𝑡 𝐵 1 𝑡 𝐵 𝑡 𝑡 1 𝑡 + 𝑡 𝐵 1 𝑡
end if
𝐹 = 𝐽 𝐟
= 𝐵 1 𝐹
𝑑 =
if   𝑑 > 𝛿   then
   𝛿 = 𝑑 2
   𝑑 = 𝛿
end if
̂ ̂ 𝜃 = 𝜃 +
̂ ̂ 𝜌 = 𝐹 ( 𝐱 𝜃 ) 𝐹 ( 𝐱 𝜃 ) 𝐹 ( 1 / 2 ) 𝐽 2
if   𝜌 < . 2 5   then
   𝛿 𝛿 = 2
else
  if   𝜌 > . 7 5   then
    𝛿 = m a x ( 𝛿 , 3 𝑑 )
  end if
end if
   𝐽 = 𝐽
end for