Wei Liu , Youqi Wang , Bingbing Li , Yixun Wen , Hao Zhang , Weichao Zhuang , Guodong Yin , Boli Chen
{"title":"Transformer-enhanced multi-agent reinforcement learning for dynamic electric logistics Fleet routing under time-varying traffic","authors":"Wei Liu , Youqi Wang , Bingbing Li , Yixun Wen , Hao Zhang , Weichao Zhuang , Guodong Yin , Boli Chen","doi":"10.1016/j.apenergy.2026.127612","DOIUrl":null,"url":null,"abstract":"<div><div>This paper proposes a Transformer-Enhanced Multi-Agent Reinforcement Learning (TE-MARL) framework for electric logistics fleet routing under time-varying traffic and coupled power-grid loads, with the goal of minimizing overall operating cost. First, we develop a linear congestion model with a 30-min smooth transition to approximate the continuous dynamics of traffic flows. In parallel, we establish an energy consumption–charging coupling model that captures the effects of congestion, speed, specific energy consumption, and peak–valley grid-load fluctuations on charging efficiency. Next, we design a three-module Transformer-based policy network that incorporates traffic-aware attention to strengthen the representation of congestion features. The framework employs centralized training with decentralized execution (CTDE) and Proximal Policy Optimization (PPO) to enhance generalization and stability in highly dynamic environments. Beyond conventional objectives such as minimizing travel time and energy consumption, we introduce a Traffic Adaptability Cost metric to quantify the robustness of routing solutions to traffic fluctuations. Extensive experiments under high station density and multi-vehicle coordination compare TE-MARL with state-of-the-art learning-based and heuristic baselines. The results indicate that, on a representative C100-S20-V8 instance, TE-MARL reduces total travel time and total energy consumption by 20.4% and 17.6% relative to a MARL baseline, and by 14.9% and 10.9% relative to a hybrid Q-DH method, while achieving 100% feasibility and higher traffic adaptability. These gains substantially mitigate the risks of peak-hour time-window violations and excessive energy use.</div></div>","PeriodicalId":246,"journal":{"name":"Applied Energy","volume":"410 ","pages":"Article 127612"},"PeriodicalIF":12.2000,"publicationDate":"2026-05-01","publicationTypes":"Journal Article","fieldsOfStudy":null,"isOpenAccess":false,"openAccessPdf":"","citationCount":"0","resultStr":null,"platform":"Semanticscholar","paperid":null,"PeriodicalName":"Applied Energy","FirstCategoryId":"5","ListUrlMain":"https://www.sciencedirect.com/science/article/pii/S0306261926002643","RegionNum":1,"RegionCategory":"工程技术","ArticlePicture":[],"TitleCN":null,"AbstractTextCN":null,"PMCID":null,"EPubDate":"2026/2/25 0:00:00","PubModel":"Epub","JCR":"Q1","JCRName":"ENERGY & FUELS","Score":null,"Total":0}
引用次数: 0
Abstract
This paper proposes a Transformer-Enhanced Multi-Agent Reinforcement Learning (TE-MARL) framework for electric logistics fleet routing under time-varying traffic and coupled power-grid loads, with the goal of minimizing overall operating cost. First, we develop a linear congestion model with a 30-min smooth transition to approximate the continuous dynamics of traffic flows. In parallel, we establish an energy consumption–charging coupling model that captures the effects of congestion, speed, specific energy consumption, and peak–valley grid-load fluctuations on charging efficiency. Next, we design a three-module Transformer-based policy network that incorporates traffic-aware attention to strengthen the representation of congestion features. The framework employs centralized training with decentralized execution (CTDE) and Proximal Policy Optimization (PPO) to enhance generalization and stability in highly dynamic environments. Beyond conventional objectives such as minimizing travel time and energy consumption, we introduce a Traffic Adaptability Cost metric to quantify the robustness of routing solutions to traffic fluctuations. Extensive experiments under high station density and multi-vehicle coordination compare TE-MARL with state-of-the-art learning-based and heuristic baselines. The results indicate that, on a representative C100-S20-V8 instance, TE-MARL reduces total travel time and total energy consumption by 20.4% and 17.6% relative to a MARL baseline, and by 14.9% and 10.9% relative to a hybrid Q-DH method, while achieving 100% feasibility and higher traffic adaptability. These gains substantially mitigate the risks of peak-hour time-window violations and excessive energy use.
期刊介绍:
Applied Energy serves as a platform for sharing innovations, research, development, and demonstrations in energy conversion, conservation, and sustainable energy systems. The journal covers topics such as optimal energy resource use, environmental pollutant mitigation, and energy process analysis. It welcomes original papers, review articles, technical notes, and letters to the editor. Authors are encouraged to submit manuscripts that bridge the gap between research, development, and implementation. The journal addresses a wide spectrum of topics, including fossil and renewable energy technologies, energy economics, and environmental impacts. Applied Energy also explores modeling and forecasting, conservation strategies, and the social and economic implications of energy policies, including climate change mitigation. It is complemented by the open-access journal Advances in Applied Energy.