Pickup and Delivery Driver Problem
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3

Thread: Pickup and Delivery Driver Problem

  1. #1
    Join Date
    May 2011

    Pickup and Delivery Driver Problem

    Let's assume food delivery for multiple restaurants (say 20). There are (say 10) drivers available. Further, let's say we get 100 orders over a 4 hour period to deliver food from these restaurants to homes.

    So drivers have to be coordinated to pickup food at a location and deliver to customers at home.

    Primary goal is to minimize time to delivery, i.e. time between order and arrival at homes. The secondary goal is to maximize driver capacity (i.e., least amount of time to deliver all orders).

    Bear in mind that the orders come in over a four hour period, so let's say evenly, i.e. one very 3 minutes. Also, let's assume the orders are randomly to the 20 restaurants.

    Assume that I can calculate time to travel from any location to a destination to the second.

    I know the location of all drivers in realtime. I also know their statuses, i.e. are they currently on their way to pick up an order (to take to a known destination), have they already picked up an order and are enroute to a known destination.

    Constraints are:
    1) Must pick up an order after a given time (i.e. meal preparation time for restaurant)
    2) Must deliver order in under 45 mins (otherwise alert thrown)
    3) Must pad time with "x" minutes to accommodate for time spent walking to store to pickup order, etc.
    4) Must pad time with "y" minutes to accommodate for time spent delivering order to customer and collecting payment.
    5) Drivers have only a given set of payment methods (e.g. Cash, Visa, Amex, MasterCard). We must match customer request (cash, visa, etc) with driver capability (cash, visa, amex, etc).

    So for example, if I get two orders with close by destination and close by pickup locations, even if there is another "Free" driver (not doing anything), it would be more efficient to use the same driver to pickup both orders and deliver both orders.

    You can assume there will be delivery zones enforced for each restaurant, meaning, most people ordering from them will most likely be close to them. Therefore, this algorithm should manage to segment drivers automatically into city zones, and favor drivers within the zone already.

  2. #2
    Join Date
    Feb 2011
    United States

    Re: Pickup and Delivery Driver Problem

    Not sure, but thought it was a good idea to add a note that there were useful replies to this question at stackexchange in case future searchers find this thread: http://math.stackexchange.com/questi...driver-problem
    Best Regards,

    All advice is offered in good faith only. You are ultimately responsible for effects of your programs and the integrity of the machines they run on.

  3. #3
    Join Date
    Feb 2002

    Re: Pickup and Delivery Driver Problem

    Funny. I don't see a question here. Just a problem, explained.


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Windows Mobile Development Center

Click Here to Expand Forum to Full Width

On-Demand Webinars (sponsored)