Dynamic Path Optimization in Sharing Mode to Relieve Urban Traffic Congestion

,


Introduction
In recent years, the "sharing economy" approach to traffic has become very popular; it has been proved effective in alleviating urban traffic congestion by reducing the usage of private cars; typical examples of such schemes include "shared bicycles" and "shared cars." "Shared commuter bus" schemes can effectively fulfill the commuting needs of urban office workers; however, these schemes are not widely used, predominantly because they cannot ensure efficient travel. Hence, in this study, we attempt to improve the efficiency of shared commuter bus systems by using path optimization. We use the vehicle routing problem (VRP) for reference in our operations research, to optimize the initial routes of commuter buses. However, shared commuter bus systems partially correspond to a mixed-load mode of travel; thus, the traditional VRP model needs to be adjusted.
Psaraftis [1] highlighted several dynamic elements in dynamic VRPs (DVRPs), including "dynamic requirements," "dynamic running times," and "dynamic vehicles." Azi et al. [2] suggested that the dynamic factors of DVRPs can be categorized into two groups based on Psaraftis' theory: the change in customer demand and real-time traffic information. With the development of the Internet of ings and network information technology, information is becoming more readily available; thus, DVRPs based on realtime traffic information have attracted increasing attention from researchers, and these problems are often solved in two stages: initial-route design and dynamic route adjustment. "Initial-route design" is a process of static optimization, and we can solve it in a conventional way; "dynamic route adjustment" is a process of dynamic optimization, in which the most important step is to determine the route-updating strategies.
"Initial-route design" is discussed firstly. Compared with the traditional commuter bus, "shared commuter bus" uses a mixed-load model, in which office workers from different companies can take a ride on the same commuter bus. In the common vehicle routing problem, except for the starting point and the ending point, all nodes in the path network are of the same type. However, in the mixed-load mode of commuter buses, the types of nodes in VRP are different, and the load increases at some nodes and decreases at others, so the biggest difficulty lies in the disposal of these nodes. e current research on the mixed-load mode of VRP focuses on the School Bus Routing Problem (SBRP). ere is a special class of SBRP, which studies the cooperation of multiple schools to pick up students, and this kind of problem is similar to the content studied in this paper.
"Dynamic route adjustment" is discussed secondly. In the process of "initial-route design," urban road is assumed to be idealized; that is, the influence of other factors except for "path length" on the travel time is not considered, but in the process of "dynamic route adjustment," the factor "realtime traffic information" is considered, and it has a great influence on the final dynamic optimization result.
By consulting numerous documents, we found that the choice of stops strongly influences the final optimization result; however, the existing literature rarely considers this point. In this study, we consider "stop location" as a prerequisite for DVRPs, and we focus on it in our analysis.
In line with the above description, this study proposes a dynamic vehicle routing optimization for a mixed-load mode of operation. e contributions of this study are as follows: (1) We solve the static VRP for a mixed load and adjust the path dynamically according to the real-time traffic information, and our objective model reflects the focal issues encountered in real-life applications. We designed shared commuter bus routes that improve the vehicle driving efficiencies, consequently rendering the scheme suitable for widespread application as part of the efforts to reduce pressure on urban traffic systems during peak times. (2) We consider the impacts of stop-location selection on route optimization and effectively integrate the two tasks. Furthermore, we use a clustering algorithm and particle swarm optimization (PSO) algorithm to solve them. e clustering algorithm enables us to identify the most convenient site based on the nearest walking distance; the PSO enables us to determine the most efficient driving route. e remainder of this paper is organized as follows: Section 2 reviews the relevant literature. Section 3 describes in detail the location model and the vehicle routing optimization model. Section 4 presents the design of the clustering and particle swarm algorithms used to solve the model. Section 5 presents our study on Qinhuangdao as an empirical test case and a specific optimization result. Finally, Section 6 presents the conclusions of this study and recommendations for future work.

Literature Review
e VRP was proposed by Dantzig and Ramser, and it is widely used in logistic distribution routing problems; there are also some scholars who use it to solve SBRP. However, school buses and commuter buses have different cost and efficiency requirements. Hence, some differences may exist between the two problems in terms of optimization goals and constraint conditions. e DVRP is an important offshoot of the VRP; it was proposed by Psaraftis in 1988; more recently, Psaraftis [3], Bertsimas and Simchi-Levi [4], and Gendreau and Potvin [5] have conducted deeper research on the content of DVRPs. A DVRP based on real-time traffic information is solved in two stages: initial-route design and dynamic route adjustment, and what we need to do in the two stages is to solve a static VRP and choose a route-adjustment strategy. e static VRP related to the paper is different from traditional VRP, there are few studies on the route optimization of "shared commuter bus," and the mixed-load school bus is similar to "shared commuter buses" in their loading mode, so we mainly refer to the literature studies that study mixed-load SBRP. Ellegood et al. [6] used continuous approximation models to determine whether school bus in mixed-load mode is more beneficial and drew a conclusion that mixed-load mode is more suitable for large districts. Miranda et al. [7] proved that the multiloading approach can substantially reduce cost by practical example analyzing. Mokhtari and Ghezavati [8] introduced a novel mixed-load SBRP and used a biobjective mixed integer linear programming formulation to model it. Shang et al. [9] proposed a time-discretized multicommodity network flow model and transformed the SBRP into a quadratic 0-1 programming model with linear flow balance constraints. Ren et al. [10] considered both school bus stop location and mixed-load routing problem and developed a mixed integer programming model for them.
In order to find the most appropriate route adjust strategy, we identified four different strategies by consulting numerous studies. e first one is the regular updating strategy; principally, this transforms dynamic routes into static routes and occasionally adjusts them. Several scholars have used regular updating strategies in their research (Kilby et al. [11]; Abdallah et al. [12]). e second strategy is that of dynamic event-updating; here, the routes are adjusted when drivers encounter unusual events. Armas and Batista [13] used a dynamic updating strategy in their study to produce a DVRP rich in detail. e third strategy is the docking-site updating strategy; in this scheme, routes are adjusted when vehicles reach distribution nodes. Nakamura et al. [14] used a docking-site updating strategy to choose a dynamic, stochastic route. e fourth strategy is the key point updating strategy. It is the latest but most widely used strategy; its core concept is to define "key points" and adjust routes when vehicles reach these points. Different researchers have used different definitions for "key point," and many scholars have employed the key point updating strategy in their studies (Chen et al. [15]; Li et al. [16]). e Chinese scholar Yanfeng Li, who compared the four strategies under different perturbation frequencies and standard deviations, proved the superiority of the key point updating strategy.
Research on optimization algorithms is more extensive; such algorithms are primarily classified as accurate or heuristic. Accurate algorithms are suitable for the problem which involves less data. Shang et al. [9] decomposed the model into a series of linear multicommodity network flow subproblems when dealing with mixed-load SBRP and used dynamic programming algorithms to solve them. Owing to 2 Discrete Dynamics in Nature and Society the continuous expansion of research data and the requirements placed upon computational efficiency, heuristic algorithms are a current research hotspot; examples of such algorithms include the tabu search, ant colony, and genetic algorithms, as well as PSO. Hou et al. [17] succeeded to use the algorithm originally developed for pickup and delivery problem with time windows to solve mixed-load SBRP. Wohlgemuth et al. [18] used the tabu search algorithm to plan dynamic routes for disaster rescue vehicles. Li and Chung [19] proposed a new method combining extended insertion and tabu search algorithms to solve VRPs. Schyns [20] used an ant colony algorithm to optimize responsive dynamic vehicle routes. Kuo et al. [21] applied a fuzzy ant colony algorithm to solve DVRPs. Barkaoui and Gendreau [22] designed an adaptive hybrid genetic algorithm by improving the genetic operator; this greatly improved the quality of the genetic algorithm's solution. Abdallah et al. [12] used a genetic algorithm to solve VRPs in which the demand and road condition information are constantly changing. Khouadjia et al. [23] measured the behavior of PSO in terms of dynamic adaptation. Okulewicz and Mańdziuk [24] presented a two-phase multiswarm particle optimizer to solve DVRPs, and they proved its superiority over traditional methods. Jia et al. [25] designed a set-based PSO algorithm to operate a dynamic, logistic dispatching system. By filtering through and summarizing the existing research, we established a VRP model to solve initial-route design and took the key point updating strategy as the route adjust strategy, owing to its precision. Furthermore, each heuristic algorithm was found to have its own advantages and disadvantages. us, we chose the PSO to improve the solving efficiency of models. e stop locations were also considered and k-means clustering algorithm was used to find the most suitable stops.

Problem Description and Modeling
3.1. Problem Description. As important nodes in the path network, the stops have a certain influence on the result of vehicle routing problem. When studying the problem of "stop location," we minimize the walking distance after ensuring all the office workers in need are located within the service range. When dealing with shared commuter bus routing problem, the shared commuter bus's mixed-load attribute is taken into consideration, the office workers on a commuter bus may not have the same destination, and in other words, some middle nodes in the path network are boarding points, which present stop location; others are drop-off points, which present enterprise location, and how to distinguish and process different nodes in VRP mode is the difficulty.
In this study, shared commuter bus routes were optimized to improve driving efficiency. First, we choose appropriate stop locations based on commuters' residences. Second, we determine the service scope and arrival order of each commuter bus, and the reasonable initial routes are thus formed. Finally, we adjust the commuter bus routes using real-time road condition information. In terms of efficiency and comfort requirements of commuters, overlap between different routes and overloading is prohibited. e number of commuters at the stop is assumed to not vary over a short time period, and in other words, another group of DVRP (VRP with dynamic customer demand) is ignored. e general problem studied in this paper can be divided into three subproblems: stop location, initial-route design, and dynamic route adjustment.
Stop location is primarily determined by the number of stops required and commuters' addresses. In this study, commuters' addresses are divided into several regions using a clustering algorithm, and a model based on the shortest walking distance is established. We use the Euclidean distance as a standard model metric; this may result in some disparities between the real scenario and the model, owing to the complexity and irregularity of the actual traffic network; however, we assume that these differences are negligible. e objective of the initial-route design is to minimize the travel time in an ideal situation. Take the routes of picking up office workers in the morning peak hour as an example, and the nodes in the route network include the stop nodes and the enterprise nodes. Shared commuter buses reach the stop nodes to take on office workers, and reach enterprise nodes to put them off. e VRP model is established to solve the problem, and the schematic diagram is shown in Figure 1. ere are often several routes between two stops, and only the shortest one is considered in the process. e objective of the dynamic route adjustment is to minimize the travel time in a practical situation. In practice, the travel time of the commuter buses cannot be determined by the route lengths, owing to the randomness of congestion and accidents. So, in the process of dynamic route adjustment, we give up the ideal assumption in the initial-route design and take the dynamic traffic information into consideration.
Consistent with the traditional solutions to solve dynamic vehicle routing problems, we divide the process of dynamic path optimization into two steps: static initial-route design and dynamic route adjustment. In addition, the paper makes the following assumption: (1) Initial-route design is a static optimization process, and when solving it, the road conditions of each route are assumed to be identical; hence, the travel speed of shared commuter bus is fixed, and it should be noted that this assumption only exists in the initial-route design. (2) e time of stopping at traffic lights is random and unpredictable, and we do not count the time spent on waiting at traffic lights, so it is ignored in this paper.
Discrete Dynamics in Nature and Society 3 (3) Repeated routes will make office workers waste more time, in fact, the shared commuter bus's driving routes are optimized according to the needs of commuters in a short period of time, and ensure the number of commuters at each stop will not exceed the number of seats. So, we will follow the principle and assume that commuters at the same stop are picked up by one commuter bus. (4) Dynamic route adjustment is a dynamic optimization process, and assumption (1) is invalid when solving it. e problem studied in this paper belongs to DVRP with real-time traffic information, we focus on dynamic path optimization with the changing road conditions, and the change in the number of commuters is not considered. (5) When shared commuter bus is in motion, real-time dynamic traffic information is available.
In this study, we, thus, solve the three subproblems and develop a "first, set point; then, set line; finally, adjust line" method. In the stop-location problem, the coordinates of commuters' residences are denoted by Q i (X i , Y i ), and we get the coordinates of stops P i (X i , Y i ) by calculating. In the problem of initial-route design, the Euclidean graph is G � (P, A), where P is the collection of nodes and A is the collection of routes, the stop points in P are donated by P * , and the enterprise points are P ′ , P � P * ∪ P ′ ; the distance from the i-th residence to the j-th residence is c ij . In the problem of dynamic route adjustment, the coordinates of key points are denoted by n i (x i , y i ).

Parameters.
e parameters used in this article are shown in Table 1.

Decision Variables
x ijs � 1, the s − th commuter car goes directly from station i to station j, 0, otherwise, y is � 1, the passengers at station i are served by the s − th commuter car, 0, otherwise. (1) To establish the models from the perspective of the three subproblems, we must establish two models for the first two subproblems and examine the relationship between these two models.
e steps used to develop the models are presented in Figure 2.

Shortest Walking Distance Model for Stop Location.
By considering office workers' demands for high efficiency during rush hours, we base the stop locations on the principle of maximum convenience, assessing convenience by comparing the walking distances of commuters. Before establishing the shortest walking distance model, the scope of services for each stop must be determined; only then we can know how many clusters commuters' residences are to be sorted into. A k-means clustering method is employed in this study; the coordinates of the residences Q i (X i , Y i ) are regarded as the element points to be clustered, and the Euclidean distance is used as the similarity. e clustering process is presented in Figure 3.
Normalization is used to mitigate the influence of the different ranges of elements' abscissa and ordinate values on the clustering. e normalized coordinates of the commuters' residences are labeled as Q * i (X * i , Y * i ). e formulas used to normalize the coordinates are as follows: After clustering, we assumed that there were five elements (i.e., A, B, C, D, and E) in the first cluster, with the coordinates (x A , y A ), (x B , y B ), (x C , y C ), (x D , y D ), and (x E , y E ), respectively. e stop coordinates were assumed to be (x, y), and the shortest total distance was D; the shortest walking distance model was established as follows: e optimal solution obtained by solving the shortest walking distance model is an idealized result; real-life urban traffic networks are complicated, and parking is not allowed everywhere.
e chosen stop locations must be along roadsides where parking is allowed; hence, we must modify the optimal solution according to the actual traffic situation. 4 Discrete Dynamics in Nature and Society

VRP Model for Initial-Route Design.
Considering the importance of delivering high efficiency to commuters during rush hours, the optimization aims to minimize the number of shared commuter buses required and the total driving time. e minimum number of shared commuter buses can be estimated using the following formula: To maximize the driving efficiency of shared commuter buses, we introduce a time window, thereby converting the VRP to a VRP with time windows (VRPTW). e total time  e influence of other external factors on the total driving time is neglected when designing the initial routes; expressed otherwise, the total distance is the only directly influencing factor of the total driving time. Hence, the objective becomes one of finding the shortest distance.
e VRP model is established as follows: i,j∈L×L In equation (4), we round down numbers to calculate the minimum number of vehicles required. In equation (5), we take the minimal time cost as our optimization objective and divide the time cost into three parts: travel time; penalty time of soft time windows; penalty time of hard time windows. A penalty factor is multiplied when the soft time limit is exceeded, and this penalty factor becomes an infinite positive number when the hard time limit is exceeded. Equation (6) ensures that the commuter buses are not overloaded, and equation (7) guarantees that each stop is considered. Equations (8) and (9) prevent any duplication of the arrangements. In equation (10), the DFJ method is used to eliminate the subcircuits, L is proper subset of all nodes (stop nodes and enterprise nodes) in the route network, and |L| is the number of elements in L. Equation (11)

Solution Algorithms and Processes
When solving path optimization problems, the mathematical model can be solved using several methods, including accurate algorithms, commercial optimization packages (e.g., CPLEX), and heuristic algorithms. If the research scale is large, accurate algorithms and commercial optimization packages are too time-consuming; thus, we chose a heuristic algorithm to solve the VRP.
We chose the appropriate algorithms to manage the three subproblems. e change processes of vehicle routes are shown in Figure 4. For the stop location, we established the shortest walking distance model; then, we chose the method of steepest descent to solve it. For the initial-route design, we established the VRP model, and PSO was used to solve it. For the dynamic route adjustment, we simply used Dijkstra's algorithm in combination with actual road condition information. e specific steps for using the algorithms are presented in Figure 5.

Stop Location (Steepest Descent Method).
e shortest walking distance model was proposed by Cauchy; it is an unconstrained optimization problem containing two variables, and it is often solved by partial derivation. However, when the amount of data is too large to be solved by calculation, the partial derivation is no longer appropriate. e steepest descent method (also referred to as the gradient algorithm) can solve the unconstrained optimization problems with large amount of data quickly, and it is very important to decide the gradient. Since the stop-location objective is to minimize walking distance, we choose a negative gradient, and the feasible solution is iterated (along the negative gradient orientation) using a certain step length, until the lowest point is reached. e initial solution V 0 and accuracy eps must be determined before using the steepest descent method. In this study, the steepest descent method was implemented in MATLAB to improve the efficiency.

Initial-Route Design (PSO).
PSO is used to find the initial routes, and its steps are as follows. e first step is to construct the particle expressions. Two questions must be solved for each stop: the first determines which shared commuter bus is responsible for picking up and dropping off the commuters at the specified stop, and the second determines the ordering of the stops that the shared commuter bus visits. e routes can be determined from the number of buses and the order of the stops. e number of buses is represented as X s , the stop ordering is represented as X r , and the velocity vectors of the particles are represented as V s and V r . e second step is to determine the initial positions and velocities of the particles. In this study, a stop is regarded as a dimension. For the radius vector of each particle, the dimensions of X s take an integer ranging from 1 to S, and each dimension of X r takes a real number ranging from 1 to K. For the velocity vector of each particle, the dimensions of V s take an integer ranging from −(S − 1) to (S − 1), and each dimension of V r takes a real number ranging from − (K − 1) to (K − 1). e third step is to update the positions and velocities of the particles. e vectors of the particles should be updated continually by comparing the individual extremum pBest with the global extremum gBest; the formulas are given below. e velocity of a particle is represented as V, its inertial weight is denoted as w, and typically ranges from 0.1 to 0.9; learning effects are represented as C 1 and C 2 , and rand () represents a random number between 0 and 1:

Route Improvement (Dijkstra's Algorithm).
By considering the dynamic changes in traffic, an appropriate strategy is developed to adjust the initial routes. e premise of path adjustment is that traffic information can be real-timely obtained, while the rapid development of intelligent transportation systems has made it easy. After comparing applicability of the four kinds of updating strategies, we use the key point updating strategy to adjust the initial routes, and the key points are creatively defined as "road intersections and the stops that the shared commuter buses have not reached in the process of driving" in this paper. e reason we set road intersections as key points is that they play an important role in the urban transportation network. U-turns are not allowed on many roads except at intersections, and the shared commuter buses can promptly adjust their route when they get the real-time traffic information. If we choose other updating strategies, such as the regular updating strategy, then we may not respond quickly to sudden traffic problems; if we choose other traffic points as the key points, there are also some invalid routes to get through after we make the decision to adjust initial routes, which waste the travel time of shared commuter buses. As shown in Figure 6, suppose the stops are represented as "B" and the key points as "n"; when the shared commuter bus is traversing from B1 to B2, a message describing a sudden accident between n1 and n3 is received; the initial route B1-n1-n3-B2 is adjusted to B1-n1-n2-n3-B2 using Dijkstra's algorithm. us, the route is altered, but the order in which commuters are picked up at each stop remains the same.
Dijkstra's algorithm is used to obtain the shortest route between two points; it is an expedient method for obtaining the shortest routes in unweighted networks; typically, a specific application of Dijkstra's algorithm is achieved using the tentative label (T) and permanent label (P). is study implements Dijkstra's algorithm in MATLAB.

Empirical Analysis.
In China, robust urban rail transit systems are installed in large cities; trams, subways, and other transportation modes release a large portion of highway traffic pressure. Medium and small cities are limited by their original urban layouts; thus, it makes more practical sense to choose medium and small cities to study route optimization for shared commuter buses.
Qinhuangdao is in the northeast of Hebei Province; it borders the Bohai Sea to the south, Yanshan Mountains to the north, Liaoning Province to the east, and Tianjin to the west. It is located on the border between North China and the Northeast China region, at the center of the Bohai Sea Economy Circle. Favorable geographical conditions and rich ecological resources have brought Qinhuangdao numerous development possibilities. In recent years, Qinhuangdao has undergone rapid economic development, achieving a regional gross domestic product of 163.556 billion yuan in 2018.
e annual disposable income per capita reached 24,555 yuan, and the annual disposable income of urban households per capita reached 35,386 yuan.
is rapid growth of the economy has driven a continuous increase in urban population and improvements in disposable income. Meanwhile, the demand level for services is rising in line with the improvement of material living standards, and urban traffic is one of the most important aspects of this demand. e number of domestic cars in Qinhuangdao has increased significantly in recent years, with the number of private cars rising to 644,000 in 2018; this has undoubtedly put immense pressure on the urban traffic system.
In recent years, traffic jam phenomena during rush hours have become increasingly common in Qinhuangdao, and this has had a considerable impact on the travel habits of people. e layout of Qinhuangdao is quite unique: most residential locations are in central Qinhuangdao, and several large industrial sites are located in a remote development zone. Direct buses between these locations are limited in number and slow.
us, most office workers choose to commute in private cars, and an excessive number of private cars can result in traffic jams. erefore, optimizing the routes of shared commuter buses will not only improve their commuting efficiency but also effectively reduce the frequency of private car use; this will reduce traffic congestion and relieve urban traffic pressure.
Before beginning path optimization, we conducted a traffic flow analysis on some important road nodes in Qinhuangdao.
rough our investigations, we identified several nodes prone to congestion; these are presented in Table 2. Taking these nodes as research objects, we collected their road traffic data over set periods of time, as presented in Table 3.
By analyzing the traffic jam congestion points and traffic flow, it can be observed that traffic jams often occur around Qinhuangdao People's Park. We chose as our research object several residential districts whose residents must pass these traffic jam congestion points to reach their destination. e algorithms were programmed in MATLAB R2018a on a PC (Windows 10, CPU 2.70 Hz, RAM 7.9 GB). To combine them with the actual investigation results, we used the drawing tools to establish a rectangular coordinate system on the map; the points marked on the map were considered the standard of residential information to determine the coordinates of residential locations. e selected residential districts and their corresponding coordinates are presented in Table 4.
Considering the limits of the service range of each stop in Qinhuangdao (500 m-800 m), we determined that four to six stops should be established and took five stops as an example to study firstly; hence, the target number of clusters is five. Before analysis, the coordinates must be normalized; the 8 Discrete Dynamics in Nature and Society results are presented (to two decimal places) in Table 4. Because the choice of the initial clustering center has a large influence on the clustering difficulty, it is necessary to make a preliminary intuitive judgment according to their geographical locations and to select the representative elements. e 1st, 8th, 9th, 12th, and 18th residential districts were selected as the initial clustering centers a, b, c, d, and e, respectively; five clusters (i. e., A, B, C, D, and E) were created. Using the second residential district (Xuefu) as an example, we calculated the Euclidean distance from this district to the initial clustering centers a, b, c, d, and e; the  results were 0.134164, 0.710211, 1.113598, 0.764199, and   0.960469, respectively. us, Xuefu is classified as belonging to Cluster A. e remaining 14 residential districts were similarly classified. e clustering centers needed to be updated, and their coordinates are as shown in Table 5. We calculated the distances between the 20 residential districts and the five new clustering centers, to cluster again. Finally, the clustering results were not found to change after the third iteration; hence, we considered the final clusters to be stabilized.
For each cluster, a mathematical model based on the shortest walking distance was established. Using Cluster A as an example, the model is expressed as follows: e model was solved using the steepest descent method in MATLAB. After nine iterations, the coordinates of the chosen stop were Ba(2.2694, 6.3406). Similarly, the coordinates of the other stops were obtained as Bb(8.3000, 2.3000), Bc(12.0241, 0.5150), Bd(12.6846, 3.6159), and Be (16.5824, 2.1458). e industrial sites in Qinhuangdao are geographically decentralized, and it is too difficult to study all of them; thus, the Qinhuangdao Economic and Technological Development Zone (QETDZ) and Qinhuangdao HR-Channel Management Co., Ltd. (QHRM) were taken as representative of the industrial sites; QETDZ was the beginning and end of all routes, and its coordinates were E 1 (9.72, 5.86); the   coordinates of QHRM were E 2 (9.63, 4.20). We investigated the number of office workers required to commute from the chosen residential restricts, and the results are shown in Table 6. In addition, we got the message that the business time of QETDZ and QHRM is half past eight, so we took it as the upper limit of each stop's time window and chose eight as the lower limit. e unit penalty coefficient beyond hard time window M is an infinite number, and the unit penalty coefficient beyond soft time window N is set to 0.25 (15 minutes). In the VRP model for finding the shortest route, there are two objective constraints: the smallest number of shared commuter buses and the shortest travel time. e priority of the former exceeds that of the latter; thus, the number of required shared commuter buses must be estimated before route optimization. We chose a popular medium-sized coach as the shared commuter bus, which contains 45 seats. e minimum number of shared commuter buses can be calculated as 3 using the previous formula. At the same time, we set v to 20 km/h within the allowable speed range for medium-sized coach on urban roads.
Particle swarm optimization was implemented in MATLAB to perform iterative searching. e search dimension (D) should be consistent with the number of shared commuter bus, so it was set to 5, the learning effects (C 1 , C 2 ) were both set to 1.4962, the inertia weight (w) was set to 0.7298, the number of particles in the initial swarm (N) was set to 10, and the maximum number of iterations (max DT) was set to 100. Finally, we obtained a global extremum (gBest) of 0.6855; the length of the shortest route was found to be 13.71 km. e particle radius vectors are presented in Table 7, from which simple routes can be identified. e first route is from E 1 to B 1 to E 1 , the second route is from E 1 to B 2 to E 2 to E 1 , and the third route is from E 1 to B 4 to B 5 to B 3 to E 1 .
When the number of vehicles increases, the number of particles in the initial swarm should be larger to avoid local optimal solutions. erefore, we changed the number of particles, setting N � 20, 30, and 40 for the initial swarm. e results obtained were the same as those obtained when N � 10. In addition, as w increases, the number of iterations required to obtain the optimal path also increases; however, if w is too small, the program will easily fall into a local optimum. We set the inertia weight as w � 0.2298, 0.5298, and 0.8298 and calculated the results. e results were similar to those of the original, and the accuracy of the results could be judged.
To analyze the influence of different stop locations on commuter vehicle path planning, we set the learning factor c1 � c2 � 1.4962, the inertial weight w � 0.7298, the number of particles in the initial swarm N � 10, and the maximum number of iterations max DT � 100 (unchanged). We solved for the initial-route design for four and six stops (i.e., the number of clustering targets k � 4 or 6 and the search dimension D � 4 or 6). e comparison results are shown in Table 8. It can be observed that the initial path length of the design also differs under a change in the number of stops. When four stops were selected, the actual distance was the shortest, and the shared commuter buses' driving efficiency was the highest. When six stops were selected, the actual distance was the longest, and the driving efficiency of the shared commuter buses was the lowest.
In order to verify the optimality of solution found by PSO gives the heuristic nature of this algorithm, we compare the results obtained by using the PSO and the precise algorithm. e exact calculation is implemented in Lingo, and the comparison is shown in Table 9. When the number of stops is set to 4, 5, and 6, the result of initial-route design found by PSO is equal to the accurate results, but obviously using PSO saves more solution time. In fact, PSO has higher accuracy and faster speed in solving small-and mediumsized optimization problems, but it needs to be improved when large-scale problem comes.
By comparison, the travel time of the shared commuter buses is the shortest when the number of stops is set to 4, but office workers spend too much time walking to the stops, so we continued our research with five stops. e data for the particle radii vectors can also be restored to the actual expressed node and arrival sequence; the specific initial routes are shown in Figure 7. If more shared commuter buses are required, the number of particles in the initial swarm should be increased to avoid local optimal solutions. No specific regulations exist for the number of initial particles, and we sought to ensure the reliability of the results; thus, we changed the number on the basis of our research; N was set to 20, 30, and 40 to calculate three times. All results were the same as the original ones. Furthermore, with an increase in inertial weight, the iteration time will increase and the computational efficiency will decrease; however, it is easy to fall into a local optimum when the inertia weight is too small, so we adjusted the value of w, setting it to 0.2298, 0.5298, and 0.8298. e calculated results are similar to the original ones.
is proves the reliability of the empirical results. e shared commuter buses will follow the optimized initial routes when picking up and dropping off commuters, accepting the real-time traffic information, and adjusting their route once they reach the key points; it is of crucial importance that we know how long the shared commuter bus will take in each route. In this study, we considered a traffic jam encountered in the investigation process to assess the route-adjustment mechanism; the accident occurred on the Jianshe Road between the Student House and the Haisan Building. As shown in Figure 8, the junctions on the routes were chosen as the key points; the initial route between Student House and Haisan Building is from B 4 to n 1 to n 2 to n 3 to n 4 to B 5 ; the third shared commuter bus has passed Student House and is approaching the junction of Youyi Road and Jianshe Street. When it reaches n1, the real-time traffic information of the accident is received, and the initial routes are adjusted. e estimated time fed back by the intelligent transportation system for each route is indicated in Figure 8. e route adjustment is solved using Dijkstra's algorithm in MATLAB, and the optimal adjusted route is obtained as running from P 4 to n 1 to n 6 to n 3 to n 4 to P 5 ; expressed otherwise, the third commuter bus reaches the Haisan Building by passing through Youyi Road, the west section of Heping Street, Hongqi Road, the east section of Jianshe Street, and Wenhua Road, respectively.

Discussion from the Managerial Insight
Dynamic path optimization is just a part of managing the sharing commuter bus, the main purpose we focus on the shared commuter bus route optimization is to solve the current hot issues, urban traffic jams make commuting       difficult for commuters, and dynamic route optimization is expected to meet the commuting demand of office workers, to drive office workers choose shared commuter bus, and to reduce their reliance on private cars. After investigation, we find that there are many idle vehicles in the city at present, and the transport agency can make full use of these resources. e idle vehicles can be rent to provide commuting service of shared commuter bus, which can greatly reduce the waste of idle resources. e managerial insight of dynamic path optimization is shown in Figure 9.
Dynamic path optimization for shared commuter bus belongs to the underlying technology of shared commuter bus, and it provides a more efficient commuting mode for office workers. If an office worker asks for shared commuter bus's services, he may need to schedule on a sharing platform the day before. e platform needs to collect all the reservation data and analyze the data which are submitted to the  Discrete Dynamics in Nature and Society platform in a same short period of time, then the framework in this paper is used, the stop location is chosen, and the optimal initial routes in an ideal setting are designed; at the same time, the waiting point and time is fed back to the customer. e enough idle vehicles as shared commuter buses also need to be rent to use, the employed drivers are notified to be responsible for the corresponding driving trip. When the shared commuter bus is running, the decision whether it is necessary to adjust the initial route dynamically should be made, and according to the real-time traffic  information obtained by the intelligent transportation system at each key point, a timely feedback should be given if there is any adjustment in the routes.
In this way, transportation agency can obtain information of commuters timely, use the information to optimize the route, and give the commuters specific feedback. Because of the rapid exchange and processing of information, the shared commuter bus can design the route according to the demand and adjust the route in real time according to the road condition, and transportation mobility in the network can be greatly improved.

Conclusions
Because the operating routes of shared commuter buses differ from those of other vehicles, this study modified the traditional DVRP model and considered the influence of stop locations on the VRP. To maximize the travel efficiency of shared commuter buses, we studied the DVRP problem using real-time traffic information and established route optimization models that were more appropriate for shared commuter bus. e PSO and Dijkstra's algorithm were used to solve the problem, and their effectiveness was validated through empirical analysis of the QETDZ and QHRM.
In this study, both DVRP and VRPTW were considered when studying the problem of vehicle path optimization. In essence, this is a loadable and unloadable VRP featuring time windows. In the process of solving the initial path, we considered the driving time costs of the vehicle and the penalty costs of exceeding the time window to ensure the highest efficiency; however, this is slightly idealistic because certain other factors are neglected (e.g., site service time costs).
erefore, the mathematical models should be further improved to ensure high accuracy.

Data Availability
e data used to support this study have been deposited in the Baidu Netdisk; readers can access the data at https://pan. baidu.com/s/1HLq7cur3oHGgvWZZDTBcIQ.

Conflicts of Interest
e authors declare that there are no conflicts of interest regarding the publication of this paper.