Smart driver capacity management to assign meal orders to delivery drivers, assigning more than one order to the same driver at the same time.
Let's agree on glossaries below:
- Trip : is a journey that Driver makes to a particular place ( Customer's location ).
- Collection : is the driver basket that inlcudes set of orders.
There are main 3 entities in the algorithm
- Driver
- Restaurant
- Order and Order Item
When it comes to food, temperature is just as important as taste. No matter how delicious your juicy burger is, no one will take a bite if it’s as cold as ice. Transporting hot and cold foods together, in the same container, can compromise the safety and integrity of your meals. Train delivery staff to use insulated hot and cold bags to keep food at the appropriate temperature.
Database Structure:
Where
- prepare_tolerence_minutes = how many minutes you are allowed to wait between orders
- collection_tolerence_minutes = how many minutes you are allowed to wait the whole collection before you leave the rest
- max_agg_orders = Max orders per collection to get from rest before you leave.
- max_agg_order_items = Max order items per collection to get from rest before you leave.
- here you take the minmum between max_agg_orders and max_agg_order_items.
- item_handling_seconds and order_handling_seconds = handling time per order and item order
Distributed under the MIT License. See LICENSE
for more information.
Ramzi Alqrainy - @RamziAlqrainy - ramzi.alqrainy@gmail.com