Next Article in Journal
Robustness Analysis and Optimization Strategy of Urban Bus Network Based on Complex Network
Previous Article in Journal
Restorative Justice and Post-Extractive Urban Transitions in Oil-Dependent Cities: The Case of Poza Rica, Mexico
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

A Simulated Annealing Approach for Electric Vehicle Routing with Time Windows

by
Hanane El Hila
1,*,
Fatima Bouyahia
1,
Jaouad Boukachour
2,* and
Abdelouahed Tajer
1
1
Laboratory of System Engineering & Applications, ENSA, Cadi Ayyad University, Marrakesh 40000, Morocco
2
University Institute of Technology, Le Havre University, Normandy, 76610 Le Havre, France
*
Authors to whom correspondence should be addressed.
Sustainability 2026, 18(12), 6319; https://doi.org/10.3390/su18126319 (registering DOI)
Submission received: 1 May 2026 / Revised: 14 June 2026 / Accepted: 15 June 2026 / Published: 19 June 2026

Abstract

Emerging economies face mounting pressure to adopt sustainable and cost-efficient methods for delivering products and services in urban areas. This study examines the Electric Vehicle Routing Problem with Time Windows (EVRPTW) within a pragmatic urban context. We concentrate on the short-haul delivery network in Marrakesh, Morocco, whose operational viability is influenced by climatic, infrastructural, and regulatory limitations. We present a simulated annealing (SA) metaheuristic, augmented with repair heuristics and a penalty-based cost function, to concurrently reduce routing costs and lateness fines, subject to time-window and battery capacity restrictions. The technique undergoes evaluation through extensive computer tests utilizing realistic instance sets that replicate local demand patterns and charging infrastructure. The penalty-calibrated model demonstrates delivery completion rates of up to 100%, significantly reducing route costs and the number of unserved clients relative to baseline setups. We thoroughly analyze the tuning parameters among several runs. This study intends to provide a useful tool for real-world decision support by fusing extensive literature synthesis with local context validation and by integrating a simulation module that evaluates time-window settings and charging patterns under realistic traffic.

1. Introduction

With the world moving towards sustainability, companies are increasingly aware of their environmental footprint and the operational costs it entails. The desire to be “greener” is no longer simply about climate change but now has real strategic benefits for businesses in terms of both regulatory compliance and competitive advantage [1]. Among all sectors, transportation and logistics remain pivotal to global economic activity; nevertheless, their environmental impact, operational complexity, and exposure to real-world constraints such as fluctuating demand and urban mobility challenges have driven significant academic interest in optimizing vehicle tours and routing strategies.
The swift expansion of e-mobility presents new technological challenges for the optimization of delivery operations, particularly those related to electric vehicle battery performance and range limitations. These characteristics drive researchers and practitioners to reevaluate traditional routing models, modifying them to enhance economic efficiency while also addressing sustainability objectives and infrastructural constraints, particularly in developing markets. Despite these obstacles, managing logistics to achieve a balance among efficiency, feasibility, and environmental impact is regarded as vital to sustainable urban growth and business resilience.
Recent metaheuristics for routing problems often rely on classical neighborhoods such as 2-opt, swap and relocate [2], and some works further extend EVRPs with clustered customers and multi-echelon distribution structures [3]. In contrast, this study investigates how modeling and algorithmic choices shape electric vehicle routing performance in a short-distance urban context. The approach introduces a construction–repair SA framework with differentiated penalties for lateness, unserved customers and capacity violations, together with a state-dependent charging policy that adapts recharge duration to the current state of charge rather than relying on a fixed charging time. Finally, the optimized routes are validated through a two-layer workflow that links the planner to microscopic SUMO/TraCI simulation, quantifying the gap between abstract routing metrics and network-level distance, travel time and energy outcomes on the real Marrakesh network.
The remainder of this paper is organized as follows: Section 2 summarizes the literature on sustainable vehicle routing, time-window constraints, and metaheuristic solution techniques. Section 3 describes the mathematical formulation of the routing problem studied, emphasizing the use of realistic operational constraints and penalty functions. Section 4 presents the calibration tests conducted. Section 5 presents and discusses the computational results applied to the context of Marrakesh, Morocco, as well as a comparison with microscopic simulation.

2. Related Work

Many metaheuristics have greatly improved the accuracy and applicability of solutions for the vehicle routing problem (VRP) in previous decades by enabling the exploration of vast and intricate search spaces that were challenging for exact algorithms to traverse. Consequently, they contributed to the development of logistics and transportation planning by providing better, often almost-optimal solutions to the vehicle routing problem (VRP) before domain-specific variants such as the Green Vehicle Routing Problem (GVRP) and the electric vehicle routing problem (EVRP) emerged after 2000.
Researchers such as Paolo Toth [4], Daniele Vigo, and Gilbert Laporte [5] leveraged the foundational metaheuristic techniques developed in the 1990s to advance solutions for larger and more complex VRP instances, integrating practical constraints and novel problem characteristics that more accurately represented real-world scenarios. Consequently, the fundamental algorithmic advancements of the 1990s facilitated the extensive diversification and methodological refinement of VRP research in the early 2000s.
The significant methodological advances in VRP variants between 2000 and 2010 such as the DVRP, PVRP, VRPB, MDVRP, and LRP laid the foundation for addressing increasingly complex and realistic logistics scenarios. Notably the Dynamic Vehicle Routing Problem (DVRP), which entails the real-time emergence of service demands necessitating route adjustments. In this context, Psaraftis [6] provides a comprehensive analysis of DVRP research, categorizing dynamic variants and assessing methodologies for handling real-time service requests and route modifications.
The Periodic Vehicle Routing Problem (PVRP) imposes constraints on visitation frequencies across designated time intervals indicated within that timeframe. For example, Francis [7] provides a comprehensive analysis of the PVRP, emphasizing scenarios in which customers necessitate multiple visits during a planning horizon. It encapsulates essential models, algorithms, and application domains, while addressing extensions beyond the fundamental framework.
The Vehicle Routing Problem with Backhauls (VRPB) extends the classical VRP by allowing each route to include both deliveries and pickups. In a seminal study, Goetschalckx and Jacobs-Blecha [8] analyze routes where vehicles first complete all linehaul deliveries and then perform backhaul pickups before returning to the depot.
The Multi-Depot Vehicle Routing Problem extends the classical VRP by allowing several depots to serve customers, while the Location Routing Problem (LRP) combines depot siting and route design in a single framework. Cordeau [9] develops tabu search algorithms for complex MDVRP-type settings, showing how unified metaheuristics can handle multiple depots and rich side constraints, and Laporte, Nobert and Arpin [10] study LRPs that jointly choose facility locations and vehicle routes, reflecting the integrated network-design decisions found in real supply chains.
From 2010 to 2014, research on the Green Vehicle Routing Problem (GVRP) intensified, emphasizing the reduction of environmental consequences alongside the preservation of operational efficiency.
This period’s significant contribution is the development of mathematical models for GVRP that explicitly account for routes of alternative fuel vehicles, including refueling/recharging stations, focusing on minimizing travel distances and CO2 emissions while taking into account driving range constraints. Key contributions include the pollution-routing framework of Bektaş and Laporte [11], and the first GVRP model with alternative-fuel vehicles and refueling stations by Erdogan and Miller-Hooks [12], which explicitly accounts for fuel consumption, emissions and refueling infrastructure. Subsequent studies refined emission and fuel-use models, often using ALNS and other metaheuristics, and surveyed green routing and scheduling problems with a strong multi-objective perspective [13,14,15]. This stream of work shows how routing decisions can be evaluated not only on cost and service quality but also on energy efficiency and environmental impact, providing the broader context in which EVRPTW models are now being developed.
Felipe [16] introduced the Green Vehicle Routing Problem with Partial Recharging, which combines three different charging technologies with partial recharging and varying charging velocities. They highlighted the operational advantages of partial recharge strategies in electric vehicle routing and suggested solution methodologies that combine simulated annealing (SA) and local search (LS).
Erdogan and Miller-Hooks [17] introduced an innovative GVRP model that enables vehicles to recharge or refuel during transit, recognizing the inadequate infrastructure of Alternative Fuel Stations (AFS) and the necessity to prevent vehicle stranding. This model included service time, customer demands, and route duration constraints, serving as a foundational framework for subsequent extensions like the Electric Vehicle Routing Problem with Time Windows and Recharging Stations (E-VRPTW) created by Schneider, Stenger, and Goeke [18], which incorporated time-window constraints and heuristic solutions that merged Variable Neighborhood Search with tabu search [9].
By examining operating costs and performance indicators, Davis and Figliozzi [19] created a methodology to evaluate the competitiveness of electric delivery trucks. While ref. [20] offered strategies for internalizing the environmental costs associated with logistics systems, Sinha and Labi [21] developed a thorough framework for the evaluation and planning of transportation projects. An updated manual for calculating external transport costs across various modalities was presented by Korzhenevych et al. [22]. In order to evaluate the operational feasibility of more ecologically friendly fleet configurations, Juan, Goentzel, and Bektaş [23] also looked into the routing of fleets with varying driving ranges.
EVRPTW research has focused on modeling range limits, charging operations and their interaction with routing. Early work such as Schneider et al. and Keskin and Çatay [18,24] integrated recharging stations, partial recharging strategies and battery models into heuristic EVRPTW formulations, while later studies explored more complex charging technologies, including multiple chargers and piecewise-linear charging functions [25]. Other contributions examined how charging infrastructure and grid constraints affect feasible routing plans, from battery swapping and swap-station location decisions [26,27] to the impact of slow/fast charging allocation and power-network limits on fleet operation [28,29]. Together, these works underline that realistic EV routing models must jointly consider vehicle energy consumption, charging technology and infrastructure availability.
Building on these general contributions, recent work has focused more specifically on electric vehicle routing problems (EVRPs) with realistic charging and energy models. For example, Yang et al. [2] propose an EVRP with a flexible charging strategy based on real-time charging functions and solve it with an evolutionary algorithm that combines ant colony search, variable-neighborhood operators and reinforcement-learning-based dimensionality reduction, showing clear performance gains on large Solomon-type instances.
Latorre-Biel [3] proposes a hybrid genetic search (HGS) for the generalized VRP that manages separate feasible and infeasible sub-populations to balance intensification and diversity, represents solutions with multiple chromosomes (giant tour, route and node-level), reconstructs routes via ordered crossover and a SPLIT procedure, and applies an intensive local search phase with relocation, swap and 2-opt moves at the cluster level to reach or improve many best-known solutions on large benchmarks.
Recent studies have extended classical EVRPTW models by combining customer clustering with multi-echelon logistics structures. Wu and Bao [30] address the two-echelon vehicle routing problem with clustered customers (2E-VRP-CC), where freight is transported from a depot to satellites before being delivered to customer clusters that must be served consecutively by the same second-echelon vehicle. To solve the problem, they formulate a MILP model and develop an adaptive large neighborhood search (ALNS) framework featuring tailored destroy-and-repair operators for cluster and satellite management.
In summary, the literature on vehicle routing has progressed from initial applications of metaheuristics in conventional fleet routing issues to the formulation of advanced models such as the electric vehicle routing problem (EVRP) and the Green Vehicle Routing Problem (GVRP).
This study addresses the following question: how can an EVRPTW model and a simulated annealing metaheuristic be used to plan depot-based electric last-mile deliveries with time windows in Marrakesh under realistic energy constraints? The specific objectives are: (i) to formulate an EVRPTW model with distance, lateness, and unserved-customer penalties, (ii) to design and calibrate a simulated annealing approach with greedy construction, repair, and 2-opt improvement, and (iii) to evaluate this approach on Marrakesh-based instances using realistic travel times and energy consumption. The next section first describes the problem formulation and then details the solution approach.

3. Problem Formulation

The E-VRPTW examined in this study is formally represented as a directed graph G = (N, A) (Figure 1: Two depots are presented in the graph just for clarity), where the node set N includes the central depot, all client nodes, and some of them nodes with charging equipment, while the arc set A connects each ordered pair of nodes and conveys the corresponding travel distance and travel time. Each arc (i, j) ∈ A signifies a direct connection between two locations, a depot or client, and the routing issue entails determining a collection of vehicle tours, each characterized by a sequence of arcs crossed by vehicles, that collectively service all customers. Figure 1 illustrates our problem, showcasing the depot, client nodes, and charging-capable sites in client locations, with the viable connections represented as directed arcs. The vehicle fleet is uniform, comprising identical electric vehicles with a nominal cargo capacity of 110 units and an effective operational limit of 99 units (90% of nominal), a decrease that implicitly considers the increased energy consumption linked to payload weight without explicitly modeling the physical weight–energy relationship.
The problem is subject to a set of operational restrictions found in the E-VRPTW literature: vehicle capacity, timeframe compliance, route continuity, energy feasibility and charging dynamics. The objective function to minimize is given by
min v V i , j A c i j x i j v + λ i C l i + γ j U p j
The objective function combines three components. The first term minimizes the total traveled distance of the fleet. The second term penalizes customer lateness proportionally to the amount of delay, controlled by the coefficient λ. The third term penalizes each unserved customer using the coefficient γ. These two penalty coefficients allow the algorithm to balance distance minimization against service quality and feasibility. Low penalty values favor shorter routes even if they contain late or unserved customers, whereas high penalty values force the search toward complete and time-feasible solutions.
The model imposes the following operational constraints across all configurations:
  • a—Notations:
Sets:
  • C :   S e t of   clients ;
  • V :   S e t of   vehicles ;
  • N :   S e t of   nodes   ( including   depot ) ,   N = { 0 ,   1 , , n , n + 1 } ;
  • S :   S e t of   charging   stations ,   S N ;
  • K :   N u m b e r of   electric   vehicles   in   the   depot ;
  • A :   S e t of   directed   arcs   i , j   connecting   nodes   in   N .
Parameters and decision variables:
  • d i :   D e m a n d of   customer   i ;
  • Q :   V e h i c l e load   capacity ;
  • c i j :   T r a v e l cos t   or   distance   from   i   to   j ;
  • s i :   S e r v i c e time   at   node   i ;
  • a i , b i :   T i m e window   for   node   i ;
  • d i j :   T r a v e l distance   from   i   to   j ;
  • α :   B a s e energy   consumption   coefficient   ( kWh / km ) ;
  • β :   Speed-dependent   energy   coefficient ;
  • v op :   O p e r a t i n g speed   of   vehicles   ( km / h ) ;
  • R :   C h a r g i n g rate   ( kWh / hour ) ;
  • T charge :   T i m e spent   charging   ( minutes ) ;
  • Q u :   B a t t e r y capacity   ( kWh ) ;
  • Q u m i n :   M i n i m u m reserve   level   ( kWh ) ;
  • M: A large constant;
  • E i j :   E n e r g y required   on   arc   i , j ;
  • τ i j :   T r a v e l time   from   i   to   j ;
  • x i j v :   E q u a l s 1   if   vehicle   v   travels   from   i   to   j , 0   otherwise ;
  • y v :   E q u a l s 1   if   vehicle   v   is   used ;
  • u i :   MTZ   variable   for   subtour   elimination ;
  • S o C i v :   S t a t e of   charge   of   vehicle   v   upon   arrival   at   node   i .
  • b—Constraints
  • Constraint 1: Each customer is visited exactly once
This constraint ensures full-service coverage by requiring that every customer is visited exactly one time and by only one vehicle. It prevents missing or duplicated visits, guaranteeing that the demand of each client is accounted for once in the route construction. In the context of our algorithm, only routes satisfying this condition are considered feasible candidates during the search.
v V i N x i j v = 1 j C
  • Constraint 2: Flow conservation
Flow conservation enforces route continuity: whenever a vehicle arrives at a customer, it must also depart after service. This prevents dead ends or partial paths from forming within a route. When simulated annealing generates neighborhood solutions by swapping or inserting customers, this constraint ensures that the resulting configurations still represent valid traveling paths from the depot and back.
i N x i j v = k N x j k v j N , v V
  • Constraint 3: Depot departure and return
This constraint guarantees that each vehicle starts its route at the depot and returns there after completing deliveries. It models the operational requirement that all tours begin and end at a central facility, ensuring that no route is disconnected or open-ended. This condition defines the boundary of each route and is preserved during all neighborhood modifications.
j N x 0 j v = y v v V
i N x i , n + 1 v = y v v V
  • Constraint 4: Vehicle capacity
The capacity constraint limits the total demand served by any vehicle so that it does not exceed its maximum loading capacity. It regulates the feasibility of load assignments and avoids overutilizing a vehicle. During simulated annealing optimization, any solution violating this constraint is rejected.
j C , i N d j x i j v Q v V
  • Constraint 5: Subtour elimination (MTZ)
Subtour elimination removes circular paths that do not include the depot and would otherwise trap a subset of customers in isolated loops. This is managed through additional ordering or cumulative load variables that enforce logical route progression. This constraint ensures generated solutions represent complete depot-to-depot routes connecting all assigned customers without forming disjoint cycles.
u i u j + Q x i j v Q d j i j , v V
d i u i Q i C
  • Constraint 6: Time-window constraints
Time windows restrict service to occurring within specified intervals for each customer. Service can begin only when the vehicle arrives within this window; early arrivals may wait, and late arrivals incur a penalty. In our algorithm, violation of time windows leads to an adjustment in objective cost through lateness penalties, steering the search toward temporally feasible routes.
a i t i b i i C
  • Constraint 7: Service time propagation
This constraint tracks the chronological feasibility of each route by ensuring that the start of service at one customer logically follows the completion of service at the preceding stop plus travel time. It propagates actual arrival and departure times along the route.
t j t i + s i + τ i j M 1 x i j v
i , j N , i j , v V
  • Constraint 8: Definition of lateness
Lateness measures how much a delivery exceeds the upper bound of the assigned time window. It is calculated as the positive deviation between actual arrival time and the latest allowed time. Lateness serves as a key feedback component in the objective function: solutions with higher lateness values receive higher total costs, penalizing them and driving the search toward schedules that better respect customers’ delivery constraints.
l i t i b i i C
l i 0 i C
  • Constraint 9:
This constraint ensures that the energy level of each electric vehicle never exceeds its maximum battery capacity Qu in a stop O . At the beginning of each route r , the state of charge (SoC) is set to this upper limit, and as the vehicle travels along each segment, energy is consumed proportionally to the distance covered.
S o C i v Q u m a x v V , i N
  • Constraint 10:
This constraint models the depletion of the electric vehicle’s battery as it travels between two locations. The remaining state of charge (SoC) at the next node equals the current SoC minus the energy consumed, which is proportional to the travel distance and the energy consumption rate. It ensures that the available charge never exceeds the vehicle’s maximum battery capacity or drops below operational limits during the route.
S o C j = S o C i E i j i , j A
i j
  • Constraint 11:
This constraint guarantees safety and reliability by requiring that each vehicle maintains a minimum battery reserve throughout its operation. It prevents vehicles from reaching critically low charge levels that could compromise route completion. In practice, this ensures the algorithm generates only feasible paths where the remaining energy always exceeds the minimum Q u m i n .
S o C i v Q u m i n v V , i N
  • Constraint 12:
This constraint defines how vehicles recharge their batteries before and after at a particular station. The increase in SoC depends on the station’s charging rate and the time spent charging, capped by the battery’s maximum capacity. Minimum and maximum charging durations are enforced to reflect real-world station policies. During optimization, charging time is dynamically adjusted to maintain route feasibility.
S o C i v + = m i n Q u m a x , S o C i v + R × T c h a r g e / 60
T m i n T charge
  • Constraint 13:
This constraint ensures that after servicing a node, vehicle k has enough remaining battery energy to travel from node i to the next node j while preserving the minimum required battery reserve. The required energy is represented by Eij. Therefore, the vehicle can only travel from i to j if its state of charge after leaving node i is at least equal to the energy needed for arc (i, j) plus the minimum reserve.
S o C j v S o C i v E i j + M 1 x i j v v V , i , j A
S o C j v S o C i v E i j M 1 x i j v v V , i , j A
i j
  • Constraint 14:
The energy consumption on each arc is modeled as a function of the traveled distance and the operating speed. Following simplified vehicle dynamics, the consumption per kilometer is decomposed into a constant component and a speed-dependent component. The constant term α represents the baseline energy required to overcome rolling resistance and auxiliary loads, while the term βvop2 captures the additional energy demand associated with aerodynamic drag, which increases with the square of vehicle speed. Therefore, the total energy required to travel from node i to node j is expressed as
E i j = d i j α + β v op 2 i , j A
The time-window structures shown in Section 5 are derived from Solomon-type benchmark cases found in the PyVRP SDVRPTW repository [31], a standardized reference dataset that offers time-window limits and service durations.
Our algorithm consists of several steps, starting with constructing the initial solution and inserting each client c   ϵ   C = { 0 ,   60 } .

Solving Approach

The simulated annealing procedure starts from a structured initial solution generated by a greedy insertion heuristic. Customers are first ranked according to a composite priority criterion that accounts for time-window urgency, demand level, and distance from the depot. The algorithm then attempts to insert each customer into the earliest feasible route position. Each tentative insertion is evaluated using the feasibility-checking procedure which verifies vehicle capacity, chronological consistency, time-window feasibility, service duration, battery consumption, and minimum state-of-charge requirements.
If a customer cannot be inserted during the first greedy pass, it is temporarily marked as unassigned. A repair phase is then applied, which explores possible insertion positions across the available routes and selects the most suitable feasible placement. In addition, repair attempts to reduce tardiness by relocating late customers to positions that minimize the induced delay. This repair mechanism strengthens the initial solution by reducing the number of infeasible elements before the simulated annealing search begins.
Finally, a 2-opt local improvement procedure is applied to each route in order to reduce unnecessary detours and improve route compactness. The 2-opt operator reverses subsequences within a route and keeps the modification only when it improves the solution while preserving feasibility. Consequently, the proposed initial solution is not random; it is a strong constructive solution designed to provide the simulated annealing algorithm with a high-quality starting point.
Figure 2 illustrates the decision logic used to build the initial solution for the electric vehicle routing problem.
After constructing the initial solution, the proposed method applies a simulated-annealing metaheuristic to improve the routing plan. The algorithm starts from the repaired and locally improved initial solution, evaluates its penalized objective value, and then iteratively generates neighboring solutions using route modification operators. At each iteration, the new solution is checked for operational feasibility, evaluated through the objective function, and either accepted or rejected according to the simulated annealing acceptance rule. This process enables the search to accept not only improving moves but also, with a controlled probability, some deteriorating moves, which helps the algorithm escape local optima, Algorithm 1 shows the overall performance.
Algorithm 1: Overall metaheuristic algorithm
1:
Initialization
2:
Neighborhood generation: At each iteration, a neighboring solution is generated by applying one of the neighborhood operators: moving a customer, swapping two customers, or reversing a route segment.
3:
Feasibility verification: After each modification, the affected routes are checked with respect to vehicle capacity, time-window consistency, service duration, and state-of-charge constraints.
4:
Cost evaluation: The new solution is evaluated using the penalized objective function, which includes total travel distance, lateness penalties, and unserved-customer penalties.
5:
Acceptance criterion: If the new solution has a lower objective value, it is accepted. Otherwise, it may still be accepted according to the simulated annealing probability or rejected based on the criterion below; after reach application, the solution and temperature are updated:
P = E x p ( C o s t   c o m p u t e d T )
In this study, three main perturbation operators are used during the search: move, swap, and reverse. These operators modify the current solution by changing either the assignment of customers to vehicles or the order in which customers are visited. After each perturbation, the affected routes are checked to ensure that hard constraints, such as vehicle capacity and battery feasibility, remain satisfied. In addition, a 2-opt local improvement procedure is periodically applied to reduce unnecessary detours and improve the solution.
The Figure 3 illustrates the core principle of the 2-opt neighborhood move, which serves as a powerful local improvement operator within route optimization algorithms. The 2-opt method works by selecting two positions on a given route and reversing the order of all clients between these positions. This simple operation can eliminate route crossings and significantly reduce total travel distance. Integrating such neighborhood moves into the metaheuristic search process enables the algorithm to escape local minima and progressively refine the routes towards increased efficiency.
The Figure 4 demonstrates the operation of the move operator within a single vehicle’s route. In this neighborhood move, one client is selected and relocated from its original position in the sequence to a different location further along the route. This is illustrated by moving node 7 from its initial placement between 6 and 5 to a new position after 9. The move operator provides the search algorithm with the flexibility to explore alternative visit orders, which can help resolve constraint violations, reduce total route cost, or better align with time-window requirements. Such targeted adjustments are essential for escaping local minima and refining route quality during metaheuristic optimization.
The Figure 5 illustrates the swap operator applied within the route of a single vehicle. In this neighborhood move, the positions of two clients are exchanged in the sequence, enabling the algorithm to explore different permutations without altering the rest of the route. For example, if the original sequence is 2 → 6 → 7 → 5 → 9, swapping 7 and 9 produces the sequence 2 → 6 → 9 → 5 → 7. This swap operation is useful for reorganizing service order, which may resolve violations (such as time-window overruns, load, or battery issues) or simply reduce route cost. The swap operator is a fundamental move in local search and metaheuristic optimization, providing a simple but effective means for diversifying and refining route solutions.

4. Results and Discussion

All experiments in this study were executed on a laptop with an AMD Ryzen 7 3700U CPU @ 2.30 GHz and 8.00 GB of RAM under 64-bit Windows 11.

4.1. Calibration of Energy Consumption Parameters α, β

For each energy-calibration case in Table 1, the simulated annealing algorithm was executed using multiple runs. The results were aggregated using the mean, standard deviation, and coefficient of variation in order to evaluate both the average behavior and the stability of each configuration. The energy consumption, traveled distance, and minimum final state of charge were used as the main comparison indicators. A configuration was considered more stable when it produced low dispersion across runs while maintaining the battery state of charge above the minimum safety threshold.
Figure 6 illustrates the trade-off between total energy consumption and the minimum final state of charge obtained for the tested energy-calibration cases. The red dashed line represents the minimum admissible SoC threshold of 20 kWh. All tested configurations remain above this limit, confirming that the generated routes are energy-feasible under the considered assumptions. However, the calibration cases show different levels of conservativeness. Cases C1 and C2 lead to lower energy consumption and larger remaining battery margins, which may indicate an optimistic estimation of energy use at higher speeds. In contrast, C5 produces the highest energy consumption and therefore represents the most conservative configuration. Although this case maintains feasible, it may overestimate the required energy and reduce the operational flexibility of the routing model. Intermediate cases, particularly C3 and C4, provide a more balanced compromise between realism and battery safety, as they increase energy consumption with speed while keeping the minimum SoC comfortably above the safety threshold. C3 was selected as the reference configuration because it provides an intermediate energy-consumption level and maintains a safe battery margin. This choice avoids underestimating energy needs while preventing the model from becoming excessively conservative.

4.2. Calibration of Penalty Coefficients λ, γ

To calibrate the time-window penalties (Table 2), we devised a distinct experiment utilizing simulated annealing, commencing from a deliberately suboptimal initial solution. Rather than utilizing the greedy-repair–2-opt method described in Section 3, we implemented a random, capacity-exclusive construction that incorporates customers while disregarding time-window and energy-feasibility constraints. The startup serves as a “stress test” involving numerous delayed and unserved clients. The impact of the penalty weights on the objective value is evident. This configuration was employed to adjust the coefficients. We maintained the values λ = 10 and γ = 1 for all calibration scenarios. In the computational tests detailed in the following paper, the metaheuristic consistently employs the conventional greedy-plus-repair initial solution and 2-opt enhancement with calibrated penalties, ensuring that the search does not become ensnared in a low-cost yet infeasible local optimum.

4.3. Calibration and Sensitivity of SA Parameters

Our temperature update follows a logarithmic cooling schedule, which is defined by
T k = T 0 / 1 + c × l n 1 + k
where c is a cooling rate parameter, T0 is the initial temperature, and k is the current iteration. The early rounds of the algorithm can accept many moves that make things worse while still exploring a large portion of the search area since this formulation keeps the temperature near to T0. There is a probability of escaping local minima, but the search becomes more selective as k increases since the term c ln(1 + k) grows slowly, causing the temperature to decline gradually.
Table 3 presents the impact of various logarithmic cooling settings (T0, c) on solution quality and constraint violations. Cases C1–C3 employ comparatively sluggish cooling schedules, resulting in elevated total lateness and extended journeys (up to 537 km and 19 tardy clients for C1). Progressively enhancing the cooling rate diminishes both distance and tardiness, with Case C4 (T0 = 50, c = 0.4) attaining a distance of 469 km without any unserved or late customers. Increased cooling (Cases C5–C7) marginally enhances the distance while reintroducing latency. Consequently, Case C7 provides the optimal balance between exploration and exploitation and is maintained as the reference configuration for the subsequent tests.
A sensitivity study was carried out on the cooling coefficient C, taking the values of {0.40, 0.4995, 0.60, 0.90, 0.9995}. Three independent runs were done for each value of C, and the mean performance indicators were calculated (see Figure 7). The findings demonstrate that the average verified distance and optimal objective cost remain in a reasonably tight range across all settings, with slightly better values around C = 0.60 and C = 0.9995. In terms of efficiency, no unserved customers are noted, and the average number of late customers is always at most 0.33, indicating that all tested cooling schedules ensure constraint satisfaction. When cooling is more aggressive (e.g., C = 0.90), the mean acceptance ratio of worsening moves declines, whereas slower schedules (C = 0.40–0.9995) maintain a 1–3% range, providing a fair balance between diversification and intensification. C = 0.9995 was chosen for the main experiments due to its ability to achieve competitive or lower average costs, minimize latency, and maintain a low but non-zero acceptance rate of non-improving moves.
To assess the robustness of the simulated annealing configuration, we performed 10 independent runs using the parameter settings reported in Table 4, where the first column groups of experiments by SA configuration (initial temperature, cooling, energy, model, fleet, battery, penalties, SA search and vehicle). For each run, we recorded the best objective value, the corresponding verified route distance, the number of unserved and late customers, and the CPU time. The results in Table 5 show that all runs successfully serve all customers, with at most one late customer per run and limited variation in both cost and runtime, indicating a stable and reliable search behavior for the Marrakesh EVRPTW instance.
In general, the numerical experiments demonstrate that the proposed simulated annealing system is calibrated and resilient. The energy-consumption parameters (α, β) were calibrated. All tested configurations kept the final state of charge well beyond the 20 kWh threshold without overly cautious energy predictions. The time-window penalty coefficients (γ) were set using a stress-test scenario to deter late and unserved customers while avoiding infeasible local optimums. The logarithmic cooling schedule was calibrated and subjected to a sensitivity analysis on the cooling coefficient c. The final setting (T0 = 10, c = 0.9995) achieves low routing costs, zero unserved customers, very few late services, and a small but non-zero acceptance ratio of worsening moves, indicating stable and balanced search behavior across multiple runs.

5. SA Solution Performance and SUMO Route Evaluation

This section reports the results obtained for the Marrakesh case study using the calibrated settings of the SA algorithm and its integration with the SUMO microscopic simulation. The SA solution is first generated on the abstract EVRP-TW model and then embedded into SUMO by replaying the planned routes on the Marrakesh Road network. The comparison focuses on distance, trip time and energy usage in order to quantify the gap between high-level planning assumptions and network-level vehicle behavior.
All customers are served and no time windows are violated in the final solution (Figure 8, so the objective value (Figure 9) corresponds purely to the “real” routing cost without any lateness or unserved-customer penalties.
Figure 10 and Figure 11 represent the per-vehicle performance of the fleet in the Marrakesh case, derived alternately from the SA and the SUMO microscopic simulation. The SA charts reflect the projected route distance and the associated energy demand for each vehicle, calculated using the equivalent consumption model.
Table 6 compares the route completion timings obtained via SA against those derived from the SUMO simulation for each vehicle in the Marrakesh scenario. For the majority of vehicles, SUMO generates tours slightly extended in duration, with individual variations ranging from approximately −10% to +66% and an average escalation of about 12% relative to the SA timetable.
Table 7 reports, for the same routes, the per-vehicle distance and energy consumption predicted by the SA model and measured in SUMO. In all cases the network distance driven in SUMO is substantially larger than the abstract distance used in the SA optimization, with deviations between about 66% and 280% and an average of 181%, reflecting the detours, one-way streets and indirect connections of the real Marrakesh road network. Consistently, the electrical energy drawn in SUMO is higher than the SA prediction for every vehicle, leading to an average energy underestimation of around 74% by the simplified equivalent-consumption model; this quantifies how optimistic a Euclidean, constant-intensity EVRP formulation can be when it is transferred to a microscopic urban traffic setting.
These discrepancies are explained by the different modeling choices in the two layers. In SA, inter-customer distances come from a Euclidean-type matrix, routes are evaluated at a fixed cruising speed, and energy is computed using an averaged aerodynamic formula that yields a constant equivalent consumption per kilometer. In SUMO [32], by contrast, routes follow the real street graph and energy is derived from detailed speed profiles that include acceleration, deceleration, stops and speed limits. As a result, SUMO generates longer paths, higher energy usage and slightly longer completion times, providing a more conservative and realistic assessment of the operational requirements of the electric fleet in Marrakesh.

6. Future Work and Perspectives

This study applies a simulated-annealing-based EVRPTW planner to a real urban logistics case in Marrakesh, combining a calibrated energy-feasibility layer with microscopic SUMO/TraCI simulation on the OpenStreetMap road network. The calibrated instance covers 60 customers served from a single depot by an electric fleet, and the final SA solution is fully feasible in terms of service and battery constraints, with all customers visited and no state-of-charge violations. SUMO validation confirms that the schedule remains operationally viable when embedded in the actual street topology, while revealing systematic gaps in distance, time and energy caused by the Euclidean distance matrix and fixed-speed assumptions of the planning model.
Future work will focus on reducing this planning–execution gap by incorporating network-aware travel times and distances directly derived from the road graph into the SA cost function and by enriching the energy model with factors such as road gradient and temperature-dependent consumption. Methodologically, the SA framework can be extended to account for additional operational features highlighted in recent EVRPTW research, including heterogeneous fleets, station congestion and multi-echelon or clustered delivery structures, while keeping microscopic simulation as an external validation layer. From an applied perspective, the goal is to evolve the calibrated Marrakesh instance into a practical decision-support tool that local operators and planners can use to design cost-effective and energy-aware delivery plans, and to provide a transferable SA&SUMO framework for similar urban and peri-urban logistics settings in developing regions.

Author Contributions

Conceptualization, H.E.H., F.B. and J.B.; methodology, H.E.H., F.B. and J.B.; software, H.E.H.; validation, H.E.H., F.B., J.B. and A.T.; formal analysis, H.E.H., F.B. and J.B.; investigation, H.E.H., F.B. and J.B.; resources, H.E.H. and F.B.; data curation, H.E.H. and F.B.; writing—original draft preparation, H.E.H.; writing—review and editing, H.E.H., F.B., J.B. and A.T.; visualization, H.E.H., F.B., J.B. and A.T.; supervision, F.B., J.B. and A.T.; project administration, F.B. and J.B. All authors have read and agreed to the published version of the manuscript.

Funding

This research received no external funding.

Institutional Review Board Statement

Not applicable.

Informed Consent Statement

Not applicable.

Data Availability Statement

The raw data supporting the conclusions of this article will be made available by the authors on request.

Conflicts of Interest

The authors declare no conflicts of interest.

Abbreviations

The following abbreviations are used in this manuscript:
VRPVehicle Routing Problem
EVRPElectric Vehicle Routing Problem
LRPLocation Routing Problem
EVRPTWElectric Vehicle Routing Problem with Time Windows
SASimulated Annealing
DVRPDynamic Vehicle Routing Problem
PVRPPeriodic Vehicle Routing Problem
MDVRPMulti-Depot Vehicle Routing Problem
TWsTime Windows

References

  1. Sahin, B.; Yilmaz, H.; Ust, Y.; Guneri, A.F.; Gulsun, B. An Approach for Analysing Transportation Costs and a Case Study. Eur. J. Oper. Res. 2009, 193, 1–11. [Google Scholar] [CrossRef]
  2. Yang, B.; Ren, T.; Yu, H.; Chen, J.; Wang, Y. An Evolutionary Algorithm Driving by Dimensionality Reduction Operator and Knowledge Model for the Electric Vehicle Routing Problem with Flexible Charging Strategy. Swarm Evol. Comput. 2025, 92, 101814. [Google Scholar] [CrossRef]
  3. Latorre, V. A Hybrid Genetic Search Based Approach for the Generalized Vehicle Routing Problem. Soft Comput. 2025, 29, 1553–1566. [Google Scholar] [CrossRef]
  4. Toth, P.; Vigo, D. Models, Relaxations and Exact Approaches for the Capacitated Vehicle Routing Problem. Discret. Appl. Math. 2002, 123, 487–512. [Google Scholar] [CrossRef]
  5. Laporte, G.; Nobert, Y.; Desrochers, M. Optimal Routing under Capacity and Distance Restrictions. Oper. Res. 1985, 33, 1050–1073. [Google Scholar] [CrossRef]
  6. Psaraftis, H.N. Dynamic Vehicle Routing: Status and Prospects. Ann. Oper. Res. 1995, 61, 143–164. [Google Scholar] [CrossRef]
  7. Francis, P.M.; Smilowitz, K.R.; Tzur, M. The Period Vehicle Routing Problem and Its Extensions. In The Vehicle Routing Problem: Latest Advances and New Challenges; Golden, B., Raghavan, S., Wasil, E., Eds.; Springer: Boston, MA, USA, 2008; pp. 73–102. [Google Scholar]
  8. Goetschalckx, M.; Jacobs-Blecha, C. The Vehicle Routing Problem with Backhauls. Eur. J. Oper. Res. 1989, 42, 39–51. [Google Scholar] [CrossRef]
  9. Maischberger, M.; Cordeau, J.-F. Solving Variants of the Vehicle Routing Problem with a Simple Parallel Iterated Tabu Search. In Network Optimization; Pahl, J., Voß, S., Eds.; Springer: Berlin/Heidelberg, Germany, 2011; pp. 395–400. [Google Scholar]
  10. Laporte, G.; Nobert, Y.; Arpin, D. An Exact Algorithm for Solving a Capacitated Location-Routing Problem. Ann. Oper. Res. 1986, 6, 291–310. [Google Scholar] [CrossRef]
  11. Bektaş, T.; Laporte, G. The Pollution-Routing Problem. Transp. Res. Part B Methodol. 2011, 45, 1232–1250. [Google Scholar] [CrossRef]
  12. Demir, E.; Huckle, K.; Syntetos, A.; Lahy, A.; Wilson, M. Vehicle Routing Problem: Past and Future. In Contemporary Operations and Logistics: Achieving Excellence in Turbulent Times; Wells, P., Ed.; Springer: Cham, Switzerland, 2019; pp. 97–117. [Google Scholar]
  13. Demir, E.; Bektaş, T.; Laporte, G. An Adaptive Large Neighborhood Search Heuristic for the Pollution-Routing Problem. Eur. J. Oper. Res. 2012, 223, 346–359. [Google Scholar] [CrossRef]
  14. Lin, C.; Choy, K.L.; Ho, G.T.S.; Chung, S.H.; Lam, H.Y. Survey of Green Vehicle Routing Problem: Past and Future Trends. Expert Syst. Appl. 2014, 41, 1118–1138. [Google Scholar] [CrossRef]
  15. Xiao, Y.; Zhao, Q.; Kaku, I.; Xu, Y. Development of a Fuel Consumption Optimization Model for the Capacitated Vehicle Routing Problem. Comput. Oper. Res. 2012, 39, 1419–1431. [Google Scholar] [CrossRef]
  16. Felipe, Á.; Ortuño, M.T.; Righini, G.; Tirado, G. A Heuristic Approach for the Green Vehicle Routing Problem with Multiple Technologies and Partial Recharges. Transp. Res. Part E Logist. Transp. Rev. 2014, 71, 111–128. [Google Scholar] [CrossRef]
  17. Erdoğan, S.; Miller-Hooks, E. A Green Vehicle Routing Problem. Transp. Res. Part E Logist. Transp. Rev. 2012, 48, 100–114. [Google Scholar] [CrossRef]
  18. Schneider, M.; Stenger, A.; Goeke, D. The Electric Vehicle-Routing Problem with Time Windows and Recharging Stations. Transp. Sci. 2014, 48, 500–520. [Google Scholar] [CrossRef]
  19. Tipagornwong, C.; Figliozzi, M. Analysis of Competitiveness of Freight Tricycle Delivery Services in Urban Areas. Transp. Res. Rec. 2014, 2410, 76–84. [Google Scholar] [CrossRef]
  20. McKinnon, A.; Piecyk, M. Setting Targets for Reducing Carbon Emissions from Logistics: Current Practice and Guiding Principles. Carbon Manag. 2012, 3, 629–639. [Google Scholar] [CrossRef]
  21. Sinha, K.C.; Labi, S. Transportation Decision Making: Principles of Project Evaluation and Programming; John Wiley & Sons: Hoboken, NJ, USA, 2011. [Google Scholar]
  22. Korzhenevych, A.; Dehnen, N.; Broecker, J.; Holtkamp, M.; Meier, H.; Gibson, G.; Varma, A.; Cox, V. Update of the Handbook on External Costs of Transport: Final Report for the European Commission: DG-MOVE; Ricardo-AEA and RWTH Aachen University: Brussels, Belgium, 2014. [Google Scholar]
  23. Juan, A.A.; Goentzel, J.; Bektaş, T. Routing Fleets with Multiple Driving Ranges: Is It Possible to Use Greener Fleet Configurations? Appl. Soft Comput. 2014, 21, 84–94. [Google Scholar] [CrossRef]
  24. Keskin, M.; Çatay, B. Partial Recharge Strategies for the Electric Vehicle Routing Problem with Time Windows. Transp. Res. Part C Emerg. Technol. 2016, 65, 111–127. [Google Scholar] [CrossRef]
  25. Dönmez, S.; Koç, Ç.; Altıparmak, F. The Mixed Fleet Vehicle Routing Problem with Partial Recharging by Multiple Chargers: Mathematical Model and Adaptive Large Neighborhood Search. Transp. Res. Part E Logist. Transp. Rev. 2022, 167, 102917. [Google Scholar] [CrossRef]
  26. Ahmad, F.; Saad Alam, M.; Saad Alsaidan, I.; Shariff, S.M. Battery Swapping Station for Electric Vehicles: Opportunities and Challenges. IET Smart Grid 2020, 3, 107–116. [Google Scholar] [CrossRef]
  27. Hof, J.; Schneider, M.; Goeke, D. Solving the Battery Swap Station Location-Routing Problem with Capacitated Electric Vehicles Using an AVNS Algorithm for Vehicle-Routing Problems with Intermediate Stops. Transp. Res. Part B Methodol. 2017, 97, 102–112. [Google Scholar] [CrossRef]
  28. Blonsky, M.; Nagarajan, A.; Ghosh, S.; McKenna, K.; Veda, S.; Kroposki, B. Potential Impacts of Transportation and Building Electrification on the Grid: A Review of Electrification Projections and Their Effects on Grid Infrastructure, Operation, and Planning. Curr. Sustain. Renew. Energy Rep. 2019, 6, 169–176. [Google Scholar] [CrossRef]
  29. Lin, M.; Zhong, M.; Meng, J.; Wang, W.; Wu, J. EV Charging Scheduling under Limited Charging Constraints by an Improve Proximal Policy Optimization Algorithm. Energy 2025, 333, 137422. [Google Scholar] [CrossRef]
  30. Wu, H.; Bao, X. An Adaptive Large Neighborhood Search Method for the Two-Echelon Vehicle Routing Problem with Clustered Customers. Algorithms 2026, 19, 387. [Google Scholar] [CrossRef]
  31. PyVRP Instances/SDVRPTW at Main PyVRP/Instances. Available online: https://github.com/PyVRP/Instances/tree/main/SDVRPTW (accessed on 29 April 2026).
  32. SUMO Interfacing TraCI from Python-SUMO Documentation. Available online: https://sumo.dlr.de/docs/TraCI/Interfacing_TraCI_from_Python.html (accessed on 29 April 2026).
Figure 1. Schematic of electric vehicle routing solution with client-based charging and time windows.
Figure 1. Schematic of electric vehicle routing solution with client-based charging and time windows.
Sustainability 18 06319 g001
Figure 2. Initial solution construction.
Figure 2. Initial solution construction.
Sustainability 18 06319 g002
Figure 3. 2-opt route reversal: Example of local improvement.
Figure 3. 2-opt route reversal: Example of local improvement.
Sustainability 18 06319 g003
Figure 4. Move operator example.
Figure 4. Move operator example.
Sustainability 18 06319 g004
Figure 5. Swap operator example.
Figure 5. Swap operator example.
Sustainability 18 06319 g005
Figure 6. Battery safety margin vs. energy consumption across calibration cases.
Figure 6. Battery safety margin vs. energy consumption across calibration cases.
Sustainability 18 06319 g006
Figure 7. A sensitivity analysis of the cooling coefficient C.
Figure 7. A sensitivity analysis of the cooling coefficient C.
Sustainability 18 06319 g007
Figure 8. Service timing vs. customer time windows per vehicle.
Figure 8. Service timing vs. customer time windows per vehicle.
Sustainability 18 06319 g008
Figure 9. Cost evolution over iterations.
Figure 9. Cost evolution over iterations.
Sustainability 18 06319 g009
Figure 10. SA results: Distance traveled and energy consumed.
Figure 10. SA results: Distance traveled and energy consumed.
Sustainability 18 06319 g010
Figure 11. SUMO results: Distance traveled and energy consumed.
Figure 11. SUMO results: Distance traveled and energy consumed.
Sustainability 18 06319 g011
Table 1. Calibration of energy parameters.
Table 1. Calibration of energy parameters.
CaseSpeedαβRunsMean Distance
(km)
SD DistanceMean Energy
(Kwh)
SD EnergyCV Energy (%)Lowest SoCEquivalent ConsumptionFeasible Runs
C1400.1980.0000142357.659.9178.692.192.7842.7422.002/2
C1650.1980.0000142374.489.6495.912.472.5735.9925.612/2
C2400.1760.0000282357.659.9178.692.192.7842.7422.002/2
C2650.1760.0000282374.489.64109.422.812.5731.9029.222/2
C3400.1540.0000412357.659.9178.692.192.7942.7422.002/2
C3650.1540.0000412362.3810.92118.973.583.0134.8332.832/2
C4400.1320.0000552357.659.9178.692.192.7842.7422.002/2
C4650.1320.0000552349.849.28127.483.392.6636.3336.442/2
C5400.1100.0000692357.659.9178.692.192.7842.7422.002/2
C5650.1100.0000692372.841.70149.310.670.4533.4440.052/2
Table 2. Calibration of penalty coefficients λ, γ.
Table 2. Calibration of penalty coefficients λ, γ.
Caseγ (Penalty for
Late Client)
λ (Penalty for
Unserved Client)
Number of Late ClientsNumber of Unserved Clients
C10.0010.0011916
C20.010.01716
C30.10.137
C41101
C5101000
Table 3. Impact of (T0, c) on solution.
Table 3. Impact of (T0, c) on solution.
CaseT0cLate ClientsTotal LatenessUnserved ClientsDistance
(km)
Best Cost
C11000.00119178305372324.74
C2500.0254240530954
C3500.23300492523
C4500.4000469469
C5500.51120488500
C6500.9170438445
C7100.9995000327327
Table 4. Robustness of the simulated annealing runs.
Table 4. Robustness of the simulated annealing runs.
GroupParameterDescriptionValue
CoolingT0Initial temperature in the logarithmic cooling schedule10
CoolingcCooling rate in0.9995
SA searchMax iterationsMaximum number of simulated annealing iterations10,000
SA searchStagnation thresholdStop if no improvement during this many iterations5000
Energy modelαBase consumption term0.154
Energy modelβSpeed-dependent term0.00004125
VehicleSpeedConstant cruising speed used in the model40 km/h
FleetNumber of customersTotal customers to be served60
FleetNumber of vehiclesVehicles available10
FleetNumber of depotsDepots where routes start/end1
FleetVehicle capacityMaximum load per vehicle1150 (load units)
BatteryBattery capacityEnergy capacity of each vehicle65 kWh
BatteryMinimum SoCSafety reserve at end of route20 kWh
ChargingCharging ratePower of charger30 kW
ChargingCharging timeDuration of a charging event10 min (model value)
ChargingCharging stationsNodes where charging is allowedDepot only
Penaltiesλ unservedPenalty per unserved customer10
Penaltiesγ latePenalty per minute of tardiness1
Table 5. Results obtained for each run.
Table 5. Results obtained for each run.
Run IDBest CostVerified CostUnservedLate ClientsTime (s)Worse Moves
Proposed
Worse Moves AcceptedAcceptance
Ratio
0314.78314.780086.175145670.0130
1320.03319.750192.474942980.0198
2332.19332.190091.354955830.0168
3323.67323.670085.274632660.0142
4335.40335.400089.495364580.0108
5324.36323.720187.014996710.0142
6341.35340.710189.204914890.0181
7329.37329.370083.345271870.0165
8342.27342.270097.434205880.0209
9344.42344.420094.334447510.0115
Mean330.78330.530.00.391.90508775.80.0157
Std. dev.9.609.590.00.464.4737815.40.0035
Table 6. Travel-time comparison between SA planner and SUMO simulation.
Table 6. Travel-time comparison between SA planner and SUMO simulation.
VehicleT_SA_minT_SUMO_minTime Inflation%
V1236.51393.0066.16
V2504.82485.43−3.84
V3287.10461.0060.57
V4300.11314.004.63
V5408.73409.830.27
V6360.93324.63−10.06
V7408.50441.007.96
V8485.77471.57−2.92
V9277.24268.23−3.25
V10422.65434.002.68
Table 7. Distance and energy comparison between SA planner and SUMO simulation.
Table 7. Distance and energy comparison between SA planner and SUMO simulation.
VehicleD_SA_kmD_SUMO_kmDistance Dev.%E_SA_kWhE_SUMO_kWhEnergy Error %
V184.38200.95138.1518.5628.5053.58
V233.1882.41148.377.3011.2554.15
V332.1953.4666.087.087.718.84
V436.5671.3495.138.049.5518.76
V527.4090.51230.336.0312.59108.76
V618.9872.07279.724.189.49126.96
V725.7278.57205.485.6611.41101.64
V842.39100.85137.919.3313.4343.92
V912.3446.22274.552.716.01121.62
V1014.2647.75234.853.146.2598.95
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Share and Cite

MDPI and ACS Style

El Hila, H.; Bouyahia, F.; Boukachour, J.; Tajer, A. A Simulated Annealing Approach for Electric Vehicle Routing with Time Windows. Sustainability 2026, 18, 6319. https://doi.org/10.3390/su18126319

AMA Style

El Hila H, Bouyahia F, Boukachour J, Tajer A. A Simulated Annealing Approach for Electric Vehicle Routing with Time Windows. Sustainability. 2026; 18(12):6319. https://doi.org/10.3390/su18126319

Chicago/Turabian Style

El Hila, Hanane, Fatima Bouyahia, Jaouad Boukachour, and Abdelouahed Tajer. 2026. "A Simulated Annealing Approach for Electric Vehicle Routing with Time Windows" Sustainability 18, no. 12: 6319. https://doi.org/10.3390/su18126319

APA Style

El Hila, H., Bouyahia, F., Boukachour, J., & Tajer, A. (2026). A Simulated Annealing Approach for Electric Vehicle Routing with Time Windows. Sustainability, 18(12), 6319. https://doi.org/10.3390/su18126319

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop