A vehicle allocation method and related equipment

By introducing virtual areas and target path sets into the Internet of Vehicles system, vehicle allocation is optimized, the problem of traffic flow utilization difference is solved, and the balance of vehicle allocation and utilization optimization are achieved.

CN111371902BActive Publication Date: 2024-10-15TENCENT TECHNOLOGY (SHENZHEN) CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202010179273.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-03-13
Publication Date
2024-10-15
Estimated Expiration
2040-03-13

AI Technical Summary

Technical Problem

Existing vehicle allocation methods cannot effectively ensure that the difference in traffic utilization rates in different areas is as small as possible, resulting in overload or insufficient traffic flow in some areas.

Method used

By introducing virtual areas and target path sets into the Internet of Vehicles system, vehicles are allocated based on the target number and preset coefficients in each area to ensure that vehicles are within the accommodation range of each area and at the same time optimize the utilization between areas.

Benefits of technology

When allocating vehicles to each area, it is possible to ensure that vehicles are within their accommodation range as much as possible, while reducing the utilization difference between areas and improving the balance of traffic flow.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN111371902B_ABST
    Figure CN111371902B_ABST
Patent Text Reader

Abstract

The embodiment of the present application provides a vehicle allocation method and related equipment, which are applied to the Internet of Vehicles. Through computer vision technology, when allocating vehicles to different areas in the Internet of Vehicles, it can ensure that the vehicles in the area of ​​the Internet of Vehicles are within the tolerance range, and ensure that the utilization rate of each area is as small as possible. The method includes: determining M area pairs; determining a first virtual area and a second virtual area; determining a target path set based on each first target area pair and the maximum mandatory number difference of each first target area pair; determining the target number of each area in the N areas according to the weight of each path in the target path set and a preset coefficient, and the preset coefficient is associated with the utilization rate corresponding to the N areas; allocating vehicles to each area in the N areas based on the target number of each area in the N areas.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of Internet of Vehicles, and in particular to a vehicle allocation method and related equipment. Background Art

[0002] The connotation of the Internet of Vehicles mainly refers to: the on-board equipment on the vehicle effectively utilizes all vehicle dynamic information in the information network platform through wireless communication technology, and provides different functional services during vehicle operation. In reality, different areas (such as roads and lanes) carry different amounts of traffic. How to control the traffic flow so that the traffic flow in any area is within the tolerance range of the area and the difference in actual utilization rate between different areas is as small as possible is the key issue facing the implementation of vehicle-road collaboration.

[0003] The current practice is to monitor the traffic flow of each road in real time and order the current vehicles that are about to enter each road or are at a road intersection to choose the road with the least traffic flow.

[0004] However, doing so will not ensure that the difference in actual utilization between different areas is as small as possible. Cars will only be allowed into an area when the traffic volume is the lowest. Summary of the invention

[0005] The present application provides a vehicle allocation method and related equipment, which can ensure that the number of vehicles in the area is within the tolerance range and that the difference in utilization rate of each area is as small as possible when allocating vehicles to different areas in the Internet of Vehicles.

[0006] A first aspect of the present application provides a vehicle allocation method, which is applied to a vehicle network, wherein the vehicle network includes a backend server and N areas, the backend server is communicatively connected to a central control room corresponding to the N areas, the central control room corresponding to the N areas receives an instruction sent by the backend server, and performs corresponding operations according to the instruction, including:

[0007] Determine M region pairs, where the M region pairs are a set of region pairs having a mandatory quantitative difference among N regions, where N is a positive integer greater than or equal to 2, and M is a positive integer greater than or equal to 1;

[0008] Determine a first virtual area and a second virtual area, the difference between the maximum mandatory number of the first virtual area and each area in the first area set is the maximum number of vehicles contained in each area in the first area set, the first area set is a set of areas other than R areas among the N areas, the difference between the maximum mandatory number of the second virtual area and each area in the second area set is a first preset value, the second area set is a set of the N areas and the first virtual area, the R areas are different areas in the M area pairs, and R is a positive integer greater than or equal to 1;

[0009] Determine a target path set based on each first target area pair and the maximum mandatory number difference of each first target area pair, each first target area pair is associated with the M area pairs, the first area pair set and the second area pair set, the target path set is a set of paths between the second virtual area and each area in the N areas, the weight of which is less than a second preset value, the first area pair set is an area pair set consisting of the first virtual area and each area in the first area set, and the second virtual area and each area in the second area set are an area pair set, the target path set corresponds to the N areas, and the weight is associated with the maximum mandatory number difference;

[0010] Determining the target quantity of each of the N areas according to the weight of each path in the target path set and a preset coefficient, wherein the preset coefficient is associated with the utilization rate corresponding to the N areas;

[0011] Vehicles are allocated to each of the N areas based on the target number for each of the N areas.

[0012] Optionally, determining the target path set based on each first target area pair and the maximum mandatory number difference of each first target area pair comprises:

[0013] Determine a target directed edge of each first target area pair, wherein the target directed edge is a path between endpoints corresponding to two areas of each first target area pair, two endpoints of the target directed edge are the two areas of each first target area pair, and the weight of the target directed edge is a maximum forced quantity difference of each first target area pair;

[0014] Merging different directed edges with the same endpoints among the directed edges of each first target region pair to obtain a region quantity difference constraint graph;

[0015] The target path set is determined according to the region quantity difference constraint graph.

[0016] Optionally, determining the target path set according to the region quantity difference constraint graph includes:

[0017] Determine whether there is a loop with a negative weight in the region quantity difference constraint graph;

[0018] If not, searching for the target path set with a weight less than the second preset value from the second virtual area to each of the N areas based on the area quantity difference constraint graph.

[0019] Optionally, determining the number of targets in each of the N areas according to the weight of each path in the target path set and a preset coefficient includes:

[0020] Determine an initial number of each of the N areas based on a weight of each path in the target path set;

[0021] A target number for each of the N areas is determined based on the initial number for each of the N areas and the preset coefficient.

[0022] Optionally, the determining the target number of each of the N areas based on the initial number of each of the N areas and the preset coefficient includes:

[0023] Determining whether the initial number of second target areas is greater than the maximum number of second target areas, the second target area being any one of the N areas;

[0024] If yes, determining a target difference, wherein the target difference is a difference between the initial number of the second target areas and the maximum number of the second target areas that is greater than a third preset value;

[0025] Adjusting the initial number of the second target areas based on the target difference to obtain an adjusted number of each area in the N areas;

[0026] A target quantity for each of the N areas is determined based on the adjusted quantity for each of the N areas and the preset coefficient.

[0027] A second aspect of the present application provides a vehicle allocation device, which is applied to a vehicle network, wherein the vehicle network includes N areas, the vehicle allocation device is communicatively connected to central control rooms corresponding to the N areas, and the central control rooms corresponding to the N areas receive instructions sent by the vehicle allocation device and perform corresponding operations according to the instructions, including:

[0028] A first determining unit is used to determine M region pairs, where the M region pairs are a set of region pairs having a forced quantitative difference among N regions, where N is a positive integer greater than or equal to 2, and M is a positive integer greater than or equal to 1;

[0029] a second determining unit, configured to determine a first virtual area and a second virtual area, wherein the difference between the maximum mandatory number of the first virtual area and each area in the first area set is the maximum number of vehicles contained in each area in the first area set, the first area set is a set of areas other than R areas among the N areas, the difference between the maximum mandatory number of the second virtual area and each area in the second area set is a first preset value, the second area set is a set of the N areas and the first virtual area, the R areas are different areas in the M area pairs, and R is a positive integer greater than or equal to 1;

[0030] a third determining unit, configured to determine a target path set based on each first target area pair and a maximum mandatory number difference of each first target area pair, wherein each first target area pair is associated with the M area pairs, the first area pair set, and the second area pair set, the target path set is a set of paths between the second virtual area and each area in the N areas, the weight of which is less than a second preset value, the first area pair set is an area pair set consisting of the first virtual area and each area in the first area set, and the second virtual area and each area in the second area set are an area pair set, the target path set corresponds to the N areas, and the weight is associated with the maximum mandatory number difference;

[0031] a fourth determining unit, configured to determine a target quantity of each of the N regions according to a weight of each path in the target path set and a preset coefficient, wherein the preset coefficient is associated with a utilization rate corresponding to the N regions;

[0032] An allocating unit is used to allocate vehicles to each of the N areas based on a target number of each of the N areas.

[0033] Optionally, the third determining unit is specifically configured to:

[0034] Determine a target directed edge of each first target area pair, wherein the target directed edge is a path between endpoints corresponding to two areas of each first target area pair, two endpoints of the target directed edge are the two areas of each first target area pair, and the weight of the target directed edge is a maximum forced quantity difference of each first target area pair;

[0035] Merging different directed edges with the same endpoints among the directed edges of each first target region pair to obtain a region quantity difference constraint graph;

[0036] The target path set is determined according to the region quantity difference constraint graph.

[0037] Optionally, the third determining unit determines the target path set according to the region quantity difference constraint graph, including:

[0038] Determine whether there is a loop with a negative weight in the region quantity difference constraint graph;

[0039] If not, searching for the target path set with a weight less than the second preset value from the second virtual area to each of the N areas based on the area quantity difference constraint graph.

[0040] Optionally, the fourth determining unit is specifically configured to:

[0041] Determine an initial number of each of the N areas based on a weight of each path in the target path set;

[0042] A target number for each of the N areas is determined based on the initial number for each of the N areas and the preset coefficient.

[0043] Optionally, the fourth determining unit determines the target number of each of the N areas based on the initial number of each of the N areas and the preset coefficient, including:

[0044] Determining whether the initial number of second target areas is greater than the maximum number of second target areas, the second target area being any one of the N areas;

[0045] If yes, determining a target difference, wherein the target difference is a difference between the initial number of the second target areas and the maximum number of the second target areas that is greater than a third preset value;

[0046] Adjusting the initial number of the second target areas based on the target difference to obtain an adjusted number of each area in the N areas;

[0047] A target quantity for each of the N areas is determined based on the adjusted quantity for each of the N areas and the preset coefficient.

[0048] A third aspect of the present application provides a computer device comprising at least one connected processor, memory and transceiver, wherein the memory is used to store program code, and the program code is loaded and executed by the processor to implement the steps of the vehicle allocation method described in the above aspects.

[0049] A fourth aspect of the present application provides a computer-readable storage medium, which includes instructions, which, when executed on a computer, enable the computer to execute the steps of the vehicle allocation method described in the above aspects.

[0050] To summarize, in the embodiments provided by the present application, objects are allocated to each area according to the target number of each area, the target number is determined according to the weight of each path in the target path set and a preset coefficient, the weight of each path in the target path set is less than the second preset value, and the preset coefficient is associated with the utilization corresponding to the N areas, and the target path set is generated according to the first virtual set, the second virtual set, and the area pairs with the maximum forced number difference in the N areas. Compared with only selecting the minimum traffic flow in the N areas for deployment, it can be ensured that when allocating vehicles to each area, as many vehicles as possible within its accommodation range are allocated to each area, while at the same time ensuring that the utilization between each area is as small as possible. BRIEF DESCRIPTION OF THE DRAWINGS

[0051] Figure 1 A network architecture diagram of a vehicle allocation method provided in an embodiment of the present application;

[0052] Figure 2 A flow chart of a vehicle allocation method provided in an embodiment of the present application;

[0053] Figure 3 A schematic diagram of a directed edge including a starting point and a terminal provided in an embodiment of the present application;

[0054] Figure 4A A schematic diagram of directed graph merging endpoints provided in an embodiment of the present application;

[0055] Figure 4B Another schematic diagram of directed graph merging endpoints provided in an embodiment of the present application;

[0056] Figure 5 A schematic diagram of a regional vehicle flow differential constraint diagram provided in an embodiment of the present application;

[0057] Figure 6 A virtual structural diagram of a vehicle allocation device provided in an embodiment of the present application;

[0058] Figure 7 A schematic diagram of the hardware structure of the server provided in an embodiment of the present application. DETAILED DESCRIPTION

[0059] The technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, rather than all of the embodiments.

[0060] The terms "first", "second", etc. in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments described herein can be implemented in an order other than the content illustrated or described herein. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device comprising a series of steps or modules need not be limited to those steps or modules clearly listed, but may include other steps or modules that are not clearly listed or inherent to these processes, methods, products or devices. The division of modules that appear in this application is only a logical division. There may be other division modes when implemented in practical applications, for example, multiple modules may be combined into or integrated in another system, or some feature vectors may be ignored, or not executed. In addition, the coupling or direct coupling or communication connection between each other shown or discussed may be through some interfaces, and the indirect coupling or communication connection between modules may be electrical or other similar forms, which are not limited in this application. Furthermore, the modules or sub-modules described as separate components may or may not be physically separated, may or may not be physical modules, or may be distributed in multiple circuit modules, and some or all of the modules may be selected according to actual needs to achieve the purpose of the present application.

[0061] With the research and progress of artificial intelligence technology, artificial intelligence technology has been studied and applied in many fields, such as common smart homes, smart wearable devices, virtual assistants, smart speakers, smart marketing, unmanned driving, autonomous driving, drones, robots, smart medical care, smart customer service, etc. I believe that with the development of technology, artificial intelligence technology will be applied in more fields and play an increasingly important role. Autonomous driving technology usually includes high-precision maps, environmental perception, behavioral decision-making, path planning, motion control and other technologies. Self-driving technology has broad application prospects. The following is a detailed description of artificial intelligence and computer vision technology:

[0062] Artificial Intelligence (AI) technology is a comprehensive discipline that covers a wide range of fields, including both hardware-level and software-level technologies. The basic technologies of artificial intelligence generally include technologies such as sensors, dedicated artificial intelligence chips, cloud computing, distributed storage, big data processing technology, operation / interaction systems, and mechatronics. Artificial intelligence software technology mainly includes computer vision technology, speech processing technology, natural language processing technology, and machine learning / deep learning. Artificial intelligence is the theory, method, technology and application system that uses digital computers or machines controlled by digital computers to simulate, extend and expand human intelligence, perceive the environment, acquire knowledge and use knowledge to obtain the best results. In other words, artificial intelligence is a comprehensive technology of computer science that attempts to understand the essence of intelligence and produce a new intelligent machine that can respond in a similar way to human intelligence. Artificial intelligence is to study the design principles and implementation methods of various intelligent machines so that machines have the functions of perception, reasoning and decision-making.

[0063] Computer Vision (CV) is a science that studies how to make machines "see". To put it more specifically, it refers to the use of cameras and computers to replace human eyes to identify, track and measure targets, and further perform graphics processing so that the computer processes the images into images that are more suitable for human observation or transmission to instruments for detection. As a scientific discipline, computer vision studies related theories and technologies, and attempts to establish an artificial intelligence system that can obtain information from images or multi-dimensional data. Computer vision technology usually includes image processing, image recognition, image semantic understanding, image retrieval, OCR, video processing, video semantic understanding, video content / behavior recognition, three-dimensional object reconstruction, 3D technology, virtual reality, augmented reality, simultaneous positioning and mapping, and other technologies, as well as common biometric recognition technologies such as face recognition and fingerprint recognition.

[0064] Combine the following Figure 1 The network architecture diagram of the vehicle allocation method provided in the embodiment of the present application is described as follows:

[0065] Figure 1 It includes a server 101, a transmission network 102 and a central control room 103 corresponding to N areas. The server 101 is connected to the central control room 103 via the transmission network 102. The server 101 generates a vehicle flow control plan and sends it to the central control room 103 of each lane in the form of instructions (the command sent to the central control room of each lane is "control the vehicle flow of the lane within a certain range"), and receives feedback signals from the central control room 103 of each lane (each central control room 103 reports the vehicle flow in the lane it is responsible for to the server).

[0066] Specifically, the server 101 stores the maximum number of vehicles carried by each area of ​​N areas (the N areas are, for example, geographical areas, such as roads, lanes or parking lots, etc.), and the server 101 also stores the mandatory quantity difference between one area and another area of ​​the N areas (the mandatory quantity difference between areas refers to the numerical range that the difference between the actual number of objects carried by one area and another area must satisfy, such as the traffic flow of one area must be at least 2 vehicles more than the traffic flow of another area). The server 101 establishes a communication connection with the central control room 103 corresponding to the N areas through the transmission network 102. The server 101 may determine M area pairs, where the M area pairs are a set of area pairs in which there is a difference in the number of mandatory forces in N areas, N is a positive integer greater than or equal to 2, and M is a positive integer greater than or equal to 1; and introduce a first virtual area and a second virtual area, where the maximum mandatory force difference between the first virtual area and each area in the first area set is the maximum number of vehicles contained in each area in the first area set, the first area set is a set of areas other than R areas in the N areas, the maximum mandatory force difference between the second virtual area and each area in the second area set is a first preset value, the second area set is a set of N areas and the first virtual area, R areas are different areas in the M area pairs, and R is a positive integer greater than or equal to 1; then based on each first target area pair and the maximum mandatory force difference of each first target area pair A target path set is determined by a forced quantity difference, each first target area pair is associated with M area pairs, a first area pair set and a second area pair set, the target path set is a set of paths between the second virtual area and each area in the N areas whose weight is less than a second preset value, the first area pair set is an area pair set consisting of the first virtual area and each area in the first area set, and the second virtual area and each area in the second area set are an area pair set, the path set corresponds to each area in the N areas, and the weight is associated with the maximum forced quantity difference; the target quantity of each area in the N areas is determined according to the weight of each path in the target path set and a preset coefficient, and the preset coefficient is associated with the utilization rate corresponding to the N areas; vehicles are allocated to each area in the N areas based on the target quantity of each area in the N areas.It can be seen that in the present application, objects are allocated to each area according to the target number of each area, and the target number is determined according to the weight of each path in the target path set and the preset coefficient. The weight of each path in the target path set is less than the second preset value, and the preset coefficient is associated with the utilization corresponding to the N areas, and the target path set is generated according to the first virtual set, the second virtual set and the area pairs with the maximum forced number difference in the N areas. Compared with the prior art of only selecting the minimum traffic flow in the N areas for allocation, it can ensure that when allocating vehicles to each area, as many vehicles as possible within its accommodation range are allocated to each area, while at the same time ensuring that the utilization between each area is as small as possible.

[0067] The vehicle allocation method of the present application is described below from the perspective of a vehicle allocation device. The vehicle allocation device may be a server or a service unit in the server, without any specific limitation.

[0068] See also Figure 2 , Figure 2 A flow chart of a vehicle allocation method provided in an embodiment of the present application, wherein the vehicle allocation method is applied to a vehicle network, wherein the vehicle network includes a backend server and N areas, wherein the backend server is communicatively connected to a central control room corresponding to the N areas, and the central control room corresponding to the N areas receives an instruction sent by the backend server and performs corresponding operations according to the instruction, including:

[0069] 201. Determine M region pairs.

[0070] In this embodiment, the vehicle allocation device can determine M area pairs, which are a set of area pairs with a mandatory number difference in N areas, where N is a positive integer greater than or equal to 2, and M is a positive integer greater than or equal to 1. That is, the vehicle allocation device marks the N areas to be allocated vehicles as v1, v2, ..., v n At the same time, the maximum traffic flow that each of the N areas can carry can be obtained, which are marked as x1, x2, ..., x n , the vehicle allocation device can determine M area pairs from N areas, marked as There is a mandatory traffic flow difference between each pair of areas (the mandatory traffic flow difference refers to the numerical range that the difference between the actual traffic flow of one area and another area must meet, such as the traffic flow of one area must be at least 2 more than the traffic flow of another area). The maximum value of the mandatory traffic flow difference is recorded as b1, b2, ..., b m (expressed by the maximum value of the difference between the latter and the former traffic volume), that is, Regional pairs The symbols in are introduced arbitrarily, so if the result of the symbol introduction is Then use express The area represented by express The area indicated by -b i Re-view as b i ,get Traffic flow is expressed as the number of vehicles, which is an integer, so if Then b i -1 is considered as b again i , still get For example Well, since the number of vehicles is an integer, it is actually equivalent to

[0071] 202. Determine a first virtual area and a second virtual area.

[0072] In this embodiment, the vehicle allocation device introduces a first virtual area and a second virtual area. The difference between the maximum mandatory number of the first virtual area and each area in the first area set is the maximum number of vehicles contained in each area in the first area set. The first area set is a set of areas other than R areas in N areas. The difference between the maximum mandatory number of the second virtual area and each area in the second area set is a first preset value. The second area set is a set of N areas and the first virtual area. The R areas are different areas in the M area pairs (for example, M=3, which are (A, B), (A, C) and (C, D) area pairs, then the R areas are the four areas of A, B, C and D). The following is a specific description:

[0073] First, the R regions are described:

[0074] Falling into the above M pairs area There are R different areas in the (because one area in the N areas may have a maximum mandatory traffic flow difference with more than one area, and two different area pairs in the M area pairs may contain the same area, which are recorded as Correspondingly, their maximum traffic flows are rewritten as The NR regions except the R regions among the N regions are respectively denoted as Correspondingly, their maximum traffic flows are rewritten as

[0075] Secondly, a first virtual area is introduced and marked as The first virtual area With NR regions The maximum mandatory traffic flow differences are Right now and NR regions (i.e., the first region set) NR pair area And the maximum mandatory traffic flow difference between each pair of areas is Right now Where, j∈{r+1,r+2,...,n}, for example, NR=3, which are three areas A, B, and C respectively. The maximum traffic flow in area A is 3, the maximum traffic flow in area B is 4, and the maximum traffic flow in area C is 5. D represents the traffic flow in the first virtual area. Then the traffic flow in the first virtual area needs to satisfy the following conditions at the same time:

[0076] AD≤3, BD≤4 and CD≤5; thereby, the first virtual area and the conditions that the first virtual area needs to meet can be determined.

[0077] Finally, a second virtual area is introduced and marked as v0. The second virtual area is the same as the N+1 area. Each area in the N+1 areas (the N+1 areas are N areas and the first virtual area, that is, the second area set) constitutes an N+1 pair of areas The second virtual area needs to satisfy that the maximum mandatory traffic flow difference between each pair of areas in the N+1 pairs of areas is a first preset value (for example, the first preset value can be 0, and of course can also be other values, which are not specifically limited).

[0078] It should be noted that, for the sake of simplicity, each pair of regions is uniformly labeled. NR to area N+1 pairs of regions The unified label is , the maximum mandatory traffic flow difference between each pair of areas is

[0079] 203. Determine a target path set based on each first target area pair and a maximum mandatory number difference of each first target area pair.

[0080] In this embodiment, the vehicle allocation device can determine the target path set based on each first target area pair and the maximum forced number difference of each first target area pair, each first target area pair is associated with M area pairs, the first area pair set and the second area pair set (that is, each first target area is an area pair in the M area pairs, the first area pair set and the second area pair set), the target path set is a set of paths between the second virtual area and each area in the N areas whose weight is less than a second preset value, the first area pair set is an area pair set consisting of the first virtual area and each area in the first area set, and the second virtual area and each area in the second area set. The target path set corresponds to N areas, and the weight is associated with the maximum forced number difference.

[0081] In one embodiment, the vehicle allocation device determines the target path set based on each first target area pair and the maximum mandatory number difference of each first target area pair, including:

[0082] Determine a target directed edge of each first target region pair, the target directed edge being a path between endpoints corresponding to two regions of each first target region pair, the two endpoints of the target directed edge being the two regions of each first target region pair, and the weight of the target directed edge being a maximum mandatory number difference of each first target region pair;

[0083] Merging different directed edges with the same endpoints among the directed edges of each first target region pair to obtain a region quantity difference constraint graph;

[0084] The target path set is determined according to the region quantity difference constraint graph.

[0085] In this embodiment, the vehicle allocation device can construct a regional vehicle flow differential constraint diagram (that is, a regional quantity differential constraint diagram. Since the explanation is based on vehicles, the regional vehicle flow differential constraint diagram should be used here for explanation): for each pair of regions in the above-mentioned M region pairs, the first region pair set, and the second region pair set Abstract it into Starting from The directed edge is the end point, and the weight of the directed edge is b i , that is, the weight of a directed edge is the maximum forced traffic flow difference between the starting point and the end point of the directed edge. Figure 3 For instructions, see Figure 3 , Figure 3 A schematic diagram of a directed edge including a starting point and an end point provided in an embodiment of the present application, wherein the area With area The edge 301 between is a directed edge, and the area With area The edge between them is a directed edge with a weight of b i , thus, we can get m+2n-r+1 directed edges containing endpoints.

[0086] Because a region may have a mandatory traffic flow difference with more than one region, two region pairs in the m+2n-r+1 region may contain the same region, that is, the same endpoints. Therefore, the vehicle allocation device can merge the same endpoints in the m+2n-r+1 directed edges to obtain the regional traffic flow difference constraint graph. After obtaining the regional traffic flow difference constraint graph, the target path set can be determined according to the regional traffic flow difference constraint graph.

[0087] Combine the following Figure 4A , Figure 4B as well as Figure 5 To explain:

[0088] See also Figure 4A , Figure 4A A schematic diagram of a directed graph merging endpoint provided in an embodiment of the present application, including directed edges between region v1 and region v2, and directed edges between region v1 and region v n The directed edge of n The region is v0,v1,v2,...,v n ,v n+1 Any area in the area. Figure 4B Another schematic diagram of the merged endpoints provided in the embodiment of the present application, the directed edges between region v1 and region v2, and the directed edges between region v1 and region v n All directed edges of contain region v1, so the endpoints of region v1 can be merged.

[0089] See also Figure 5 , Figure 5 A schematic diagram of a regional vehicle flow differential constraint diagram provided in an embodiment of the present application, Figure 5 In the figure, six regions are taken as examples, namely region v0, region v1, region v2, region v3, region v4 and region v5. The directed edges with the same endpoints in the six regions are merged, such as the directed edge between region v0 and region v1, the directed edge between region v0 and region v2, the directed edge between region v0 and region v3, the directed edge between region v0 and region v4, and the directed edge between region v0 and region v5. The same region v0 is merged, and so on. Figure 5 The regional traffic flow difference constraint diagram is shown.

[0090] In one embodiment, the vehicle allocation device determines the target path set according to the area quantity difference constraint graph, including:

[0091] Determine whether there is a loop with negative weight in the regional quantity difference constraint graph;

[0092] If not, a target path set having a weight less than a second preset value is searched from the second virtual area to each of the N areas based on the area quantity difference constraint graph.

[0093] In this embodiment, after obtaining the regional quantity difference constraint graph (that is, the regional vehicle flow difference constraint graph), the vehicle allocation device can check whether there is a loop with a negative weight in the vehicle flow difference diagram (for example, the reachable matrix of the regional vehicle flow difference constraint graph can be used to find the loop of the graph, that is, find a path that starts from a certain node and eventually returns to the node (such as Figure 5 Area v5 in the loop goes to area v1, then to area v3, and finally returns to area v5 to form a loop), then the weights of each directed edge in the loop are added together (such as the weights of the loop from area v5 to area v1, then to area v3, and finally returns to area v5. The weight refers to the maximum forced traffic flow difference between the two areas of the directed edge. For example, the weight of area v5 and area v1 is 3, the weight of area v1 and area v3 is 2, and the weight of area v3 and area v5 is 4. Then the sum of the weights of the loop is 3+2+4=9), and the weight sum of the loop is obtained. If the sum is a negative number, then the loop is a loop with a negative weight). If there is no loop with a negative weight, then look for nodes starting from node v0 (the second virtual area) to reach v1, v2, ..., v n ,v n+1 Node(v n+1 The weight of the node is less than the second preset value (the second preset value is a predefined value, of course, the smallest weight can also be directly selected, and the specific weight is not limited) of the target path (for example, finding the path from node v0 to node v i ,i∈{1,2,...,n+1}, the weight of which is less than the second preset value, can first find the target path from node v0 to v i ,i∈{1,2,...,n+1}, and then find the weight of each path, that is, the sum of the weights of all directed edges in each path, and select the target path whose weight is less than the second preset value to obtain the target path set.

[0094] It should be noted that, for the convenience of description, the weight of each target path in the target path set is marked as δ(v0,v1),δ(v0,v2),...,δ(v0,v n ),δ(v0,v n+1 ), where δ(v0,v1) represents the weight of the path between node v0 and node v1, and so on. n+1 ) is the node v0 and the node vn+1 The weight of the path between , which refers to the directed edge between two nodes.

[0095] 204. Determine the number of targets in each of the N regions according to the weight of each path in the target path set and a preset coefficient.

[0096] In this embodiment, after obtaining the weight of each path in the target path set, the target quantity of each area in the N areas can be determined according to the weight of each path in the target path set and a preset coefficient, wherein the preset coefficient is associated with the utilization rate corresponding to the N areas.

[0097] It should be noted that the selection of the preset coefficient is associated with the utilization rate corresponding to the N regions. If the utilization rate of the region is expected to be high, the preset coefficient β is selected to be smaller, otherwise, it can be selected to be larger. A mapping relationship can also be maintained, which is a mapping relationship between the utilization rate of the region and the preset coefficient β, such as how much utilization rate should be used for how much preset coefficient β, β is an integer; β can also be selected according to actual conditions, such as the value of β needs to satisfy the following formula: β≤min(δ(v0,v1)-δ(v0,v n+1 )-α,δ(v0,v2)-δ(v0,v n+1 )-α,...,δ(v0,v n )-δ(v0,v n+1 )-α).

[0098] In one embodiment, the vehicle allocation device determines the target quantity of each area in the N areas according to the weight of each path in the target path set and a preset coefficient, including:

[0099] Determine the initial number of each of the N regions based on the weight of each path in the target path set;

[0100] A target number for each of the N areas is determined based on an initial number for each of the N areas and a preset coefficient.

[0101] In this embodiment, after obtaining the target path set, the vehicle allocation device can determine the initial number of each area in the N areas according to the weight of each path in the target path set. For example, the initial number of area v1 (that is, the actual vehicle flow of area v1) is determined as δ(v0,v1)-δ(v0,v n+1 ), that is, the initial number of regions v1 is the weight of the path between regions v0 and v1 minus the weight of the path between regions v0 and v n+1 The weight of the path between them determines the initial number of regions v2 as δ(v0,v2)-δ(v0,v n+1 ), and so on, the area v nThe initial number is determined as δ(v0,v n )-δ(v0,v n+1 ); then determine the target number of each area in the N areas according to the initial number of each area and the preset coefficient.

[0102] In one embodiment, the vehicle allocation device determines the target number of each of the N areas based on the initial number of each of the N areas and a preset coefficient, including:

[0103] Determine whether the initial number of the second target areas is greater than the maximum number of the second target areas, the second target area being any one of the N areas;

[0104] If yes, determining a target difference, the target difference being a difference between the initial number of the second target areas and the maximum number of the second target areas that is greater than a third preset value;

[0105] Adjusting the initial number of the second target area based on the target difference to obtain an adjusted number of each area in the N areas;

[0106] A target quantity for each of the N areas is determined based on the adjusted quantity for each of the N areas and a preset coefficient.

[0107] In this embodiment, the vehicle allocation device can allocate the maximum number of vehicles x1, x2, ..., x that each area can carry according to the N areas. n , to adjust the initial number of each of the N regions. Specifically, determine v1,v2,...,v n (that is, the initial number of each region in N regions), there is a region v i ,i∈{1,2,...,n} satisfies v i >x i (x i is the maximum number of vehicles that the ith area in the N areas can carry, that is, for each of the N areas, it is determined whether there is an area where the initial number of vehicles allocated is greater than the maximum number), then the difference between the initial number and the maximum number of vehicles in each of the N areas is found to be greater than the third preset value, that is, v1-x1,v2-x2,...,v n -x n Find the difference greater than the third preset value, and determine the difference greater than the third preset value as the target difference, marked as α; then adjust the initial number of each area according to the target difference, specifically: adjust the number of vehicles in area v1 to δ(v0,v1)-δ(v0,v n+1 )-α, adjust the number of vehicles in region v2 to δ(v0,v2)-δ(v0,v n+1)-α, and so on, the area v n The number of vehicles in is adjusted to δ(v0,v n )-δ(v0,v n+1 )-α, and obtain the corresponding adjustment quantity of each area in the N areas. (Wherein, the number of vehicles finally contained in the first virtual area and the second virtual area is 0).

[0108] Then, the target number of each area in the N areas is determined based on the adjustment number of each area in the N areas and the preset coefficient. Specifically, the target number of each area in the N areas is calculated by the following formula, and the target number of area v1 is determined as δ(v0,v1)-δ(v0,v n+1 )-α-β, the number of targets in region v2 is determined as δ(v0,v2)-δ(v0,v n+1 )-α-β, and so on, the region v n The target number is determined as δ(v0,v n )-δ(v0,v n+1 )-α-β. So far, the target number of each area in N areas can be obtained.

[0109] 205. Allocate a vehicle to each of the N areas based on the target number of each of the N areas.

[0110] In this embodiment, after obtaining the target number for each of the N areas, the vehicle allocation device can allocate vehicles to each of the N areas based on the target number for each of the N areas. That is, when placing vehicles into each of the N areas, the number of vehicles in the area is always kept as the target number.

[0111] In summary, it can be seen that in the present application, objects are allocated to each area according to the target number of each area, and the target number is determined according to the weight of each path in the target path set and the preset coefficient. The weight of each path in the target path set is less than the second preset value, and the preset coefficient is associated with the utilization corresponding to the N areas, and the target path set is generated according to the first virtual set, the second virtual set and the area pairs with the maximum forced number difference in the N areas. Compared with the prior art in which only the minimum traffic flow is selected from the N areas for allocation, it can be ensured that when allocating vehicles to each area in the Internet of Vehicles, as many vehicles as possible within its accommodation range are allocated to each area, while at the same time ensuring that the utilization between each area is as small as possible.

[0112] Combine the following Figure 1 The application scenario of this application is described, and here N areas are N lanes as an example:

[0113] The server 101 stores the maximum traffic volume that each lane can carry and the traffic volume difference between different lanes. Each lane will have a central control room 103. The server 101 and the central control room 103 transmit data through the transmission network 102. The server 101 generates a traffic volume control plan according to the vehicle allocation method of the present application, and sends it to the central control room 103 of each lane in the form of instructions (the command sent to the central control room of each lane is "control the traffic volume of the lane within a certain range"), and receives the feedback signal of the central control room 103 of each lane (each central control room 103 reports the traffic volume in the lane it is responsible for to the server); the server 101 identifies each lane, introduces the first and second virtual lanes, uniformly identifies each pair of lanes, constructs the traffic volume difference constraint diagram of the lane, preliminarily arranges the traffic volume of each lane, adjusts it to the preliminarily arranged traffic volume of each lane, and controls the traffic volume of each lane. In this way, it can be ensured that when allocating vehicles to each area, as many vehicles as possible within its accommodation range are allocated to each area, while at the same time, the utilization rate between each area can be ensured to be as small as possible.

[0114] The above describes the present application from the perspective of the vehicle allocation method, and the following describes the present application from the perspective of the data processing device and the detection device.

[0115] See also Figure 6 , Figure 6 A virtual structural diagram of a vehicle allocation device provided in an embodiment of the present application, wherein the vehicle allocation device is applied to a vehicle network, wherein the vehicle network includes N areas, the vehicle allocation device is communicatively connected to central control rooms corresponding to the N areas, and the central control rooms corresponding to the N areas receive instructions sent by the vehicle allocation device and perform corresponding operations according to the instructions, including:

[0116] A first determining unit 601 is used to determine M region pairs, where the M region pairs are a set of region pairs with a mandatory quantitative difference among N regions, where N is a positive integer greater than or equal to 2, and M is a positive integer greater than or equal to 1;

[0117] The second determining unit 602 is used to determine a first virtual area and a second virtual area, the difference between the maximum mandatory number of the first virtual area and each area in the first area set is the maximum number of vehicles contained in each area in the first area set, the first area set is a set of areas other than R areas among the N areas, the difference between the maximum mandatory number of the second virtual area and each area in the second area set is a first preset value, the second area set is a set of the N areas and the first virtual area, the R areas are different areas in the M area pairs, and R is a positive integer greater than or equal to 1;

[0118] A third determining unit 603 is configured to determine a target path set based on each first target area pair and a maximum mandatory number difference of each first target area pair, wherein each first target area pair is associated with the M area pairs, the first area pair set, and the second area pair set, the target path set is a set of paths between the second virtual area and each area in the N areas, the weight of which is less than a second preset value, the first area pair set is an area pair set consisting of the first virtual area and each area in the first area set, and the second virtual area and each area in the second area set are an area pair set, the target path set corresponds to the N areas, and the weight is associated with the maximum mandatory number difference;

[0119] A fourth determining unit 604 is configured to determine a target quantity for each of the N regions according to a weight of each path in the target path set and a preset coefficient, wherein the preset coefficient is associated with a utilization rate corresponding to the N regions;

[0120] The allocating unit 605 is configured to allocate vehicles to each of the N areas based on a target number of each of the N areas.

[0121] Optionally, the third determining unit 603 is specifically configured to:

[0122] Determine a target directed edge of each first target area pair, wherein the target directed edge is a path between endpoints corresponding to two areas of each first target area pair, two endpoints of the target directed edge are the two areas of each first target area pair, and the weight of the target directed edge is a maximum forced quantity difference of each first target area pair;

[0123] Merging different directed edges with the same endpoints among the directed edges of each first target region pair to obtain a region quantity difference constraint graph;

[0124] The target path set is determined according to the region quantity difference constraint graph.

[0125] Optionally, the third determining unit 603 determines the target path set according to the region quantity difference constraint graph, including:

[0126] Determine whether there is a loop with a negative weight in the region quantity difference constraint graph;

[0127] If not, searching for the target path set with a weight less than the second preset value from the second virtual area to each of the N areas based on the area quantity difference constraint graph.

[0128] Optionally, the fourth determining unit 604 is specifically configured to:

[0129] Determine an initial number of each of the N areas based on a weight of each path in the target path set;

[0130] A target number for each of the N areas is determined based on the initial number for each of the N areas and the preset coefficient.

[0131] Optionally, the fourth determining unit 604 determines the target number of each of the N areas based on the initial number of each of the N areas and the preset coefficient, including:

[0132] Determining whether the initial number of second target areas is greater than the maximum number of second target areas, the second target area being any one of the N areas;

[0133] If yes, determining a target difference, wherein the target difference is a difference between the initial number of the second target areas and the maximum number of the second target areas that is greater than a third preset value;

[0134] Adjusting the initial number of the second target areas based on the target difference to obtain an adjusted number of each area in the N areas;

[0135] A target quantity for each of the N areas is determined based on the adjusted quantity for each of the N areas and the preset coefficient.

[0136] In summary, it can be seen that in the present application, objects are allocated to each area according to the target number of each area, and the target number is determined according to the weight of each path in the target path set and the preset coefficient. The weight of each path in the target path set is less than the second preset value, and the preset coefficient is associated with the utilization corresponding to the N areas, and the target path set is generated according to the first virtual set, the second virtual set and the area pairs with the maximum forced number difference in the N areas. Compared with the prior art of only selecting the minimum traffic flow in the N areas for allocation, it can be ensured that when allocating vehicles to each area, as many vehicles as possible within its accommodation range are allocated to each area, while at the same time ensuring that the utilization between each area is as small as possible.

[0137] Figure 77 is a schematic diagram of a server structure provided by an embodiment of the present invention. The server 700 may have relatively large differences due to different configurations or performances, and may include one or more central processing units (CPU) 722 (for example, one or more processors) and a memory 732, and one or more storage media 730 (for example, one or more mass storage devices) storing application programs 742 or data 744. Among them, the memory 732 and the storage medium 730 may be temporary storage or permanent storage. The program stored in the storage medium 730 may include one or more modules (not shown in the figure), and each module may include a series of instruction operations in the server. Furthermore, the central processing unit 722 may be configured to communicate with the storage medium 730 to execute a series of instruction operations in the storage medium 730 on the server 700.

[0138] The server 700 may also include one or more power supplies 726, one or more wired or wireless network interfaces 750, one or more input and output interfaces 758, and / or one or more operating systems 741, such as Windows ServerTM, Mac OS XTM, UnixTM, LinuxTM, FreeBSDTM, etc.

[0139] The steps performed by the vehicle allocation device in the above embodiment can be based on the Figure 7 The server structure shown.

[0140] An embodiment of the present application also provides a computer-readable storage medium on which a program is stored, and when the program is executed by a processor, the steps of the above-mentioned vehicle allocation method are implemented.

[0141] An embodiment of the present application further provides a processor, which is used to run a program, wherein the program executes the steps of the above-mentioned vehicle allocation method when running.

[0142] An embodiment of the present application also provides a terminal device, which includes a processor, a memory, and a program stored in the memory and executable on the processor, wherein the program code is loaded and executed by the processor to implement the steps of the above-mentioned vehicle allocation method.

[0143] The present application also provides a computer program product, which, when executed on a data processing device, is suitable for executing the steps of the above-mentioned vehicle allocation method.

[0144] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.

[0145] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and modules described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.

[0146] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented in one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that include computer-usable program code.

[0147] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products of the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0148] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0149] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 A step that specifies a function in one or more boxes.

[0150] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.

[0151] The memory may include non-permanent memory in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. The memory is an example of a computer-readable medium.

[0152] Computer readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device.

[0153] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.

[0154] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that contain computer-usable program code.

[0155] The above are only embodiments of the present application and are not intended to limit the present application. For those skilled in the art, the present application may have various changes and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included within the scope of the claims of the present application.

Claims

1. A vehicle allocation method, applied to a vehicle network, wherein the vehicle network includes a background server and N areas, the background server is connected to a central control room corresponding to the N areas in communication, the central control room corresponding to the N areas receives an instruction sent by the background server and performs a corresponding operation according to the instruction, characterized in that: include: Determine M region pairs, where the M region pairs are a set of region pairs having a mandatory quantitative difference among N regions, where N is a positive integer greater than or equal to 2, and M is a positive integer greater than or equal to 1; Determine a first virtual area and a second virtual area, the difference between the maximum mandatory number of the first virtual area and each area in the first area set is the maximum number of vehicles contained in each area in the first area set, the first area set is a set of areas other than R areas among the N areas, the difference between the maximum mandatory number of the second virtual area and each area in the second area set is a first preset value, the second area set is a set of the N areas and the first virtual area, the R areas are different areas in the M area pairs, and R is a positive integer greater than or equal to 1; Determine a target path set based on each first target area pair and the maximum mandatory number difference of each first target area pair, each first target area pair is associated with the M area pairs, the first area pair set and the second area pair set, the target path set is a set of paths between the second virtual area and each area in the N areas, the weight of which is less than a second preset value, the first area pair set is an area pair set consisting of the first virtual area and each area in the first area set, and the second virtual area and each area in the second area set are an area pair set, the target path set corresponds to the N areas, and the weight is associated with the maximum mandatory number difference; Determining the target quantity of each of the N areas according to the weight of each path in the target path set and a preset coefficient, wherein the preset coefficient is associated with the utilization rate corresponding to the N areas; Vehicles are allocated to each of the N areas based on the target number for each of the N areas.

2. The method according to claim 1, characterized in that: The determining of the target path set based on each first target area pair and the maximum mandatory number difference of each first target area pair comprises: Determine a target directed edge of each first target area pair, wherein the target directed edge is a path between endpoints corresponding to two areas of each first target area pair, two endpoints of the target directed edge are the two areas of each first target area pair, and the weight of the target directed edge is a maximum forced quantity difference of each first target area pair; Merging different directed edges with the same endpoints among the directed edges of each first target region pair to obtain a region quantity difference constraint graph; The target path set is determined according to the region quantity difference constraint graph.

3. The method according to claim 2, characterized in that The step of determining the target path set according to the region quantity difference constraint graph comprises: Determine whether there is a loop with a negative weight in the region quantity difference constraint graph; If not, searching for the target path set with a weight less than the second preset value from the second virtual area to each of the N areas based on the area quantity difference constraint graph.

4. The method according to claim 1, characterized in that: The determining the number of targets in each of the N regions according to the weight of each path in the target path set and a preset coefficient comprises: Determine an initial number of each of the N areas based on a weight of each path in the target path set; A target number for each of the N areas is determined based on the initial number for each of the N areas and the preset coefficient.

5. The method according to claim 4, characterized in that The determining the target number of each of the N areas based on the initial number of each of the N areas and the preset coefficient comprises: Determining whether the initial number of second target areas is greater than the maximum number of second target areas, the second target area being any one of the N areas; If yes, determining a target difference, wherein the target difference is a difference between the initial number of the second target areas and the maximum number of the second target areas that is greater than a third preset value; Adjusting the initial number of the second target areas based on the target difference to obtain an adjusted number of each area in the N areas; A target quantity for each of the N areas is determined based on the adjusted quantity for each of the N areas and the preset coefficient.

6. A vehicle allocation device, applied to a vehicle network, the vehicle network includes N areas, the vehicle allocation device is connected to the central control room corresponding to the N areas in communication, the central control room corresponding to the N areas receives the instruction sent by the vehicle allocation device, and performs corresponding operations according to the instruction, characterized in that: include: A first determining unit is used to determine M region pairs, where the M region pairs are a set of region pairs having a forced quantitative difference among N regions, where N is a positive integer greater than or equal to 2, and M is a positive integer greater than or equal to 1; a second determining unit, configured to determine a first virtual area and a second virtual area, wherein the difference between the maximum mandatory number of the first virtual area and each area in the first area set is the maximum number of vehicles contained in each area in the first area set, the first area set is a set of areas other than R areas among the N areas, the difference between the maximum mandatory number of the second virtual area and each area in the second area set is a first preset value, the second area set is a set of the N areas and the first virtual area, the R areas are different areas in the M area pairs, and R is a positive integer greater than or equal to 1; a third determining unit, configured to determine a target path set based on each first target area pair and a maximum mandatory number difference of each first target area pair, wherein each first target area pair is associated with the M area pairs, the first area pair set, and the second area pair set, the target path set is a set of paths between the second virtual area and each area in the N areas, the weight of which is less than a second preset value, the first area pair set is an area pair set consisting of the first virtual area and each area in the first area set, and the second virtual area and each area in the second area set are an area pair set, the target path set corresponds to the N areas, and the weight is associated with the maximum mandatory number difference; a fourth determining unit, configured to determine a target quantity of each of the N regions according to a weight of each path in the target path set and a preset coefficient, wherein the preset coefficient is associated with a utilization rate corresponding to the N regions; An allocating unit is used to allocate vehicles to each of the N areas based on a target number of each of the N areas.

7. The device according to claim 6, characterized in that The third determining unit is specifically configured to: Determine a target directed edge of each first target area pair, wherein the target directed edge is a path between endpoints corresponding to two areas of each first target area pair, two endpoints of the target directed edge are the two areas of each first target area pair, and the weight of the target directed edge is a maximum forced quantity difference of each first target area pair; Merging different directed edges with the same endpoints among the directed edges of each first target region pair to obtain a region quantity difference constraint graph; The target path set is determined according to the region quantity difference constraint graph.

8. The device according to claim 7, characterized in that The third determining unit determines the target path set according to the region quantity difference constraint graph, including: Determine whether there is a loop with a negative weight in the region quantity difference constraint graph; If not, searching for the target path set with a weight less than the second preset value from the second virtual area to each of the N areas based on the area quantity difference constraint graph.

9. The device according to claim 6, characterized in that The fourth determining unit is specifically configured to: Determine an initial number of each of the N areas based on a weight of each path in the target path set; A target number for each of the N areas is determined based on the initial number for each of the N areas and the preset coefficient.

10. A computer-readable storage medium, characterized in that: The method comprises instructions which, when executed on a computer, cause the computer to execute the steps of the vehicle allocation method according to any one of claims 1 to 5.