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