Research Article

Vehicle Routing Simulation for Prediction of Commuter’s Behaviour

Algorithm 2

Routing with delayed driving time.
while event_schedule do
  select agent assigned to the event .
  remove agent from its previous edge cars count: .
  add agent to cars count: .
  calculate agent driving time from eq. 3
  update agent beliefs from eq. 6
  if is agent final edge then
   delete event_schedule [agent].
   event_schedule[agent] =  .
  end if
end while