A method for deploying a roadside unit for vehicle-road collaboration
By combining the K-means++ algorithm and the 0-1 knapsack algorithm, the optimal roadside unit deployment plan is generated, which solves the problem of unscientific deployment methods in the existing technology, improves coverage efficiency and safety, and reduces costs. .
Patent Information
- Application Number
- CN202411059758.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-05
- Publication Date
- 2024-10-22
- Estimated Expiration
- 2044-08-05
AI Technical Summary
The roadside unit deployment method in the existing technology lacks scientific basis, resulting in limited coverage benefits, high equipment maintenance costs, difficulty in scientific deployment, and inability to effectively respond to traffic safety risks.
The K-means++ algorithm is used to perform cluster analysis on historical vehicle trajectory data to generate a roadside unit pre-deployment location set. Combined with deployment costs, road coverage benefits and traffic safety risk benefits, a deployment model solved by the 0-1 knapsack algorithm is constructed to generate Optimal deployment plan.
It improves the coverage and efficiency of the communication network, reduces the deployment cost of roadside units, ensures the optimal deployment plan, and helps achieve a more efficient and safer urban transportation system.
Smart Images

Figure CN118569657B_ABST
Abstract
Description
Technical Field
[0001] The invention relates to the field of communication technology, and in particular to a method for deploying a vehicle-road cooperative roadside unit. Background Art
[0002] The vehicle-road cooperative system is an advanced traffic management system that uses advanced technologies such as wireless communication and cooperative perception to achieve information sharing and intelligent coordination between vehicles and roads. Through the communication between vehicles and infrastructure (Vehicle to Infrastructure, V2I), the communication between vehicles and roadside units (Roadside Unit, RSU) (Vehicle to RSU, V2R), and the interconnected communication between vehicles (Vehicle to Vehicle, V2V), the intelligent coordination of vehicles and roads is achieved, thereby optimizing the utilization of system resources, improving road traffic safety, and alleviating traffic congestion. This real-time, two-way communication mechanism allows vehicles to respond to changes in road conditions more intelligently, improving driving efficiency and safety.
[0003] With the development of 5G networks, the increase in vehicle computing needs and the rapid development of vehicle-road collaboration technology, roadside unit equipment has emerged. Roadside units are wireless communication devices with data storage and computing capabilities, and can directly interact with nearby passing vehicles. They have the function of a gateway and are one of the most important infrastructures in the digital and intelligent construction of smart highways.
[0004] In the current construction of pilot demonstration highways for vehicle-road cooperative applications in China, roadside units are usually deployed at fixed intervals. This method has limited coverage benefits, high equipment maintenance costs, insufficient consideration of key sections, and lack of scientific deployment basis. On the other hand, the deployment coverage of roadside units is different from the coverage of communication base stations. Base station coverage is based on "surfaces", while roadside units focus on covering the "lines" of different roads. Therefore, it is very necessary to use advanced science and technology, comprehensively consider various influencing factors, and design the optimal deployment plan for roadside units, so as to promote the construction of smart highways in various places, accelerate the implementation of vehicle-road cooperative technology, improve the traffic efficiency of the transportation network, and reduce the risk of traffic accidents. Summary of the invention
[0005] The purpose of the present invention is to solve the shortcomings of the prior art and propose a vehicle-road cooperative roadside unit deployment method, which aims to obtain the optimal roadside unit deployment and ensure the optimality of the deployment plan while considering the deployment cost, covered roads and traffic safety risks.
[0006] A method for deploying a vehicle-road cooperative roadside unit comprises the following steps:
[0007] Step 1: Based on historical vehicle trajectory data, use the K-means++ algorithm to perform cluster analysis and generate a set of roadside unit pre-deployment locations;
[0008] Step 2: Conduct a site survey of the deployment area to check whether the RSU pre-deployment location can be deployed in the actual location;
[0009] Step 3: Construct a roadside unit deployment model that considers deployment cost benefits, road coverage benefits, and traffic safety risk benefits;
[0010] Step 4: Use the 0-1 knapsack algorithm to solve the benefit matrix of the roadside unit deployment model;
[0011] Step 5: Generate the optimal deployment plan based on the benefit matrix;
[0012] Preferably, the specific steps of using the K-means++ algorithm to perform cluster analysis on the vehicle trajectory points in the deployment area in step 1 are as follows:
[0013] Step 11 Initialization: Determine the number of cluster centers N; randomly select a data point sample from the trajectory point data set as the first cluster center μ1 and include it in the cluster center set Φ μ ;
[0014] Step 12 Calculate the distance: For each data point in the data set, calculate its Euclidean distance to the selected cluster center;
[0015] Step 13: Select cluster centers: assign a probability of being selected as cluster centers to all data points. The probability is the ratio of the square of the Euclidean distance from the current data point to the existing cluster center to the sum of the square of the Euclidean distance from all data points to the existing cluster center. The larger the ratio, the greater the probability that the data point will be selected as the cluster center. Add the selected data points to the cluster center set Φ μ Repeat this step until the cluster center set Φ μ There are N cluster centers in ;
[0016] Step 14 Cluster assignment: Assign each data point in the trajectory point dataset to the cluster corresponding to its nearest cluster center;
[0017] Step 15: Update the cluster center: calculate the average value of each cluster as the new cluster center;
[0018] Step 16: Repeat Step 14 and Step 15 until the cluster center no longer changes.
[0019] According to the K-means++ algorithm, based on the trajectory point data set at a certain moment, a cluster center set Φ with a length of N is obtainedμ , that is, the roadside unit pre-deployment location set R = {r1, r2, r3, ..., r N}, where r i =(rx i ,ry i ) represents the pre-deployment position of the i-th roadside unit, rx i Hery i are latitude and longitude respectively.
[0020] Preferably, when step 2 conducts a survey of the pre-deployment location in step 1, it is necessary to construct a deployment cost set H based on the pre-deployment location set R of the roadside unit, the actual road network and the geographical terrain of the deployment area. The length of H is N, and the element value h in H is i represents the deployment cost of the i-th pre-deployed RSU, h i The value of depends on whether the pre-deployed roadside unit is restricted by the road network and the actual geographical terrain environment. i When the pre-deployed roadside unit is not restricted by the actual geographical terrain environment i =d, position at r i When the pre-deployed roadside units are restricted by the actual geographical terrain environment i =d+δ; δ is a value much larger than d.
[0021] Preferably, when constructing the roadside unit deployment model in step 3, the deployment cost benefit, the coverage road benefit and the coverage traffic safety risk benefit need to be considered. The relationship between the total roadside unit deployment benefit F(X) and the deployment cost benefit E(X), the coverage road benefit R(X) and the coverage traffic safety risk benefit C(X) is as shown in formula (1):
[0022] F(X)= αR(X)+βC(X)-γE(X); (1)
[0023] X=(x1,x2,…,x N ); (2)
[0024] x i ∈{0,1}, ∀ i=1,2,…,N; (3)
[0025] In formula (1), α, β, and γ are the corresponding benefit weight coefficients respectively; the constraints of the roadside unit deployment plan X are shown in formulas (2) and (3). The deployment plan X contains N 0-1 vectors x i ; When x i =1, indicating that at position r i Deploy roadside units; when x i =0, indicating that at position r i No roadside units are deployed.
[0026] Among them, according to the pre-deployment location set R of the roadside unit, the actual road network, the geographical terrain of the deployment area and the deployment cost set H, the deployment cost negative benefit model and function E(X) related to the deployment scheme X are expressed as follows:
[0027] ; (4)
[0028] In formula (4), h i represents the deployment cost of the i-th pre-deployed RSU;
[0029] Roads covered by roadside units are divided into two situations: fully covered sections and partially covered sections. Fully covered sections are sections that are fully covered within the roadside unit coverage area, and partially covered sections are sections that are not fully covered within the roadside unit coverage area. The set of fully covered sections for the i-th deployed roadside unit is A i , the set of partially covered sections is P i , then the positive benefit model and function R(X) of the coverage road related to the deployment scheme X is expressed as:
[0030] ; (5)
[0031] ; (6)
[0032] In formula (5), a i,j The set of fully covered road sections within the coverage area of the i-th roadside unit is A i The jth road, p i,j The set of partially covered road sections within the coverage area of the i-th roadside unit is P i The jth path in the i,j ) is the fully covered section a i,j The length of P i,j ) is the partially covered road section P i,j Length; Formula (6) is the average traffic flow density constraint of the road section covered by the roadside unit; Among them, the fully covered road section and the partially covered road section are included in the calculation scope of Formula (5) under the constraint of satisfying Formula (6); u i,j and u' i,j Section a i,j and p i,j The traffic flow density is replaced by the number of trajectory points of different vehicles on the road section;
[0033] Preprocess traffic accident data and use the sum of the Poisson distribution probabilities of future traffic accidents on multiple sections in the road area to characterize the traffic safety risk in the area:
[0034] ; (7)
[0035] ; (8)
[0036] ; (9)
[0037] ; (10)
[0038] In formula (7) and (8), k i,1 represents the number of simple traffic accidents occurring within the coverage area of the i-th pre-deployed roadside unit, k i,2 represents the number of general traffic accidents occurring within the coverage area of the i-th pre-deployed roadside unit; P(Y=k i,1 ) indicates that k i,1 The probability of a simple traffic accident event, P(Z=k i,2 ) indicates that k i,2 The probability of a general traffic accident event; ω1 and ω2 are the weight coefficients of simple traffic accidents and general traffic accidents; Formula (9) is the calculation method of λ1 and λ2, σ1 and σ2 are the incidence rates of simple traffic accidents and general traffic accidents respectively; Formula (10) is the constraint of the relevant parameters in Formula and Formula (8);
[0039] According to the above related benefits and constraints, the roadside unit deployment model considering multiple factors is constructed as follows:
[0040] ; (11)
[0041] Formula (11) is the objective optimization function of the optimal deployment model of roadside units considering comprehensive benefits. There is a decision variable in the model, namely, the deployment plan X. By changing the deployment plan, the goal is to maximize the comprehensive benefit F(X);
[0042] In the above, the selected d is 0.1, δ is 100; the selected α, β, γ are 0.4, 0.4, 0.2 respectively; the selected ω1, ω2 are 0.4, 0.6 respectively; the selected σ1 and σ2 are 2%, 0.5% respectively;
[0043] Preferably, in step 4, the roadside unit deployment model in step 3 is solved using a 0-1 knapsack algorithm to obtain a benefit matrix; the greater the benefit, the better the deployment scheme is in terms of deployment cost benefit, coverage road benefit, and coverage traffic safety risk benefit;
[0044] The 0-1 backpack algorithm solves the state transition equation for the roadside unit deployment location as follows:
[0045] dp[i][j]=Max(dp[i-1][j], dp[i-1][j-1]+w i); (12)
[0046] In formula (12), dp[i-1][j] and dp[i-1][j-1]+w i Represents two decisions of selecting or not selecting the i-th roadside unit, and uses Max to obtain the optimal strategy; when the i-th roadside unit is selected, the capacity of the backpack is reduced by 1, and the total revenue of the backpack should be added with the comprehensive revenue of the currently selected roadside unit; when the i-th roadside unit is not selected, the capacity of the backpack remains unchanged, and the total revenue of the backpack remains unchanged.
[0047] Preferably, in step Step 5, the optimal deployment plan includes the number of roadside units deployed, the deployment location of each roadside unit and the benefits of the plan.
[0048] The advantages and technical effects of the present invention are:
[0049] A vehicle-road cooperative roadside unit deployment method of the present invention uses the K-means++ algorithm to perform cluster analysis on historical vehicle trajectory data, proposes a roadside unit pre-deployment position, and ensures that the pre-deployed roadside unit position covers more vehicles to improve the coverage and efficiency of the communication network; secondly, for the roadside unit pre-deployment position, an on-site survey of the deployment area is conducted, and a larger deployment cost is assigned to the roadside unit pre-deployment position that cannot be deployed; then, a roadside unit deployment model that considers deployment cost benefits, coverage road benefits, and coverage traffic safety risk benefits is constructed, and a 0-1 knapsack algorithm is used to solve the benefit matrix of the roadside unit deployment model; finally, according to the benefit matrix, an optimal deployment plan is generated.
[0050] This method can achieve the best balance between different needs and goals, ensuring the optimal deployment of roadside units. This method effectively improves communication efficiency and reduces the cost of roadside unit deployment, providing powerful guidance for the improvement and development of future urban transportation systems, and helping to achieve a more efficient, safer and smarter urban transportation system. BRIEF DESCRIPTION OF THE DRAWINGS
[0051] Figure 1 The figure is a flow chart of the method of the present invention.
[0052] Figure 2 A schematic diagram of the pre-deployment position of a roadside unit provided in an embodiment of the present invention.
[0053] Figure 3 A schematic diagram of roadside unit deployment provided for an embodiment of the present invention. DETAILED DESCRIPTION
[0054] The embodiments of the invention are described in detail below, and examples of the embodiments are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are only used to explain the invention, and cannot be understood as limiting the invention.
[0055] In the description of the invention, it should be understood that the terms "center", "longitudinal", "lateral", "upper", "lower", "front", "back", "left", "right", "vertical", "horizontal", "top", "bottom", "inside", "outside" and the like indicate positions or positional relationships based on the positions or positional relationships shown in the drawings, and are only for the convenience of describing the invention and simplifying the description, rather than indicating or implying that the device or element referred to must have a specific orientation, be constructed and operate in a specific orientation, and therefore cannot be understood as limiting the invention. In addition, the terms "first" and "second" are used for descriptive purposes only and cannot be understood as indicating or implying relative importance.
[0056] A method for deploying a vehicle-road cooperative roadside unit of the present invention, an implementation of a method flow thereof is as follows: Figure 1 As shown:
[0057] In this embodiment, the length and width of the deployment area are 2.42 km and 3.67 km respectively. Assume that the budget provided is only enough to deploy 10 roadside units in the deployment area.
[0058] Step 1: Based on historical vehicle trajectory data, use the K-means++ algorithm to perform cluster analysis and generate a set of roadside unit pre-deployment locations;
[0059] The K-means++ algorithm is used to perform cluster analysis on the vehicle trajectory points in the target deployment area:
[0060] Step 11 Initialization: Determine the number of cluster centers N=20; randomly select a data point sample from the trajectory point data set as the first cluster center μ1 and include it in the cluster center set Φ μ ;
[0061] Step 12 Calculate the distance: For each data point in the data set, calculate its Euclidean distance to the selected cluster center;
[0062] Step 13 Select cluster centers: assign a probability of being selected as a cluster center to all data points. The probability is the ratio of the square of the Euclidean distance from the current data point to the existing cluster center to the sum of the square of the Euclidean distances from all data points to the existing cluster center. The larger the ratio, the greater the probability that the data point is selected as the cluster center. Include the selected data points in the cluster center set Φ μ Repeat this step until the cluster center set Φ μThere are 20 cluster centers in ;
[0063] Step 14 Cluster assignment: Assign each data point in the trajectory point dataset to the cluster corresponding to its nearest cluster center;
[0064] Step 15: Update the cluster center: calculate the average value of each cluster as the new cluster center;
[0065] Step 16: Repeat Step 14 and Step 15 until the cluster center no longer changes.
[0066] According to the K-means++ algorithm, we get a cluster center set Φ with a length of 20. μ , that is, the roadside unit pre-deployment location set R = {r1, r2, r3, ..., r 20}, where r i =(rx i ,ry i ) represents the pre-deployment position of the i-th roadside unit, rx i Hery i are latitude and longitude respectively, Figure 2 The middle triangle position is the pre-deployment location for 20 roadside units.
[0067] Step 2: Conduct a site survey of the deployment area to check whether the RSU pre-deployment location can be deployed in the actual location;
[0068] After the on-site survey of the deployment area, it was found that 18 of the 20 pre-deployment locations can be deployed in practice according to the road network structure and geographical terrain of the target deployment area. The deployment cost of these 18 locations that are not restricted by the road network structure and geographical terrain of the target area is set to d, and the deployment cost of the remaining two pre-deployment locations is set to d+δ.
[0069] Step 3: Construct a roadside unit deployment model that considers deployment cost benefits, road coverage benefits, and traffic safety risk benefits;
[0070] The relationship between the total benefit F(X) of roadside unit deployment and the deployment cost benefit E(X), the coverage road benefit R(X) and the coverage traffic safety risk benefit C(X) is as follows.
[0071] F(X)=αR(X)+βC(X)-γE(X); (13)
[0072] The calculation formulas for deployment cost benefit E(X), coverage road benefit R(X) and coverage traffic safety risk benefit C(X) are as follows:
[0073] ; (14)
[0074] ; (15)
[0075] ; (16)
[0076] The constraints on deployment plan X are as follows:
[0077] X=(x1,x2,…,x N ); (17)
[0078] x i ∈{0,1}, ∀ i=1,2,…,N; (18)
[0079] Step 4: Use the 0-1 knapsack algorithm to solve the benefit matrix of the roadside unit deployment model;
[0080] In this example, the number of RSU deployments is 10 and the number of RSU pre-deployment locations is 20. This problem can be formally described as: given the number of deployments is 10, it is required to find a 20-element 0-1 vector X: (x1, x2, x3, …, x 20 ),x i ∈{0,1}, so that F(X) is maximized.
[0081] The road network of the deployment area is drawn according to the on-site situation to generate the corresponding road network information. According to the road network information, the geographical terrain of the deployment area and formula (14), the deployment cost of the roadside unit deployment plan is calculated. The roads covered by the roadside unit are divided into two situations, namely, full coverage sections and partial coverage sections. Full coverage sections are sections that are fully covered in the coverage area, and partial coverage sections are sections that are not fully covered in the coverage area. According to the road network information and formula (15), the lengths of the full coverage sections and partial coverage sections of the roadside unit deployment plan are calculated. According to the number of traffic accidents in the target area and formula (16), the sum of the Poisson distribution probabilities of simple accidents and general accidents within the coverage area of the deployment plan is calculated to characterize the traffic safety risk of the area.
[0082] The 0-1 backpack algorithm obtains the benefit matrix of the deployment plan based on the above different benefit calculation methods.
[0083] Step 5: Generate the optimal deployment plan based on the benefit matrix in Step 4;
[0084] According to the benefit matrix of the roadside unit deployment model in Step 4, the deployment scheme with the highest total benefit is the optimal deployment scheme proposed by the present invention. Figure 3 As shown, the roadside unit deployment plan is ten points numbered 1-10, and the remaining unnumbered points are locations where no roadside units are selected for deployment.
[0085] Finally, all the unexplained parts of the invention adopt mature products and mature technical means in the existing technology.
[0086] In the description of this specification, reference to the terms "one embodiment", "some embodiments", "example", "specific example", or "some examples" etc. means that the specific features, structures, materials or characteristics described in conjunction with the embodiment or example are included in the embodiment or example of the invention.
[0087] Although embodiments of the invention have been shown and described, it will be appreciated by those skilled in the art that various changes, modifications, substitutions and variations may be made to the embodiments without departing from the principles and spirit of the invention, and that the scope of the invention is defined by the claims and their equivalents.
Claims
1. A method for deploying a vehicle-road cooperative roadside unit, characterized in that: The following steps are involved: Step 1: Based on historical vehicle trajectory data, use the K-means++ algorithm to perform cluster analysis and generate a set of roadside unit pre-deployment locations; Step 2: Conduct a site survey of the deployment area to check whether the RSU pre-deployment location can be deployed in the actual location; Step 3: Construct a roadside unit deployment model that considers deployment cost benefits, road coverage benefits, and traffic safety risk benefits; Step 4: Use the 0-1 knapsack algorithm to solve the benefit matrix of the roadside unit deployment model; Step 5: Generate the optimal deployment plan based on the benefit matrix; When the step 2 conducts a survey of the pre-deployment position in Step 1, it is necessary to construct a deployment cost set H according to the pre-deployment position set R of the roadside unit, the actual road network and the geographical terrain of the deployment area; the length of H is N, and the element value h in H is i is the deployment cost of the ith roadside unit, h i The value of depends on whether the pre-deployed roadside unit is restricted by the actual geographical terrain environment. i When the pre-deployed roadside unit is not restricted by the actual geographical terrain environment i =d, position at r i When the pre-deployed roadside units are restricted by the actual geographical terrain environment i =d+δ; δ is a value much larger than d; When constructing the roadside unit deployment model in Step 3, the following needs to be considered: deployment cost benefit, coverage road benefit and coverage traffic safety risk benefit. The relationship between the total benefit F(X) of the roadside unit deployment and the cost benefit E(X) of the roadside unit deployment, the benefit R(X) of the road length covered by the roadside unit, and the benefit C(X) of the traffic accident data covered by the roadside unit is as shown in Formula (1). F(X)=αR(X)+βC(X)-γE(X); (1) X=(x1,x2,…,x N ); (2) In formula (1), α, β, and γ are the corresponding benefit weight coefficients respectively; the constraints of the roadside unit deployment plan X are shown in formulas (2) and (3). The deployment plan X contains N 0-1 vectors x i ; When x i =1, indicating that at position r i Deploy roadside units; when x i = 0, indicating that at position r i No roadside units are deployed; Among them, according to the pre-deployment location set R of the roadside unit, the actual road network, the geographical terrain of the deployment area and the deployment cost set, the deployment cost negative benefit model and function E(X) related to the deployment scheme X are expressed as follows: In formula (4), h i represents the deployment cost of the i-th pre-deployed RSU; Roads covered by roadside units are divided into two situations: fully covered sections and partially covered sections. Fully covered sections are sections that are fully covered within the roadside unit coverage area, and partially covered sections are sections that are not fully covered within the roadside unit coverage area. The set of fully covered sections for the i-th deployed roadside unit is A i , the set of partially covered sections is P i , then the positive benefit model and function R(X) of the coverage road length related to the deployment scheme X is expressed as: In formula (5), a i,j The set of fully covered road sections within the coverage area of the i-th roadside unit is A i The jth road, p i,j The set of partially covered road sections within the coverage area of the i-th roadside unit is P i The jth path; len(a i,j ) is the fully covered road section a i,j The length of len(P i,j ) is the partially covered road section P i,j Length; Formula (6) is the average traffic flow density constraint of the road section covered by the roadside unit; Among them, the fully covered road section and the partially covered road section are included in the calculation scope of Formula (5) under the constraint of satisfying Formula (6); u i,j and u' i,j Section a i,j and p i,j The traffic flow density is replaced by the number of trajectory points of different vehicles on the road section; Preprocess traffic accident data and use the sum of the Poisson distribution probabilities of future traffic accidents on multiple sections in the road area to characterize the traffic safety risk in the area: λ1=k i,1 ·s1 λ2=k i,2 ·σ2; (9) k i,1 ≥0,k i,2 ≥0; (10) In formula (7) and (8), k i,1 represents the number of simple traffic accidents occurring within the coverage area of the i-th pre-deployed roadside unit, k i,2 represents the number of general traffic accidents occurring within the coverage area of the i-th pre-deployed roadside unit; P(Y=k i,1 ) indicates that k i,1 The probability of a simple traffic accident event, P(Z = k i,2 ) indicates that k i,2 The probability of a general traffic accident event; ω1 and ω2 are the weight coefficients of simple traffic accidents and general traffic accidents; Formula (9) is the calculation method of λ1 and λ2, σ1 and σ2 are the incidence rates of simple traffic accidents and general traffic accidents respectively; Formula (10) is the constraint of the relevant parameters in Formulas (7) and (8); According to the above related benefits and constraints, the roadside unit deployment model considering multiple factors is constructed as follows: Formula (11) is the objective optimization function of the optimal deployment model of roadside units considering comprehensive benefits. There is a decision variable in the model, namely, the deployment plan X. By changing the deployment plan, the goal is to maximize the comprehensive benefit F(X); In the formula, d is selected as 0.1, δ is 100; α, β, γ are selected as 0.4, 0.4, 0.2 respectively; ω1, ω2 are selected as 0.4, 0.6 respectively; σ1 and σ2 are selected as 2% and 0.5% respectively; In the step 4, the 0-1 backpack algorithm is used to solve the roadside unit deployment model in step 3 to obtain a benefit matrix; the greater the benefit, the better the deployment scheme is in terms of deployment cost benefit, coverage road benefit and coverage traffic safety risk benefit; The 0-1 backpack algorithm solves the state transition equation for the roadside unit deployment location as follows: dp[i][j]=Max(dp[i-1][j],dp[i-1][j-1]+w i ); (12) In formula (12), dp[i-1][j] and dp[i-1][j-1]+w i Represents two decisions of selecting or not selecting the i-th roadside unit, and uses Max to obtain the optimal strategy; when the i-th roadside unit is selected, the capacity of the backpack is reduced by 1, and the total revenue of the backpack should be added with the comprehensive revenue of the currently selected roadside unit; when the i-th roadside unit is not selected, the capacity of the backpack remains unchanged, and the total revenue of the backpack remains unchanged.
2. A method for deploying a vehicle-road cooperative roadside unit according to claim 1, characterized in that: The specific steps of Step 1 using the K-means++ algorithm to perform cluster analysis on the vehicle trajectory points in the deployment area are as follows: Step 11 Initialization: Determine the number of cluster centers N; randomly select a data point sample from the trajectory point data set as the first cluster center μ1 and include it in the cluster center set Φ μ ; Step 12 Calculate the distance: For each data point in the data set, calculate its Euclidean distance to the selected cluster center; Step 13 Select cluster centers: assign a probability of being selected as a cluster center to all data points. The probability is the ratio of the square of the Euclidean distance from the current data point to the existing cluster center to the sum of the square of the Euclidean distances from all data points to the existing cluster center. The larger the ratio, the greater the probability that the data point is selected as the cluster center. Include the selected data points in the cluster center set Φ μ Repeat this step until the cluster center set Φ μ There are N cluster centers in ; Step 14 Cluster assignment: Assign each data point in the trajectory point dataset to the cluster corresponding to its nearest cluster center; Step 15: Update the cluster center: calculate the average value of each cluster as the new cluster center; Step 16: Repeat Step 14 and Step 15 until the cluster center no longer changes. According to the K-means++ algorithm, based on the trajectory point data set at a certain moment, a cluster center set Φ with a length of N is obtained μ That is, the roadside unit pre-deployment location set R = {r1, r2, r3, ..., r N }, where r i =(rx i ,ry i ) represents the pre-deployment position of the i-th roadside unit, rx i Hery i are latitude and longitude respectively.
3. The method for deploying a vehicle-road cooperative roadside unit according to claim 1, characterized in that: In the step Step 5, the optimal deployment plan includes the number of roadside units to be deployed, the deployment location of each roadside unit and the benefits of the plan.
