Advertisement
Guest User

Untitled

a guest
Nov 21st, 2014
600
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.95 KB | None | 0 0
  1. 1. Set the planning horizon is set to t+10 minutes.
  2. 2. Load all jobs within this horizon and adds them to a list.
  3. 3. Remove all jobs from the list in which the customer is not sharing the ride.
  4. 4. Remove all jobs from the list in which there are four passengers or more.
  5. 5. Count the number of jobs remaining on the list.
  6. • In the case of zero jobs remaining, restart process by returning to step one.
  7. 6. Earmark jobs with one passenger only.
  8. • Find vehicle with a room for one passenger.
  9. • If there are no vehicles available, then jump to step seven.
  10. • If a vehicle is available, then add passenger to journey.
  11. • Determine if the new fare and travel time benefits all passengers.
  12. • If it does, then push recommendation all passengers.
  13. • If it does not, then do not do anything and jump to step seven.
  14. 7. Repeat step six for jobs with two to three passengers
  15. • Jump to step seven when there is nothing remaining.
  16. 8. Return to step one.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement