Traffic simulation method and device and electronic equipment
By setting simulation models of different resolutions in traffic simulation and switching models at the connecting boundaries, the consistency problem in multi-resolution traffic simulation is solved and the accuracy and credibility of simulation results are improved.
Patent Information
- Application Number
- CN202410593395.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-13
- Publication Date
- 2024-08-23
AI Technical Summary
Existing technology is difficult to achieve high consistency in multi-resolution traffic simulation, especially in maintaining time, space and information consistency between macro, meso and micro simulation models, resulting in insufficient credibility and accuracy of simulation results. .
By setting up simulation models with different resolutions in the target road network, and switching models at the connecting boundaries according to the driving information of the simulated vehicles, ensuring the consistency of the driving information of the simulated vehicles in different resolution models, using the driving route acquisition module, Simulation running module and resolution switching module are used to implement traffic simulation.
It improves the accuracy and consistency of multi-resolution traffic simulations, enhances the credibility of simulation results, and reduces the adjustment time and resource requirements required during the interaction between models.
Smart Images

Figure CN118536274A
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of traffic simulation, and in particular to a traffic simulation method, device and electronic equipment. Background Art
[0002] Traffic simulation is an important method for traffic system analysis and is widely used in daily traffic control, evaluation and optimization, and traffic status simulation and evaluation. In order to cope with the ever-increasing scale of traffic network simulation and the increasing requirements for simulation credibility in practical applications, the single-resolution simulation model in traffic simulation can no longer effectively solve the contradiction between the complexity of traffic simulation and limited resources.
[0003] Therefore, how to combine multi-resolution simulation models to improve the accuracy of multi-resolution traffic simulation has become a technical problem that needs to be solved urgently. Summary of the invention
[0004] The purpose of the embodiments of the present application is to provide a traffic simulation method, device and electronic device to improve the accuracy of multi-resolution traffic simulation. The specific technical solution is as follows:
[0005] In a first aspect, an embodiment of the present application provides a traffic simulation method, the method comprising:
[0006] Acquire driving routes of each simulated vehicle for a target road network; wherein the target road network is composed of at least two types of sub-road networks and there is a position of a connecting boundary between any two types of sub-road networks, different types of sub-road networks are provided with simulation models of different resolutions, and each driving route includes a driving route crossing the connecting boundary;
[0007] Using the starting position of each simulated vehicle's driving route as the loading position, each simulated vehicle is loaded into the simulation model of the sub-road network to which the corresponding starting position belongs, so as to move according to the corresponding driving route and simulation resolution;
[0008] In response to the driving position of any simulated vehicle reaching the connection boundary, the simulated vehicle is switched to be loaded into the designated simulation model using the current driving information of the simulated vehicle as the initial driving information, so as to continue to move based on the initial driving information and in accordance with the corresponding driving route and simulation resolution;
[0009] The designated simulation model is a simulation model of the sub-network entered after crossing the connecting boundary.
[0010] In a second aspect, an embodiment of the present application provides a traffic simulation device, the device comprising:
[0011] A driving route acquisition module is used to acquire the driving routes of each simulated vehicle for a target road network; wherein the target road network is composed of at least two types of sub-road networks and there is a position of a connecting boundary between any two types of sub-road networks, different types of sub-road networks are provided with simulation models of different resolutions, and each driving route includes a driving route crossing the connecting boundary;
[0012] The simulation operation module is used to use the starting position of each simulated vehicle's driving route as a loading position, and load each simulated vehicle into the simulation model of the sub-road network to which the corresponding starting position belongs, so as to move according to the corresponding driving route and simulation resolution;
[0013] A resolution switching module, for responding to the driving position of any simulated vehicle reaching the connection boundary, using the current driving information of the simulated vehicle as the initial driving information, switching the simulated vehicle to be loaded into the designated simulation model, so as to move based on the initial driving information and in accordance with the corresponding driving route and simulation resolution;
[0014] The designated simulation model is a simulation model of the sub-network entered after crossing the connecting boundary.
[0015] In a third aspect, an embodiment of the present application provides an electronic device, including:
[0016] Memory, used to store computer programs;
[0017] The processor is used to implement any of the traffic simulation methods when executing the program stored in the memory.
[0018] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, any of the traffic simulation methods described above is implemented.
[0019] An embodiment of the present application also provides a computer program product comprising instructions, which, when executed on a computer, enables the computer to execute any of the above-mentioned traffic simulation methods.
[0020] Beneficial effects of the embodiments of the present application:
[0021] As can be seen from the above, by applying the solution provided by the embodiment of the present application, the target road network to be simulated is composed of at least two types of sub-road networks and there are positions of connecting boundaries belonging to any two types of sub-road networks, and simulation models of different resolutions are set for sub-road networks of different types. In this way, during the simulation process, the driving routes of each simulated vehicle for the target road network are first obtained, and each driving route includes a driving route that crosses the connecting boundary. Then, based on the starting position of the driving route of each simulated vehicle, each simulated vehicle is loaded into the simulation model of the corresponding sub-road network to move according to the corresponding driving route and simulation resolution, and in response to the driving position of any simulated vehicle reaching the connecting boundary, the current driving information of the simulated vehicle is used as the initial driving information, and the simulated vehicle is switched to be loaded into the specified simulation model to continue to move based on the initial driving information and according to the corresponding driving route and simulation resolution.
[0022] Based on this, the scheme provided by the embodiment of the present application is applied, a multi-resolution simulation model is set for the target road network, and traffic simulation is performed on each simulated vehicle through the simulation model corresponding to the sub-road network to which the driving route belongs. At the same time, for any simulated vehicle whose driving route needs to cross a connecting boundary, based on the driving information of the simulated vehicle when it drives to the connecting boundary, the simulated vehicle is switched and loaded into the simulation model of the sub-road network entered after crossing the connecting boundary to continue moving. In this way, by ensuring the consistency of the driving information of the same simulated vehicle in simulation models of different resolutions, the simulation consistency when the same simulated vehicle is simulated using simulation models of different resolutions is improved, and further, the accuracy of multi-resolution traffic simulation can be improved through this scheme. BRIEF DESCRIPTION OF THE DRAWINGS
[0023] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application, and for ordinary technicians in this field, other embodiments can also be obtained based on these drawings.
[0024] Figure 1 A schematic diagram of a flow chart of a first traffic simulation method provided in an embodiment of the present application;
[0025] Figure 2 A schematic diagram of a first target road network provided in an embodiment of the present application;
[0026] Figure 3 A schematic diagram of a second target road network provided in an embodiment of the present application;
[0027] Figure 4 A schematic diagram of a third target road network provided in an embodiment of the present application;
[0028] Figure 5 A flow chart of a second traffic simulation method provided in an embodiment of the present application;
[0029] Figure 6 A schematic diagram of a flow chart of a third traffic simulation method provided in an embodiment of the present application;
[0030] Figure 7 A schematic diagram of a fourth traffic simulation method provided in an embodiment of the present application;
[0031] Figure 8 A schematic diagram of a buffer transition section provided in an embodiment of the present application;
[0032] Fig. 9 A schematic diagram of a fifth traffic simulation method provided in an embodiment of the present application;
[0033] Fig.10 A flowchart of a specific embodiment provided for the present application;
[0034] Fig.11 for Fig.10 A flowchart of a specific implementation method;
[0035] Fig.12 A diagram of a specific embodiment provided for the embodiment of the present application;
[0036] Fig.13 A diagram of another specific embodiment provided for the embodiment of the present application;
[0037] Fig.14 A schematic diagram of the structure of a traffic simulation device provided in an embodiment of the present application;
[0038] Fig.15 A block diagram of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0039] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field based on the present application belong to the scope of protection of the present application.
[0040] In order to facilitate understanding of the solution, the following first introduces the professional terms involved in this application:
[0041] Traffic simulation: Based on the traffic demand data collected in reality, the traffic flow operation in the actual road network is simulated through traffic flow theory and models.
[0042] In the simulation method based on multi-resolution simulation model provided by the related art, the simulation models with different resolutions are used to perform traffic simulation on the same road network. In this way, the related art will have the following problems:
[0043] It is difficult to achieve a high level of consistency based on coarse-grained constraint rules such as macro traffic flow distribution or traffic flow indicator statistics, which affects the overall credibility of multi-resolution simulation. Moreover, the consistency of time, space, and information between simulation models only ensures the consistency of results, ignoring or weakening the consistency requirements in the simulation step process. The adjustment process takes a long time to achieve consistency by adjusting the settings or inputs of each model multiple times, and there is no interaction between simulation models, and the relationship is not close enough. Therefore, the simulation method based on multi-resolution models in related technologies cannot meet the accuracy requirements of traffic simulation.
[0044] It can be seen that how to combine multi-resolution simulation models and improve the accuracy of multi-resolution traffic simulation has become a technical problem that needs to be solved urgently.
[0045] In order to solve the above technical problems, the embodiments of the present application provide a traffic simulation method, device and electronic device.
[0046] The traffic simulation method can be applied to various electronic devices such as laptop computers and desktop computers, hereinafter referred to as electronic devices. Moreover, the traffic simulation method can be specifically executed by traffic simulation software running on the electronic device, and the traffic simulation software can also be called a simulation system in specific applications.
[0047] In addition, the traffic simulation method is applicable to various application scenarios of traffic simulation on road networks. For example, traffic state deduction and evaluation at intersections; for example, traffic control on trunk roads, etc. The embodiment of the present application does not specifically limit the application scenarios of the traffic simulation method.
[0048] A traffic simulation method provided in an embodiment of the present application may include the following steps:
[0049] Acquire driving routes of each simulated vehicle for a target road network; wherein the target road network is composed of at least two types of sub-road networks and there is a position of a connecting boundary between any two types of sub-road networks, different types of sub-road networks are provided with simulation models of different resolutions, and each driving route includes a driving route crossing the connecting boundary;
[0050] Using the starting position of each simulated vehicle's driving route as the loading position, each simulated vehicle is loaded into the simulation model of the sub-road network to which the corresponding starting position belongs, so as to move according to the corresponding driving route and simulation resolution;
[0051] In response to the driving position of any simulated vehicle reaching the connection boundary, the simulated vehicle is switched to be loaded into the designated simulation model using the current driving information of the simulated vehicle as the initial driving information, so as to continue to move based on the initial driving information and in accordance with the corresponding driving route and simulation resolution;
[0052] The designated simulation model is a simulation model of the sub-network entered after crossing the connecting boundary.
[0053] As can be seen from the above, by applying the solution provided by the embodiment of the present application, the target road network to be simulated is composed of at least two types of sub-road networks and there are positions of connecting boundaries belonging to any two types of sub-road networks, and simulation models of different resolutions are set for sub-road networks of different types. In this way, during the simulation process, the driving routes of each simulated vehicle for the target road network are first obtained, and each driving route includes a driving route that crosses the connecting boundary. Then, based on the starting position of the driving route of each simulated vehicle, each simulated vehicle is loaded into the simulation model of the corresponding sub-road network to move according to the corresponding driving route and simulation resolution, and in response to the driving position of any simulated vehicle reaching the connecting boundary, the current driving information of the simulated vehicle is used as the initial driving information, and the simulated vehicle is switched to be loaded into the specified simulation model to continue to move based on the initial driving information and according to the corresponding driving route and simulation resolution.
[0054] Based on this, the scheme provided by the embodiment of the present application is applied, a multi-resolution simulation model is set for the target road network, and traffic simulation is performed on each simulated vehicle through the simulation model corresponding to the sub-road network to which the driving route belongs. At the same time, for any simulated vehicle whose driving route needs to cross a connecting boundary, based on the driving information of the simulated vehicle when it drives to the connecting boundary, the simulated vehicle is switched and loaded into the simulation model of the sub-road network entered after crossing the connecting boundary to continue moving. In this way, by ensuring the consistency of the driving information of the same simulated vehicle in simulation models of different resolutions, the simulation consistency when the same simulated vehicle is simulated using simulation models of different resolutions is improved, and further, the accuracy of multi-resolution traffic simulation can be improved through this scheme.
[0055] A traffic simulation method provided in an embodiment of the present application is exemplarily introduced below in conjunction with the accompanying drawings.
[0056] like Figure 1 As shown, a traffic simulation method provided in an embodiment of the present application may include the following steps S101-S103:
[0057] S101: Obtaining the driving route of each simulated vehicle for the target road network.
[0058] The target road network is composed of at least two types of sub-road networks and there are positions of connecting boundaries between any two types of sub-road networks. Different types of sub-road networks are provided with simulation models of different resolutions, and each driving route includes a driving route that crosses the connecting boundary.
[0059] Traffic simulation is an important method for traffic system analysis and is widely used in daily traffic control, evaluation and optimization, and traffic status simulation and evaluation. From the perspective of description granularity, traffic simulation can be divided into three different resolution levels: macroscopic simulation, mesoscopic simulation, and microscopic simulation. Traffic simulation at different resolution levels can be implemented using simulation models of corresponding resolutions. The above resolution refers to the maximum level of detail that the simulation model can describe, which can also be called granularity.
[0060] In order to cope with the ever-increasing scale of traffic network simulation and the increasing requirements for simulation credibility in practical applications, the simulation model with a single resolution in traffic simulation can no longer effectively solve the contradiction between the complexity of traffic simulation and the limited resources. Among them, the simulation models used in the three different resolution levels of macroscopic simulation, mesoscopic simulation and microscopic simulation can be respectively called macroscopic simulation model, mesoscopic simulation model and microscopic simulation model. The so-called macroscopic simulation model can analyze and reproduce the macroscopic characteristics of traffic flow and is suitable for static analysis of a large range of road networks. However, the flexibility and description ability of the macroscopic simulation model are relatively limited. The mesoscopic simulation model can only approximately describe the behaviors of simulated vehicles such as lane changes and is suitable for dynamic analysis of large and medium-sized road networks. However, the simulation accuracy of the mesoscopic simulation model for key nodes in the road network, such as main road sections and / or road intersection sections, is insufficient. The simulated vehicles in the mesoscopic simulation model will travel in the form of a convoy consisting of multiple vehicles based on traffic flow laws such as flow density relationships. The so-called micro-simulation model can describe the driving information of each simulated vehicle in detail. However, the computing speed of the micro-simulation model and the memory requirements of the electronic device will increase with the increase of the number of simulated vehicles, and it is not suitable for traffic simulation of a large road network. The simulated vehicles in the micro-simulation model will drive as individual vehicles based on driving behavior models such as following and switching.
[0061] Therefore, in order to effectively resolve the contradiction between the complexity of traffic simulation and the limited resources, the embodiment of the present application provides a traffic simulation method that can perform multi-resolution simulation; wherein, the so-called multi-resolution simulation refers to establishing a single or a group of models that are seamlessly connected between the layers from multiple different resolution levels for the same scene to be simulated. In addition, when simulating the same entity using multiple simulation models with different resolutions, the consistency maintenance for the same entity is considered, and the description and expression of the same entity can be kept consistent to improve the correctness of the multi-resolution simulation.
[0062] In the present application, in order to combine multiple simulation models with different resolutions for traffic simulation, the target road network to be simulated can be composed of at least two types of sub-road networks, and simulation models with different resolutions are set for different types of sub-road networks; and the boundary between any two types of sub-road networks is used as the connecting boundary of the two types of sub-road networks. It can be understood that since the connecting boundary is the boundary between any two types of sub-road networks, and different types of sub-road networks are set with simulation models of different resolutions, the connecting boundary can also be called a resolution boundary. In addition, in the present application, a simulation model of a resolution uniquely corresponds to a type of sub-road network, that is, the sub-road networks corresponding to the simulation model of the same resolution can be called the same type of sub-road network; and in the target road network, each type of sub-road network can contain one or more, and the specific implementation method of setting a simulation model of a resolution for any type of sub-road network can be the setting method of a simulation model of any resolution existing in the relevant technology, and the present application does not impose any limitation on the setting or construction of the simulation model.
[0063] Optionally, the simulation models of various sub-road networks adopt the same simulation road network representation form, and all use lanes as the minimum modeling unit. Among them, the above simulation road network representation form can be a node plus road section form, which is not specifically limited in the embodiments of the present application.
[0064] When performing traffic simulation, the electronic device can obtain the driving routes of each simulated vehicle for the above-mentioned target road network, so as to perform subsequent simulation processes based on the simulation routes of each simulated vehicle. In order to realize multi-resolution traffic simulation for the target road network, each driving route can include a driving route that crosses the above-mentioned connecting boundary, so that each simulated vehicle can have vehicles that travel to different types of sub-road networks, so that vehicles that travel to different types of sub-road networks can move with different resolutions, that is, vehicles that travel to different types of sub-road networks can move according to different simulation resolutions. It can be understood that the driving route of each simulated vehicle can be a driving route that crosses the above-mentioned connecting boundary. At this time, all simulated vehicles can cross the connecting boundary during driving to move through different simulation models of different sub-road networks; or, the driving route of each simulated vehicle includes both a driving route that crosses the above-mentioned connecting boundary and a driving route belonging to the same type of sub-road network. At this time, some vehicles can cross the connecting boundary to move through simulation models of different sub-road networks, and the other part of the vehicles only move in one simulation model.
[0065] Optionally, the driving route is generated in the target road network through a preset traffic distribution model based on pre-acquired basic traffic data. The preset traffic distribution model may be a user equilibrium model, and the basic traffic data may be obtained through a pre-traffic survey or generated by a coil detector of the vehicle. The present application does not impose any limitation on the generation of driving routes for each simulated vehicle for the target road network.
[0066] In addition, optionally, when setting simulation models with different resolutions for different types of sub-road networks, simulation models with different resolutions can be set according to the simulation importance of each type of sub-road network in the target road network.
[0067] Based on this, in one implementation, different types of sub-networks have different simulation importance in the target network; the resolution of the simulation model set for a sub-network with a high importance is higher than the resolution of the simulation model set for a sub-network with a low importance. Exemplarily, at least two types of sub-networks are a first type of sub-network and a second type of sub-network, and the importance of the first type of sub-network is higher than that of the second type of sub-network. Then, the simulation model of the first type of sub-network can be a microscopic simulation model, and the simulation model of the second type of sub-network can be a mesoscopic simulation model.
[0068] In this embodiment, different types of sub-road networks have different simulation importance in the target road network. The resolution of the simulation model set for the sub-road network with high importance is higher than the resolution of the simulation model set for the sub-road network with low importance, thereby improving the focus of simulation on key areas during the simulation process.
[0069] For example, a road intersection is an important node where traffic flows converge and exit in the traffic system. Therefore, a higher-resolution simulation model can be set for the sub-network with the road intersection, and the simulation of this sub-network can be focused. Correspondingly, a lower-resolution simulation model can be set for the sub-network that has a boundary connecting the two sub-networks.
[0070] For example, Figure 2 As shown, it is a schematic diagram of the first target road network provided in an embodiment of the present application.
[0071] Among them, road network 201 is a first-type sub-road network, road network 202 is a second-type sub-road network, line segments Z1Z2, line segments Z3Z4, line segments Z5Z6, line segments Z7Z8, line segments Z9Z10 and line segments Z11Z12 are the connecting boundaries of the first-type sub-road network and the second-type sub-road network, and road network 202 surrounds road network 201; if the importance of road network 201 is higher than that of road network 202, then the simulation resolution of the simulation model corresponding to road network 201 is higher than the simulation resolution of road network 202.
[0072] For example, Figure 3 As shown, it is a schematic diagram of the second target road network provided in an embodiment of the present application.
[0073] Among them, road network 301 is a first-type sub-road network, road network 302 is a second-type sub-road network, line segments O1O2, line segments O3O4, line segments O5O6 and line segments O7O8 are the connecting boundaries of the first-type sub-road network 301 and the second-type sub-road network 302, and road network 301 is adjacent to road network 302; if the importance of road network 301 is higher than that of road network 302, then the simulation resolution of the simulation model corresponding to road network 301 is higher than the simulation resolution of road network 302.
[0074] For example, Figure 4 , which is a schematic diagram of the third target road network provided in an embodiment of the present application.
[0075] Among them, road network 401 is a second-category sub-road network, road network 402 is a first-category sub-road network, road network 403 is a second-category sub-road network, line segments M1M2, M3M4, M5M6 and M7M8 are the boundaries between the second-category sub-road network and the first-category sub-road network; line segments J1J2, J3J4, J5J6 and J7J8 are the boundaries between the first-category sub-road network and the second-category sub-road network; if the importance of road network 402 is higher than that of road network 401 and road network 403, then the simulation resolution of the simulation model corresponding to road network 402 is higher than the simulation resolution of the simulation models corresponding to road network 401 and road network 403, and road network 401 and road network 403 correspond to simulation models with the same simulation resolution.
[0076] It should be noted that the above Figure 2-Figure 4 What is described is only an example and does not represent the sub-network determination standard in the target network during the actual implementation process of the embodiment of the present application.
[0077] In addition, for different types of sub-networks, the division methods of each type of sub-network can be various. The specific implementation method of determining at least two types of sub-networks is detailed in step G1 and step G2 below, and will not be repeated here.
[0078] S102: Using the starting position of each simulated vehicle's driving route as a loading position, each simulated vehicle is loaded into a simulation model of a sub-road network to which the corresponding starting position belongs, so as to move according to the corresponding driving route and simulation resolution.
[0079] In the present application, since the target road network includes at least two types of sub-road networks, and different types of sub-road networks are provided with simulation models of different resolutions, the simulation model to which the simulated vehicle needs to be loaded can be determined according to the sub-road network to which the starting position of the simulated vehicle belongs to complete the initial loading.
[0080] After obtaining the driving routes of each simulated vehicle for the target road network, the electronic device can determine the starting position of each simulated vehicle's driving route as the loading position, thereby determining the simulation model to be loaded into each simulated vehicle based on the sub-road network to which the determined starting position belongs. Thus, each simulated vehicle is loaded into the simulation model of the sub-road network to which the corresponding starting position belongs, so that the simulation model of the sub-road network to which the corresponding starting position belongs controls the loaded simulated vehicle to move according to the corresponding driving route and the simulation resolution corresponding to the simulation model.
[0081] For example, the target road network includes at least two types of sub-road networks, namely sub-road network 1 and sub-road network 2, wherein the simulation model of sub-road network 1 is simulation model a, and the simulation model of sub-road network 2 is simulation model b; the starting position Q1 of the driving route of the simulated vehicle Q is located in sub-road network 1, that is, the sub-road network to which the starting position Q1 belongs is sub-road network 1, therefore, it can be determined that the simulation model that the simulated vehicle Q needs to be loaded into is simulation model a of sub-road network 1.
[0082] Optionally, in one implementation, the starting position of each simulated vehicle's driving route is used as the loading position, and each simulated vehicle is loaded into the simulation model of the sub-road network to which the corresponding starting position belongs, so as to move according to the corresponding driving route and simulation resolution, including the following step A:
[0083] Step A: for each simulated vehicle, determine the designated departure time of the simulated vehicle; in response to reaching the simulation time corresponding to the designated departure time of the simulated vehicle, use the starting position of the driving route of the simulated vehicle as the loading position, and load the simulated vehicle into the simulation model of the sub-road network to which the corresponding starting position belongs, so as to move according to the corresponding driving route and simulation resolution.
[0084] In this implementation, after the electronic device obtains the driving route of each simulated vehicle with respect to the target road network, it can determine the designated departure time of the simulated vehicle for each simulated vehicle. Thus, in response to reaching the simulation time corresponding to the designated departure time of the simulated vehicle, the starting position of the driving route of the simulated vehicle is used as the loading position, and the simulated vehicle is loaded into the simulation model of the sub-road network to which the corresponding starting position belongs, so that the simulation model of the sub-road network to which the corresponding starting position belongs controls the loaded simulated vehicle to move according to the corresponding driving route and the simulation resolution corresponding to the simulation model.
[0085] The designated departure times of the various simulated vehicles may be the same or different, which is not specifically limited in the present embodiment.
[0086] For example, the designated departure time of simulated vehicle 1 is 10:25:55, and the designated departure time of simulated vehicle 2 is 15:23:57. When the simulation time of the model reaches the simulation time corresponding to 10:25:55, the starting position of the driving route of simulated vehicle 1 is used as the loading position, and the simulated vehicle 1 is loaded into the simulation model of the sub-road network to which the corresponding starting position belongs, so as to move according to the corresponding driving route and the simulation resolution corresponding to the simulation model; correspondingly, when the simulation time of the model reaches the simulation time corresponding to 15:23:57, the starting position of the driving route of simulated vehicle 2 is used as the loading position, and the simulated vehicle 2 is loaded into the simulation model of the sub-road network to which the corresponding starting position belongs, so as to move according to the corresponding driving route and the simulation resolution corresponding to the simulation model.
[0087] Optionally, the designated departure time is determined for each simulated vehicle through a preset traffic distribution model based on the pre-acquired basic traffic data.
[0088] S103: In response to the driving position of any simulated vehicle reaching a connection boundary, the current driving information of the simulated vehicle is used as initial driving information, and the simulated vehicle is switched and loaded into a designated simulation model to continue moving based on the initial driving information and in accordance with the corresponding driving route and simulation resolution.
[0089] The designated simulation model is the simulation model of the sub-network entered after crossing the adjacent boundary.
[0090] In the present application, the electronic device can monitor the driving process of each simulated vehicle, and in response to the driving position of any simulated vehicle reaching a connection boundary, considering that after crossing the boundary, it will enter other types of sub-road networks and continue to move according to the subsequent driving route, and other types of sub-road networks are provided with other simulation models, therefore, the current driving information of the simulated vehicle can be used as the initial driving information, and the simulated vehicle can be switched to be loaded into the above-mentioned specified simulation model, so that the above-mentioned specified simulation model loads the simulated vehicle based on the above-mentioned initial driving information, and according to the corresponding driving route and simulation resolution, the simulated vehicle continues to move. It can be understood that the so-called switching the simulated vehicle to be loaded into the above-mentioned specified simulation model specifically refers to removing the simulated vehicle from the simulation model to which it currently belongs, and then loading it into the specified simulation model, and the simulated vehicle can retain the current driving information when loaded into the specified simulation model.
[0091] For example, the driving information may include driving speed, acceleration, vehicle type, vehicle length, vehicle performance, and other information used to describe the vehicle. This embodiment of the present application does not make any specific limitation on this.
[0092] It should be emphasized that, in this embodiment, in order to ensure the consistency of driving information of the same vehicle in simulation models with different resolutions, when loading the above-mentioned simulated vehicle in the above-mentioned specified simulation model, the current driving information of the above-mentioned simulated vehicle when reaching the above-mentioned connection boundary can be used as the initial driving information, and the above-mentioned simulated vehicle is loaded based on the above-mentioned initial driving information, thereby improving the simulation consistency of the simulated vehicle in simulation models with different resolutions, so as to improve the tightness and accuracy when combining multi-resolution simulation models for traffic simulation. In other words, when there are multiple simulation models with different resolutions, the electronic device needs to maintain the consistency of the description and expression of the same vehicle between simulation models with different resolutions, that is, to achieve consistency maintenance for the same vehicle, thereby improving the correctness of multi-resolution traffic simulation.
[0093] For example, when the driving position of the simulated vehicle W reaches the connection boundary, the electronic device can obtain the current driving information W1 of the simulated vehicle W; in this way, based on the above driving information W1, the simulated vehicle W can be loaded into the specified simulation model corresponding to its subsequent driving route, and the simulated vehicle W can be controlled to continue moving according to the corresponding driving route and simulation resolution.
[0094] Optionally, in one implementation, at least two types of sub-road networks are first-type sub-road networks and second-type sub-road networks, the simulation model of the first-type sub-road network is a microscopic simulation model, and the simulation model of the second-type sub-road network is a mesoscopic simulation model; in this way, through the simulation of these two types of simulation models with higher resolutions, for the same simulated vehicle, more fine-grained driving information consistency maintenance can be achieved, thereby improving the accuracy of multi-resolution traffic simulation.
[0095] As can be seen from the above, by applying the solution provided by the embodiment of the present application, the target road network to be simulated is composed of at least two types of sub-road networks and there are positions of connecting boundaries belonging to any two types of sub-road networks, and simulation models of different resolutions are set for sub-road networks of different types. In this way, during the simulation process, the driving routes of each simulated vehicle for the target road network are first obtained, and each driving route includes a driving route that crosses the connecting boundary. Then, based on the starting position of the driving route of each simulated vehicle, each simulated vehicle is loaded into the simulation model of the corresponding sub-road network to move according to the corresponding driving route and simulation resolution, and in response to the driving position of any simulated vehicle reaching the connecting boundary, the current driving information of the simulated vehicle is used as the initial driving information, and the simulated vehicle is switched to be loaded into the specified simulation model to continue to move based on the initial driving information and according to the corresponding driving route and simulation resolution.
[0096] Based on this, the scheme provided by the embodiment of the present application is applied, a multi-resolution simulation model is set for the target road network, and traffic simulation is performed on each simulated vehicle through the simulation model corresponding to the sub-road network to which the driving route belongs. At the same time, for any simulated vehicle whose driving route needs to cross a connecting boundary, based on the driving information of the simulated vehicle when it drives to the connecting boundary, the simulated vehicle is switched and loaded into the simulation model of the sub-road network entered after crossing the connecting boundary to continue moving. In this way, by ensuring the consistency of the driving information of the same simulated vehicle in simulation models of different resolutions, the simulation consistency when the same simulated vehicle is simulated using simulation models of different resolutions is improved, and further, the accuracy of multi-resolution traffic simulation can be improved through this scheme.
[0097] Traffic simulation refers to the simulation of traffic flow in the actual road network based on traffic data collected in reality, through traffic flow theory and simulation models. Vehicles will encounter a variety of traffic conditions during actual driving, the most common of which is traffic jam. Therefore, when conducting traffic simulation, it is necessary to consider whether there are vehicles queuing in the lane that the vehicle is about to enter, such as traffic jams.
[0098] Based on this, optionally, in another embodiment of the application, as Figure 5 As shown, a traffic simulation method provided in an embodiment of the present application may include the following steps:
[0099] S501: Obtaining the driving routes of each simulated vehicle for the target road network;
[0100] S502: using the starting position of each simulated vehicle's driving route as a loading position, loading each simulated vehicle into a simulation model of a sub-road network to which the corresponding starting position belongs, so as to move according to the corresponding driving route and simulation resolution;
[0101] S503: In response to the driving position of any simulated vehicle reaching the connecting boundary, identifying whether there is a queue and overflow in the designated road section, if it is identified that there is a queue and overflow, triggering the execution of S504, otherwise, triggering the execution of S505; wherein the designated road section is the road section to be entered when the simulated vehicle crosses the connecting boundary;
[0102] S504: Indicate the simulation model in which the simulated vehicle is currently located to control the simulated vehicle to wait, and return to execute the step of identifying whether there is a queue and overflow in the designated road section.
[0103] S505: Using the current driving information of the simulated vehicle as the initial driving information, the simulated vehicle is switched and loaded into a designated simulation model to continue moving based on the initial driving information and in accordance with a corresponding driving route and simulation resolution.
[0104] The designated simulation model is the simulation model of the sub-network entered after crossing the adjacent boundary.
[0105] In this embodiment, steps S501-S502 are the same as S101-S102 in the above embodiment, and step S505 is the same as S103 in the above embodiment, which will not be described in detail here.
[0106] In this embodiment, taking into account that the designated road section to be entered by the simulated vehicle when crossing the above-mentioned connection boundary may have overflow of vehicles, the electronic device can identify whether there is a queue and overflow in the above-mentioned designated road section when the driving position of any simulated vehicle reaches the above-mentioned connection boundary, that is, determine whether there is a queue of vehicles in the above-mentioned designated road section, and if there is a queue of vehicles, whether the vehicles waiting in line in the above-mentioned designated road section are located outside the above-mentioned connection boundary.
[0107] If a queue and overflow are identified, it indicates that the last vehicle waiting in the queue in the designated road section of the simulated vehicle is not within the above-mentioned boundary, and a traffic accident will occur if the simulated vehicle continues to drive. At this time, the electronic device can instruct the simulated vehicle to wait in the current simulation model, and return to identify whether there is a queue and overflow in the designated road section, until there is no queue in the designated road section, or there is a queue but no overflow.
[0108] If no queue is identified, or if a queue is identified but there is no overflow, it indicates that the simulated vehicle can continue to travel until it crosses the above-mentioned connecting boundary. At this time, the electronic device can execute the step of switching the simulated vehicle to be loaded into the specified simulation model using the current driving information of the simulated vehicle as the initial driving information.
[0109] Optionally, in one implementation, the step S503 of identifying whether there is a queue and overflow in the designated road section may include the following steps B1-B2:
[0110] Step B1: obtaining queue length information of a lane level for a specified road section of a specified simulation model;
[0111] Step B2: Based on the queue length information and the section length of the designated section, analyzing whether there is a queue and overflow in the designated section.
[0112] In this embodiment, when the driving position of any simulated vehicle reaches the above-mentioned connection boundary, the electronic device can obtain the lane-level queue length information of the above-mentioned designated simulation model for the above-mentioned designated road section. In this way, based on the obtained queue length information and the section length of the above-mentioned designated road section, it is analyzed whether there is a queue and overflow in the above-mentioned designated road section. It can be understood that during the simulation process, the designated simulation model can generate and record the lane-level information of each road section of the corresponding sub-road network, and the lane-level information includes but is not limited to the queue information.
[0113] Optionally, the queue length information may represent the queue length of the designated section. Therefore, by comparing the queue length with the section length, it may be determined whether there is a queue and overflow in the designated section.
[0114] If the queue length is greater than the road section length, it indicates that there is a queue and overflow in the designated section; if the queue length is less than the road section length, it indicates that there is a queue but no overflow in the designated section, or there is no queue.
[0115] For example, the length of the specified road section W is 50 meters. The lane-level queue length information of the above-mentioned specified simulation model for the above-mentioned specified road section W indicates that the queue length in the above-mentioned specified road section is 53 meters, 53>50, and the queue length is greater than the road section length. At this time, it indicates that there is a queue and overflow in the above-mentioned specified road section W, and the simulated vehicle cannot continue to drive and needs to wait in line.
[0116] Optionally, in another implementation, it is determined whether the last vehicle in the queue located in the above-mentioned designated road section is outside the above-mentioned connection boundary, that is, whether the last vehicle has not crossed the above-mentioned connection boundary. If so, it is determined that there is a queue and overflow in the designated road section.
[0117] In this embodiment, during the traffic simulation, the phenomenon of traffic jams in the actual scene is additionally taken into consideration. For the simulated vehicle to cross the boundary, the current simulation model is instructed to control the simulated vehicle, that is, wait until the traffic jam is eliminated, and then switch the simulated vehicle to the designated simulation model. Therefore, through the method provided by this embodiment, traffic simulation can be further combined with reality, thereby further improving the accuracy of multi-resolution traffic simulation.
[0118] Optionally, based on the traffic simulation method provided in any of the above embodiments, Figure 6 As shown, a traffic simulation method provided in an embodiment of the present application further includes the following steps:
[0119] S601: In response to a driving position of any simulated vehicle reaching a predetermined transition position, and the corresponding driving route represents a boundary to be crossed, predicting a target speed required for the simulated vehicle to cross the boundary to enter another type of sub-road network, which speed matches the traffic conditions of the other type of sub-road network;
[0120] Wherein, the predetermined transition position is located before the adjacent boundary, and the distance between the predetermined transition position and the adjacent boundary does not exceed a predetermined buffer distance threshold;
[0121] S602: Based on the target speed, controlling the simulation model in which the simulated vehicle is currently located to perform speed adjustment processing on the simulated vehicle;
[0122] The speed adjustment process is used to make the speed of the simulated vehicle reach the target speed when it reaches the connection boundary.
[0123] In this embodiment, during the actual driving process of the vehicle, the driver will adjust the driving speed according to the actual road conditions to enter the next road section. For example, when the traffic flow density of the next road section to be entered is relatively small, the number of vehicles per unit length of the road representing the next road section is relatively small, and at this time, the driver can speed up to enter the next road section; when the traffic flow density of the next road section to be entered is relatively large, the number of vehicles per unit length of the road representing the next road section is relatively large, and at this time, the driver can slow down to enter the next road section.
[0124] Therefore, during the traffic simulation, a predetermined transition position may be set before the above-mentioned connecting boundary and at a position where the distance from the above-mentioned connecting boundary does not exceed the predetermined buffer threshold. In this way, in response to the driving position of any simulated vehicle reaching the above-mentioned preset transition position, the electronic device may first determine whether the corresponding driving route of the simulated vehicle indicates that the simulated vehicle is about to cross the above-mentioned connecting boundary, and perform different processing according to different results:
[0125] If so, it indicates that the simulated vehicle will continue to travel until it crosses the above-mentioned connection boundary. At this time, the electronic device can predict the target speed required for the simulated vehicle to cross the above-mentioned connection boundary to enter another type of sub-road network, which matches the traffic state of the other type of sub-road network. Therefore, based on the above-mentioned target speed, the simulation model in which the simulated vehicle is currently located is controlled to adjust the speed of the simulated vehicle, so that the speed of the simulated vehicle when reaching the above-mentioned connection boundary is the above-mentioned target speed.
[0126] If not, it indicates that the simulated vehicle will not cross the above-mentioned connection boundary if it continues to travel. For example, it turns around before reaching the above-mentioned connection boundary, or stops traveling before reaching the above-mentioned connection boundary. At this time, the simulated vehicle can continue to travel at the current speed.
[0127] In this embodiment, during the traffic simulation process, the phenomenon that the driver in the actual scene will adjust the driving speed to enter the next road section according to the actual road conditions is additionally taken into consideration. When the simulated vehicle reaches the predetermined transition position and the simulated vehicle continues to travel across the connecting boundary, the current simulation model can be instructed to adjust the speed of the simulated vehicle so that the speed of the simulated vehicle when reaching the connecting boundary is: the target speed predicted to be required for the simulated vehicle to cross the connecting boundary to enter another type of sub-road network and to match the traffic conditions of the other type of sub-road network. Therefore, through the method provided in this embodiment, traffic simulation can be further combined with reality, thereby further improving the accuracy of multi-resolution traffic simulation.
[0128] The target speed mentioned above does not exceed the maximum driving speed allowed by the current lane level.
[0129] Optionally, the above-mentioned predetermined buffer threshold may be a fixed value, or a corresponding predetermined buffer threshold may be set for simulated vehicles with different vehicle performances. This embodiment of the present application does not make any specific limitation on this.
[0130] For example, the acceleration of a sports car is much higher than that of an ordinary car, and therefore, the predetermined buffer threshold of the sports car may be smaller than the preset buffer threshold of the ordinary car.
[0131] Optionally, in one implementation, the above step S601 may include the following steps C1-C2:
[0132] Step C1: obtaining the traffic flow density of the complete road section to which the designated road section belongs; wherein the designated road section is the road section to be entered when the simulated vehicle crosses the boundary;
[0133] Step C2: Based on the acquired traffic flow density, speed prediction is performed to obtain a target speed that is required for the simulated vehicle to cross the boundary to enter another type of sub-road network and that matches the traffic conditions of the other type of sub-road network.
[0134] Among them, in the field of traffic, the traffic flow density is the number of vehicles on a unit length of road (single lane) at a certain moment, then the traffic flow density of the complete section to which the specified section belongs can be: for the complete section to which the specified section belongs, the number of vehicles on a unit length of road (single lane) at the current moment. It can be understood that the current moment can be the moment of triggering the calculation of the target speed; and, illustratively, in one implementation, the ratio of the number of vehicles on the complete section at the current moment to the road length of the complete section can be calculated, so as to obtain the traffic flow density of the complete section to which the specified section belongs.
[0135] After obtaining the traffic flow density of the complete road section, the traffic speed of the vehicle in the complete road section to which the specified road section belongs can be calculated based on the obtained traffic flow density; and based on the above traffic speed, the target speed required for the simulated vehicle to cross the adjacent boundary to enter another type of sub-road network, which matches the traffic conditions of the other type of sub-road network, is predicted.
[0136] The target speed may be the traffic speed or the maximum speed allowed by the lane level corresponding to the designated road section. This embodiment of the present application does not make any specific limitation on this.
[0137] For example, if the determined traffic speed is 30 kilometers per hour, and the maximum speed allowed by the lane level corresponding to the designated road section is 25 kilometers per hour, in order to ensure the safety of vehicle driving, the maximum speed can be used as the target speed. For another example, if the determined traffic speed is 20 kilometers per hour, and the maximum speed allowed by the lane level corresponding to the designated road section is 30 kilometers per hour, in this case, the traffic speed can be used as the target speed.
[0138] Optionally, in one implementation, the above step C2, based on the acquired traffic flow density, performs speed prediction to obtain a target speed required by the simulated vehicle when crossing the boundary to enter another type of sub-road network and matching the traffic conditions of the other type of sub-road network, may include steps C21-C22:
[0139] Step C21: Based on the proportional relationship between the acquired traffic flow density and the benchmark traffic flow density, the benchmark traffic flow speed is adjusted to obtain the traffic flow speed of the complete road section to which the designated road section belongs; wherein the benchmark traffic flow density is the traffic flow density of the complete road section to which the designated road section belongs in a blocked state, and the benchmark traffic flow speed is the traffic flow speed of the complete road section to which the designated road section belongs in a free flow state;
[0140] Step C22: Based on the traffic speed of the vehicle in the complete road section to which the designated road section belongs, determine the target speed required for the simulated vehicle to cross the adjacent boundary to enter another type of sub-road network, which matches the traffic conditions of the other type of sub-road network.
[0141] It should be noted that in the field of traffic, the free flow speed is: the theoretical speed of the traffic flow when the density is zero. Correspondingly, in this application, the traffic speed in the complete section to which the specified section belongs under the free flow state is: the theoretical speed of the traffic flow in the complete section to which the specified section belongs when the density is zero, for example: the maximum speed allowed for the complete section to which the specified section belongs; in addition, the blocking density is: the density when the traffic is so dense that all vehicles cannot move (V=0). Correspondingly, the traffic flow density of the complete section to which the specified section belongs under the blocking state is: the density of the complete section to which the specified section belongs when the traffic is so dense that all vehicles cannot move.
[0142] In this implementation, when determining the target speed, the calculated vehicle flow speed may be directly determined as the target speed, or the speed obtained by multiplying the calculated vehicle flow speed by a predetermined correction coefficient may be determined as the target speed, etc. The target speed does not exceed the maximum driving speed allowed by the current lane level.
[0143] And, illustratively, the reference traffic speed may be adjusted using a preset formula to obtain the traffic speed of the traffic in the complete road section to which the designated road section belongs.
[0144] The above preset formula includes:
[0145] v=v free (1-K / K jam );
[0146] Among them, v represents the speed of the traffic flow in the complete section of the specified section, and v free The vehicle flow speed in the complete section of the specified section under the free flow state, that is, the benchmark vehicle flow speed, K jam is the traffic flow density of the complete road section to which the specified road section belongs under the blocked state, that is, the benchmark traffic flow density, and K is the traffic flow density of the complete road section to which the specified road section belongs.
[0147] Optionally, in an implementation manner, the complete road segment to which the designated road segment portion belongs contains a connecting boundary, and the above step C1 may include the following steps C11-C12:
[0148] Step C11: for the road section on each side of the connected boundary of the complete road section to which the designated road section belongs, obtaining the lane-level traffic flow density of the side road section from the simulation model of the sub-road network to which the side road section belongs;
[0149] Step C12: Based on the acquired traffic flow density, the traffic flow density of the complete road section is calculated.
[0150] In this embodiment, the complete road section to which the designated road section belongs contains a connecting boundary, indicating that the designated road section is located in at least two types of sub-road networks. When the simulated vehicle moves in the designated road section, switching of simulation models with different resolutions is involved.
[0151] Therefore, when obtaining the traffic flow density of the complete road section to which the designated road section belongs, the lane-level traffic flow density of the road section on each side of the adjacent boundary of the complete road section to which the designated road section belongs can be obtained from the simulation model of the sub-road network to which the road section belongs. Thus, the traffic flow density of the complete road section is calculated based on the obtained traffic flow density of the road section on each side of the adjacent boundary.
[0152] Optionally, the sum of the traffic flow density of the road section on each side of the above-mentioned adjacent boundary is taken as the traffic flow density of the above-mentioned complete road section.
[0153] Optionally, the average value of the traffic flow density of the road sections on both sides of the above-mentioned adjacent boundary is used as the traffic flow density of the above-mentioned complete road section.
[0154] Optionally, a corresponding weight coefficient is set in advance according to the lane level. After the traffic flow density at the lane level of each side road section is obtained, the weight coefficient corresponding to the lane level of the side road section is determined. Thus, based on the traffic flow density corresponding to each side road section and the corresponding weight coefficient, the traffic flow density of the above-mentioned complete road section is calculated.
[0155] For example, the weight coefficient corresponding to the right-turn lane is the first preset weight, the weight coefficient corresponding to the straight lane is the second preset weight, and the weight coefficient corresponding to the left-turn lane is the third preset weight. Among them, the number of weight coefficients of the above three lane levels can be the first preset weight> the second preset weight> the third preset weight. This embodiment of the application does not make specific limitations on this.
[0156] In this embodiment, in order to improve the accuracy of the determined target speed, the acquired traffic flow density is determined based on the section portion on each side of the adjacent boundary of the complete section to which the specified section portion belongs. That is to say, the determined traffic flow density is more in line with the traffic flow density of the section portion on each side of the adjacent boundary at the current moment. In this way, the target speed predicted based on the above traffic flow density is more in line with the current actual state, thereby improving the credibility of the traffic simulation.
[0157] Optionally, in one embodiment, Figure 7 As shown, a traffic simulation method provided in an embodiment of the present application may also include the following steps:
[0158] S701: In response to the driving position of any simulated vehicle reaching an edge position of a buffer transition section, and the corresponding driving route represents a boundary to be crossed, predicting the transition speed required for the simulated vehicle to travel from the current sub-network into the target sub-network.
[0159] Among them, the buffer transition section contains a connecting boundary and the distance between each edge position and the connecting boundary does not exceed the target buffer distance threshold. The target sub-road network is the sub-road network that the simulated vehicle enters after crossing the connecting boundary.
[0160] S702: Using the transition speed as the vehicle speed, while the simulated vehicle is traveling along the corresponding driving route, controlling the simulated vehicle to move within the buffer transition section.
[0161] Accordingly, in the above step S103, the method of continuing the movement based on the initial driving information and according to the corresponding driving route and simulation resolution includes the following step D:
[0162] Step D: Using a predetermined speed control method, continue to move according to the corresponding driving route and simulation resolution based on the initial driving information.
[0163] The speed control method includes: in response to the simulated vehicle being in a buffer transition section, not controlling the vehicle speed of the simulated vehicle; and, in response to the simulated vehicle exiting the buffer transition section, controlling the simulated vehicle to move using the transition speed as the initial speed.
[0164] In this embodiment, a road section containing a connecting boundary and whose distances from each edge position to the connecting boundary do not exceed the target buffer distance threshold is set as a buffer transition section in advance. In this way, in response to the driving position of any simulated vehicle reaching an edge position of the buffer transition section, the electronic device can first determine whether the corresponding driving route of the simulated vehicle indicates that the simulated vehicle is about to cross the above-mentioned connecting boundary, and then, according to different results, different processing is performed:
[0165] If so, it indicates that the simulated vehicle will continue to travel until it crosses the above-mentioned connecting boundary. At this time, the electronic device can predict the transition speed required for the simulated vehicle to travel from the current sub-road network into the target sub-road network that the simulated vehicle enters after crossing the connecting boundary. Thus, using the above-mentioned transition speed as the vehicle speed, the simulated vehicle is controlled to move within the buffer transition section that includes the above-mentioned connecting boundary during the process of the simulated vehicle traveling along the corresponding driving route.
[0166] That is to say, during the movement of the simulated vehicle in the above-mentioned buffer transition section, in response to the simulated vehicle being in the above-mentioned buffer transition section, the vehicle speed of the simulated vehicle is not controlled, and, in response to the simulated vehicle exiting the above-mentioned buffer transition section, the simulated vehicle is controlled to move with the predicted transition speed as the initial speed.
[0167] It should be noted that, when the simulated vehicle is moving in the above-mentioned buffer transition section, the controller that controls the speed of the simulated vehicle is the electronic device, specifically the traffic simulation software running on the electronic device, rather than the simulation model corresponding to the sub-road network where the simulated vehicle is currently located. For example, after the simulated vehicle crosses the boundary and enters another type of sub-road network, the driving information of the simulated vehicle has been received by the simulation model corresponding to the other type of sub-road network, but the simulation model corresponding to the other type of sub-road network will not control the speed of the simulated vehicle. In other sections except the above-mentioned buffer transition section, the speed of the simulated vehicle is controlled by the simulation model corresponding to the sub-road network where the simulated vehicle is currently located.
[0168] If not, it indicates that the simulated vehicle will not cross the above-mentioned connection boundary if it continues to travel. For example, it turns around before reaching the above-mentioned connection boundary, or stops traveling before reaching the above-mentioned connection boundary. At this time, the simulated vehicle can continue to travel at the current speed.
[0169] In this embodiment, during the traffic simulation process, considering that when there are multiple simulation models with different resolutions, the electronic device needs to maintain the consistency of the same simulated vehicle, therefore, when the simulated vehicle reaches an edge position of the buffer transition section and the corresponding driving route represents a boundary to be crossed, the electronic device can directly control the driving speed of the simulated vehicle to control the simulated vehicle to cross the boundary contained in the above buffer transition section, thereby improving the consistency maintenance of the driving information of the simulated vehicle and further improving the accuracy of multi-resolution traffic simulation.
[0170] Moreover, the presentation forms of simulated vehicles are different in simulation models with different resolutions. For example, in the meso-simulation model, the simulated vehicles move in the form of a convoy, while in the micro-simulation model, the simulated vehicles move in the form of individual vehicles. Therefore, by uniformly controlling the speed of the simulated vehicles moving in the buffer transition section through electronic equipment, a smooth transition of consistent information of the simulated vehicles when crossing the adjacent boundaries can be achieved.
[0171] Optionally, in one implementation, in the above step S701, predicting the transition speed required for the simulated vehicle to travel from the current sub-road network to the target sub-road network may include the following steps:
[0172] Step E1: Determine a first number of vehicles and a first reference speed of vehicles on a first road section.
[0173] The first road section is the road section where the simulated vehicle is located in the current sub-road network; the first vehicle reference speed is used to characterize the speed of the vehicle moving on the first road section.
[0174] Step E2: Determine the second number of vehicles and the second reference speed of the vehicles on the second road section.
[0175] The second road section is the road section that the simulated vehicle enters after crossing the boundary and belongs to the target sub-road network; the second vehicle reference speed is used to characterize the speed of the vehicle moving on the second road section.
[0176] Step E3: Based on the quantitative relationship between the first number of vehicles and the second number of vehicles, the first vehicle reference speed and the second vehicle reference speed are weightedly fused to obtain the transition speed required for the simulated vehicle to travel from the current sub-network into the target sub-network.
[0177] In this implementation, when determining the transition speed of the simulated vehicle in the buffer transition section, the section where the simulated vehicle is currently located in the sub-road network can be first determined as the first section of the buffer transition section, and the section of the target sub-road network that the simulated vehicle enters after crossing the boundary can be used as the second section of the buffer transition section. Figure 8 A schematic diagram of a buffer transition section provided in an embodiment of the present application, wherein area 800 is a buffer transition section, area 801 is a first section portion, and area 802 is a second section portion.
[0178] In this way, a first vehicle number of vehicles moving on the first road section and a first vehicle reference speed for characterizing the vehicles moving on the first road section can be determined. Then, a second vehicle number of vehicles moving on the second road section and a second vehicle reference speed for characterizing the vehicles moving on the second road section can be determined.
[0179] Then, based on the determined quantitative relationship between the first number of vehicles and the second number of vehicles, the first vehicle reference speed and the second vehicle reference speed can be weightedly fused to obtain the transition speed required for the simulated vehicle to travel from the current sub-network into the target sub-network.
[0180] The above transition speed does not exceed the maximum driving speed allowed by the current lane level.
[0181] Optionally, considering that the presentation forms of simulated vehicles in simulation models with different resolutions are different, different determination methods are used when determining the speed of vehicles moving on road segments belonging to different types of sub-road networks.
[0182] For example, in a meso-simulation model, simulated vehicles move as a convoy, while in a micro-simulation model, simulated vehicles move as individual vehicles.
[0183] If the first road section belongs to the road section of the sub-road network corresponding to the mesoscopic simulation model, the speed of the vehicle moving on the first road section can be calculated by the above steps C1-C2 to obtain the vehicle flow speed. The vehicle fleet speed can also be calculated based on the flow-density-speed relationship. This is reasonable and is not specifically limited in the embodiments of the present application.
[0184] If the second road section belongs to the road section of the sub-road network corresponding to the micro-simulation model, the speed of the vehicle moving on the second road section can be directly determined based on the preset driving behavior model. The driving behavior model can be a follow-up model, a lane change model, an intersection traffic model, etc., which is not specifically limited in the embodiments of the present application.
[0185] Optionally, in one implementation, the above step E3, based on the quantitative relationship between the number of the first vehicles and the number of the second vehicles, weightedly fuses the first vehicle reference speed and the second vehicle reference speed to obtain the transition speed required for the simulated vehicle to travel from the current sub-network to the target sub-network, may include the following steps:
[0186] Step E31: According to the target formula, based on the quantitative relationship between the number of the first vehicles and the number of the second vehicles, the first vehicle reference speed and the second vehicle reference speed are weightedly integrated to obtain the transition speed required for the simulated vehicle to travel from the current sub-network to the target sub-network;
[0187] The target formula includes:
[0188]
[0189] Among them, v buffer is the transition speed required for the simulated vehicle to travel from the current sub-network to the target sub-network, n 1 is the number of first vehicles, n 2 is the number of the second vehicle, v 1 is the first vehicle reference speed, v 2 is the reference speed of the second vehicle.
[0190] In this way, after obtaining the first number of vehicles, the second number of vehicles, the first vehicle reference speed and the second vehicle reference speed, the above target formula can be directly used for weighted fusion, thereby obtaining the transition speed required for the simulated vehicle to travel from the current sub-network to the target sub-network. It should be emphasized that the above target formula is only an example of a weighted fusion method. In other implementations, a mapping relationship between the number range of vehicles and weights can be established in advance, so that through the first number of vehicles, in the mapping relationship, the weight corresponding to the number range to which the first number of vehicles belongs is determined as the weight corresponding to the first vehicle reference speed, and through the second number of vehicles, in the mapping relationship, the weight corresponding to the number range to which the second number of vehicles belongs is determined as the weight corresponding to the second vehicle reference speed. Therefore, based on the weight corresponding to the first vehicle reference speed and the weight corresponding to the second vehicle reference speed, the first vehicle reference speed and the second vehicle reference speed are weighted to obtain the transition speed required for the simulated vehicle to travel from the current sub-network to the target sub-network; illustratively, in the mapping relationship, the number range of vehicles and the weight can be positively correlated.
[0191] Optionally, the above Figure 1 Based on the example, Fig. 9 As shown, before the step of taking the starting position of each simulated vehicle's driving route as the loading position, loading each simulated vehicle into the simulation model of the sub-road network to which the corresponding starting position belongs, so as to move according to the corresponding driving route and simulation resolution, a traffic simulation method provided by an embodiment of the present application further includes the following step S901:
[0192] S901: Simultaneously run simulation models of various sub-networks at the same simulation time and with the same simulation step size.
[0193] In this embodiment, since at least two simulation models with different resolutions are involved, in order to further improve the consistency of the driving information of the same vehicle in the simulation models with different resolutions, the electronic device can simultaneously run the simulation models of various sub-road networks at the same simulation time and with the same simulation step. That is to say, during a traffic simulation, each simulation model involved in the process starts running at the same time, and starts running at the same simulation time and with the same simulation step.
[0194] In this way, when the simulated vehicle crosses the above-mentioned boundary, the two simulation models involved can exchange information in a timely manner, thereby improving the consistency of driving information of the same vehicle in simulation models with different resolutions and the continuity of the entire simulation process.
[0195] Furthermore, as mentioned above, the simulation models of various sub-road networks can adopt the same simulation road network representation form, and all use lanes as the minimum modeling unit. In this way, when the start time, simulation start time and simulation step length of the simulation models of various sub-road networks are the same, the simulation models of various sub-road networks adopt the same simulation road network representation form, and all use lanes as the minimum modeling unit. In this way, when information interaction between various simulation models is required, it is not necessary to adjust the settings or inputs of various simulation models multiple times to achieve driving information consistency as in the prior art, and driving information consistency can be achieved directly through information interaction between various simulation models.
[0196] Optionally, based on any of the above embodiments, after the step of taking the starting position of each simulated vehicle's driving route as the loading position, loading each simulated vehicle into the simulation model of the sub-road network to which the corresponding starting position belongs, and moving according to the corresponding driving route and simulation resolution, a traffic simulation method provided by an embodiment of the present application further includes the following steps:
[0197] Step F: In response to satisfying the data output condition for the target object, outputting the simulated traffic data corresponding to the target object.
[0198] The types of target objects include: one or more of simulation models, simulation vehicles, road sections and sub-road networks.
[0199] In this embodiment, during the execution of a traffic simulation method provided in an embodiment of the present application, the electronic device can output simulated traffic data corresponding to the above target objects in response to satisfying data output conditions for one or more types of target objects in simulation models, simulated vehicles, road sections and sub-road networks.
[0200] The above traffic data may be traffic flow operation index results of the simulation model, traffic volume of the road section, average driving speed of the simulated vehicle, driving time required for the simulated vehicle to travel from the starting position to the end position of the corresponding driving route, number of stops of the simulated vehicle, and parking queue time of the simulated vehicle, etc. This embodiment of the application does not make specific limitations on this.
[0201] In this embodiment, during the traffic simulation process, data output conditions can be set for the target object. After the data output conditions for the target object are met, the electronic device can directly output the simulated traffic data corresponding to the target object, so that the user can obtain the required traffic data and improve the practicality of the traffic simulation.
[0202] Optionally, in another embodiment of the present application, a method for determining at least two types of sub-networks includes the following steps:
[0203] Step G1: Determine at least two types of sub-networks according to a predetermined regional analysis method.
[0204] Among them, the predetermined area analysis method includes using whether there are main road sections and / or road intersection sections as a distinction criterion, or using whether the number of main road sections and / or road intersection sections meets the selection conditions as a distinction criterion.
[0205] In this embodiment, in order to improve the efficiency of determining at least two types of sub-road networks, the electronic device can divide the initial road network into regions to obtain each initial sub-road network. Thus, according to the preset regional analysis method based on whether there are trunk road sections and / or road intersection sections as the distinction criteria, or according to the preset regional analysis method based on whether the number of trunk road sections and / or road intersection sections meets the selection conditions as the distinction criteria, at least two types of sub-road networks belonging to the adjacent boundaries can be determined from the above-mentioned each initial sub-road network, so that the determined at least two types of sub-road networks are used to form the target road network in this application.
[0206] If the preset regional analysis method uses the existence of main road sections and / or road intersection sections as the distinguishing standard, then when there is a road intersection section in the initial sub-road network, the road network is determined to be a sub-road network used to constitute the target road network; when there is a main road section in the initial sub-road network, the road network is determined to be a sub-road network used to constitute the target road network; when there is a main road section in the initial sub-road network and a road intersection section, the road network is determined to be a sub-road network used to constitute the target road network.
[0207] If a preset regional analysis method is used as a distinguishing criterion based on whether the number of main road sections and / or road intersection sections meets the selection conditions, the above selection conditions can be that the number of main road sections and / or road intersection sections is a preset number, and the embodiments of the present application do not make specific limitations on this.
[0208] When the number of road intersection sections in the initial sub-road network is a preset number, it is determined that the number of road intersection sections in the road network meets the selection conditions. At this time, the road network can be determined as a sub-road network for constituting the target road network.
[0209] When the number of trunk road segments in the initial sub-road network is a preset number, it is determined that the number of trunk road segments in the road network meets the selection condition. At this time, the road network can be determined as a sub-road network for constituting the target road network.
[0210] When the number of road intersection sections and trunk road sections in the initial sub-road network is a preset number, it is determined that the number of road intersection sections and the number of trunk road sections in the road network meet the selection conditions. At this time, the road network can be determined as a sub-road network for constituting a target road network. It can be understood that, considering that the number of trunk road sections in an actual road network is much smaller than the number of road intersection sections, when the above selection condition is that the number of trunk road sections and road intersection sections is a preset number, optionally, in one implementation, the above preset number can be the sum of the number of trunk road sections and the number of road intersection sections.
[0211] In this way, by using a preset regional analysis method that uses whether the number of main road sections and / or road intersection sections meets the selection criteria as a distinguishing criterion, the number of sub-road networks that need to be determined can be reduced, thereby reducing the number of simulation models that need to be called and the amount of computing resources required for model simulation.
[0212] Optionally, the at least two types of sub-networks are the first type of sub-network and the second type of sub-network, and the importance of the first type of sub-network is higher than that of the second type of sub-network. Therefore, the first type of sub-network can be determined according to the predetermined area analysis method, and the sub-networks that are within a specified distance range from the first type of sub-network, are adjacent to the first type of sub-network, and have a border with the first type of sub-network are determined as the second type of sub-network.
[0213] Optionally, at least two types of sub-networks are determined using a preset regional analysis algorithm, wherein the preset regional analysis algorithm may include a graph segmentation algorithm, which is not specifically limited in the present embodiment of the application.
[0214] In this embodiment, considering that the main road sections and / or road intersection sections in actual scenarios are the key areas where traffic flows converge and exit, the existence of main road sections and / or road intersection sections is used as a distinction criterion to improve the efficiency and accuracy of determining at least two types of sub-road networks.
[0215] Optionally, in another embodiment of the present application, a method for determining at least two types of sub-networks includes the following steps:
[0216] Step G2: Determine at least two types of sub-networks through manual configuration.
[0217] In this embodiment, the staff can determine at least two types of sub-road networks in the initial road network by manual configuration.
[0218] For example, the staff selects at least two types of sub-road networks in the preset road network by clicking or inputting, thereby generating corresponding area selection instructions, so that the electronic device determines at least two types of sub-road networks based on the above area selection instructions.
[0219] In this embodiment, the staff can directly determine at least two types of sub-road networks in the initial road network, thereby facilitating the staff to perform traffic simulation on the areas that require attention.
[0220] The traffic simulation method involved in the present application is exemplarily introduced below in conjunction with a specific embodiment.
[0221] like Fig.10 FIG. 1 is a flow chart of a specific embodiment provided by the present application. In this specific embodiment, a traffic simulation method provided by the present application is executed by a simulation system (i.e., simulation software) of an electronic device, which may include the following steps:
[0222] S1001: construct a microscopic simulation model for a first-type sub-road network with high importance in the target road network, and construct a mesoscopic simulation model for a second-type sub-road network in the target road network that is adjacent to the first-type sub-road network within a specified distance range and has low importance; for example, the first-type sub-road network is a road section with a main road section and its adjacent road intersection section; the second-type sub-road network is a road network within 500 meters adjacent to the first-type sub-road network;
[0223] S1002: Based on the basic traffic data, traffic demand data in the form of "simulated vehicle + driving route + designated departure time" is generated in the target road network;
[0224] S1003: Running the meso-simulation model and the micro-simulation model simultaneously, and loading the simulated vehicles according to the number of times the driving routes of the simulated vehicles cross the connecting boundaries, so as to move in the corresponding simulation models.
[0225] The simulation system of the electronic device controls the mesoscopic simulation model and the microscopic simulation model to step forward with the same simulation step length, thereby maintaining the consistency of the simulated vehicles at the connected boundaries through the interaction between the models;
[0226] Furthermore, the simulation system controls the meso-simulation model and the micro-simulation model to continue stepping until the simulation is finished, during which the traffic data of the meso-simulation model or the micro-simulation model can be output as needed.
[0227] In this specific embodiment, the simulation system of the electronic device constructs a high-resolution microscopic simulation model for the first type of sub-road network with high importance in the target road network, and constructs a mesoscopic simulation model for the second type of sub-road network with low importance that is adjacent to the first type of sub-road network within a specified distance range. In this way, based on the basic traffic data acquired in advance, traffic demand data in the form of "simulated vehicle + driving route + specified departure time" can be generated in the target road network. Then, the mesoscopic simulation model and the microscopic simulation model are run at the same time, and each simulated vehicle is loaded according to the different times that the driving routes corresponding to each simulated vehicle cross the connecting boundary.
[0228] The specific situation is as follows:
[0229] (1) When the driving route corresponding to the simulated vehicle does not cross the connecting boundary:
[0230] The simulated vehicle is separately loaded into the simulation model of the sub-road network to which its driving route belongs, so as to travel in the sub-road network according to the corresponding driving route and the corresponding simulation resolution.
[0231] (2) When the driving route corresponding to the simulated vehicle crosses the boundary once:
[0232] The road section between the starting position of the driving route corresponding to the simulated vehicle and the position at the connecting boundary to be crossed is determined as the first road section; the simulated vehicle is loaded into the simulation model of the sub-road network to which the first road section belongs, so as to move according to the above-mentioned first road section and the corresponding simulation resolution; when the driving position of the simulated vehicle reaches the above-mentioned connecting boundary, the current driving information of the simulated vehicle is used as the initial driving information, and the simulated vehicle is switched to be loaded into the designated simulation model, so as to continue to move based on the above-mentioned initial driving information and according to the road section between the position at the connecting boundary and the end position of the corresponding driving route, and the simulation resolution of the designated simulation model.
[0233] (3) When the driving route corresponding to the simulated vehicle crosses the boundary multiple times:
[0234] The driving route corresponding to the simulated vehicle is divided into a section from a starting position to a position at a connecting boundary reached for the first time, which is determined as a first section and remaining sections. The simulated vehicle is loaded into a simulation model of a sub-road network to which the first section belongs, so as to move according to the first section and the corresponding simulation resolution. When the driving position of the simulated vehicle reaches the connecting boundary, the current driving information of the simulated vehicle is used as initial driving information, and the simulated vehicle is switched and loaded into a designated simulation model, so as to continue to move based on the initial driving information and according to the section from the position at the connecting boundary reached for the first time to the position at the connecting boundary reached for the next time, and the simulation resolution of the designated simulation model. The loading method is executed for each section divided in the driving route in turn until there is no connecting boundary in the remaining sections of the driving route corresponding to the simulated vehicle.
[0235] In this way, as the meso-simulation model and the micro-simulation model step forward with the same simulation step length, the meso-simulation model and the micro-simulation model interact with each other through information to achieve the connection boundary when the driving position of any simulated vehicle reaches the connection boundary. The current driving information of the simulated vehicle is used as the initial driving information, and the simulated vehicle is switched and loaded into the designated simulation model of the sub-road network that the simulated vehicle enters after crossing the connection boundary, so as to continue the movement steps based on the initial driving information and according to the corresponding driving route and simulation resolution, maintain the consistency of the simulated vehicles at the connection boundary, and improve the accuracy of multi-resolution traffic simulation.
[0236] Furthermore, during the period when the meso-simulation model and the micro-simulation model continue to step until the simulation ends, the traffic data of the meso-simulation model or the micro-simulation model can be obtained according to the user's needs.
[0237] In this embodiment, the simulation system of the electronic device enables the two simulation models to achieve timely information exchange through unified control of the microscopic simulation model and the mesoscopic simulation model, thereby maintaining the consistency of simulated vehicles at the connecting boundaries to improve the accuracy of multi-resolution traffic simulation.
[0238] Based on the above Fig.10 The content of the embodiment described is as follows: Fig.11 As shown, through the interaction between the simulation system of the electronic device, the meso-simulation model and the micro-simulation model, the simulation process involved in a traffic simulation method provided in an embodiment of the present application is exemplarily introduced:
[0239] S1101: The simulation system controls the meso-simulation model and the micro-simulation model to start stepping;
[0240] S1102: The simulation system determines a target speed of a designated simulated vehicle based on the traffic flow density output by the microscopic simulation model; wherein the designated simulated vehicle is a simulated vehicle that meets the following conditions:
[0241] The driving position reaches a predetermined transition position on the second-type sub-network, and the corresponding driving route represents a boundary to be crossed with respect to the first-type sub-network and the second-type sub-network.
[0242] S1103: The simulation system controls the speed of the designated simulation vehicle when it reaches the contact boundary to be the target speed according to the determined target speed;
[0243] S1104: The simulation system determines whether any simulated vehicle in the second type of sub-road network has reached the connection boundary; if so, execute step S1105;
[0244] S1105: The simulation system determines whether there is overflow in the designated road section of the first type of sub-road network; if so, execute step S1106; if not, execute step S1107;
[0245] S1106: The simulation system controls any simulated vehicle that has arrived at the boundary of the second type of sub-road network to queue and wait, and returns to step S1105;
[0246] S1107: The simulation system removes the any simulated vehicle from the meso-simulation model and loads the any simulated vehicle into the micro-simulation model;
[0247] In this way, any simulated vehicle continues to move according to the driving route and the simulation resolution of the micro-simulation model.
[0248] S1108: The simulation system determines whether any simulated vehicle in the first type of sub-road network has reached the connection boundary; if so, execute step S1109;
[0249] S1109: The simulation system determines whether there is overflow in the designated road section of the second type of sub-road network; if so, execute step S1110; if not, execute step S1111;
[0250] S1110: The simulation system controls any simulated vehicle that has arrived at the boundary of the first type of sub-road network to queue and wait, and returns to step S1109;
[0251] S1111: The simulation system removes any simulated vehicle from the microscopic simulation model and loads the simulated vehicle into the mesoscopic simulation model;
[0252] S1112: The simulation system controls the meso-simulation model and the micro-simulation model to step to the end.
[0253] The above steps S1101-S1112 describe the overall process of switching the simulated vehicle from the meso-simulation model to the micro-simulation model, and then switching from the micro-simulation model to the meso-simulation model.
[0254] In this specific embodiment, when the simulation system controls the mesoscopic simulation model and the microscopic simulation model to start stepping, the traffic simulation process begins. During the traffic simulation, the simulation system can determine the target speed of the simulated vehicle that is about to approach the connection boundary based on the traffic flow density output by the microscopic simulation model, and determine the target speed of the simulated vehicle that is about to approach the connection boundary based on the traffic flow density output by the mesoscopic simulation model. Then, the simulation system can adjust the speed of the simulated vehicle according to the determined target speed, so that the speed of the simulated vehicle when reaching the connection boundary is the above target speed.
[0255] Exemplarily, the simulation system controls the micro-simulation model to output the lane-level traffic flow density at the road section divided by the connecting boundary to the meso-simulation model, so that the meso-simulation model calculates the complete traffic flow density of the divided road section according to the above traffic flow density, and determines the target speed of the simulated vehicle at that location in the meso-simulation model, thereby outputting the target speed value to the simulation system. In this way, the simulation system can control the micro-simulation model to control the vehicle reaching the connecting boundary to leave the first type of sub-road network at the speed according to the target speed determined by the meso-simulation model.
[0256] Since the simulated vehicle crossing the connection boundary indicates that the simulated vehicle needs to be switched and loaded into another simulation model to continue the simulated driving, that is, continue to move according to the subsequent driving route and the corresponding simulation resolution. Therefore, during the traffic simulation process, the simulation system needs to determine in real time whether the simulated vehicle has reached the above-mentioned connection boundary, that is, determine whether the simulated vehicle needs to be switched and loaded into another simulation model.
[0257] Taking the simulated vehicle on the second type of sub-road network as an example, during the simulation process:
[0258] The simulation system can determine whether any simulated vehicle in the second type of sub-road network has reached the connection boundary, and whether any simulated vehicle needs to be switched and loaded into the microscopic simulation model of the first type of sub-road network;
[0259] If yes, the simulation system can continue to determine whether there is overflow in the designated road section of the first type of sub-road network, thereby determining whether there is a traffic jam in the first type of sub-road network, and then determining how to handle any simulated vehicle in the future;
[0260] If yes, for the driving safety of any simulated vehicle, the simulation system can control any simulated vehicle in the second type of sub-road network that reaches the above-mentioned connecting boundary to queue and wait, and return to determine whether there is overflow in the designated road section in the first type of sub-road network;
[0261] If not, it indicates that any of the simulated vehicles can continue to travel to the first type of sub-road network. At this time, the simulation system can remove the simulated vehicle from the meso-simulation model and load the simulated vehicle into the micro-simulation model.
[0262] For example, when the simulated vehicle reaches the connection boundary, the simulation system can remove the simulated vehicle from the original simulation model and load the simulated vehicle into another simulation model. In addition, in order to ensure the simulation consistency of the same simulated vehicle, when the simulated vehicle is loaded into another simulation model, the driving behaviors such as the driving speed, acceleration, and queuing situation of the simulated vehicle, as well as the basic attributes such as the vehicle model, vehicle length, and vehicle performance of the simulated vehicle remain unchanged. That is, the driving information of the simulated vehicle remains unchanged.
[0263] For example, when the lead vehicle of a fleet in the meso-simulation model reaches the connection boundary, it is removed from the meso-simulation model and loaded into the micro-simulation model. The loading position is the part of the first-class sub-road network corresponding to the same section of the road where it is currently located in the micro-simulation model. The starting speed and acceleration of the lead vehicle are the current speed and acceleration of the vehicle; the subsequent driving route of the vehicle is the subsequent part of its complete driving route in the first-class sub-road network; the basic properties of the vehicle remain unchanged.
[0264] In this way, by achieving driving consistency when loading the simulated vehicle, such as driving speed, acceleration, queuing conditions, etc.; driving route consistency, such as the vehicle's starting and ending positions, route sections, lane selection, etc.; and basic attribute consistency, such as vehicle type, vehicle length, vehicle performance, etc., the multi-resolution simulation model can achieve consistency in the simulation process when performing traffic simulation on the same simulated vehicle, thereby improving the accuracy of multi-resolution traffic simulation.
[0265] If, based on the above queuing situation, it is determined that there is a queue overflow at the connecting boundary, the simulation system determines the lane-level queue length information of the road section on both sides of the above connecting boundary by controlling the meso-simulation model and the micro-simulation model to exchange information. When there is a queue overflow on a certain lane, all vehicles on the lane of the sub-road network where the simulated vehicle is located are prevented from crossing the above connecting boundary from this lane.
[0266] Then, the simulated vehicle can continue to move in the first type of sub-road network corresponding to the microscopic simulation model according to the corresponding driving route.
[0267] Since there may be more than one sub-road network of the same type in the target road network, when the simulated vehicle continues to move in the first-type sub-road network corresponding to the micro-simulation model according to the corresponding driving route, there may be a second-type sub-road network on part of the driving route corresponding to the simulated vehicle, that is, the simulated vehicle still needs to cross a connecting boundary.
[0268] Therefore, the simulation system can continue to determine whether any simulated vehicle in the first type of sub-road network has reached the connection boundary, thereby determining whether any simulated vehicle needs to be switched to the mesoscopic simulation model of the second type of sub-road network.
[0269] If so, the simulation system can continue to determine whether there is overflow in the specified section of the second type of sub-road network, thereby determining whether there is a traffic jam in the second type of sub-road network, and then determining how to handle the simulated vehicle later.
[0270] If yes, for the driving safety of the simulated vehicles, the simulation system can control the simulated vehicles in the first type of sub-road network that have reached the connection boundary to queue up and wait, and return to determine whether there is a simulated vehicle in the first type of sub-road network that has reached the connection boundary;
[0271] If not, it indicates that the simulated vehicle can continue to drive to the second type of sub-road network. At this time, the simulation system can remove it from the micro-simulation model and load the simulated vehicle into the meso-simulation model, so that the simulated vehicle continues to move in the second type of sub-road network corresponding to the meso-simulation model according to the corresponding driving route. Until the simulation system controls the meso-simulation model and the micro-simulation model to step to the end, the traffic simulation process ends.
[0272] For example, Fig.12 A diagram of a specific embodiment provided for the embodiment of the present application:
[0273] There is a simulated vehicle reaching the connection boundary in the second type of sub-road network, but in the first type of sub-road network, there is a queue overflow in the straight lane where the simulated vehicle is located. Therefore, the simulation system can control the simulated vehicles in the straight lane of the second type of sub-road network to queue up and wait.
[0274] For example, Fig.13 As shown, it is a diagram of a specific embodiment provided in the embodiment of the present application:
[0275] When the traffic flow density in the meso-simulation model is small and the output target speed is large, the simulated vehicle in the first type of sub-road network in the micro-simulation model is controlled to accelerate to the target speed and cross the connection boundary at the target speed.
[0276] In this embodiment, the simulation system uniformly controls the mesoscopic simulation model and the microscopic simulation model, and the simulation interaction between the mesoscopic simulation model and the microscopic simulation model, to determine the target speed of the simulation model when reaching the connection boundary, so as to adjust the speed of the simulation vehicle. In addition, the simulation system determines the road conditions on both sides of the connection boundary, and determines how the subsequent movement of the simulation vehicle should be performed when reaching the connection boundary, so that the simulation vehicle is controlled to perform subsequent movement according to the road condition judgment result. The unified control of the simulation system improves the timeliness of the interaction between the mesoscopic simulation model and the microscopic simulation model, and the continuity of the traffic simulation process.
[0277] Based on the above method embodiment, the present application also provides a traffic simulation device, such as Fig.14 FIG. 1 is a schematic diagram of a traffic simulation device provided in an embodiment of the present application, wherein the device comprises:
[0278] The driving route acquisition module 1410 is used to acquire the driving routes of each simulated vehicle for the target road network; wherein the target road network is composed of at least two types of sub-road networks and there is a position of a connecting boundary between any two types of sub-road networks, and different types of sub-road networks are provided with simulation models of different resolutions, and each driving route includes a driving route crossing the connecting boundary;
[0279] The simulation operation module 1420 is used to use the starting position of each simulated vehicle's driving route as a loading position, and load each simulated vehicle into the simulation model of the sub-road network to which the corresponding starting position belongs, so as to move according to the corresponding driving route and simulation resolution;
[0280] The resolution switching module 1430 is used to respond to the driving position of any simulated vehicle reaching the connection boundary, use the current driving information of the simulated vehicle as the initial driving information, and switch the simulated vehicle to a specified simulation model to continue moving based on the initial driving information and in accordance with the corresponding driving route and simulation resolution; wherein the specified simulation model is a simulation model of the sub-road network entered after crossing the connection boundary.
[0281] As can be seen from the above, by applying the solution provided by the embodiment of the present application, the target road network to be simulated is composed of at least two types of sub-road networks and there are positions of connecting boundaries belonging to any two types of sub-road networks, and simulation models of different resolutions are set for sub-road networks of different types. In this way, during the simulation process, the driving routes of each simulated vehicle for the target road network are first obtained, and each driving route includes a driving route that crosses the connecting boundary. Then, based on the starting position of the driving route of each simulated vehicle, each simulated vehicle is loaded into the simulation model of the corresponding sub-road network to move according to the corresponding driving route and simulation resolution, and in response to the driving position of any simulated vehicle reaching the connecting boundary, the current driving information of the simulated vehicle is used as the initial driving information, and the simulated vehicle is switched to be loaded into the specified simulation model to continue to move based on the initial driving information and according to the corresponding driving route and simulation resolution.
[0282] Based on this, the scheme provided by the embodiment of the present application is applied, a multi-resolution simulation model is set for the target road network, and traffic simulation is performed on each simulated vehicle through the simulation model corresponding to the sub-road network to which the driving route belongs. At the same time, for any simulated vehicle whose driving route needs to cross a connecting boundary, based on the driving information of the simulated vehicle when it drives to the connecting boundary, the simulated vehicle is switched and loaded into the simulation model of the sub-road network entered after crossing the connecting boundary to continue moving. In this way, by ensuring the consistency of the driving information of the same simulated vehicle in simulation models of different resolutions, the simulation consistency when the same simulated vehicle is simulated using simulation models of different resolutions is improved, and further, the accuracy of multi-resolution traffic simulation can be improved through this scheme.
[0283] Optionally, in a specific implementation, the device further includes:
[0284] The road section condition identification module is used to identify whether there is a queue and overflow in the designated road section before switching and loading the simulated vehicle into the designated simulation model, using the current driving information of the simulated vehicle as the initial driving information; if it is identified that there is a queue and overflow, the vehicle waiting module is triggered, otherwise, the resolution switching module 1230 is triggered; wherein the designated road section is the road section to be entered when the simulated vehicle crosses the connecting boundary;
[0285] The vehicle waiting module is used to indicate the simulation model in which the simulated vehicle is currently located to control the simulated vehicle to wait and trigger the road condition identification module.
[0286] Optionally, in a specific implementation, the road section condition identification module is specifically used to:
[0287] Obtaining queue length information at the lane level for a specified road section of a specified simulation model;
[0288] Based on the queue length information and the section length of the designated section, it is analyzed whether there is a queue and overflow in the designated section.
[0289] Optionally, in a specific implementation, the device further includes:
[0290] A transition speed prediction module is used to predict the transition speed required for the simulated vehicle to travel from the current sub-road network to the target sub-road network in response to the driving position of any simulated vehicle reaching an edge position of the buffer transition section and the corresponding driving route represents the boundary to be crossed; wherein the buffer transition section contains the boundary and the distance between each edge position and the boundary does not exceed the target buffer distance threshold, and the target sub-road network is the sub-road network entered by the simulated vehicle after crossing the boundary;
[0291] A transition driving module, used for controlling the simulated vehicle to move in the buffer transition section while the simulated vehicle is driving along the corresponding driving route, using the transition speed as the vehicle speed;
[0292] The resolution switching module 1430 is specifically used for:
[0293] A predetermined speed control method is adopted to continue moving according to the corresponding driving route and simulation resolution based on the initial driving information; wherein the speed control method includes: in response to the simulated vehicle being in the buffer transition section, the vehicle speed of the simulated vehicle is not controlled; and in response to the simulated vehicle exiting the buffer transition section, the simulated vehicle is controlled to move with the transition speed as the initial speed.
[0294] Optionally, in a specific implementation, the transition speed prediction module includes:
[0295] The first parameter determination submodule is used to determine a first number of vehicles and a first vehicle reference speed on a first road section; wherein the first road section is the road section where the simulated vehicle is located in the current sub-road network; and the first vehicle reference speed is used to characterize the speed of vehicles moving on the first road section;
[0296] The second parameter determination submodule is used to determine the second number of vehicles and the second vehicle reference speed of the second road section; wherein the second road section is the road section belonging to the target sub-road network entered by the simulated vehicle after crossing the connecting boundary; the second vehicle reference speed is used to characterize the speed of the vehicle moving on the second road section;
[0297] The weighted fusion submodule is used to perform weighted fusion of the first vehicle reference speed and the second vehicle reference speed based on the quantitative relationship between the first number of vehicles and the second number of vehicles, so as to obtain the transition speed required for the simulated vehicle to travel from the current sub-network into the target sub-network.
[0298] Optionally, in a specific implementation, the weighted fusion submodule is specifically used to:
[0299] According to the target formula, based on the quantitative relationship between the first number of vehicles and the second number of vehicles, the first vehicle reference speed and the second vehicle reference speed are weightedly integrated to obtain the transition speed required for the simulated vehicle to travel from the current sub-network to the target sub-network;
[0300] The target formula includes:
[0301]
[0302] Among them, v buffer is the transition speed required for the simulated vehicle to travel from the current sub-network to the target sub-network, n 1 is the first number of vehicles, n 2 is the second vehicle number, v 1 is the first vehicle reference speed, v 2 is the reference speed of the second vehicle.
[0303] Optionally, in a specific implementation, the device further includes:
[0304] A speed prediction module is used for predicting a target speed that matches the traffic conditions of another type of sub-road network when the driving position of any simulated vehicle reaches a predetermined transition position and the corresponding driving route represents the boundary to be crossed, wherein the predetermined transition position is located before the boundary and the distance between the predetermined transition position and the boundary does not exceed a predetermined buffer distance threshold;
[0305] The speed adjustment module is used to control the simulation model in which the simulated vehicle is currently located based on the target speed to perform speed adjustment processing on the simulated vehicle; wherein the speed adjustment processing is used to make the speed of the simulated vehicle when reaching the connection boundary be the target speed.
[0306] Optionally, in a specific implementation, the speed prediction module includes:
[0307] The traffic flow density acquisition submodule is used to acquire the traffic flow density of the complete road section to which the designated road section belongs; wherein the designated road section is the road section to be entered by the simulated vehicle when crossing the connecting boundary;
[0308] The speed prediction submodule is used to perform speed prediction based on the acquired traffic flow density to obtain a target speed that matches the traffic conditions of the other type of sub-road network and is required when the simulated vehicle crosses the boundary to enter the other type of sub-road network.
[0309] Optionally, in a specific implementation, the speed prediction submodule is specifically used to:
[0310] Based on the proportional relationship between the acquired traffic flow density and the benchmark traffic flow density, the benchmark traffic flow speed is adjusted to obtain the traffic flow speed of the vehicle flow in the complete road section to which the designated road section belongs; wherein the benchmark traffic flow density is the traffic flow density of the complete road section to which the designated road section belongs in a blocked state, and the benchmark traffic flow speed is the traffic flow speed of the complete road section to which the designated road section belongs in a free flow state;
[0311] Based on the traffic speed of the vehicle in the complete road section to which the designated road section belongs, a target speed required for the simulated vehicle to cross the adjacent boundary to enter another type of sub-road network and matched with the traffic conditions of the other type of sub-road network is determined.
[0312] Optionally, in a specific implementation, the complete road section to which the designated road section portion belongs contains the connecting boundary;
[0313] The traffic flow density acquisition submodule is specifically used for:
[0314] For the road section portion on each side of the connecting boundary of the complete road section to which the designated road section portion belongs, obtaining the lane-level traffic flow density of the side road section portion from the simulation model of the sub-road network to which the side road section portion belongs;
[0315] Based on the acquired traffic flow density, the traffic flow density of the complete road section is calculated.
[0316] Optionally, in a specific implementation, different types of sub-road networks have different simulation importance in the target road network;
[0317] The resolution of the simulation model set for a sub-network with a high degree of importance is higher than the resolution of the simulation model set for a sub-network with a low degree of importance.
[0318] Optionally, in a specific implementation, the at least two types of sub-networks are determined by:
[0319] Determine at least two types of sub-road networks according to a predetermined area analysis method; wherein the predetermined area analysis method includes: using whether there is a main road section and / or a road intersection section as a distinction criterion, or using whether the number of main road sections and / or road intersection sections meets the selection condition as a distinction criterion;
[0320] or,
[0321] At least two types of sub-networks are determined by manual configuration.
[0322] Optionally, in a specific implementation, the at least two types of sub-networks are a first type of sub-network and a second type of sub-network, and the importance of the first type of sub-network is higher than that of the second type of sub-network;
[0323] The simulation model of the first type of sub-network is a microscopic simulation model, and the simulation model of the second type of sub-network is a mesoscopic simulation model.
[0324] Optionally, in a specific implementation, the area range of the second type of sub-network is larger than the area range of the first type of sub-network, and the second type of sub-network surrounds the first type of sub-network.
[0325] Optionally, in a specific implementation, the device further includes:
[0326] The model running module is used to simultaneously run the simulation models of various sub-road networks from the same simulation moment and with the same simulation step size before the step of taking the starting position of the driving route of each simulated vehicle as the loading position, loading each simulated vehicle into the simulation model of the sub-road network to which the corresponding starting position belongs, and moving according to the corresponding driving route and simulation resolution.
[0327] Optionally, in a specific implementation, the simulation operation module 1420 is specifically used to:
[0328] For each simulated vehicle, a designated departure time of the simulated vehicle is determined; in response to reaching a simulation time corresponding to the designated departure time of the simulated vehicle, the starting position of the driving route of the simulated vehicle is used as the loading position, and the simulated vehicle is loaded into the simulation model of the sub-road network to which the corresponding starting position belongs, so as to move according to the corresponding driving route and simulation resolution.
[0329] Optionally, in a specific implementation, the device further includes:
[0330] A data output module is used to load each simulated vehicle into a simulation model of a sub-road network to which the corresponding starting position belongs, taking the starting position of the driving route of each simulated vehicle as the loading position, so that after the vehicle moves according to the corresponding driving route and simulation resolution, in response to satisfying the data output conditions for the target object, output the traffic data obtained by simulation corresponding to the target object; wherein the types of the target objects include: one or more of simulation models, simulated vehicles, road sections and sub-road networks.
[0331] The present application also provides an electronic device, such as Fig.15 As shown, including:
[0332] Memory 1501, used for storing computer programs;
[0333] The processor 1502 is used to implement any traffic simulation method provided in the above-mentioned embodiments of the present application when executing the program stored in the memory 1501.
[0334] In addition, the electronic device may further include a communication bus and / or a communication interface, and the processor 1502, the communication interface, and the memory 1501 communicate with each other via the communication bus.
[0335] The communication bus mentioned in the above electronic device can be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus, etc. The communication bus can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, only one thick line is used in the figure, but it does not mean that there is only one bus or one type of bus.
[0336] The communication interface is used for communication between the above electronic device and other devices.
[0337] The memory may include a random access memory (RAM) or a non-volatile memory (NVM), such as at least one disk memory. Optionally, the memory may also be at least one storage device located away from the aforementioned processor.
[0338] The above-mentioned processor can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.
[0339] In another embodiment provided in the present application, a computer-readable storage medium is provided, in which a computer program is stored. When the computer program is executed by a processor, the steps of any of the above-mentioned traffic simulation methods are implemented.
[0340] In another embodiment provided in the present application, a computer program product including instructions is also provided, which, when executed on a computer, enables the computer to execute any traffic simulation method in the above embodiments.
[0341] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented using software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function described in the embodiment of the present application is generated in whole or in part. The computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions may be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium, for example, the computer instructions may be transmitted from a website site, computer, server or data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) mode to another website site, computer, server or data center. The computer-readable storage medium may be any available medium that a computer can access or a data storage device such as a server or data center that includes one or more available media integrated. The available medium may be a magnetic medium, (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a solid-state hard disk (SSD), etc.
[0342] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article 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, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.
[0343] Each embodiment in this specification is described in a related manner, and the same or similar parts between the embodiments can be referred to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the device embodiment, electronic device embodiment, computer-readable storage medium embodiment, and computer program product embodiment, since they are basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.
[0344] The above description is only a preferred embodiment of the present application and is not intended to limit the protection scope of the present application. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application are included in the protection scope of the present application.
Claims
1. A traffic simulation method, It is characterized in that The method comprises: Acquire driving routes of each simulated vehicle for a target road network; wherein the target road network is composed of at least two types of sub-road networks and there is a position of a connecting boundary between any two types of sub-road networks, different types of sub-road networks are provided with simulation models of different resolutions, and each driving route includes a driving route crossing the connecting boundary; Using the starting position of each simulated vehicle's driving route as the loading position, each simulated vehicle is loaded into the simulation model of the sub-road network to which the corresponding starting position belongs, so as to move according to the corresponding driving route and simulation resolution; In response to the driving position of any simulated vehicle reaching the connection boundary, the simulated vehicle is switched to be loaded into the designated simulation model using the current driving information of the simulated vehicle as the initial driving information, so as to continue to move based on the initial driving information and in accordance with the corresponding driving route and simulation resolution; The designated simulation model is a simulation model of the sub-network entered after crossing the connecting boundary.
2. The method according to claim 1, It is characterized in that Before switching and loading the simulated vehicle into the designated simulation model using the current driving information of the simulated vehicle as the initial driving information, the method further includes: Identify whether there is a queue and overflow in a designated road section; wherein the designated road section is the road section that the simulated vehicle is to enter when crossing the connecting boundary; If it is identified that there is a queue and overflow, instruct the simulation model where the simulated vehicle is currently located to control the simulated vehicle to wait, and return to the step of identifying whether there is a queue and overflow in the designated road section; Otherwise, the step of using the current driving information of the simulated vehicle as the initial driving information and switching the simulated vehicle to be loaded into the designated simulation model is executed.
3. The method according to claim 2, It is characterized in that The identifying whether there is a queue and overflow in the designated road section includes: Obtaining queue length information at the lane level for a specified road section of a specified simulation model; Based on the queue length information and the section length of the designated section, it is analyzed whether there is a queue and overflow in the designated section.
4. The method according to claim 1, It is characterized in that The method further comprises: In response to the driving position of any simulated vehicle reaching an edge position of the buffer transition section, and the corresponding driving route represents the boundary to be crossed, predicting the transition speed required for the simulated vehicle to travel from the current sub-road network to the target sub-road network; wherein the buffer transition section includes the boundary and the distance between each edge position and the boundary does not exceed the target buffer distance threshold, and the target sub-road network is the sub-road network entered by the simulated vehicle after crossing the boundary; Using the transition speed as the vehicle speed, during the process of the simulated vehicle traveling along the corresponding driving route, controlling the simulated vehicle to move within the buffer transition section; The method of continuing the movement based on the initial driving information and according to the corresponding driving route and simulation resolution includes: Using a predetermined speed control method, the movement is continued according to the corresponding driving route and simulation resolution based on the initial driving information; The speed control method includes: in response to the simulated vehicle being in the buffer transition section, not controlling the vehicle speed of the simulated vehicle; and, in response to the simulated vehicle exiting the buffer transition section, controlling the simulated vehicle to move using the transition speed as the initial speed.
5. The method according to claim 4, It is characterized in that The prediction of the transition speed required for the simulated vehicle to travel from the current sub-road network to the target sub-road network includes: Determine a first number of vehicles and a first vehicle reference speed of a first road section; wherein the first road section is a road section where the simulated vehicle is located in the current sub-road network; and the first vehicle reference speed is used to characterize the speed of vehicles moving on the first road section; Determine the second number of vehicles and the second vehicle reference speed of the second road section; wherein the second road section is the road section that the simulated vehicle enters after crossing the connecting boundary and belongs to the target sub-road network; the second vehicle reference speed is used to represent the speed of the vehicle moving on the second road section; Based on the quantitative relationship between the first number of vehicles and the second number of vehicles, the first vehicle reference speed and the second vehicle reference speed are weightedly fused to obtain a transition speed required for the simulated vehicle to travel from the current sub-network into the target sub-network.
6. The method according to claim 5, It is characterized in that Based on the quantitative relationship between the first number of vehicles and the second number of vehicles, the first vehicle reference speed and the second vehicle reference speed are weightedly integrated to obtain the transition speed required for the simulated vehicle to travel from the current sub-network to the target sub-network, including: According to the target formula, based on the quantitative relationship between the first number of vehicles and the second number of vehicles, the first vehicle reference speed and the second vehicle reference speed are weightedly integrated to obtain the transition speed required for the simulated vehicle to travel from the current sub-network to the target sub-network; The target formula includes: Among them, v buffer is the transition speed required for the simulated vehicle to travel from the current sub-network to the target sub-network, n 1 is the first number of vehicles, n 2 is the second vehicle number, v 1 is the first vehicle reference speed, v 2 is the reference speed of the second vehicle.
7. The method according to claim 1, It is characterized in that The method further comprises: In response to the driving position of any simulated vehicle reaching a predetermined transition position, and the corresponding driving route represents the boundary to be crossed, predicting a target speed that matches the traffic conditions of the other type of sub-road network required for the simulated vehicle to cross the boundary to enter the other type of sub-road network; wherein the predetermined transition position is located before the boundary, and the distance between the predetermined transition position and the boundary does not exceed a predetermined buffer distance threshold; Based on the target speed, the simulation model in which the simulated vehicle is currently located is controlled to perform speed adjustment processing on the simulated vehicle; wherein the speed adjustment processing is used to make the speed of the simulated vehicle when reaching the connection boundary equal to the target speed.
8. The method according to claim 7, It is characterized in that The predicting of the target speed required by the simulated vehicle when crossing the boundary to enter another type of sub-road network and matching the traffic conditions of the other type of sub-road network comprises: Obtaining the traffic flow density of the complete road section to which the designated road section portion belongs; wherein the designated road section portion is the road section portion to be entered by the simulated vehicle when crossing the connecting boundary; Based on the acquired traffic flow density, speed prediction is performed to obtain a target speed required for the simulated vehicle to cross the boundary to enter another type of sub-road network and matching the traffic conditions of the other type of sub-road network.
9. The method according to claim 8, It is characterized in that The method of performing speed prediction based on the acquired traffic flow density to obtain a target speed required by the simulated vehicle when crossing the boundary to enter another type of sub-road network and matching the traffic conditions of the other type of sub-road network includes: Based on the proportional relationship between the acquired traffic flow density and the benchmark traffic flow density, the benchmark traffic flow speed is adjusted to obtain the traffic flow speed of the vehicle flow in the complete road section to which the designated road section belongs; wherein the benchmark traffic flow density is the traffic flow density of the complete road section to which the designated road section belongs in a blocked state, and the benchmark traffic flow speed is the traffic flow speed of the complete road section to which the designated road section belongs in a free flow state; Based on the traffic speed of the vehicle in the complete road section to which the designated road section belongs, a target speed required for the simulated vehicle to cross the adjacent boundary to enter another type of sub-road network and matched with the traffic conditions of the other type of sub-road network is determined.
10. The method according to claim 8, It is characterized in that The complete road section to which the designated road section portion belongs contains the connecting boundary; The step of obtaining the traffic flow density of the complete road section to which the designated road section belongs includes: For the road section portion on each side of the connecting boundary of the complete road section to which the designated road section portion belongs, obtaining the lane-level traffic flow density of the side road section portion from the simulation model of the sub-road network to which the side road section portion belongs; Based on the acquired traffic flow density, the traffic flow density of the complete road section is calculated.
11. The method according to any one of claims 1 to 10, It is characterized in that Different types of sub-road networks have different simulation importance in the target road network; The resolution of the simulation model set for a sub-network with a high degree of importance is higher than the resolution of the simulation model set for a sub-network with a low degree of importance.
12. The method according to claim 11, It is characterized in that The at least two types of sub-networks are determined in the following manner: Determine at least two types of sub-road networks according to a predetermined area analysis method; wherein the predetermined area analysis method includes: using whether there is a main road section and / or a road intersection section as a distinction criterion, or using whether the number of main road sections and / or road intersection sections meets the selection condition as a distinction criterion; or, At least two types of sub-networks are determined by manual configuration.
13. The method according to claim 11, It is characterized in that The at least two types of sub-networks are a first type of sub-network and a second type of sub-network, and the importance of the first type of sub-network is higher than that of the second type of sub-network; The simulation model of the first type of sub-network is a microscopic simulation model, and the simulation model of the second type of sub-network is a mesoscopic simulation model.
14. The method according to claim 13, It is characterized in that The area range of the second type of sub-network is larger than the area range of the first type of sub-network, and the second type of sub-network surrounds the first type of sub-network.
15. The method according to any one of claims 1 to 10, It is characterized in that Before the step of taking the starting position of each simulated vehicle's driving route as the loading position and loading each simulated vehicle into the simulation model of the sub-road network to which the corresponding starting position belongs so as to move according to the corresponding driving route and simulation resolution, the method further includes: Simultaneously run simulation models of various subnetworks from the same simulation time and with the same simulation step size.
16. The method according to any one of claims 1 to 10, It is characterized in that The method of taking the starting position of each simulated vehicle's driving route as the loading position and loading each simulated vehicle into the simulation model of the sub-road network to which the corresponding starting position belongs, so as to move according to the corresponding driving route and simulation resolution, comprises: For each simulated vehicle, determining a designated departure time for the simulated vehicle; In response to reaching a simulation time corresponding to the designated departure time of the simulated vehicle, the starting position of the driving route of the simulated vehicle is used as the loading position, and the simulated vehicle is loaded into the simulation model of the sub-road network to which the corresponding starting position belongs, so as to move according to the corresponding driving route and simulation resolution.
17. The method according to any one of claims 1 to 10, It is characterized in that The method further comprises: taking the starting position of each simulated vehicle's driving route as the loading position, loading each simulated vehicle into the simulation model of the sub-road network to which the corresponding starting position belongs, so as to move according to the corresponding driving route and simulation resolution. In response to satisfying a data output condition for a target object, outputting simulated traffic data corresponding to the target object; The types of the target objects include: one or more of simulation models, simulation vehicles, road sections and sub-road networks.
18. A traffic simulation device, It is characterized in that The device comprises: A driving route acquisition module is used to acquire the driving routes of each simulated vehicle for a target road network; wherein the target road network is composed of at least two types of sub-road networks and there is a position of a connecting boundary between any two types of sub-road networks, different types of sub-road networks are provided with simulation models of different resolutions, and each driving route includes a driving route crossing the connecting boundary; The simulation operation module is used to use the starting position of each simulated vehicle's driving route as a loading position, and load each simulated vehicle into the simulation model of the sub-road network to which the corresponding starting position belongs, so as to move according to the corresponding driving route and simulation resolution; A resolution switching module, for responding to the driving position of any simulated vehicle reaching the connection boundary, using the current driving information of the simulated vehicle as the initial driving information, switching the simulated vehicle to be loaded into the designated simulation model, so as to move based on the initial driving information and in accordance with the corresponding driving route and simulation resolution; The designated simulation model is a simulation model of the sub-network entered after crossing the connecting boundary.
19. An electronic device, It is characterized in that include: Memory, used to store computer programs; A processor, for implementing any of the methods described in claims 1-17 when executing a program stored in a memory.
20. A computer-readable storage medium, It is characterized in that The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the method according to any one of claims 1 to 17 is implemented.
