Search this site
Embedded Files
Aditya Majali
  • Home
  • Projects
  • Blog
  • CV
Aditya Majali
  • Home
  • Projects
  • Blog
  • CV
  • More
    • Home
    • Projects
    • Blog
    • CV

AI Based Logistics Planner

I recently participated in a hackathon in Germany, where I chose to work on a logistics challenge for a company. I have always been interested in optimization problems and wanted to apply AI methods to something with real value for industry. This was the perfect opportunity to explore something  which affects scores of companies across the world.

The task was to plan overnight deliveries to branches from a central distribution center and two hubs while following a set of delivery and driving rules. The project shows how practical and relevant classical optimization methods are for solving real business problems.

  • Problem statement and data:

    • A central distribution center (DC) and two regional hubs supply 174 branches overnight, five nights a week. The goal is the cheapest weekly plan, paid per kilometer and per stop, that gets every delivery to its branch on time.

    • Freight is ready at the DC at 20:00, every branch must be delivered by 08:00, and each stop takes 15 minutes to unload.

    • Drivers take a 45-minute break after 4.5 hours of driving and drive at most 9 hours a day. Each vehicle has one driver and returns to its depot.

    • Vans can carry 5 units and cost €1/km plus €10 per stop. Trucks can carry 38 containers and cost €3/km plus €15 per stop, drive 20% slower, and can't reach 57 of the branches.

    • Each branch's weekly demand is split by appointment day and lead time into 17,722 demand packets, each with the days it may travel on.

    • The data is synthetic and anonymized from the one received in hackathon, to ensure fair use of my intellectual property without compromising any company data.

  • Key Techniques and Methods:

    • Road distances and driving times are taken from OpenStreetMap, via OSRM (built by researchers from Karlsruhe).

    • A Mixed-Integer Linear Program (MILP) picks each branch's delivery days.

    • OR-Tools builds the van and truck tours, and a hybrid genetic search algorithm improves them.

    • Every tour is re-driven leg by leg to check breaks, driving time, capacity and the 08:00 deadline.

  • Experimental setup

I compared the baseline plan with six what-if scenarios: more or less demand, hubs switched off, an extra hub, and branches giving up a delivery day. Each run takes about 3 minutes.

  • Research highlights

    • The baseline costs €82,854 a week and every branch is on time. The last delivery arrives at 07:59, and the longest shift has 8 h 52 min of driving.

    • Searching over hub volume limits and refining with the genetic search cut a night's cost by 6% compared with a plain OR-Tools solve.

    • Without having the hubs, 51 branches can't be reached within the 9-hour driving limit.

    • An extra hub can potentially saves regular cost, but will need a one-time investment. Letting branches skip their least useful delivery day saves €1,845 a week, with almost no extra waiting time.

Built with Python, OR-Tools, PyVRP, OSRM, React and Leaflet.
Google Sites
Report abuse
Google Sites
Report abuse