1. Introduction
Electric vehicles (EVs) and batteries are the main power sources with clean and pollution-free characteristics, and are considered a promising method to alleviate the current fossil energy problem [
1]. EVs, represented by new energy vehicles, are gradually replacing traditional fossil fuel vehicles and becoming a national development consensus and a planning system goal. Due to poor battery life and insufficient construction of charging facilities, current EVs have significantly reduced their competitiveness and lost some market share. Therefore, improving their endurance is the focus of current research [
2]. However, most of the current research only analyzes their battery conversion efficiency and charging pile construction layout, with little research on the charging selection behavior and scheduling of traditional EV users [
3]. Moreover, some of these studies overlook various constraints and limitations in their actual travel process. In addition, ant colony optimization (ACO) is often used in path optimization because it utilizes the positive feedback mechanism of remaining pheromones on the path between ants for information transmission [
4,
5]. However, there are still shortcomings in optimizing the charging path of EVs. On the ground of this, this study proposes an optimization method for EV charging scheduling based on the ant colony optimization algorithm with adaptive dynamic search (ADS-ACO). Its purpose is to effectively improve the battery life of EVs and provide a reference value for the path optimization problem of charging scheduling for users of EVs. In comparison to existing methodologies, this approach enables the dynamic adaptation of the search strategy in accordance with the prevailing circumstances through the incorporation of an adaptive mechanism, thereby facilitating a more effective adaptation to complex environments. The research proposes an innovative approach to path planning, utilizing the ADS-ACO algorithm. This algorithm is capable of achieving more accurate results in dynamic and changing road environments, while also considering various constraints, making it more realistic. The significance of the research lies in its application of the ADS-ACO algorithm to optimize the path of EVs. This approach offers users a superior experience and contributes to the continued evolution of EVs.
The research is divided into four parts. The first part summarizes and discusses the current research on optimizing the charging path of EVs. The second part describes the ACO algorithm and proposes the ADS-ACO algorithm to construct a scheduling model. The third part verifies the effectiveness and stability of the algorithm. The fourth part is a summary of the entire article.
2. Related Work
The current limited battery charge storage capacity of EVs makes the distance between charges increasingly short, and frequent charging is also required, which takes much longer than the conventional fuel refilling process [
6]. So not only should we consider the current distribution of charging infrastructure, but also the range that the remaining battery capacity of an EV can travel, which are very challenging scheduling problems [
7]. At present, some scholars have conducted research on optimizing the charging path of EVs. Xiang et al. proposed an optimization method for EV charging paths based on event-driven pricing, taking into account the interaction between vehicles in path planning and charging navigation in response to current issues related to EV path planning and charging navigation. This effectively improved the actual range of EVs [
8]. Hu et al. addressed the related issues caused by the current lagging charging infrastructure for the popularization of EVs and constructed a corresponding model by proposing charging behavior data in the trajectory of electric taxis. This effectively enhanced the popularity of EVs while improving user satisfaction [
9]. Niccolai et al. proposed an optimization method for the layout of charging stations in the development of EVsbased on evolutionary algorithms, which not only improves the service quality of charging stations but also enhances the actual range of EVs [
10]. Rajamorthy et al. proposed an optimized scheduling algorithm for EV charging based on the Grey Sail Fish School to address the related issues brought by EVs in the development of intelligent transportation systems. This effectively promoted the development of intelligent transportation systems while improving the endurance of EVs [
11].
In addition, Król and Sierpiński proposed a new genetic algorithm for optimizing the location of EV charging equipment in urban road networks based on fuzzy objective functions to address the related issues faced by the development of EVs. This algorithm provided assistance for the development of EVs and thus enhanced user satisfaction [
12]. Cui et al. proposed a two-layer optimization model for optimizing the charging path and optimal charging pricing of public EVs in the urban transportation system. This model considers the coupled operation of transportation and power systems. This model not only promotes the development of EV but also reduces some of the burden on users [
13]. Li et al. proposed a data-driven planning method for EV charging infrastructure based on market mechanisms to address relevant issues in current EV charging planning. This method not only optimizes the configuration of EV charging, but also promotes the development of EVs [
14]. Fakhrmoosavi et al. proposed an optimization method for the layout of EV chargers based on the current issues related to EV charging scheduling, taking into account traffic needs. This method enhanced the endurance of EVs while reducing their time cost [
15]. The advantages and disadvantage of each scholar’s work are shown in
Table 1.
Research by domestic and foreign scholars indicates that current research on the charging scheduling problem of EVs has ignored various constraints and limitations in their actual travel process, only considering the static road network environment. Meanwhile, when studying the constant state of roads, it focuses on analyzing changes in road length, but neglects the impact of time-varying speeds and other factors. Therefore, this study comprehensively considers battery energy consumption, traffic conditions, and the distribution of charging stations. Based on the ADS-ACO algorithm, an innovative model for optimizing the charging scheduling path of EVs is constructed.
3. Optimization Analysis of Electric Vehicle Charging Path Based on Improved Ant Colony Algorithm
Compared to other swarm intelligence algorithms, the ACO algorithm has a higher ability to find the optimal solution. Therefore, this section mainly describes the traditional ACO algorithm and improves it based on the actual situation.
3.1. Analysis of Ant Colony Algorithm Based on Adaptive Dynamic Search
This study proposes an optimization method for EV charging scheduling based on the ADS-ACO algorithm to address the issue of reduced battery life and continuous decline in endurance of EVs in current traffic congestion scenarios. The traditional ACO algorithm primarily employs the positive feedback mechanism of the residual pheromones along the path between ants for information transmission, thereby exhibiting robust resilience and the capacity to identify superior solutions [
16,
17,
18]. The process is shown in
Figure 1.
In
Figure 1, the ACO algorithm process first initializes all the parameters used. Secondly, ants are randomly placed at different starting points, and the next visit point is selected according to the principle of “path selection probability”, while updating the prohibited list. Next, it records the number of ants passing through the road section and updates the pheromone concentration of each ant passing through the road section in real-time. Finally, it is determined whether the current iteration count has reached the maximum. If not, the ant is placed again to repeat the process, and if so, the optimal path is output. The path selection probability expression of the AOC algorithm is shown in Equations (1) and (2).
Here,
represents heuristic information.
represents the distance between city points
and
.
Here,
represents the path selection probability of ant
from city point
to
.
represents the concentration of pheromones on edge
.
represents the node where the storage ant
passes through.
represents the heuristic factor.
represents the expected factor. In addition, the traditional expression of pheromone concentration updates is shown in Equations (3) to (5).
Here,
represents the time point.
represents the volatilization factor of pheromones.
Here,
represents the number of ant colonies.
Here,
represents the intensity of pheromones.
represents the set of road sections passed by the
th ant. ACO algorithms inevitably have problems such as slow convergence. Therefore, research has been conducted to adjust the initial pheromone distribution conditions and the selection transition probability rules for the next node, and introduce genetic mutation operations in genetic algorithms to obtain the current optimal solution. In practical applications, this study needs to consider the traffic flow and road conditions under time-varying speeds and time slots, so different congestion conditions lead to varying probabilities of selecting road sections over time. On the ground of this, the transfer probability expression under the ADS-AOC algorithm is shown in Equation (6).
Here,
represents the road congestion coefficient between
and
[
19]. To enable the ant colony to find the optimal path at the beginning of the iteration, this study proposes a new initial pheromone allocation method. The relevant expression is shown in Equation (7).
Here,
represents the initialization pheromone of each road segment. The volatility factor is an important factor that affects the global search ability and convergence speed of ant colony algorithms. It is usually set to a fixed value. In this study, to avoid slow convergence or falling into local optima, the volatility factor is set to a large value in the early stages of the algorithm, and after reaching a certain number of iterations, the pheromone volatility coefficient is gradually reduced. The relevant expressions are shown in Equation (8).
Here,
represents the volatilization factor.
represents the number of iterations [
20].
3.2. Construction of Electric Vehicle Charging Scheduling Model Based on Improved Ant Colony Algorithm
Based on the ADS-ACO algorithm, this study aims to optimize the user’s remaining battery power from the point of occurrence to the charging station while minimizing road travel time, and constructs a relevant scheduling model based on this. Among these aims, the remaining electricity prediction is usually estimated using the Coulomb counting method. Then, all available battery capacity can be expressed as shown in Equation (9).
Here,
represents all available battery capacity.
represents the battery capacity in a fully charged state.
represents the utilized battery capacity. The expression of the remaining battery capacity is shown in Equation (10).
Here,
represents the remaining battery level.
represents the battery level when the battery is fully charged. According to relevant regulations, the road congestion coefficient sets the degree of traffic congestion on the main line to four levels: severe congestion, moderate congestion, mild congestion, and unobstructed traffic. Therefore, the calculation expression of
in Equation (6) is shown in Equation (11).
Here,
represents the average speed of EVs on this road section. The unit mileage electricity consumption of urban main roads is expressed in Equation (12).
Here,
represents the unit mileage electricity consumption of urban main roads. The expression of battery energy consumption when an EV passes a certain road section is shown in Equation (13).
Here,
represents the length of section
. Due to the relatively simple physical structure of the transportation network analyzed in the study, only the common topological relationships of separation, adjacency, and intersection are used, and the original method is used to construct a road network topology structure diagram. This divides the main road routes of the city into horizontal and vertical routes, and the road network model constructed based on this is shown in
Figure 2.
Figure 2 shows that the study considers the intersection of two road sections as corresponding nodes. Assuming that the number of horizontal and vertical road sections is 10, it indicates that there are 11 charging stations on the main road where EVs arrive at their destination. EVs can form a completed 1D path from starting point 1 to ending point D. The optimization goal of this study is to ensure that when users arrive at the charging station from their departure point, the remaining battery power of the user can reach the shortest time required for the entire road section of the charging station. On the ground of this, the objective function expression of the research model is shown in Equation (14).
Here,
represents the total driving time.
represents the time taken by the user from the starting point to the charging station.
represents the time the user waits for traffic lights and charging queues on the road.
represents the charging time of EV.
represents the time when the user arrives at their destination from the charging station.
represents the remaining battery energy consumption of the EV at the starting point.
represents the total energy consumption from the starting point to the charging station. The expression of model constraints is shown in Equation (15).
Here,
and
represent horizontal and vertical sections, respectively.
represents the length of section
.
represents the length of section
.
represents the total energy consumption of horizontal and vertical roads.
represents the total energy consumption of the user from the starting point to the charging station.
represents the sum of other energy consumption of the EV besides driving energy consumption.
represents the remaining battery energy consumption from the user’s starting point to the charging station.
represents fast charging power.
represents the fast charging efficiency.
represents the speed of the EV at the starting point. Based on the objective optimization model, this study uses the ADS-ACO algorithm to solve it, and classifies the traffic flow into stable and changing road conditions based on different time slots. The solution diagram of the ADS-ACO algorithm scheduling model with a starting point set under time-varying speed and stable road conditions is shown in
Figure 3.
In
Figure 3, the black arrow represents the execution steps of the algorithm from 1 to 6, the red solid line arrow represents the flow direction that does not meet the judgment rule, the red dashed line arrow represents the flow direction that returns to step 3, and the green arrow represents the flow direction that meets the judgment rule.
Figure 3 shows that when the starting point is fixed, the algorithm first initializes the parameters and uses the greedy algorithm to find the suboptimal route. Secondly, it adjusts the volatility factor value according to Equation (8) and selects the next node according to Equation (6), and adds it to the taboo table. Then, the optimal route distance is used for mutation operation comparison to screen out the optimal route and obtain the optimal path. Then, according to Equation (3), the global pheromone is updated and the selected optimal solution is determined. If the battery energy consumption of the selected route is less than or equal to the remaining battery energy at the starting point of the EV and the maximum number of iterations is reached, the result is output. Otherwise, the volatilization factor is dynamically adjusted to repeat the process. The remaining changes in road conditions or random starting points will not be described too much here.In the performance analysis of the model, four benchmark functions are introduced: Rosenbrook function, Schwefel function (Schwefel 2.2), Griewank function, and Rastigin function. The formula is shown in Equation (16).
Here, represents the Rosenbrook function, represents the Schwefel 2.2 function, represents the Griewank function, represents the Rastigin function, and represents a -dimensional vector. The Rosenbrock function is employed to assess the efficacy of algorithms in navigating complex search spaces. The Schwefel 2.22 function is utilized to gauge an algorithm’s capacity to adapt to highly nonlinear problems with a multitude of local minima and steep slopes. The Griewank function is utilized to evaluate an algorithm’s effectiveness in addressing multimodal optimization problems. The Rastigin function is employed to assess an algorithm’s global search capability when confronted with highly multimodal and nonlinear problems.
3.3. Constraints
The limitations imposed on horizontal and vertical road segments can mirror the topographical configuration of the road network. This constraint ensures that the driving route from the starting point to the charging station is viable. In the event that this constraint cannot be met, the algorithm will be unable to identify a feasible path solution, thereby preventing the acquisition of effective optimization results. The constraint on total energy consumption ensures that the actual energy consumption of EVs from the starting point to the charging station does not exceed the upper limit of the remaining electricity at the starting point. Should this constraint be breached, even if the algorithm identifies the shortest path in a timely manner, it may not be possible to achieve it due to insufficient battery power, thereby affecting the feasibility and effectiveness of the algorithm. The constraint on the remaining power of EVs ensures that they will still have sufficient remaining power upon arrival at the charging station, thereby meeting the goal of minimizing travel time. In the event that the remaining battery capacity upon departure is insufficient, the algorithm may be unable to identify a viable path plan, which has a detrimental impact on the optimization outcome. The capacity to rapidly recharge is indicative of the performance of the charging station and directly correlates with the charging time of EVs at the charging station, thereby influencing the efficacy of the total travel time objective. A low level of charging power and efficiency will result in a lengthy charging time, which in turn constrains the potential for optimization in the total driving time. The initial motion state constraint of an EV reflects its driving characteristics, which can influence the travel time from the starting point to the charging station. A reduction in the initial speed will result in an increase in travel time, which in turn will affect the optimization effect of the algorithm on the total travel time.
4. Simulation Analysis of Algorithm Performance and Scheduling Model Performance
To verify the effectiveness of the proposed optimization model for EV charging paths, this study introduced the traditional ACO algorithm and the ant colony system with pseudorandom state transition rules (ACS-PSTR) as a comparative method to conduct experiments on four different benchmark test functions. The four benchmark functions are Rosenbrook function, Schwefel function (Schwefel 2.2), Griewank function, and Rastigin function. In addition, this experiment set the number of ant colonies, iteration times, and benchmark test functions to 300, 200, and 10 dimensions, respectively. Accordingly, the results of the Rosenbrock and Schwefel 2.2 functions are shown in
Figure 4.
To verify the effectiveness of the proposed EV charging path optimization model, the study first set the number of ant colonies, iteration times, and benchmark test functions to 300 and 200, respectively. The specific parameter settings are shown in
Table 2.
Then, the study introduced the traditional ACO algorithm and the ACS-PSTR as comparison methods, and conducted experiments on four different benchmark test functions with a benchmark function dimension of 10. The four benchmark functions are Rosenbrook function, Schwefel function (Schwefel 2.2), Griewank function, and Rastigin function. Accordingly, the results of the Rosenbrock and Schweefel 2.2 functions are shown in
Figure 4.
Figure 4 comprehensively shows that in the Rosenbrock function, the ADS-ACO algorithm converges when the number of iterations is around four, and the optimal solution gradually approaches zero.In the Schwefel 2.2 function, the ADS-ACO algorithm converges when the optimal solution reaches zero with approximately three iterations. The results of the Griewank function and Rastigin function are shown in
Figure 5.
Figure 5 comprehensively shows that the ADS-ACO algorithm in the Griewank function achieves convergence when the number of iterations is around 10.The ADS-ACO algorithm performs equally well in the Rastigin function. Overall, the ADS-ACO algorithm performs best in the four basic functions. On this basis, the study takes a total of 16 roads in a certain city in the east as the analysis object, with 16 roads set at 1–16. The specific data and distribution of the number of charging stations are shown in
Table 3.
In
Table 3, A~E represent the starting and ending nodes, total route length (km), real-time traffic flow speed (km/h), and traffic status, while K and M represent severe and moderate congestion.
Table 1 shows that the 16 road starting nodes are named by the serial numbers in
Figure 2, and are numbered 1–16 from node 1 to node 111. Among them, the maximum total length of the route is 2.8 km.The maximum real-time traffic speed is 25.7 km/h. Therefore, in the case of extreme effectiveness of the ADS-ACO algorithm, the actual road conditions include stable and changing road conditions. Simulation tests are conducted on regular (G) and irregular road networks (N) with a remaining battery power of 15 kW·h and 10 kW·h, respectively. Meanwhile, its initial speed is set to 50 km/h, the maximum number of iterations is 150, the maximum battery capacity is 120 kW, and the fast charging energy is 120 kW·h. Due to the fact that there are 16 actual roads, this study has expanded the road network model in
Figure 2 and compared the greedy algorithm (T), ACO algorithm (J), and research algorithm (Y). Accordingly, the output results of the EV battery remaining energy of 15 kW·h and 10 kW·h under the road network model with different starting points for stable road conditions during stable and peak periods are shown in
Figure 6.
In
Figure 6, the red arrow mainly indicates the direction and flow of the target node or process.
Figure 6 comprehensively shows that the optimal solution for vehicle time consumption under the ADS-ACO algorithm is 2.146 h in a regular road network during the stationary period with a remaining battery energy of 15 kW·h. The total energy consumption of the irregular road network during peak hours is 6.096 kW·h, which is lower than the comparison algorithm. Overall, ADS-ACO has a high effectiveness. Accordingly, the initial result output and change result output of the remaining battery energy of 15 kW·h and 10 kW·h under different road networks with different starting points during peak to flat peak road conditions are shown in
Figure 7.
In
Figure 7, the red arrow mainly indicates the direction and flow of the target node or process. In
Figure 7, C represents the initial result and S represents the changed result, The inner ring represents the optimal solution, while the outer ring represents the total driving energy consumption.
Figure 7 shows that the total energy consumption output of the 15 kW·h change in road conditions from peak to peak periods in regular and irregular road networks is 5.232 kW·h and 5.937 kW·h, respectively. The total energy consumption output from the initial results of 10 kW·h is 5.232 kW·h and 5.766 kW·h, respectively, which are lower than the comparison algorithm. In addition, the initial result output and change result output of the remaining battery energy of 15 kW·h and 10 kW·h under different road networks with different starting points under changes in road conditions from peak to peak periods are shown in
Figure 8.
In
Figure 8, the red arrow mainly indicates the direction and flow of the target node or process. The horizontal axes 1–12 in the figure are consistent with the legends in
Figure 7a,b.
Figure 8 shows that in the initial result of 15 kW·h, the total energy consumption of the vehicle under the regular road network, is 4.678 kW·h, while in the variation result, it is 4.509 kW·h. The initial result of 10 kW·h is 4.755 kW·h, and the variation result is 4.461 kW·h, both lower than the comparison algorithm.
Figure 6,
Figure 7 and
Figure 8 demonstrate that the ADS-ACO algorithm is able to dynamically adapt the path based on varying road network models with different speeds and time slices for road condition changes. This results in the lowest travel time and total energy consumption, which demonstrates the algorithm’s effectiveness. In the stability verification experiment, users are set to start from different starting points, and due to space limitations, only stable road conditions during stable periods and changes in road conditions from peak to stable periods are analyzed. The results of the remaining EV battery energy of 15 kW·h and 10 kW·h at random starting points under stable road conditions during peak periods are shown in
Table 4.
In the first column of
Table 4, 1–5 represents the starting order, with node names in parentheses. T represents time consumption and Z represents total energy consumption. The first five rows show the results at 15 kW·h, while the last five rows show the results at 10 kW·h.
Table 2 shows that among the remaining battery energy of 15 kW·h, the fourth departure node 78 has the lowest total energy consumption, which is 1.987 kW·h. Overall, the charging scheduling planning route of the ADS-ACO algorithm can always obtain a suitable path from a random starting point under a regular road network under stable road conditions. The initial and variation results of EV battery residual energy of 10 kW·h under the random starting point of road condition changes from peak to peak periods are shown in
Table 5.
Table 5 shows that the total driving energy consumption in the initial and changed output from peak to peak periods is the lowest at the fifth departure node 89, which is 2.537 kW·h. In summary, the ADS-ACO algorithm dynamically adjusts each starting point based on the current road conditions in response to changing road conditions, thereby reducing energy consumption and time, and resolving the charging scheduling route planning problem that needs to be solved in research. This demonstrates the algorithm’s high stability. To ascertain the stability of the three algorithms, this study maintained the total number of vertical road sections constant and altered the total number of horizontal road sections by setting the number of charging stations as a scalar. This allowed for the comparison of the algorithms under varying conditions. The results are shown in
Figure 9.
Figure 9 shows that as the number of charging stations increases, the total number of horizontal sections also gradually increases, leading to an increase in the global optimal solutions of the three algorithms. However, under the same number of charging stations, the average value of the optimal solution of the ADS-ACO algorithm is always optimal, proving its superior stability. Overall, the ADS-ACO algorithm has high accuracy in EV charging path planning, and it has high effectiveness and stable characteristics, with a wider range of applications. Simultaneously, the algorithm has been demonstrated to be effective in a road network comprising 16 roads with starting nodes ranging from 1 to 111. Furthermore, the algorithm has been shown to be capable of handling large-scale road networks, and to be resilient to changes in network scale and topology. This evidence supports the assertion that the algorithm is scalable. Furthermore, the algorithm is executed on numerous occasions under disparate starting points and conditions, consistently outperforming the comparison algorithm in terms of travel time and energy consumption. Additionally, it maintains optimality in the average optimal solution when the number of horizontal sections increases, thereby corroborating its reliability.
5. Conclusions
This study proposes an optimization method for EV charging scheduling on the ground of the ADS-ACO algorithm to address the issue of reduced battery life and continuous decline in endurance of EVs in current traffic congestion scenarios, and verifies its effectiveness. The experiment demonstrated that in the Rosenbrock function, the ADS-ACO algorithm converges at around four iterations, where the optimal solution gradually approaches zero and performs best in the other three benchmark functions. In the effectiveness verification, the optimal solution for vehicle time consumption under the ADS-ACO algorithm in the output of the stationary period with a remaining battery energy of 15 kW·h was 2.146 h in the regular road network. The total energy consumption of irregular road networks during peak hours was 6.096 kW·h. The total energy consumption output of the 15 kW·h change in road conditions from peak to peak periods in regular and irregular road networks was 5.232 kW·h and 5.937 kW·h, respectively. The total energy consumption output from the initial results of 10 kW·h was 5.232 kW·h and 5.766 kW·h, respectively, which were lower than the comparison algorithm. In the algorithm stability verification, the total energy consumption of the fourth departure node 78 in the EV battery with a residual energy of 15 kW·h at a random starting point during the peak period was 1.987 kW·h. Overall, the ADS-ACO algorithm has high accuracy in EV charging path planning, and has high effectiveness and stability, with a wider range of applications. Nevertheless, when conducting simulation model testing experiments, the number of referenced comparative algorithms is relatively limited, which may not fully evaluate the performance of the ADS-ACO algorithm. Future work will include the implementation of additional swarm intelligence algorithms for horizontal comparison, with the objective of comprehensively evaluating the advantages and disadvantages of the ADS-ACO algorithm. Additionally, the study did not consider the impact of practical factors such as the layout of charging facilities and fluctuations in electricity prices on the charging behavior of EVs. Future research will expand the model further and consider additional practical factors in order to enhance the practicality and applicability of the algorithm.