Abstract
As a new logistics technology, self-driving electric vehicles not only improve freight efficiency but also promote energy saving and emissions reductions. Aiming at logistics technologies based on self-driving electric vehicles, planning the vehicle scheduling scheme as a whole reduces energy consumption and improves economic and environmental benefits. Targeting an actual freight problem based on a two-way single-lane road connecting the pickup and delivery points and including electric charging stations, this paper proposes a method for optimizing the scheduling scenario and parameters of self-driving vehicles through computer simulations. An optimization model based on dynamic programming is established, and an optimization simulation algorithm is designed to solve the model, effectively solving the overall planning problem of vehicle scheduling. The experimental results show that the model and algorithm have good universality. After specifying an appropriate road length, total number of vehicles, number of spare vehicle batteries, duration of freight transportation, and other necessary information, the simulation algorithm is executed and the optimal scheduling scheme and the total amount of freight transported are output. The efficiency of the algorithm is extremely high, requiring only 1.5 s to complete the whole simulation process of scheduling 150 vehicles for 1000 h over a road with a length of 10 km.
Keywords
Introduction
Self-driving electric vehicles have been widely studied for their potential to greatly improve freight efficiency and promote carbon emission reduction and resource conservation. Several scholars have researched scheduling methods for unmanned transport vehicles. Hong et al. 1 studied a scheduling method for unmanned electric trucks on roads within port areas, while Zhang et al. 2 explored the scheduling mechanism of unmanned vehicles at intersections. However, there has been little research on the transportation scheduling and charging issues of unmanned electric transport vehicles on highways. This article presents a typical case study of a bidirectional single-lane highway system and proposes an efficient scheduling method for driverless electric transport vehicles as a general solution to such problems. The proposed method is based on a dynamic programming model. A simulation algorithm is designed to solve the model, and a scheduling scheme that improves transportation efficiency and reduces resource redundancy is developed. Finally, the reliability of the scheme is verified by a series of visualization methods.
Literature review and our work
Vehicle scheduling 3 is a complex combinatorial optimization problem, 4 which makes it difficult to analyze from the perspective of general mathematical theory and often requires computational approaches. Wang et al. 5 used a multiobjective genetic algorithm to study dynamic bus scheduling in traffic congestion as an effective means of dealing with traffic congestion. Shui et al. 6 explored the application of a clonal selection algorithm in bus scheduling, allowing satisfactory scheduling schemes to be generated in a short time. Sowmya et al. 7 studied an optimal management strategy for vehicle scheduling and charging and used intelligent optimization algorithms in the process. However, these studies mainly focus on urban transportation, and unmanned vehicles are currently difficult to apply in such environments. Due to the complexity of the road network and the uncertainties associated with the road surface, it is extremely difficult for unmanned vehicles to carry out global scheduling and planning. However, in a simple two-way single-lane road structure with relatively few interference factors, the application of unmanned vehicles is more effective and can achieve greater efficiency.
Computer simulations 8 recreate real-world situations through mathematical models. They have been widely used in various industries, such as architectural design, 9 social practice, 10 material science, 11 engineering mechanics, 12 and life sciences, 13 to study the core nature of a problem at the data level and are typically easy to check and verify. Malysza et al. 14 used computer simulation technology to optimize the casting process, while Durgut et al. 15 employed simulation and optimization techniques in a hydrological model to improve the prediction performance. Kenett et al. 16 have discussed the importance of computer simulations in the new industrial era. These works all demonstrate that computer simulation plays an important role in people's daily life and production. However, there is currently relatively little research on computer simulation methods for self-driving vehicle scheduling systems. The present paper considers a mathematical programming problem. By applying a simulation algorithm, a mobile scheduling scheme is developed for unmanned electric material transport vehicles on a two-way single-lane road. The scheme is applied to the control of vehicles between the pickup point, the delivery point, and two power stations. An optimization method is applied to the scheduling scheme to maximize the amount of cargo transported and minimize the number of battery changes.
Symbol definition
Table 1 summarizes all the mathematical symbols that appear in the paper.
Symbols and explanations.
Problem description
Consider a two-way single-lane road, with the pickup point
For this basic problem, we test the reliability and universality of the model under the following assumptions:
Route: The mileage from the start point Driving: The driving speed of the unmanned electric vehicles is fixed at Schedulable resources: There are Transport volume: Suppose that the smallest unit of cargo is “one car of goods.” The completion of loading at point Power consumption and charging: The power consumption of the vehicles depends on whether they are running “unloaded” or “loaded.” The unloaded power consumption rate is Time consumption: The loading and unloading of processes and the replacement of batteries are all automated. The loading time is Total running time: The total running time is
According to the above assumptions, a model is established and an optimization algorithm is implemented. The total amount of goods transported, the number of battery changes, and the optimal scheduling scheme are output.
Establishment of traffic flow conveyor belt model
The conveyor belt model is appropriate for vehicles driving along with a two-way single-lane highway.17,18 First, we determine the location of the power stations, and then we optimize the scheduling of the electric transport vehicles and carry out loading and unloading at points
The vehicles traveling in the same direction on the two-way road need to maintain a minimum distance. We set this distance to

Diagram of maximum vehicle density.
In maximizing the transport efficiency, it is theoretically possible to schedule all vehicles with a minimum spacing of

Schematic diagram of maximum density dispatching (maximum efficiency transportation).
If we regard the two processes of loading at the pickup point and unloading at the delivery point as moving at a constant speed, we can calculate the total number of vehicles that can be dispatched at the shortest distance in a loading and unloading time by converting the time of loading and unloading to the distance the vehicle would move at its constant speed.
Recall that
Let
As shown in Figure 3, the electric vehicles move clockwise around the entire road network, as on a conveyor belt. Therefore, we name this the “conveyor belt model.” Each vehicle on the conveyor belt is called a “vehicle space.” The whole transportation process is regarded as several vehicle spaces being transmitted clockwise on a conveyor belt of length

Numbering method of vehicle spaces on the conveyor belt.
To describe the conveyor belt model in more detail, each vehicle space on the conveyor belt is numbered. As shown in Figure 3, we start with the vehicle moving from the unloading station
The actual distance of each vehicle on the road can be understood as the forward movement of all vehicle spaces on the conveyor belt, which is recorded as a “vehicle space move.” A vehicle space moving along with the forward direction takes a time of
In addition to the need to determine the location of the power station, it is also important to clarify the distribution of the reserve battery packs in the two power stations in the initial state. Let
We now consider scheduling analysis on the basis of the conveyor belt model. Vehicle scheduling aims to determine when to dispatch an electric vehicle from the power station, when the vehicle should return to the power station, and when the battery of the electric vehicle should be replaced. Based on this problem, the vehicle scheduling can be summarized in terms of the three decision variables listed in Table 2.
Main decision variables.
Each vehicle space is either “occupied” or “unoccupied.” In the initial state, all vehicle spaces are unoccupied and begin to move clockwise. As an unoccupied vehicle space passes a power station, the station can decide whether to dispatch an electric vehicle.
There are many states in the driving process of the electric vehicles: no-load driving (low power consumption), loading and unloading (no power consumption, parking, and waiting), loaded driving (high power consumption), battery replacement (no power consumption, parking, and waiting). In our conveyor belt model, we regard loading and unloading as a vehicle running on the conveyor without power consumption. Therefore, the process on the conveyor belt includes no-load driving, loaded driving, loading, and unloading but does not include replacing the battery.
Because the vehicle can only have its battery replaced when it passes through the power station, we simplify the model by only considering the battery state of the vehicle as it passes through the power station; that is, we do not consider the battery state while the vehicle is driving. Therefore, we only predict that the vehicle can pass the power stations several times when it is dispatched and replace the battery after the vehicle has passed the power stations several times.
Let

Schematic diagram of power consumption.
For battery swapping, our hypothesis stipulates that the power of the electric vehicle must be below a certain level before it returns to the power station. We set the variable

Vehicles passing through the power stations and
The variable
Then,
Establishment of vehicle scheduling dynamic programming model
We consider the electric vehicle scheduling problem over a period of 1000 h. Due to the excessive number of vehicle space moves in a long period of time, it is difficult to perform a global one-time optimization. Therefore, we establish a dynamic programming model to pursue each vehicle space move. The global situation of the vehicle scheduling is estimated and evaluated. The multiobjective dynamic programming model of hierarchical optimization is established with the maximum traffic volume as the first optimization goal and the minimum charging time as the second optimization goal.
where
After each charging of the battery pack, maintenance is required, which will increase the labor cost. The number of charging times should be minimized while maintaining the maximum traffic volume. From the perspective of dynamic programming, each vehicle should travel for as long as possible.
Dispatch electric vehicle constraints
This part of the constraint is directly related to the scheduling of electric vehicles. The decision variables
When there is a car in the vehicle space of the power station, or when there is no outbound vehicle at the power station, no car can be dispatched:
When a vehicle space passes through the power station, the decision as to whether to dispatch a vehicle must first consider whether the vehicle space is unoccupied, and then whether there is at least one vehicle equipped with a full battery in the power station that is ready to be dispatched. If both conditions are satisfied, a vehicle can be dispatched; otherwise, no vehicle is dispatched.
The vehicles return to a power station to replace their batteries according to certain power requirements. The constraint formula is given by equation (12) in the conveyor belt model and is repeated here for completeness:
The number of times the vehicle needs to pass through the power station is limited to the value determined at the time of dispatch:
Once a vehicle is dispatched, the vehicle space at which the power station is located is limited to the occupied state: Electric vehicle driving constraints
If
Battery swapping constraints for electric vehicles
At least six sets of full batteries are required for each vehicle battery replacement:
The formula for
If the battery is swapped at the time of the Battery charging constraints
In summary, the overall mathematical model of the inner dynamic programming is as follows:
Solution algorithm
To solve the model, we design the following algorithm. The core algorithm involves vehicle scheduling. The algorithm needs to input all known parameters and determine the initial number of battery packs, from which we obtain the optimal scheduling scheme for determining
This algorithm returns the optimal decision variables

Solution algorithm structure.
The full search of the Optimal simulation algorithm for vehicle scheduling The stable optimal cycle is estimated based on the known data, that is, a vehicle scheduling scheme cycle that can run in a relatively limited time with the maximum traffic volume and the minimum number of power changes. Repeating this scheme over an infinite time will achieve the best scheduling effect. Plan the best initial departure strategy. The global vehicle layout defines the optimal cycle in the shortest time.
The algorithm achieves the best scheduling arrangement. The core idea mainly lies in the following two points:
The algorithm flowchart is shown in Figure 7.

Flowchart of the optimal simulation algorithm.
See Supplementary Materials “Annex I” and “Annex II” for the specific pseudo-code.
Simulation calculations and results analysis
The model is a multiobjective programming model. We solve the two optimization objectives using a linear weighting method. We then standardize, weigh, and sum the two objective function values and take the minimum comprehensive objective function as the final optimization objective. For the two objective functions, we believe that the importance of maximizing the traffic volume is much greater than the number of battery charging times, so the weight of the first objective function is set to 0.99, and the weight of the second objective function is set to 0.01.
To study the feasibility and generalization ability of the model, we consider several sets of parameters and analyze the results. The parameter combinations are listed in Table 3.
Three groups of parameter combinations.
The default locations for the two power stations are at the midpoints of the roads running in each direction between points
Best solution result without quick-filling piles.
The results show that the algorithm can quickly calculate solutions under different model parameter combinations and that the model has good generalization ability.
A real coded genetic algorithm 19 was also used to solve this optimization problem. Taking the Group 1 parameter combination as an example, 300,000 vehicle space moves require a total of 1000 h of simulation time. The decision variable is whether to dispatch vehicles as the 300,000 vehicle spaces pass through the power station, which is regarded as the phenotype of the solution. The optimized solution is determined through the genetic algorithm. A comparison of the solutions is presented in Table 5.
Comparison of solution effects between optimal simulation algorithm and genetic algorithm.
The experimental results show that the optimal simulation algorithm is superior in terms of freight volume and efficiency. This is because, when there are too many decision variables (e.g., there are 300,000 0–1 variables), dynamic programming with appropriate strategies can achieve higher efficiency.
We now introduce fast charging piles to the optimization problem. The relationship between the number of fast-charging piles and the amount of cargo is presented in Table 6.
Change in maximum cargo volume with the number of fast charging piles.
The optimal conditions are achieved when the number of fast charging piles reaches 14, and the fast-charging ratio reaches 86.78%. This is because, beyond this ratio, fast charging no longer significantly increases the total amount of goods transported.
After implementing the simulation scheduling algorithm, we developed a visual program to simulate the whole process. Figure 8 shows examples of the two scheduling processes. The specific scheduling process is given in Supplementary Materials.

Simulation rendering.
This article provides Annexes III to VI, including executable algorithm scripts, visualization scripts, data attachments, and dynamic videos, for readers’ reference.
Conclusion
Previous research on unmanned vehicles has mostly focused on the operation control of the vehicles, with relatively little research on the scheduling of unmanned vehicles in specific environments. This study is the first to conduct mathematical modeling research on a bidirectional single-lane highway transportation system consisting of unmanned vehicles. We have designed efficient algorithms for solving the specified problem and achieved good results.
In this paper, the optimization of the scheduling scheme was solved by establishing a dynamic programming model to simulate the transportation and charging process of unmanned electric vehicles, and then solving the model through an algorithm to optimize the scheduling scheme. Finally, the simulation results were visualized and verified. The advantages of the proposed method are as follows:
The highly integrated optimization theory and algorithm achieves high efficiency with no need for intelligent optimization. Solutions are output in a short time, allowing the real-time scheduling of large workloads. The simulation results can be directly visualized, making it easy to test the validity of the model and the accuracy of the results. The model has strong universality. Changing parameters such as the total number of vehicles, total number of batteries, road length, and vehicle speed does not affect the solution efficiency.
One disadvantage of the proposed method is that the vehicle distance is fixed. This model fixes the position of the vehicles on the road section. This means that vehicle faults will be difficult to deal with. Associated problems could be avoided by increasing the estimated distance.
The main conclusions of this paper are as follows:
For the scheduling of self-driving electric vehicles, an optimization model has been established, and a simulation algorithm was developed to solve the optimization scheduling scheme. The algorithm effectively realizes the optimal scheduling scheme with extremely high operation efficiency. One prominent advantage is that the feasibility of the model can be tested very intuitively. Through the visualization function, the output results are transformed into the scheduling process to realize real-time testing of the scheduling scheme. This research can be extended to all applied mathematical problems that are difficult to solve based solely on theoretical derivation.
Supplemental Material
sj-docx-1-sci-10.1177_00368504231188617 - Supplemental material for Optimization of scheduling scheme for self-driving vehicles by simulation algorithm
Supplemental material, sj-docx-1-sci-10.1177_00368504231188617 for Optimization of scheduling scheme for self-driving vehicles by simulation algorithm by Xu Jianqiao in Science Progress
Supplemental Material
sj-docx-2-sci-10.1177_00368504231188617 - Supplemental material for Optimization of scheduling scheme for self-driving vehicles by simulation algorithm
Supplemental material, sj-docx-2-sci-10.1177_00368504231188617 for Optimization of scheduling scheme for self-driving vehicles by simulation algorithm by Xu Jianqiao in Science Progress
Supplemental Material
sj-docx-3-sci-10.1177_00368504231188617 - Supplemental material for Optimization of scheduling scheme for self-driving vehicles by simulation algorithm
Supplemental material, sj-docx-3-sci-10.1177_00368504231188617 for Optimization of scheduling scheme for self-driving vehicles by simulation algorithm by Xu Jianqiao in Science Progress
Supplemental Material
sj-docx-4-sci-10.1177_00368504231188617 - Supplemental material for Optimization of scheduling scheme for self-driving vehicles by simulation algorithm
Supplemental material, sj-docx-4-sci-10.1177_00368504231188617 for Optimization of scheduling scheme for self-driving vehicles by simulation algorithm by Xu Jianqiao in Science Progress
Footnotes
Declaration of conflicting interests
The author declared no potential conflicts of interest with respect to the research, authorship, and/or publication of this article.
Funding
The author(s) received no financial support for the research, authorship, and/or publication of this article.
Supplemental material
Supplemental material for this article is available online.
Author biography
Xu Jianqiao, male, born in Wuxi, Jiangsu Province, is an undergraduate student of Nanjing University of Traditional Chinese Medicine. His main research directions are mathematical modeling, applied mathematics, and intelligent optimization algorithms. He is the first author of a paper related to mathematical modeling and intelligent algorithm application published in
References
Supplementary Material
Please find the following supplemental material available below.
For Open Access articles published under a Creative Commons License, all supplemental material carries the same license as the article it is associated with.
For non-Open Access articles published, all supplemental material carries a non-exclusive license, and permission requests for re-use of supplemental material or any part of supplemental material shall be sent directly to the copyright owner as specified in the copyright notice associated with the article.
