Deep reinforcement learning based low energy consumption scheduling approach design for urban electric logistics vehicle networks
엔지니어링 플라스틱 · (23) 컴파운드
기본 정보
- 저자
- DOI
- 10.1038/s41598-025-92916-7
- 저널
- Scientific Reports
- 발행년도
- 2025
- 발행기관
- Nature Portfolio
- 피인용수
- 5
- 라이선스
- cc-by-nc-nd
- 논문 유형
- –
- 언어
- –
- 원문 페이지
- https://doi.org/10.1038/s41598-025-92916-7
- 토픽
- Electric and Hybrid Vehicle Technologies
- OpenAlex ID
- W4408471876
평가 내용
- 관련도
- 사업분야
- 엔지니어링 플라스틱 · (23) 컴파운드
- 부 분야
- –
- R&D 측면
- –
- 확신도
- –
- 근거 용어
- –
- 판단 근거
- 임베딩 유사도 기반 평가로 '엔지니어링 플라스틱 > 컴파운드' 분야에 선정된 논문입니다.
- R&D 활용 포인트
- –
- 평가 입력
- –
초록
본문 89,487자
본문 펼치기
섹션 본문 96문단 · 47,878자
(제목 없음)
1The rapid increase in carbon emissions from the logistics transportation industry has underscored the urgent need for low-carbon logistics solutions.Electric logistics vehicles (ELVs) are increasingly being considered as replacements for traditional fuel-powered vehicles to reduce emissions in urban logistics.However, ELVs are typically limited by their battery capacity and load constraints.Additionally, effective scheduling of charging and the management of transportation duration are critical factors that must be addressed.This paper addresses low energy consumption scheduling (LECS) problem, which aims to minimize the total energy consumption of heterogeneous ELVs with varying load and battery capacities, considering the availability of multiple charging stations (CSs).Given that the complexity of LECS problem, this study proposes a heterogeneous attention model based on encoderdecoder architecture (HAMEDA) approach, which employs a heterogeneous graph attention network and introduces a novel decoding procedure to enhance solution quality and learning efficiency during the encoding and decoding phases.Trained via deep reinforcement learning (DRL) in an unsupervised manner, HAMEDA is adept at autonomously deriving optimal transportation routes for each ELV from specific cases presented.Comprehensive simulations have verified that HAMEDA can diminish overall energy utilization by no less than 1.64% compared with other traditional heuristic or learningbased algorithms.Additionally, HAMEDA excels in maintaining an advantageous equilibrium between execution speed and the quality of solutions, rendering it exceptionally apt for expansive tasks that necessitate swift decision-making processes.
2The comprehensive supporting infrastructure and reliable performance of traditional fuel vehicles have established them as the dominant mode of logistics transportation over recent decades.In contrast, electric vehicles (EVs) face several significant challenges, including limited battery capacity, susceptibility to climatic conditions affecting battery performance, and insufficient distribution of charging stations (CSs).It is not uncommon to observe numerous vehicles queuing to charge at these stations.Such issues severely hinder the transportation efficiency within the logistics sector and significantly impede the adoption of EVs in this industry.This is particularly critical in urban logistics, where the timeliness of transportation is a paramount concern.Generally, urban areas tend to have a relatively higher number of CSs.Consequently, a viable strategy to enhance the transportation efficiency of urban logistics involves generating multiple optimal transportation routes for heterogeneous electric logistics vehicles (ELVs) that possess varying load capacities and battery specifications, all while ensuring timely transportation.This approach aims to minimize energy consumption during transit.Each route for an ELV comprises logistics packages (LPs) and CSs, with each vehicle visiting these locations sequentially according to its designated route.Therefore, determining the optimal routes for ELVs for multiple CSs presents a practical and intriguing challenge.
3Numerous studies have focused on the formulation of transportation routing optimization models 5 and the collaborative logistics of pickup and delivery systems 6,7 .There is also significant research dedicated to the simultaneous optimization of routing and charging for fleets of ELVs 8 .Considering elements such as fixed, transportation, and carbon emission costs, a model for optimizing low-carbon logistics routing for cold chains was developed, integrating constraints concerning vehicle load and delivery windows 9 .Zhang et al. 10 proposed a model for low-carbon, flexible, time-sensitive pickup and delivery (LC-FTSP-TW) aimed at minimizing greenhouse gas emissions within logistics frameworks, accommodating fluctuations in traffic conditions, customer delivery timelines, and vehicle energy requirements.The M-NSGA-II algorithm was employed to reduce energy consumption and carbon emissions in urban logistics transportation 11 .Considering that logistics transportation must account for factors such as energy consumption and the spatial distribution of CSs, the associated optimization problem exhibits high dimensionality and strong nonlinearity, which often struggle to provide efficient and scalable solutions for traditional optimization methods.Therefore, the deep reinforcement learning (DRL) method featuring an attention mechanism was designe to optimize the longest or total travel duration for vehicles of varying capacities.This method includes a vehicle selection decoder and a node selection decoder, facilitating the automated selection of both a vehicle and a node for that vehicle at each decision point 12 .Furthermore, given the constraints of battery capacity, a novel optimal charging strategy for ELVs on long journeys was introduced, providing drivers with precise charging guidance for specific routes 13 .However, none of the aforementioned studies have addressed the heterogeneity of ELVs or the presence of multiple CSs concurrently.
4In contrast to existing literature, the proposed LECS system is designed to identify optimal transportation routes for heterogeneous ELVs, each characterized by different load capacities and battery specifications, as shown in Fig. 2. The optimal transportation route is anticipated to be a Hamiltonian tour, representing a permutation of a subset of LPs and CSs.Notably, each LP must be assigned exclusively to the tour of a single ELV and can only be included once.Furthermore, it is assumed that each ELV can achieve a full charge within a reasonable timeframe upon arrival at CS. Unlike traditional logistics scheduling approaches, which primarily focus on vehicle load capacity and routing optimization, the proposed method considers multiple factors, including the heterogeneity of ELVs, the distribution of CSs, and the timeliness of transportation.
5The deployment of a LECS holds the promise of substantially curtailing both energy consumption and carbon emissions in urban logistics transportation.This system is particularly appealing to logistics companies that utilize unmanned ELVs.Notably, improvements in charging efficiency could further diminish carbon emissions across the entire urban logistics transportation sector, thereby facilitating the adoption of new energy vehicles from an economic standpoint.However, the challenges associated with LECS system are considerable.Primarily, it is essential to identify an optimal Hamiltonian transportation tour for each heterogeneous ELV while accommodating multiple CSs and adhering to constraints related to maximum transportation duration.The tour may encompass any subset of all LPs and CSs, indicating that the process of determining the optimal tour may require exponential time for any given ELV.Furthermore, each LP must be assigned precisely once.Due to the high time complexity involved, there currently exists no effective exact algorithm or approximation algorithm capable of addressing LECS problem.
6Fortunately, the DRL-based graph attention mechanism dynamically adjusts learnable attention weights, enabling ELVs to focus on critical nodes (such as CSs or key task nodes) at different mission stages while filtering out irrelevant information, which can effectively reduce the interference of noisy nodes and provide efficient and scalable solutions for the associated optimization problem with high dimensionality and strong nonlinearity.Therefore, this paper formulates LECS problem, which aims to minimize the total energy consumption of various heterogeneous ELVs with differing loads and battery capacities, while adhering to the constraints of maximum transportation duration.After analyzing the complexity of LECS problem, it was initially modeled as a Markov decision process (MDP).Subsequently, a heterogeneous attention model based on encoder-decoder architecture (HAMEDA) approach, which is designed to automatically learn a construction policy for solving LECS problem, consisting of an encoding phase and a decoding phase.Finally, HAMEDA is trained using REINFORCE algorithm 14 .The primary contributions of this study are outlined as follows:
71.A novel LECS framework is introduced, aiming to optimize total energy usage across a network of diverse ELVs.Through rigorous theoretical examination, it is demonstrated that solving the LECS problem is non-deterministic polynomial-time hard (NP-hard).2. To capture the complex relationships between LPs and CSs, a heterogeneous graph attention network is employed to encode the features of nodes to the embeddings in the encoding phase of HAMEDA model.During the decoding phase, a masking technique is integrated to effectively manage the graph structure, thereby precluding the selection of infeasible nodes and enhancing the overall solution quality.Furthermore, to enhance training stability, proposed model is trained via DRL in an unsupervised manner with the oneagent-per-decoding-step strategy.3. Extensive simulations demonstrate that the proposed HAMEDA model reduce the total energy consumption by at least 1.64% compared to traditional heuristic and learning-based algorithms, while only 3.5% higher than the optimal solution.Furthermore, HAMEDA offers an optimal balance between execution time and solution quality, making it particularly suitable for large-scale applications requiring prompt decision-making.The scheme has been open-sourced, enabling researchers to utilize it for evaluating auto-scaling methodologies.
8The structure of the remainder of this study is organized as follows: Section II surveys pertinent literature.
9Section III delineates the system model and articulates the LECS problem.Section IV details the HAMEDA model, proposed as a resolution to the LECS challenge.Section V undertakes a performance assessment.Section VI culminates with the conclusions.
Low-carbon logistics network design
10Recently, the design of networks for low-carbon logistics has garnered significant attention from researchers both domestically and internationally 15,16 .Liang et al. 17 developed a dynamic generalized method of moments (GMM) model and a Tobit model to investigate the potential temporal and spatial effects of environmental regulation on the green total factor productivity within the low-carbon logistics sector.For regional multimodal logistics networks, Jiang et al. 18 proposed an enhanced adjustable robust optimization method aimed at reducing carbon dioxide emissions.In pursuit of harmonizing the goals of governmental bodies with those of cold chain logistics firms, Zhang et al. 19 devised a bilevel programming-based decision-making model that seeks to minimize the aggregate costs within the entire cold chain logistics framework.In subsequent research, the intricacies of a low-carbon integrated forward/reverse logistics network were analyzed, leading to the development of a fuzzy stochastic programming model aimed at reducing costs associated with carbon trading balances 20 .Additionally, to achieve specific carbon dioxide emission targets in a regional logistics network, a bi-level optimization model was developed, integrating the selection of investments in logistics infrastructure and the allocation of subsidies for sustainable transportation modes 21 .To facilitate enterprises in reducing carbon emissions during current logistics operations, Wang et al. formulated a green urban closed-loop logistics distribution network model designed to minimize both greenhouse gas emissions and total operational costs 22 .Li et al. 23 proposed an optimization model for the EV routing problem, tailored to the sharing economy, with the aim of minimizing comprehensive costs including operational, penalty, queuing, electricity, and environmental expenses.A Catastrophic Adaptive Genetic Algorithm (CA-GA), based on Monte Carlo sampling, was engineered to solve the low-carbon path optimization issue, accounting for transportation costs, time expenses, and carbon emission costs amidst dual uncertainty 24 .Furthermore, a multistage planning approach for developing low-carbon charging infrastructure for EVs was introduced, featuring an innovative travel route choice model that allows EV drivers to make multiple charging detours before completing their routes 25 .Zhang et al. 26 crafted a sparrow search algorithm enhanced by an adaptive t-distribution for tackling a multi-objective low-carbon multi-modal transportation planning problem with fuzzy demand and fuzzy time (MOLCMTPP-FDFT), aiming to minimize both costs and time while integrating essential policies on carbon emissions, carbon taxes, carbon trading, and carbon offsets.
11The aforementioned methods address the challenges associated with low-carbon path optimization and decision-making in dynamic network environments.In contrast to the studies cited above, this paper introduces an innovative scheduling mechanism aimed at minimizing energy consumption and carbon emissions produced by heterogeneous ELVs during urban logistics transportation.
Cost optimization method design
12Challenges within the transportation sector are broadly categorized under generalizations of the vehicle routing problem (VRP) or the traveling salesman problem (TSP), both recognized as NP-hard issues.Consequently, conventional strategies to manage such NP-hard challenges generally fall into three categories: exact algorithms, heuristic algorithms, and methods reliant on DRL.Exact algorithms are designed to yield optimal solutions through enumeration or other techniques.However, they generally exhibit exponential running times 27 .In contrast, approximate algorithms can deliver feasible solutions within polynomial time and are capable of identifying approximate solutions that are relatively close to the optimal for large-scale cost optimization challenges 28,29 .Compared to the aforementioned two categories, DRL-based methods tend to produce solutions more rapidly and possess the ability to autonomously learn representations of states and actions.This characteristic diminishes the dependence on domain-specific knowledge and may uncover complex patterns that traditional methods fail to capture.To derive an approximate solution for covering salesman problem (CSP), Li et al. 30 introduced a novel deep learning approach utilizing multi-head attention (MHA), which was trained using unsupervised DRL techniques.To reduce the overall flight distance of unmanned aerial vehicles (UAVs), this study introduces a DRL-based approach, employing a multi-head heterogeneous attention (MHHA) mechanism.This mechanism supports the strategic sequential formulation of routes with an emphasis on energy efficiency 31 .Several frameworks leveraging DRL have been developed to address a challenging yet nontrivial variant of TSP 32,33 .In addressing large-scale problem scenarios to enhance solution quality, Zhao et al. suggested a novel DRL model, which incorporates a local search method aimed at further elevating the quality of solutions.This model is structured around an actor, an adaptive critic, and a routing simulator 34 .Additionally, an adaptive car-following trajectory control algorithm (e.g., deep adaptive control) was developed to address the challenges associated with adaptive vehicle trajectory control across varying risk levels 35 .Furthermore, to decrease the total charging time for EVs, the research presented a DRL algorithm focused on reducing not only the overall charging duration for EVs but also achieving significant reductions in the origin-destination distance 36 .
13However, the presence of heterogeneous vehicles and the mixing of CS and LP nodes can negatively affect the convergence and efficiency of optimization models, factors that have not been adequately addressed by the previously mentioned methods.In contrast to the works discussed above, this paper proposes a heterogeneous attention model-based approach HAMEDA for LECS problem utilizing DRL.This approach demonstrates superior performance compared to traditional heuristic methods and other learning-based techniques.
System model
14This study examined a low-energy consumption scheduling system composed of a logistics cloud platform, an online community consisting of n users and z CSs, as well as m ELVs with varying load and battery capacities.Each user is associated with an LP that requires collection by an ELV.For clarity, N = {1, 2, • • • , n} is used to uniformly represent both users and their corresponding LPs.Z = {1, 2, • • • , z} is employed to denote the collection of CSs, while M = {1, 2, • • • , m} is used to represent ELVs.All computations for this system are conducted by the logistics cloud platform.Given the presence of multiple CSs, each may be visited by an ELV multiple times or not at all.It is assumed that these CSs have been established within the region of interest, and the location information
15of CSs has been provided to the platform.Each user i ∈ N is also required to submit pertinent information UIi = (w LP i , x u i ) to the platform, which includes w LP i and x u i , representing the weight of LP i and its current location, respectively.Generally, weight serves as a standard criterion for logistics services 37 .Additionally, each ELV must submit information
16to the platform, where x v m is the current location of ELV m and Rm, R r m , rm are the maximum battery capacity, current battery capacity, and unit battery consumption of ELV, respectively.It is assumed that each CS possesses unlimited energy capacity, ensuring that all arriving ELVs can be fully recharged.w max m , w ELV m are the maximum and current load weight of ELV m's, respectively.
17LECS system represents a complete graph G = (X, E), whereis a combination of LP set
18The node setcan be constructed as X = {x0} ∪ X CS ∪ X LP .E = ({xi, xj} : i < j) is the edge set.Each edge {xi, xj}is associated with a non-negative travel time ti,j and the shortest route length d (xi, xj).
19A feasible ELV m's tour π m commences at the depot x0, sequentially traverses a series of LPs and CSs, and ultimately returns to x0, where each CS may be accessed multiple times.To facilitate the representation of ELV access sequence in the most efficient manner, this study introduce δz − 1 dummy nodes for each CS, which share their respective locations.The set of dummy nodes is X CS d .The number δz of dummy nodes associated with each CS, is determined by the frequency of visits to the corresponding CS z.It is advisable to minimize δz to reduce the overall size of the network 38 .For convenience, I = X CS ∪ X LP ∪ X CS d and Z ′ = X CS ∪ X CS d is defined.Consequently, the total number of nodes in the resulting augmented graph G ′ = (I, E) can be calculated as follows:
20(1)
21The following section presents the formulation of the problem and an analysis of its complexity.Table 1 provides a list of commonly used notations.
Problem formulation
22In an LECS system, the study aims to identify a maximum of transportation Hamiltonian tours, one for each ELV, that commence and conclude at the depot while visiting a selected subset of nodes, including CSs as necessary, to minimize the total energy consumption associated with transportation.This study defines the arc set A = {(xi, xj) : i < j and i, j ∈ I} within graph G ′ .Therefore, the edge set E is substituted with an arc set A, where each arc (xi, xj) : i < j and i, j ∈ I corresponds to a respective edge {xi, xj}.Additionally, the decision variable xi,j is expressed as follows:
23The duration of the transportation tour for ELV's can be expressed as follows:
24where d (xi, xj) is the shortest route length between node xi and node xj.
25The remaining load capacity of ELV m is expressed as follows:
26The remaining transportation duration of ELV m is given as follows:
27and
28where Tmax is the maximum transportation duration for each EV, which is treated as a constant; ti,j is the travel time from node i to node j; vm is the average speed of ELV m. ηj is also assumed to be constant, signifying the service time when node i is classified as a LP; otherwise, it indicates the recharging time.
29The total energy consumption of ELV m can be expressed as follows:
30The remaining battery capacity of ELV m is given as follows:
31The objective of this study is to minimize the total energy consumption of all ELVs.This issue is defined as LECS problem, which can be articulated as follows:
32where τi is a time variable that indicates the arrival time of an ELV at node i, which is initialized to zero upon departure from the depot.Constraint (9-1) stipulates that each LP must be accessed only once.Constraint (9-2) ensures that each CS is visited at most once, including the dummy nodes.Constraint (9-3) mandates that each LP possesses a single in-degree and a single out-degree.Constraint (9-4) limits the total number of tours to a maximum of m.Furthermore, each ELV is required to commence and conclude its journey at the depot.Constraint (9-5) guarantees that the cumulative weight of all LPs within ELV m's tour πm does not exceed its maximum load capacity.Constraint (9-6) ensures that each ELV can access the subsequent LP based on its current battery capacity.Similarly, constraint (9-7) confirms that each ELV can reach the nearest CS, also contingent upon its current battery capacity.Constraint (9-8) prohibits the overlap of routes between any two ELVs, with the exception of the depot.Constraints (9-9) and (9-10) prevent the formation of subtours within the route of any ELV.The arrival time at each node for each ELV is monitored through constraint (9-11).Constraint (9-12) establishes an upper limit on arrival times upon return to the depot, specifically the maximum transportation duration Tmax.Constraints (9-13) provide lower and upper bounds on arrival times at LPs and CSs, ensuring that each tour is completed by time Tmax.The final constraint defines the variables as binary.
Hardness analyzing
33This study endeavors to identify an exact algorithm for LECS problem.However, as demonstrated by Theorem 1, LECS problem is classified as NP-hard.Subsequently, the complexity associated with LECS problem is investigated.
34Theorem 1 LECS problem is NP-hard.
35In the realm of logistics optimization, the Green vehicle routing problem (G-VRP) 39 is characterized on a comprehensive graph wherein the vertices symbolize the locations of LPs, ELVs, and a central depot.The primary aim of G-VRP is to ascertain a collection of routes for ELVs that optimize efficiency by minimizing the cumulative distance traveled.Each tour commences at the depot, visits a designated set of LPs within a predetermined time constraint, and subsequently returns to the depot, all while adhering to the driving range limitations imposed by the battery capacity of ELVs.Additionally, each tour may incorporate stops at one or more CSs to facilitate recharging of ELVs during the journey.G-VRP can be expressed as follows:
36LECS problem presents differences from G-VRP in two main aspects.Firstly, LECS incorporates an additional constraint (9-1) that ensures the heterogeneity of ELVs with varying load weights.Furthermore, the objective function (9) of LECS considers the heterogeneity of ELVs in terms of their different unit energy consumption.Therefore, the G-VRP problem can be seen as the special case of LECS problem, where the ELVs' load weights are unfinite.Obviously, this problem is a generalization of the well-known NP-hard G-VRP problem 39 .This indicates that LECS problem is at least as complex as G-VRP.Given that G-VRP is classified as NP-hard 39 , it follows that LECS problem is also NP-hard.
Reformulation as MDP
37Given that LECS problem is classified as NP-hard, obtaining an optimal solution within polynomial time is infeasible.Route formulation within the LECS is envisioned as a series of sequential decision-making tasks.This perspective allows for a natural formulation of the problem as an MDP model, which can be effectively addressed using Encoder-Decoder architecture 40 .
1) State:
38The global state St encompasses comprehensive state information, whereas each ELV m possesses only partial state information
39comprises the partial solution π m t , the remaining battery capacity R r m (t), the remaining load capacity w r m (t), and the remaining duration limit T r m (t) at time step t for ELV m.Additionally, π m t contains all nodes that have been visited up to time step t.
402) Action: The action space at time step t is a m t = (N r t , Zt) , m ∈ M , where N r t is the set of available LP nodes that have not yet been visited but can be accessed by ELV m at time step t, Zt is the set of available CS nodes that ELV m can reach at time step t.Therefore, the action space for all ELVs can be defined as follows:
41The agent must select an action At from the set at time step t unless it reaches a terminal state.
423) Reward: To minimize the overall energy consumption of all ELVs, the reward is defined as the negative of the objective value.Consequently, the reward function R is computed as follows:
434) Transition: The subsequent state s m t+1 = (π m t+1 , R r m (t + 1) , w r m (t + 1) , T r m (t + 1)) is determined by the node selected at time step t.The partial solution is concatenated with the newly selected node j (i.e., resulting in π m t+1 = (π m t ; {j})).The modifications to w r m (t + 1) and T r m (t + 1) are executed in accordance with Eq. ( 4) and (5).Specifically, if node j is classified as a LP node, R r m (t + 1) = R r m (t) − rm (i, j) is defined, where rm (i, j) is the energy consumption of ELV m for traversing from the previous node i to the current node j.Conversely, if node j is categorized as a CS node, then R r m (t + 1) = Rm is applicable.
Methods
44This section introduces HAMEDA model as a solution to LECS problem, which facilitates the dynamic extraction of additional features from nodes.The HAMEDA model, upon completion of training, facilitates the calculation of the optimal value of the objective function.This calculation leverages the parameters derived from training and specific input instances.As illustrated in Figure 3, the HAMEDA model employs an Encoder-Decoder architecture to parameterize and educate the agent's policy pro θ (π|X).Each decision-making round is divided into T time steps.At each time step t, the encoder projects and embeds the graph nodes, capturing their spatial and contextual relationships, while the one-agent-per-decoding-step procedure is employed to improve the creation of optimal transportation routes for the decoder.Specifically, this policy strategically selects nodes sequentially for each ELV, culminating in a node permutation that integrates the depot, all LPs, and a subset of CSs, collectively denoted as
45Furthermore, is a permutation of the selected nodes for ELV m, which can be defined as follows:
46where |π m | is the total number of nodes selected by ELV m.Consequently, for the input instance X and the set of learnable parameters θ, the probability distribution pro θ (π|X) of solution π is regarded as the policy for determining π given θ.The policy function can be expressed as follows:
47where π m t is the node selected by EV at decision step t; π m 1:t−1 is the node selected by m at t − 1 time steps.The objective is to identify the optimal parameter set θ * that generates the optimal tour π * for EVs.
Model design
48The HAMEDA framework is bifurcated into two pivotal phases: encoding and decoding.The encoding phase sees the encoder extracting structural features and embedding each graph node of the input instance X.These embeddings are crucial for generating the key of HAMEDA.During the decoding phase, the framework Fig. 3. Tour construction of HAMEDA model applied to two ELVs and five target nodes.processes these embeddings along with the step context and a mask denoting infeasible nodes, thereby aiding the node selection process for each ELV.Given the requirement to manage transportation tours for numerous ELVs concurrently, this study introduces an innovative decoding strategy tailored to the multi-agent dynamics of the problem.This strategy effectively mitigates the challenges posed by the combinatorial expansion inherent in the multi-agent action space.
Encoding phase
49To construct the key for each node, a heterogeneous graph attention (HGA) network-based encoder is employed to encode the features of the nodes into embeddings that encapsulate the structural patterns of the input instance X.As illustrated in Figure 4, the encoder comprises L identical attention layers.Each attention layer consists of two sub-layers: a multi-head heterogeneous attention (MHHA) sublayer and a simple, position-wise feedforward (FF) sublayer.MHHA sublayer incorporates both self-attention and cross-attention mechanisms, enabling the identification of relationships among all nodes, including CS nodes and ELV nodes.FF sublayer functions as a fully connected network.A residual connection operation is implemented between every two sublayers, followed by a normalization operation.The dx-dimensional input node xi is initially mapped to the d h-dimensional initial node embeddings h (0) i .This mapping can be achieved through a linear transformation that incorporates learnable parameters as follows:
50where W, W0 ∈ dx×d h and b, b0 ∈ d h are the learnable parameters; and x0 is the starting node when i = 0 is considered.Consequently, this study employs the self-reliant parameters W0, b0 for x0.Given that there are count − 1 nodes in graph G ′ , excluding the depot, the configuration is denoted as (count − 1) d h for the initial node embedding.
51To extract features, the self-attention mechanism is employed to compute the key, query, and value vectors for node i, which can be expressed as follows:
52where W k , W q ∈ R d h ×dq and W v ∈ R d h ×dv are the learnable weight parameters; while dq = dv = d h /ϖ and ϖ are the number of attention heads.This configuration enables the model to extract a greater number of structural features.
53The scaled dot product of the query vector of node i and the key vector of node j is determined to assess the compatibility between the two nodes.This computation can be expressed as follows:
54The node weight is subsequently determined by applying a softmax function, as outlined below:
55The described methodology facilitates the elucidation of relationships between any two nodes, with particular emphasis on the interaction between charging nodes and their target counterparts.Consequently, the crossattention mechanism is employed to extract additional structural features.In this model, the key K c j , query q e i , and value v c j vectors can be articulated as follows:
56where h e i and h c j are the embeddings of LP node i and CS node j, respectively.All parameters W kc , W qe , W vc are subject to training.Therefore, the weights assigned to the connections between CS nodes and LP nodes are computed as follows:
57This study leverages the cumulative output of all attention heads to enhance the single head vector h (ϖ) i
58, which can be formally expressed as follows:
59Notably, while CS nodes might be visited repeatedly, LP nodes are restricted to a single visit.Consequently, the attention mechanisms from LP nodes to CS nodes primarily enhance the embeddings of the LP nodes alone.In contrast, the attention heads associated with CS node embeddings yield a value of zero.Following the concatenation of messages from various heads, the resulting multi-head vector is processed through a skipconnection layer and a batch normalization (BN) layer as follows 41 :
60where concat {•} is the concatenation operator; BN (•) is BN function; and W out is a trainable parameter.Subsequently, the output vector from FF sublayer is transmitted through a skip connection and a BN layer, as described below:
61Through the progressive traversal across L attention layers, refined node embeddings are obtained.Subsequently, a comprehensive graph embedding is calculated, encapsulating overarching graph information.
62Both the graph embeddings h N and the advanced node embeddings h l i are utilized as inputs to the decoder.
Decoding phase
63During the encoding phase, leveraging both the refined node embeddings and comprehensive graph embedding, along with the intermediate solution π m 1:t−1 at each construction step t ∈ {1, • • • , T }, this study ascertains the subsequent node π m t in the decoding phase.The decoder, at each step, creates a distribution over the nodes, informed by the embeddings generated during the encoding phase.However, if multiple ELVs simultaneously make decisions, the dimensionality of the joint action space increases exponentially, leading to a substantial rise in training complexity and computational overhead.To address this challenge, we adopt the one-agent-per-decoding-step strategy, ensuring that only one agent makes a decision per time step.This approach effectively transforms the problem into a sequential optimization process, progressively constructing an optimal solution, thereby improving the stability for creation of optimal transportation routes.A pivotal initial step involves identifying which ELV will make decisions at each time step t as is shown in Figure 3.Thereafter, the current active index ℓ of the ELV is established as follows:
64A context vector h ct ℓ (t) is determined at each decoding step t, incorporating the global graph embedding h N , the embedding of the most recently visited node, and the remaining battery capacitie R r m (t), the remaining load capacity w r m (t), and remaining time duration T r m (t).For the initial step of decoding, the embedding of the last visited node is replaced with trainable parameters.The computation of the context vector h ct ℓ (t) is detailed below:
65where
66where W graph , W d and W step are the matrices of trainable parameters.
67In the process of computing node selection π ℓ t , it is essential to take into account not only the previously selected nodes π ℓ 1∼t−1 but also the compatibility between these selected nodes and the remaining nodes.This study ensures a logical and efficient progression in the selection process, optimizing the overall route based on proximity and compatibility criteria π ℓ t .Therefore, in light of these considerations, an additional attention mechanism 42 is incorporated to process h ct ℓ , which facilitates the acquisition of more comprehensive information.The query q ℓ is constructed as follows:
68where K1 and V1 are linear projections of the node embeddings h ct ℓ .d k is the scaling factor and d k = d h M , with M denoting the number of heads in Scaled Dot-Product Attention mechanism 43 .
69The key vector for node i in the single-head attention mechanism is computed as follows:
70Through the aforementioned operation, the query-key (q ℓ , ki) is derived.The compatibility between the query and the key is subsequently calculated according to the following methodology.
71During network training, the presence of infeasible nodes in the action space increases the complexity of training and hinders convergence.The masking process improves learning efficiency by dynamically filtering out infeasible nodes to reduce the exploration space, thereby accelerating the convergence of the optimal strategy and enhancing the overall solution quality.Therefore, u ℓ i is constrained between −R and +R utilizing the tanh (•) function, while the infeasible nodes are masked.In this masking process, the infeasible nodes are assigned a value of −∞ to facilitate the updating of u ℓ i .
72The infeasible nodes consist of the following categories:
731) LP nodes that have been already visited;
742) LP nodes that whose package weight exceed remaining load weight of current ELV;
753) The LP or CS nodes that the ELV cannot reach at the current step due insufficient battery capacity or insufficient remaining duration; 4) LP nodes that would cause the ELV to fail to reach any CS nodes at the next step if the ELV visits them at the current step; 5) The depot when there are still remaining target nodes that need to be visited.
76To facilitate the normalization of final probabilities within the range [0, 1], this study utilizes the softmax function.Thus, the likelihood of choosing node i at the decoding step t is formulated as follows:
77Assuming the application of a greedy strategy to ascertain the pickup tour π ℓ , this study selects the node with the highest probability p t i as π ℓ t during the decoding step t.Specifically, the decoder generates a probability distribution across all nodes as described by Eq. (33).Subsequently, a node is selected to visit based on a specified strategy and append it to the end of π ℓ 1:t−1 at each construction step.This decoding procedure repeats iteratively until all LP nodes are visited, and ELVs return to the depot.
Model training
78HAMEDA model is trained to obtain parameters θ through policy gradient methods utilizing REINFORCE algorithm 14 .This approach integrates both the policy network and the baseline network.The policy network pro θ (π|X) generates a probability distribution over the action space based on the current state.The baseline network functions to provide a standard reward, aiming to decrease variance with a greedy rollout strategy that selects the action of highest probability.Notably, the baseline network shares an identical architecture with the policy network.Subsequently, this study employs gradient descent to update θ , and the gradients of θ can be expressed as follows:
79where B is the batch size and b (•) is a baseline function within the baseline network.The implementation of the baseline function facilitates a significant reduction in computational costs and enhances the rate of convergence.θ can be updated utilizing the Adam optimizer 44 .
80The training algorithm employed in the proposed method is delineated in Algorithm 1.The baseline function b (•) is instantiated as R(π * i ), which is developed through a greedy rollout approach, while R(πi) is constructed via a sample rollout method.Initially, it is essential to initialize the model parameters θ, θ * with random values for both the policy and the baseline policy, concurrently setting θ * ← θ (line 1).Subsequently, HAMEDA model undergoes training based on predetermined epochs and steps (lines 2-16).During the training process, instances are randomly selected from the sample set X (line 4), and the policy is executed through sampling and greedy methods to compute the transportation tours πi and π * i , respectively (lines 5-6).When the sampled solution πi demonstrates superior performance compared to the greedy solution π * i , Monte Carlo sampling is employed to iteratively refine the parameters, thereby enhancing the policy model parameters as delineated in lines 7-10, where B represents the batch size.Additionally, a paired t-test is performed at each epoch to determine whether updates are necessary for the baseline parameters, as specified in lines 13-15.Should the policy outperform the baseline, the parameters of the latter are replaced with those of the former.After extensive training iterations within each epoch, the refined policy network is capable of generating effective solutions.
81Once HAMEDA model has been trained using Algorithm 1, the optimal Hamiltonian transportation tour π for ELVs can be calculated based on the trained parameters θ and the given input instance X.
82the value of the objective function.Subsequently, HAMEDA algorithm demonstrates convergence, with L20C2 configuration achieving convergence in approximately 50 iterations, while L50C5 configuration converges in about 90 iterations.Notably, the convergence rate of HAMEDA surpasses that of Ptr-Net algorithm.Furthermore, HAMEDA ultimately attains a higher reward compared to Ptr-Net algorithm.In contrast to L20C2, L50C5 configurations of both algorithms exhibit a certain degree of fluctuation during the training iterations.However, HAMEDA algorithm maintains a relatively higher level of stability.This phenomenon can be attributed to the increasing number of LPs, which enhances the effectiveness of the constraints within the objective function.These observations indicate a significant improvement in the learning efficiency of HAMEDA algorithm, attributable to the implementation of the heterogeneous graph attention mechanism and the newly proposed decoding procedure utilized by HAMEDA network.
83To validate the effectiveness of proposed HGA network, the one-agent-per-decoding-step strategy and masking process, Fig. 6 illustrates the reward changes over iterations for the HAMEDA algorithm, the HAMEDA without HGA , and the HAMEDA without improved decoding paradigm, i.e. the one-agent-per-decoding-step strategy and masking process, under scenarios with L50C5.The simulation results indicate that, compared to the HAMEDA algorithm without HGA, the proposed algorithm achieves higher rewards but with a slower convergence rate.This suggests that incorporating HGA network into the encoder allows agents to extract more hidden relationships among all nodes, leading the policy iteration closer to the optimal solution.The reason for the slow convergence speed is that the HGA network integrates self-attention and cross-attention mechanisms, extracts more features, leads to an increase in the dimensionality of the state and joint action space, and requires more iterations.Additionally, compared HAMEDA algorithm without improved decoding paradigm, the proposed algorithm demonstrates faster and more stable learning speeds and higher rewards.This is because the masking process effectively filters out infeasible nodes to reduce action space that proposed algorithm needs to learn and explore, thereby enhancing the algorithm's learning speeds and rewards.The one-agent-per-decodingstep strategy can enhance training stability.Thus, the HGA network, the one-agent-per-decoding-step strategy and masking process can effectively improve the performance of the HAMEDA algorithm.
84The research subsequently analyzed the variations in total energy consumption across all algorithms with respect to different node configurations.The parameters are established as follows: a maximum travel time of 65, a maximum energy consumption of 15, and a maximum load constraint of 150.In order to intuitively show the impact of different numbers of LPs and CSs, we set different scales for the y-axis in Figure 7a and 7b. Figure 7a demonstrates that an increase in the number of LPs is correlated with a rise in the total energy consumption, as measured across all algorithms, with the number of CSs held constant at 5. This increase can be attributed to the fact that the total length of transportation routes typically expands with the increase in the number of users.Notably, the energy consumption reported by the proposed algorithm remains lower than that of the other algorithms.In Figure 7b, an increase in the number of CSs results in a decrease in the total energy consumption outputted by all algorithms, with the number of LPs maintained at 50.This reduction can be explained by the enhanced recharging strategy afforded by the additional CS nodes, which allows ELVs to extend their service range more effectively.Under the constraints of limited load and duration capacity, ELVs can cover a broader area, thereby facilitating the servicing of more LP nodes and significantly reducing overall system energy consumption.In comparison to Ptr-Net and Kool-AM, HAMEDA demonstrates superior performance in optimizing the objective function, attributable to the heterogeneous graph attention mechanism that adeptly extracts dynamic features and relationships among all nodes, including both CS and ELV nodes.
85This study conducted an analysis of the effect of varying constraint values on total energy consumption in Figure 8 with the number of LPs and CSs set at 50 and 5, respectively.The results indicate that as the values of several constraints, including maximum transportation duration, maximum battery capacity, and maximum load capacity, increase, the total energy consumption of the different algorithms tends to decrease.This reduction in energy consumption among all ELVs can be ascribed to higher constraint settings, which enable the vehicles to service an increased number of LP nodes.Table 3 details the execution times of the OPT, HAMEDA, VNS, Ptr-Net and Kool-AM algorithms, noting that the duration required by each algorithm extends as the node count rises.Notably, the runtime of OPT and VNS algorithms exhibits an almost exponential growth as the problem size escalates, whereas the runtime of the learning-based methods demonstrates a linear growth pattern.Specifically, the runtimes of OPT and VNS methods are significantly longer than those of the learning-based approaches, which consistently remain approximately 1s.Furthermore, HAMEDA consistently yields a solution that is comparable in quality while requiring relatively less execution time for large-scale instances.
86Comparatively, the HAMEDA algorithm consistently demonstrates at least a 1.64% lower total energy consumption than other DRL-based algorithms, i.e.Ptr-Net and Kool-AM, yet it shows 3.5% higher when compared to OPT.Moreover, HAMEDA significantly outperforms other baseline algorithms in execution speed for large-scale scenarios, thus enhancing timely decision-making capabilities.The experimental findings underscore HAMEDA's ability to strike an effective balance between quick execution and high-quality solutions, alongside marked improvements in optimization efficacy and system scalability.
Conclusion
87This paper addresses LECS problem in urban logistics, where multiple CSs are available for recharging ELVs.LECS problem is formulated to minimize the total energy consumption of heterogeneous ELVs, each with different load capacities and battery sizes, under the constraint of maximum transportation duration.Given the NP-hard nature of LECS problem, it was modeled as an MDP and proposed HAMEDA approach, based on an Encoder-Decoder architecture.HAMEDA incorporates a heterogeneous graph attention network to capture advanced representations of the relationships between LPs and CSs during the encoding phase.In the decoding phase, a novel procedure that utilizes a one-agent-per-decoding-step routine and a masking strategy is introduced to enhance solution quality in tour generation, thereby improving learning efficiency.HAMEDA model is trained through DRL in an unsupervised manner.Extensive experiments demonstrate that HAMEDA reduces total energy consumption by at least 1.64% compared to traditional heuristic and learning-based algorithms.Furthermore, HAMEDA consistently delivers comparable solutions with significantly reduced execution times, making it an optimal choice for large-scale tasks that require rapid decision-making.
88Our current research focuses on low energy consumption scheduling in scenarios with fixed CSs.However, in regions where fixed CSs are sparsely deployed or nonexistent, the coordinated scheduling of mobile CSs and ELVs remains an open challenge for future exploration.Additionally, the proposed centralized approach relies on the logistics cloud platform for all computations, potentially leading to significant data exchange between ELVs and the cloud.To further enhance efficiency and scalability, future research will explore advanced distributed methodologies, such as decentralized federated learning 49 , to reduce communication overhead and improve overall system performance.
Fig. 1 .
89Fig. 1.Logistics business involved carbon emissions in China (2017-2022).
Fig. 2 .
90Fig. 2. Illustration of LECS system in urban logistics.
Algorithm 1 .
91Training HAMEDA using REINFORCE.
Fig. 4 .
92Fig. 4. Illustration of encoding phase in HAMEDA model.
93h
Fig. 6 .
94Fig. 6.The effect of HGA and improved decoder.
Fig. 8 .
95Fig. 8. Effects of different constraints on total energy consumption in ELVs: (a) Maximum load capacity; (b) Maximum battery capacity; (c) Maximum transportation duration.
Fig. 7 .
96Fig. 7. Effects of LPs and CSs on total energy consumption: (a) Total energy consumption versus LPs; (b) Total energy consumption versus CSs.
참고문헌 42건
- A Green Vehicle Routing Problem Transportation Research Part E Logistics and Transportation Review · Elsevier BV · 2011 10.1016/j.tre.2011.08.001
- A branch and cut algorithm for the VRP with satellite facilities IIE Transactions · Taylor & Francis · 1998 10.1080/07408179808966528
- Simple statistical gradient-following algorithms for connectionist reinforcement learning Machine Learning · Springer Science+Business Media · 1992 10.1007/bf00992696
- Joint optimization of logistics infrastructure investments and subsidies in a regional logistics network with CO2 emission reduction targets Transportation Research Part D Transport and Environment · Elsevier BV · 2016 10.1016/j.trd.2016.02.019
- 2006 IEEE International Conference on Communications IEEE International Conference on Communications · 2006 10.1109/icc9926.2006
- Variable neighborhood search for consistent vehicle routing problem Expert Systems with Applications · Elsevier BV · 2018 10.1016/j.eswa.2018.07.007
- Promoting low carbon agenda in the urban logistics network distribution system Journal of Cleaner Production · Elsevier BV · 2018 10.1016/j.jclepro.2018.11.123
- Low-carbon cold chain logistics using ribonucleic acid-ant colony optimization algorithm Journal of Cleaner Production · Elsevier BV · 2019 10.1016/j.jclepro.2019.05.306
- Deep scaled dot-product attention based domain adaptation model for biomedical question answering Methods · Elsevier BV · 2019 10.1016/j.ymeth.2019.06.024
- A genetic algorithm for fuzzy random and low-carbon integrated forward/reverse logistics network design Neural Computing and Applications · Springer Science+Business Media · 2019 10.1007/s00521-019-04340-4
- Sharing economy to improve routing for urban logistics distribution using electric vehicles Resources Conservation and Recycling · Elsevier BV · 2019 10.1016/j.resconrec.2019.104585
- Regional multimodal logistics network design considering demand uncertainty and CO2 emission reduction target: A system-optimization approach Journal of Cleaner Production · Elsevier BV · 2019 10.1016/j.jclepro.2019.119304
- Study on the Effect of Environmental Regulation on the Green Total Factor Productivity of Logistics Industry from the Perspective of Low Carbon Sustainability · Multidisciplinary Digital Publishing Institute · 2019 10.3390/su12010175
- Effective Charging Planning Based on Deep Reinforcement Learning for Electric Vehicles IEEE Transactions on Intelligent Transportation Systems · Institute of Electrical and Electronics Engineers · 2020 10.1109/tits.2020.3002271
- A Hybrid of Deep Reinforcement Learning and Local Search for the Vehicle Routing Problems IEEE Transactions on Intelligent Transportation Systems · Institute of Electrical and Electronics Engineers · 2020 10.1109/tits.2020.3003163
- A Deep Reinforcement Learning Algorithm Using Dynamic Attention Model for Vehicle Routing Problems Communications in computer and information science · Springer Science+Business Media · 2020 10.1007/978-981-15-5577-0_51
- Joint Routing and Charging Problem of Multiple Electric Vehicles: A Fast Optimization Algorithm IEEE Transactions on Intelligent Transportation Systems · Institute of Electrical and Electronics Engineers · 2021 10.1109/tits.2021.3076601
- Cooperative Package Assignment for Heterogeneous Express Stations IEEE Transactions on Intelligent Transportation Systems · Institute of Electrical and Electronics Engineers · 2021 10.1109/tits.2021.3082919
- Low-Carbon Multimodal Transportation Path Optimization under Dual Uncertainty of Demand and Time Sustainability · Multidisciplinary Digital Publishing Institute · 2021 10.3390/su13158180
- Deep Reinforcement Learning for Combinatorial Optimization: Covering Salesman Problems IEEE Transactions on Cybernetics · Institute of Electrical and Electronics Engineers · 2021 10.1109/tcyb.2021.3103811
- Deep Reinforcement Learning for Solving the Heterogeneous Capacitated Vehicle Routing Problem IEEE Transactions on Cybernetics · Institute of Electrical and Electronics Engineers · 2021 10.1109/tcyb.2021.3111082
- Routing optimization of shared autonomous electric vehicles under uncertain travel time and uncertain service time Transportation Research Part E Logistics and Transportation Review · Elsevier BV · 2021 10.1016/j.tre.2021.102548
- IEEE International Conference on Communications IEEE Communications Magazine · Institute of Electrical and Electronics Engineers · 2022 10.1109/mcom.2022.9711530
- GAMMA: Graph Attention Model for Multiple Agents to Solve Team Orienteering Problem With Multiple Depots IEEE Transactions on Neural Networks and Learning Systems · Institute of Electrical and Electronics Engineers · 2022 10.1109/tnnls.2022.3159671
- A Machine Learning Approach for Energy-Efficient Intelligent Transportation Scheduling Problem in a Real-World Dynamic Circumstances IEEE Transactions on Intelligent Transportation Systems · Institute of Electrical and Electronics Engineers · 2022 10.1109/tits.2022.3183215
- Learning to Solve Multiple-TSP With Time Window and Rejections via Deep Reinforcement Learning IEEE Transactions on Intelligent Transportation Systems · Institute of Electrical and Electronics Engineers · 2022 10.1109/tits.2022.3207011
- Multiobjective Optimization for Vehicle Routing Optimization Problem in Low-Carbon Intelligent Transportation IEEE Transactions on Intelligent Transportation Systems · Institute of Electrical and Electronics Engineers · 2022 10.1109/tits.2022.3193679
- A low-carbon, fixed-tour scheduling problem with time windows in a time-dependent traffic environment International Journal of Production Research · Taylor & Francis · 2022 10.1080/00207543.2022.2153940
- Cooperative Scheduling for Directional Wireless Charging With Spatial Occupation IEEE Transactions on Mobile Computing · IEEE Computer Society · 2022 10.1109/tmc.2022.3214979
- Deep Reinforcement Learning for UAV Routing in the Presence of Multiple Charging Stations IEEE Transactions on Vehicular Technology · Institute of Electrical and Electronics Engineers · 2022 10.1109/tvt.2022.3232607
- BNET: Batch Normalization With Enhanced Linear Transformation IEEE Transactions on Pattern Analysis and Machine Intelligence · IEEE Computer Society · 2023 10.1109/tpami.2023.3235369
- Low-Carbon Charging Facilities Planning for Electric Vehicles Based on a Novel Travel Route Choice Model IEEE Transactions on Intelligent Transportation Systems · Institute of Electrical and Electronics Engineers · 2023 10.1109/tits.2023.3248087
- LPPCM: A Low-Cost Package Pickup Covering Mechanism for Cooperative Express Services IEEE Transactions on Sustainable Computing · Institute of Electrical and Electronics Engineers · 2023 10.1109/tsusc.2023.3276206
- Deep Adaptive Control: Deep Reinforcement Learning-Based Adaptive Vehicle Trajectory Control Algorithms for Different Risk Levels IEEE Transactions on Intelligent Vehicles · Institute of Electrical and Electronics Engineers · 2023 10.1109/tiv.2023.3303408
- Sparrow search algorithm with adaptive t distribution for multi-objective low-carbon multimodal transportation planning problem with fuzzy demand and fuzzy time Expert Systems with Applications · Elsevier BV · 2023 10.1016/j.eswa.2023.122042
- Optimal Electric Vehicle Charging Strategies for Long-Distance Driving IEEE Transactions on Vehicular Technology · Institute of Electrical and Electronics Engineers · 2023 10.1109/tvt.2023.3332097
- Path Planning of an Electric Vehicle for Logistics Distribution Considering Carbon Emissions and Green Power Trading Sustainability · Multidisciplinary Digital Publishing Institute · 2023 10.3390/su152216045
- Low Carbon Planning of Multiple Integrated Energy Systems Considering Trans-Regional Battery Logistics Network IEEE Transactions on Sustainable Energy · Institute of Electrical and Electronics Engineers · 2023 10.1109/tste.2023.3334723
- Centralized Deep Reinforcement Learning Method for Dynamic Multi-Vehicle Pickup and Delivery Problem With Crowdshippers IEEE Transactions on Intelligent Transportation Systems · Institute of Electrical and Electronics Engineers · 2024 10.1109/tits.2024.3352143
- Decentralized Federated Learning: A Survey and Perspective IEEE Internet of Things Journal · Institute of Electrical and Electronics Engineers · 2024 10.1109/jiot.2024.3407584
- Planning approach for integrating charging stations and renewable energy sources in low-carbon logistics delivery Applied Energy · Elsevier BV · 2024 10.1016/j.apenergy.2024.123792
- Solving many-objective delivery and pickup vehicle routing problem with time windows with a constrained evolutionary optimization algorithm Expert Systems with Applications · Elsevier BV · 2024 10.1016/j.eswa.2024.124712