IDEAS home Printed from https://ideas.repec.org/a/eee/ejores/v324y2025i1p335-350.html
   My bibliography  Save this article

The first mile is the hardest: A deep learning-assisted matheuristic for container assignment in first-mile logistics

Author

Listed:
  • Emde, Simon
  • Tudoran, Ana Alina

Abstract

Urban logistics has been recognized as one of the most complex and expensive part of e-commerce supply chains. An increasing share of this complexity comes from the first mile, where shipments are initially picked up to be fed into the transportation network. First-mile pickup volumes have become fragmented due to the enormous growth of e-commerce marketplaces, which allow even small-size vendors access to the global market. These local vendors usually cannot palletize their own shipments but instead rely on containers provided by a logistics provider. From the logistics provider’s perspective, this situation poses the following novel problem: from a given pool of containers, how many containers of what size should each vendor receive when? It is neither desirable to supply too little container capacity because undersupply leads to shipments being loose-loaded, i.e., loaded individually without consolidation in a container; nor should the assigned containers be too large because oversupply wastes precious space. We demonstrate NP-hardness of the problem and develop a matheuristic, which uses a mathematical solver to assemble partial container assignments into complete solutions. The partial assignments are generated with the help of a deep neural network (DNN), trained on realistic data from a European e-commerce logistics provider. The deep learning-assisted matheuristic allows serving the same number of vendors with about 6% fewer routes than the rule of thumb used in practice due to better vehicle utilization. We also investigate the trade-off between loose-loaded shipments and space utilization and the effect on the routes of the collection vehicles.

Suggested Citation

  • Emde, Simon & Tudoran, Ana Alina, 2025. "The first mile is the hardest: A deep learning-assisted matheuristic for container assignment in first-mile logistics," European Journal of Operational Research, Elsevier, vol. 324(1), pages 335-350.
  • Handle: RePEc:eee:ejores:v:324:y:2025:i:1:p:335-350
    DOI: 10.1016/j.ejor.2025.01.024
    as

    Download full text from publisher

    File URL: http://www.sciencedirect.com/science/article/pii/S0377221725000505
    Download Restriction: Full text for ScienceDirect subscribers only

    File URL: https://libkey.io/10.1016/j.ejor.2025.01.024?utm_source=ideas
    LibKey link: if access is restricted and if your library uses this service, LibKey will redirect you to where you can use your library subscription to access this item
    ---><---

    As the access to this document is restricted, you may want to

    for a different version of it.

    References listed on IDEAS

    as
    1. Qin, Hu & Zhang, Zizhen & Qi, Zhuxuan & Lim, Andrew, 2014. "The freight consolidation and containerization problem," European Journal of Operational Research, Elsevier, vol. 234(1), pages 37-48.
    2. Nadia Giuffrida & Jenny Fajardo-Calderin & Antonio D. Masegosa & Frank Werner & Margarete Steudter & Francesco Pilla, 2022. "Optimization and Machine Learning Applied to Last-Mile Logistics: A Review," Sustainability, MDPI, vol. 14(9), pages 1-16, April.
    3. Wang, Xin & Huang, George Q., 2021. "When and how to share first-mile parcel collection service," European Journal of Operational Research, Elsevier, vol. 288(1), pages 153-169.
    4. Pirmin Fontaine & Stefan Minner, 2023. "A Branch-and-Repair Method for Three-Dimensional Bin Selection and Packing in E-Commerce," Operations Research, INFORMS, vol. 71(1), pages 273-288, January.
    5. Ortmann, Frank G. & Ntene, Nthabiseng & van Vuuren, Jan H., 2010. "New and improved level heuristics for the rectangular strip packing and variable-sized bin packing problems," European Journal of Operational Research, Elsevier, vol. 203(2), pages 306-315, June.
    6. Václavík, Roman & Novák, Antonín & Šůcha, Přemysl & Hanzálek, Zdeněk, 2018. "Accelerating the Branch-and-Price Algorithm Using Machine Learning," European Journal of Operational Research, Elsevier, vol. 271(3), pages 1055-1069.
    7. Thibaut Vidal & Teodor Gabriel Crainic & Michel Gendreau & Nadia Lahrichi & Walter Rei, 2012. "A Hybrid Genetic Algorithm for Multidepot and Periodic Vehicle Routing Problems," Operations Research, INFORMS, vol. 60(3), pages 611-624, June.
    8. Dieter, Peter & Caron, Matthew & Schryen, Guido, 2023. "Integrating driver behavior into last-mile delivery routing: Combining machine learning and optimization in a hybrid decision support framework," European Journal of Operational Research, Elsevier, vol. 311(1), pages 283-300.
    9. Sina Mohri, Seyed & Ghaderi, Hadi & Nassir, Neema & Thompson, Russell G., 2023. "Crowdshipping for sustainable urban logistics: A systematic review of the literature," Transportation Research Part E: Logistics and Transportation Review, Elsevier, vol. 178(C).
    10. Meng, Qiang & Lee, Chung-Yee, 2016. "Liner container assignment model with transit-time-sensitive container shipment demand and its applicationsAuthor-Name: Wang, Shuaian," Transportation Research Part B: Methodological, Elsevier, vol. 90(C), pages 135-155.
    11. Ouyang, Zhiyuan & Leung, Eric K.H. & Huang, George Q., 2023. "Community logistics and dynamic community partitioning: A new approach for solving e-commerce last mile delivery," European Journal of Operational Research, Elsevier, vol. 307(1), pages 140-156.
    12. Schaumann, Sarah K. & Bergmann, Felix M. & Wagner, Stephan M. & Winkenbach, Matthias, 2023. "Route efficiency implications of time windows and vehicle capacities in first- and last-mile logistics," European Journal of Operational Research, Elsevier, vol. 311(1), pages 88-111.
    13. Giménez-Palacios, Iván & Parreño, Francisco & Álvarez-Valdés, Ramón & Paquay, Célia & Oliveira, Beatriz Brito & Carravilla, Maria Antónia & Oliveira, José Fernando, 2022. "First-mile logistics parcel pickup: Vehicle routing with packing constraints under disruption," Transportation Research Part E: Logistics and Transportation Review, Elsevier, vol. 164(C).
    14. Perboli, Guido & Brotcorne, Luce & Bruni, Maria Elena & Rosano, Mariangela, 2021. "A new model for Last-Mile Delivery and Satellite Depots management: The impact of the on-demand economy," Transportation Research Part E: Logistics and Transportation Review, Elsevier, vol. 145(C).
    15. Maria João Santos & Pedro Amorim & Alexandra Marques & Ana Carvalho & Ana Póvoa, 2020. "The vehicle routing problem with backhauls towards a sustainability perspective: a review," TOP: An Official Journal of the Spanish Society of Statistics and Operations Research, Springer;Sociedad de Estadística e Investigación Operativa, vol. 28(2), pages 358-401, July.
    16. Martin Savelsbergh & Tom Van Woensel, 2016. "50th Anniversary Invited Article—City Logistics: Challenges and Opportunities," Transportation Science, INFORMS, vol. 50(2), pages 579-590, May.
    17. Pisinger, David, 1999. "An exact algorithm for large multiple knapsack problems," European Journal of Operational Research, Elsevier, vol. 114(3), pages 528-541, May.
    18. Pisinger, David, 1995. "An expanding-core algorithm for the exact 0-1 knapsack problem," European Journal of Operational Research, Elsevier, vol. 87(1), pages 175-187, November.
    19. Bergmann, Felix M. & Wagner, Stephan M. & Winkenbach, Matthias, 2020. "Integrating first-mile pickup and last-mile delivery on shared vehicle routes for efficient urban e-commerce distribution," Transportation Research Part B: Methodological, Elsevier, vol. 131(C), pages 26-62.
    20. Becker, Henrique & Buriol, Luciana S., 2019. "An empirical analysis of exact algorithms for the unbounded knapsack problem," European Journal of Operational Research, Elsevier, vol. 277(1), pages 84-99.
    21. de Souza, Mauricio C. & de Carvalho, Carlos R.V. & Brizon, Wellington B., 2008. "Packing items to feed assembly lines," European Journal of Operational Research, Elsevier, vol. 184(2), pages 480-489, January.
    22. Bengio, Yoshua & Lodi, Andrea & Prouvost, Antoine, 2021. "Machine learning for combinatorial optimization: A methodological tour d’horizon," European Journal of Operational Research, Elsevier, vol. 290(2), pages 405-421.
    23. Dhirendra Prajapati & Felix T. S. Chan & Yash Daultani & Saurabh Pratap, 2022. "Sustainable vehicle routing of agro-food grains in the e-commerce industry," International Journal of Production Research, Taylor & Francis Journals, vol. 60(24), pages 7319-7344, December.
    24. Wang, Shuaian & Liu, Zhiyuan & Bell, Michael G.H., 2015. "Profit-based maritime container assignment models for liner shipping networks," Transportation Research Part B: Methodological, Elsevier, vol. 72(C), pages 59-76.
    25. Pisinger, David, 1995. "A minimal algorithm for the multiple-choice knapsack problem," European Journal of Operational Research, Elsevier, vol. 83(2), pages 394-410, June.
    26. Kumar, Pramesh & Khani, Alireza, 2022. "Planning of integrated mobility-on-demand and urban transit networks," Transportation Research Part A: Policy and Practice, Elsevier, vol. 166(C), pages 499-521.
    27. Özarık, Sami Serkan & Veelenturf, Lucas P. & Woensel, Tom Van & Laporte, Gilbert, 2021. "Optimizing e-commerce last-mile vehicle routing and scheduling under uncertain customer presence," Transportation Research Part E: Logistics and Transportation Review, Elsevier, vol. 148(C).
    Full references (including those not matched with items on IDEAS)

    Most related items

    These are the items that most often cite the same works as this one and are cited by the same works as this one.
    1. Leung, Eric Ka Ho, 2025. "Total fulfillment management: principles, practices and use cases," Transportation Research Part E: Logistics and Transportation Review, Elsevier, vol. 194(C).
    2. Chen, Yanru & Gao, Mujin & Zhang, Zongcheng & Li, Junheng & Wahab, M.I.M. & Jiang, Yangsheng, 2025. "Contextual bandits learning-based branch-and-price-and-cut algorithm for the two-dimensional vector packing problem with conflicts and time windows," Transportation Research Part E: Logistics and Transportation Review, Elsevier, vol. 193(C).
    3. Faugère, Louis & Klibi, Walid & White, Chelsea & Montreuil, Benoit, 2022. "Dynamic pooled capacity deployment for urban parcel logistics," European Journal of Operational Research, Elsevier, vol. 303(2), pages 650-667.
    4. Koutecká, Pavlína & Šůcha, Přemysl & Hůla, Jan & Maenhout, Broos, 2025. "A machine learning approach to rank pricing problems in branch-and-price," European Journal of Operational Research, Elsevier, vol. 320(2), pages 328-342.
    5. Shen, Yunzhuang & Sun, Yuan & Li, Xiaodong & Eberhard, Andrew & Ernst, Andreas, 2023. "Adaptive solution prediction for combinatorial optimization," European Journal of Operational Research, Elsevier, vol. 309(3), pages 1392-1408.
    6. Sina Mohri, Seyed & Ghaderi, Hadi & Van Woensel, Tom & Mohammadi, Mehrdad & Nassir, Neema & Thompson, Russell G., 2024. "Contextualizing alternative delivery points in last mile delivery," Transportation Research Part E: Logistics and Transportation Review, Elsevier, vol. 192(C).
    7. Alfandari, Laurent & Ljubić, Ivana & De Melo da Silva, Marcos, 2022. "A tailored Benders decomposition approach for last-mile delivery with autonomous robots," European Journal of Operational Research, Elsevier, vol. 299(2), pages 510-525.
    8. Subhash C. Sarin & Hanif D. Sherali & Seon Ki Kim, 2014. "A branch‐and‐price approach for the stochastic generalized assignment problem," Naval Research Logistics (NRL), John Wiley & Sons, vol. 61(2), pages 131-143, March.
    9. Li, Xin & Qian, Zhuzhong & You, Ilsun & Lu, Sanglu, 2014. "Towards cost efficient mobile service and information management in ubiquitous environment with cloud resource scheduling," International Journal of Information Management, Elsevier, vol. 34(3), pages 319-328.
    10. Lukas Janinhoff & Robert Klein & Daniel Scholz, 2024. "Multitrip vehicle routing with delivery options: a data-driven application to the parcel industry," OR Spectrum: Quantitative Approaches in Management, Springer;Gesellschaft für Operations Research e.V., vol. 46(2), pages 241-294, June.
    11. Lorenzo-Espejo, Antonio & Muñuzuri, Jesús & Pegado-Bardayo, Ana & Guadix, José, 2024. "A framework for analyzing service disruptions in last-mile and first-mile reverse logistics," Research in Transportation Economics, Elsevier, vol. 108(C).
    12. Yamada, Takeo & Takeoka, Takahiro, 2009. "An exact algorithm for the fixed-charge multiple knapsack problem," European Journal of Operational Research, Elsevier, vol. 192(2), pages 700-705, January.
    13. David Pisinger, 2000. "A Minimal Algorithm for the Bounded Knapsack Problem," INFORMS Journal on Computing, INFORMS, vol. 12(1), pages 75-82, February.
    14. Fajemisin, Adejuyigbe O. & Maragno, Donato & den Hertog, Dick, 2024. "Optimization with constraint learning: A framework and survey," European Journal of Operational Research, Elsevier, vol. 314(1), pages 1-14.
    15. Wishon, Christopher & Villalobos, J. Rene, 2016. "Robust efficiency measures for linear knapsack problem variants," European Journal of Operational Research, Elsevier, vol. 254(2), pages 398-409.
    16. Kateryna Czerniachowska & Marcin Hernes, 2021. "Shelf Space Allocation for Specific Products on Shelves Selected in Advance," European Research Studies Journal, European Research Studies Journal, vol. 0(3 - Part ), pages 316-334.
    17. Higgins Michael J. & Rivest Ronald L. & Stark Philip B., 2011. "Sharper p-Values for Stratified Election Audits," Statistics, Politics and Policy, De Gruyter, vol. 2(1), pages 1-37, October.
    18. Yang, Dingtong & Hyland, Michael F. & Jayakrishnan, R., 2024. "Tackling the crowdsourced shared-trip delivery problem at scale with a novel decomposition heuristic," Transportation Research Part E: Logistics and Transportation Review, Elsevier, vol. 188(C).
    19. Abolghasemi, Mahdi & Abbasi, Babak & HosseiniFard, Zahra, 2025. "Machine learning for satisficing operational decision making: A case study in blood supply chain," International Journal of Forecasting, Elsevier, vol. 41(1), pages 3-19.
    20. Yanasse, Horacio Hideki & Pinto Lamosa, Maria Jose, 2007. "An integrated cutting stock and sequencing problem," European Journal of Operational Research, Elsevier, vol. 183(3), pages 1353-1370, December.

    More about this item

    Keywords

    ;
    ;
    ;
    ;
    ;

    Statistics

    Access and download statistics

    Corrections

    All material on this site has been provided by the respective publishers and authors. You can help correct errors and omissions. When requesting a correction, please mention this item's handle: RePEc:eee:ejores:v:324:y:2025:i:1:p:335-350. See general information about how to correct material in RePEc.

    If you have authored this item and are not yet registered with RePEc, we encourage you to do it here. This allows to link your profile to this item. It also allows you to accept potential citations to this item that we are uncertain about.

    If CitEc recognized a bibliographic reference but did not link an item in RePEc to it, you can help with this form .

    If you know of missing items citing this one, you can help us creating those links by adding the relevant references in the same way as above, for each refering item. If you are a registered author of this item, you may also want to check the "citations" tab in your RePEc Author Service profile, as there may be some citations waiting for confirmation.

    For technical questions regarding this item, or to correct its authors, title, abstract, bibliographic or download information, contact: Catherine Liu (email available below). General contact details of provider: http://www.elsevier.com/locate/eor .

    Please note that corrections may take a couple of weeks to filter through the various RePEc services.

    IDEAS is a RePEc service. RePEc uses bibliographic data supplied by the respective publishers.