Skip to main content
. Author manuscript; available in PMC: 2017 Mar 3.
Published in final edited form as: Multiscale Model Simul. 2016 Mar 3;14(1):301–322. doi: 10.1137/15M102157X

Algorithm 1.

Exact Milestoning algorithm.

Input: Milestones M=j=1mMj, initial guess ξ, and tolerance ε > 0 for the absolute error in the MFPT.
Output: Estimates for μ, local MFPTs 𝔼μ[τM], and overall MFPT 𝔼ρ[τP].
μ(0)ξ
T(0) ← +∞
for all n = 1, 2, . . . do
  for i = 1 to m do
   Estimate aij(n) and Eμi(n-1)[τM]
    Aij(n)aij(n)(Mj)
  end for
  Solve wTA = w T (with A=(Aij(n))0m×m and w=(w1,,wm)0m)
  for j = 1 to m do
    μj(n)i=1mwiaij(n)
  end for
  Normalize μ(n)
  T(n)μ(P)−1 𝔼μ(n−1)[τM]
  if |T(n)T(n−1)| < ε then
   break
  end if
end for
return (μ(n), 𝔼μ(n−1)[τM], T(n))