“…. , G r,0 max do (16) tG r,0 � i (17) tG r,1 � effectG r − tG r,0 (18) if tG r,1 ≥ G r,1 min and tG r,1 ≤ G r,1 max then (19) Delay r � f(r, planP r,0 , planP r,1 , tG r,0 , tG r,1 , x j , A t,k ) //Calculated by Algorithm 2 (20) if Delay r < optV r then (21) optV r � Delay r (22) optG r,0 � tG r,0 (23) optG r,1 � tG r,1 (24) end if (25) end if (26) end for (27) : end for (28) else (29) v j � 99999 (30)…”