Skip to main content
. 2018 Mar 12;14:1176934318760543. doi: 10.1177/1176934318760543
Algorithm 2. Pseudocode of the naive implementation of the intertask approach.
procedure PFA(H[], R[], Q[], α[], δ[], ζ[], m, n)
for i1,m do
  rRi
  qQi
  ααi
  δδi
  ζζi
  for j1,n do
   hHi
   if i>1 then
    MUMMj
     IUIIj
    DUDDj
   else
    MUIU0
    DU1n
    MID0.9DU
   end if
   if H=R then
    λq/3
   else
    λ1q
   end if
   DNζMN+0.1DN
   MNλMID
   INδMU+0.1IU
   MIDαMU+0.9IU+0.9DU
   MMjMN
   IIjIN
   DDjDN
   if i=m then
    result=MMj+IIj
   end if
  end for
  end for
  return result
end procedure