Traffic signal simulation method, device, equipment and medium
By obtaining the target time and target flow quantum sub-region, the target sub-region time and signal control timing strategy of each intersection to be simulated, and the target phase and remaining time are determined based on the periodic footing point, the problem that traditional traffic signal simulation methods cannot be combined to simulate is solved, and simultaneous simulation and more reliable signal control timing strategy are realized at multiple intersections.
Patent Information
- Application Number
- CN202210670909.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-06-14
- Publication Date
- 2025-04-08
- Estimated Expiration
- 2042-06-14
AI Technical Summary
Traditional traffic signal simulation methods cannot jointly simulate multiple intersections with similar traffic flows during the same period, which affects the simulation effect and the configuration effect of signal control timing.
By obtaining the target time and the target flow quantum region, the target sub-zone time and signal control timing strategy of each intersection to be simulated is determined, the target phase and remaining time are determined based on the periodic footing point, and the simulation control is carried out.
Simultaneous simulation of multiple intersections is realized, simulation reliability is improved, more reliable simulation data is provided for signal control timing distribution strategies, and the authenticity of traffic road conditions is enhanced.
Smart Images

Figure CN115083159B_ABST
Abstract
Description
Technical Field
[0001] The present disclosure generally relates to simulation control, and more particularly to a method, device, equipment and medium for simulating traffic signals. Background Art
[0002] Traffic lights are important equipment for urban traffic control and regulation. They bear the heavy responsibility of maintaining urban road traffic order and alleviating traffic congestion. Before applying the configured signal control timing, simulation is required. Traditional simulation methods usually only simulate a certain intersection and cannot jointly simulate multiple intersections with similar traffic flows in the same period, which seriously affects the simulation effect and thus affects the configuration effect of signal control timing. Summary of the invention
[0003] In view of the above-mentioned defects or deficiencies in the prior art, it is desired to provide a traffic signal simulation method, device, equipment and medium, which can simulate multiple traffic intersections in the same sub-area time period according to their respective configured signal control timing strategies during simulation, improve simulation reliability, and provide more reliable simulation data for signal control timing strategies.
[0004] In a first aspect, an embodiment of the present application provides a method for simulating a traffic signal, comprising:
[0005] Obtaining a target time to be simulated and a target flow sub-area to be simulated;
[0006] Acquire at least one intersection to be simulated that is associated with the target traffic sub-area at the target time, and acquire the target sub-area time and signal control timing strategy of each intersection to be simulated in the target traffic sub-area;
[0007] For each of the intersections to be simulated, determine a cycle landing point corresponding to the target time based on the target time and the signal control timing strategy, and determine a target phase and a remaining time corresponding to the target time based on the cycle landing point;
[0008] According to the target phase and the remaining time corresponding to each target time, the intersection to be simulated is simulated and controlled.
[0009] In some embodiments, it also includes:
[0010] Acquire traffic flow data of each intersection, and divide the traffic flow data of multiple intersections into multiple flow sub-areas;
[0011] For each of the intersections, determine whether the traffic flow data continuously belongs to any of the flow sub-areas. If so, associate the continuous time corresponding to the traffic flow data belonging to the flow sub-area with the flow sub-area, and use the continuous time as the sub-area time of the intersection in the flow sub-area.
[0012] In some embodiments, it also includes:
[0013] Based on the coordinated control algorithm, the signal control timing strategy is configured for each sub-zone time.
[0014] In some embodiments, determining the cycle landing point corresponding to the target time based on the target time and the signal control timing strategy includes:
[0015] Based on the target sub-area time of the intersection to be simulated in the target flow sub-area, determining the start time of the target sub-area time,
[0016] Based on the target time and the start time, determine the running time of the intersection to be simulated in the target flow sub-area;
[0017] The timing cycle is determined based on the signal control timing strategy, and the cycle landing point corresponding to the target time is determined according to the running time and the timing cycle.
[0018] In some embodiments, it also includes:
[0019] A remainder operation is performed on the running time and the timing cycle, and a position corresponding to the remainder in the timing cycle is used as the end point of the cycle.
[0020] In some embodiments, determining the target phase and the remaining time corresponding to the target time based on the cycle landing point includes:
[0021] Based on the timing strategy, determine the phase sequence of the intersection to be simulated within a timing cycle and the time length corresponding to each phase;
[0022] Based on the cycle landing point, the phase sequence and the time length corresponding to each phase, the target phase and the remaining time corresponding to the cycle landing point are determined.
[0023] In some embodiments, determining the target phase and the remaining time corresponding to the cycle landing point based on the cycle landing point, the phase sequence, and the time range corresponding to each phase includes:
[0024] Based on the periodic landing point and the time lengths corresponding to the phases, determine the time range in which the periodic landing point is located, and the position of the periodic landing point in the time range;
[0025] The phase corresponding to the time range is taken as the target phase, and the duration between the cycle landing point and the end time of the time range is taken as the remaining time.
[0026] In some embodiments, the simulation control of the intersection to be simulated according to the target phase and the remaining time corresponding to each target time includes:
[0027] The target phase of the intersection to be simulated is controlled to execute a green light signal according to the remaining time, and other phases in the signal control timing strategy corresponding to the intersection to be simulated are controlled to execute a red light signal.
[0028] In a second aspect, an embodiment of the present application provides a traffic signal simulation device, comprising:
[0029] A first acquisition module is used to acquire a target time to be simulated and a target flow sub-area to be simulated;
[0030] A second acquisition module is used to acquire at least one intersection to be simulated associated with the target traffic sub-area, and a sub-area time and a timing strategy of each intersection to be simulated in the target traffic sub-area;
[0031] A determination module, for determining, for each of the intersections to be simulated, a cycle landing point corresponding to the target time based on the target time and the timing strategy, and determining a target phase and a remaining time corresponding to the target time based on the cycle landing point;
[0032] The control module is used to perform simulation control on the intersection to be simulated according to the target phase and the remaining time corresponding to each target time.
[0033] In some embodiments, the simulation device further includes:
[0034] A third acquisition module is used to acquire the traffic flow data of each intersection, and divide the traffic flow data of the plurality of intersections into a plurality of flow sub-areas;
[0035] The association module is used to determine, for each of the intersections, whether the traffic flow data continuously belongs to any of the flow sub-areas. If so, the continuous time corresponding to the traffic flow data belonging to the flow sub-area is associated with the flow sub-area, and the continuous time is used as the sub-area time of the intersection in the flow sub-area.
[0036] In a third aspect, an embodiment of the present application provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the method described in the embodiment of the present application when executing the program.
[0037] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the method described in the embodiment of the present application.
[0038] The traffic signal simulation method proposed in the embodiment of the present application can simultaneously simulate multiple intersections with similar traffic at the same time, and can also use periodic landing points to simulate the control delay between each intersection, further improving the authenticity of the traffic road conditions at the target time, and providing more reliable simulation data for scientific optimization of signal control timing plans.
[0039] Additional aspects and advantages of the present invention will be given in part in the following description and in part will be obvious from the following description, or will be learned through practice of the present invention. BRIEF DESCRIPTION OF THE DRAWINGS
[0040] Other features, objects and advantages of the present application will become more apparent by reading the detailed description of non-limiting embodiments made with reference to the following drawings:
[0041] Figure 1 A schematic diagram of a flow chart of a traffic signal simulation method provided by an embodiment of the present application is shown;
[0042] Figure 2 A schematic diagram showing a flow chart of a traffic signal simulation method provided by another embodiment of the present application;
[0043] Figure 3 A schematic diagram showing a flow chart of a traffic signal simulation method provided by another embodiment of the present application is shown;
[0044] Figure 4 A block diagram of a traffic signal simulation device provided by an embodiment of the present application is shown;
[0045] Figure 5 A block diagram of a traffic signal simulation device provided by another embodiment of the present application is shown;
[0046] Figure 6 A schematic diagram of the structure of a computer system of an electronic device or server suitable for implementing an embodiment of the present application is shown. DETAILED DESCRIPTION
[0047] The present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It is to be understood that the specific embodiments described herein are only used to explain the relevant invention, rather than to limit the invention. It is also necessary to explain that, for ease of description, only the parts related to the invention are shown in the accompanying drawings.
[0048] It should be noted that, in the absence of conflict, the embodiments and features in the embodiments of the present application can be combined with each other. The present application will be described in detail below with reference to the accompanying drawings and in combination with the embodiments.
[0049] In order to further illustrate the technical solution provided by the embodiment of the present application, this is described in detail below in conjunction with the accompanying drawings and specific implementation methods. Although the embodiment of the present application provides the method operation instruction steps shown in the following embodiments or drawings, more or less operation instruction steps may be included in the method based on routine or no creative labor. In the steps where there is no necessary causal relationship logically, the execution order of these steps is not limited to the execution order provided by the embodiment of the present application. The method may be executed in the order of the method shown in the embodiment or drawings or in parallel during the actual processing process or when the device is executed.
[0050] Please refer to Figure 1 , Figure 1 A schematic flow chart of a traffic signal simulation method provided in an embodiment of the present application is shown.
[0051] It should be noted that the executor of the traffic signal simulation method of this embodiment is a traffic signal simulation device, which can be implemented by software and / or hardware. The traffic signal simulation device in this embodiment can be configured in an electronic device, or in a server for controlling the electronic device, which communicates with the electronic device and controls it.
[0052] Among them, the electronic equipment in this embodiment may include but is not limited to personal computers, platform computers, smart phones, vehicle-mounted terminals and other devices. This embodiment does not specifically limit the electronic equipment.
[0053] like Figure 1 As shown, the traffic signal simulation method includes:
[0054] Step 101, obtaining a target time to be simulated and a target flow sub-area to be simulated.
[0055] Among them, the target time can be any time, such as any time in a day, or any time on weekdays, any time on weekends, etc. The specific time granularity is not specifically limited in this application and can be specifically set according to the requirements of signal control timing.
[0056] Traffic sub-zones are different traffic classifications determined based on the daily and time-varying characteristics of traffic flow at intersections. This application can improve the coordination and control capabilities between multiple intersections with similar traffic flow in the same period of time by uniformly managing intersections with traffic in the same sub-zone during the same period of time.
[0057] In one or more embodiments, Figure 2 As shown, it also includes:
[0058] Step 201, obtain traffic flow data of each intersection, and divide the traffic flow data of multiple intersections into multiple flow sub-areas.
[0059] That is to say, traffic flow is monitored at multiple intersections that require signal control timing settings, and then the maximum and minimum traffic flows are determined based on the traffic flow data at the multiple intersections. The traffic flow between the maximum and minimum traffic flows is divided into at least one flow sub-area according to traffic characteristics, such as a peak flow sub-area, an off-peak flow sub-area, and a nighttime flow sub-area.
[0060] It should be understood that the traffic flow between the maximum and minimum values at each intersection can be unevenly divided into multiple traffic sub-areas based on the daily and / or time-varying characteristics of the traffic flow at each intersection. For example, the traffic flow span corresponding to the night traffic sub-area may be larger than the traffic flow span corresponding to the peak traffic sub-area. The traffic flow between the maximum and minimum values at each intersection can also be evenly divided into multiple traffic sub-areas. The present application does not specifically limit the rules for dividing the traffic sub-areas.
[0061] Step 202, for each intersection, determine whether the traffic flow data continuously belongs to any flow sub-area. If so, associate the continuous time corresponding to the traffic flow data belonging to the flow sub-area with the flow sub-area, and use the continuous time as the sub-area time of the intersection in the flow sub-area.
[0062] That is to say, after determining a plurality of flow sub-areas according to the traffic flow data, the traffic flow time of each intersection needs to be divided into each flow sub-area, and the time corresponding to each traffic flow is used as the sub-area time.
[0063] Specifically, for the traffic flow data of any intersection, the first flow sub-area to which the traffic flow data belongs is determined, and whether the first flow sub-area to which the traffic flow data belongs is the same as the second flow sub-area to which the AC flow data corresponding to the previous moment belongs. If the first flow sub-area and the second flow sub-area are the same flow sub-area, the traffic flow data and the traffic flow data corresponding to the previous moment are associated with the first flow sub-area (the second flow sub-area), and the time corresponding to the traffic flow and the previous moment are recorded as the sub-area time until the first flow sub-area and the second flow sub-area are different flow sub-areas. If the first flow sub-area and the second flow sub-area are different flow sub-areas, the traffic flow is associated with the first flow sub-area, and the previous moment is recorded as the end time of the sub-area time corresponding to the second flow sub-area, and the time corresponding to the traffic flow is used as the start time of the sub-area time corresponding to the first flow sub-area.
[0064] Therefore, the embodiment of the present application can map the traffic flow at the intersection into the two-dimensional relationship between time and flow sub-areas. When the time and flow sub-areas are determined, the intersection that meets the time and flow conditions can be determined.
[0065] Step 102, obtaining at least one intersection to be simulated that is associated with a target traffic sub-area at a target time, and obtaining a target sub-area time and a signal control timing strategy for each intersection to be simulated in the target traffic sub-area.
[0066] The signal control timing strategy corresponding to each sub-area time at each intersection can be set manually or automatically configured using a coordinated control algorithm. The coordinated control algorithm is an algorithm that determines the signal control timing strategy based on vehicle speed, queue length, etc.
[0067] It should be noted that the signal control timing strategy includes the basic parameter configuration of the intersection, phase sequence, execution time of each phase, etc., among which the basic parameter configuration of the intersection includes at least the intersection name, code, type, lane direction and control equipment identification.
[0068] Among them, phase refers to the green light release process in the traffic light, and the green light duration is called phase duration. The period from one phase of the traffic light to the next identical phase is called the timing cycle. Common intersection phases include two phases (only including east straight and west straight, south straight and north straight), three phases (compared to the two phases, one group of left turn phases is added), and four phases (including east straight and west straight, east left and west left, south straight and north straight, and south left and north left).
[0069] That is to say, after obtaining the target time and the target traffic sub-area, the target sub-area time of at least one intersection to be simulated associated with the target traffic sub-area at the target time and the signal control timing strategy configured for the sub-area time are determined according to the target time and the target traffic sub-area.
[0070] It should be understood that an intersection may have multiple sub-area times within a traffic sub-area. For example, an intersection may have a peak period in the morning and afternoon, so it has two corresponding sub-area times. At this time, it is necessary to determine the target sub-area time based on the target time, that is, the sub-area time containing the target time is used as the target sub-area time.
[0071] Step 103, for each intersection to be simulated, determine the cycle landing point corresponding to the target time based on the target time and the signal control timing strategy, and determine the target phase and remaining time corresponding to the target time based on the cycle landing point.
[0072] It should be noted that the cycle landing point is the position of the target time in the cycle of the signal control timing strategy corresponding to the intersection to be simulated. It should be understood that the present application determines the cycle landing point so that the simulation can be closer to the actual traffic situation, that is, the actual traffic law of each intersection to be simulated can be simulated, effectively avoiding the traffic distortion caused by simulating all intersections to be simulated from the beginning of the signal control cycle at the beginning of the simulation.
[0073] For example, for two adjacent intersections A and B, the manually configured signal control timing strategy can make vehicles pass through intersection A and intersection B continuously by configuring the same phase delay of intersection A and intersection B. If both intersection A and intersection B start the simulation from the beginning of the cycle of the signal control timing strategy during simulation, the traffic effect brought by the delay is easily lost. However, this application can ensure the retention of the delay effect between multiple intersections simulated simultaneously by determining the cycle foothold.
[0074] In one or more embodiments, Figure 3 As shown, in step 103, determining the cycle landing point corresponding to the target time based on the target time and the signal control timing strategy includes:
[0075] Step 1031, based on the target sub-area time of the intersection to be simulated in the target traffic sub-area, determine the start time of the target sub-area time.
[0076] The start time of the target sub-area time is the start time of the continuous time period including the target time, and the traffic flow data corresponding to the continuous time belongs to the same flow sub-area.
[0077] Step 1032, based on the target time and the start time, determine the running time of the intersection to be simulated in the target flow sub-area.
[0078] The target time and the start time may be used to make a difference, for example, the difference between the target time C and the start time B of the target sub-area time may be calculated, and the obtained difference (CB) may be used as the running time.
[0079] Step 1033, determine the timing cycle based on the signal control timing strategy, and determine the cycle landing point corresponding to the target time according to the running time and the timing cycle.
[0080] Preferably, a remainder operation is performed on the running time and the timing period, and the position of the remainder corresponding to the timing period is used as the period foothold.
[0081] Specifically, T=(CB)÷cycle, where T is the cycle end point, C is the target time, B is the start time of the target sub-area time, and cycle is the timing cycle.
[0082] In one or more embodiments, the target phase and remaining time corresponding to the target time are determined based on the cycle landing point, including: based on the signal control timing strategy, determining the phase sequence and the time length of each phase of the intersection to be simulated within a timing cycle, and based on the cycle landing point, the phase sequence and the time length corresponding to each phase, determining the target phase and remaining time corresponding to the cycle landing point.
[0083] That is to say, the signal control timing strategy is divided according to the phase sequence and the time length of each phase. For example, at a two-phase intersection, the phase sequence in one cycle can be east straight and west straight, south straight and north straight, and the two phases are executed for 10 seconds each, that is, one cycle is east straight and west straight for 10 seconds and south straight and north straight for 10 seconds.
[0084] It should be understood that after obtaining the phase sequence of the intersection to be simulated within the timing cycle and the time length corresponding to each phase by decomposing the signal control timing strategy, the target phase corresponding to the cycle end point and the remaining time corresponding to the target phase can be determined according to the position of the cycle end point in the timing cycle, where the remaining time is the length of time to continue to execute the green light signal of the target phase.
[0085] Preferably, based on the cycle landing point, phase sequence and the time length corresponding to each phase, the target phase and remaining time corresponding to the cycle landing point are determined, including: based on the cycle landing point and the time length corresponding to each phase, the time range in which the cycle landing point is located and the position of the cycle landing point in the time range are determined, the phase corresponding to the time range is taken as the target phase, and the duration between the cycle landing point and the end time of the time range is taken as the remaining time.
[0086] Specifically, the cycle foothold is compared with the time length corresponding to each phase in turn. If the time position corresponding to the cycle foothold in the timing cycle is greater than the end time position of the phase, it is determined that the phase is not the target phase. If the time position of the cycle foothold in the cycle is greater than the start time position of the phase and less than the end time position of the phase, it is determined that the phase is the target phase. Then, the duration between the cycle foothold and the end time of the target phase is calculated, and the duration is used as the remaining time, that is, the remaining time to execute the green light of the phase.
[0087] Step 104 , performing simulation control on the intersection to be simulated according to the target phase and the remaining time corresponding to the target time.
[0088] Optionally, the target phase of the intersection to be simulated is controlled to execute a green light signal according to the remaining time, and other phases in the signal control timing strategy corresponding to the intersection to be simulated are controlled to execute a red light signal.
[0089] It should be understood that, for an intersection, when executing the green light signal strategy of the target phase, the other phases in the intersection all execute the red light signal strategy. Therefore, the green light signal can be directly executed according to the remaining time, and the other phases can execute the red light signal.
[0090] It should also be understood that when the remaining time of the green light signal is executed, the green light signal strategy of the next phase may continue to be executed according to the signal control timing strategy until the simulation ends.
[0091] Therefore, the traffic signal simulation method proposed in the embodiment of the present application can simultaneously simulate multiple intersections with similar traffic at the same time, and can use periodic landing points to simulate the control delay between each intersection, further improving the authenticity of the traffic road conditions at the target time, and providing more reliable simulation data for scientific optimization of signal control timing plans.
[0092] In one or more embodiments, the intersections to be simulated in multiple target traffic sub-areas may be simulated in sequence. Specifically, when there are multiple target traffic sub-areas, the traffic signal simulation method proposed in the embodiment of the present application may be first executed on any target traffic sub-area, and after simulating multiple intersections to be simulated in the target traffic sub-area, the target time is updated according to the consumed time, and the traffic signal simulation method proposed in the embodiment of the present application is executed on the next target traffic sub-area with the updated target time, thereby effectively ensuring that the multiple target traffic sub-areas that are simulated in sequence can ensure the time delay effect between each other.
[0093] In summary, the traffic signal simulation method proposed in the embodiment of the present application can simultaneously simulate multiple intersections with similar traffic at the same time, and can use periodic landing points to simulate the control delay between each intersection, further improving the authenticity of the traffic road conditions at the target time, and providing more reliable simulation data for scientific optimization of signal control timing plans.
[0094] Figure 4 A block diagram of a traffic signal simulation device provided by an embodiment of the present application is shown.
[0095] like Figure 4 As shown, the traffic signal simulation device 10 proposed in the embodiment of the present application includes:
[0096] A first acquisition module 11 is used to acquire a target time to be simulated and a target flow sub-area to be simulated;
[0097] A second acquisition module 12 is used to acquire at least one intersection to be simulated associated with the target traffic sub-area, and a sub-area time and a timing strategy of each intersection to be simulated in the target traffic sub-area;
[0098] A determination module 13 is used to determine, for each of the intersections to be simulated, a cycle landing point corresponding to the target time based on the target time and the timing strategy, and determine a target phase and a remaining time corresponding to the target time based on the cycle landing point;
[0099] The control module 14 is used to perform simulation control on the intersection to be simulated according to the target phase and the remaining time corresponding to each target time.
[0100] In some embodiments, Figure 5 As shown, it also includes:
[0101] A third acquisition module 15 is used to acquire the traffic flow data of each intersection, and divide the traffic flow data of the intersections into a plurality of flow sub-areas;
[0102] The association module 16 is used to determine, for each of the intersections, whether the traffic flow data continuously belongs to any of the flow sub-areas. If so, the continuous time corresponding to the traffic flow data belonging to the flow sub-area is associated with the flow sub-area, and the continuous time is used as the sub-area time of the intersection in the flow sub-area.
[0103] In some embodiments, the signal control timing strategy is configured for each of the sub-zones based on a coordinated control algorithm.
[0104] In some embodiments, the determination module 13 is further configured to:
[0105] Based on the target sub-area time of the intersection to be simulated in the target flow sub-area, determining the start time of the target sub-area time,
[0106] Based on the target time and the start time, determine the running time of the intersection to be simulated in the target flow sub-area;
[0107] The timing cycle is determined based on the signal control timing strategy, and the cycle landing point corresponding to the target time is determined according to the running time and the timing cycle.
[0108] In some embodiments, the determination module 13 is further configured to:
[0109] A remainder operation is performed on the running time and the timing cycle, and a position corresponding to the remainder in the timing cycle is used as the end point of the cycle.
[0110] In some embodiments, the determination module 13 is further configured to:
[0111] Based on the timing strategy, determine the phase sequence of the intersection to be simulated within a timing cycle and the time length corresponding to each phase;
[0112] Based on the cycle landing point, the phase sequence and the time length corresponding to each phase, the target phase and the remaining time corresponding to the cycle landing point are determined.
[0113] In some embodiments, the determination module 13 is further configured to:
[0114] Based on the periodic landing point and the time lengths corresponding to the phases, determine the time range in which the periodic landing point is located, and the position of the periodic landing point in the time range;
[0115] The phase corresponding to the time range is taken as the target phase, and the duration between the cycle landing point and the end time of the time range is taken as the remaining time.
[0116] In some embodiments, the control module 14 is further configured to:
[0117] The target phase of the intersection to be simulated is controlled to execute a green light signal according to the remaining time, and other phases in the signal control timing strategy corresponding to the intersection to be simulated are controlled to execute a red light signal.
[0118] In summary, the traffic signal simulation method proposed in the embodiment of the present application can simultaneously simulate multiple intersections with similar traffic at the same time, and can use periodic landing points to simulate the control delay between each intersection, further improving the authenticity of the traffic road conditions at the target time, and providing more reliable simulation data for scientific optimization of signal control timing plans.
[0119] It should be understood that the units or modules described in the device 10 are similar to those described in the reference Figure 1 The various steps in the described method correspond to each other. Therefore, the operations and features described above for the method are also applicable to the device 10 and the units contained therein, and will not be repeated here. The device 10 can be pre-implemented in a browser or other security application of an electronic device, or loaded into a browser or its security application of an electronic device by downloading or the like. The corresponding units in the device 10 can cooperate with the units in the electronic device to implement the solution of the embodiment of the present application.
[0120] For the several modules or units mentioned in the above detailed description, this division is not mandatory. In fact, according to the embodiments of the present disclosure, the features and functions of two or more modules or units described above can be embodied in one module or unit. On the contrary, the features and functions of one module or unit described above can be further divided into multiple modules or units to be embodied.
[0121] Reference below Figure 6 , Figure 6 A schematic diagram of the structure of a computer system of an electronic device or server suitable for implementing an embodiment of the present application is shown.
[0122] like Figure 6 As shown, the computer system includes a central processing unit (CPU) 601, which can perform various appropriate actions and processes according to the program stored in the read-only memory (ROM) 602 or the program loaded from the storage part 608 to the random access memory (RAM) 603. In the RAM 603, various programs and data required for the operation instructions of the system are also stored. The CPU 601, the ROM 602 and the RAM 603 are connected to each other through a bus 604. An input / output (I / O) interface 605 is also connected to the bus 604.
[0123] The following components are connected to the I / O interface 605: an input section 606 including a keyboard, a mouse, etc.; an output section 607 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, etc.; a storage section 608 including a hard disk, etc.; and a communication section 609 including a network interface card such as a LAN card, a modem, etc. The communication section 609 performs communication processing via a network such as the Internet. A drive 610 is also connected to the I / O interface 605 as needed. A removable medium 611, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 610 as needed, so that a computer program read therefrom is installed into the storage section 608 as needed.
[0124] In particular, according to an embodiment of the present application, the above reference flow chart Figure 2 The described process can be implemented as a computer software program. For example, an embodiment of the present application includes a computer program product, which includes a computer program carried on a computer readable medium, and the computer program includes a program code for executing the method shown in the flow chart. In such an embodiment, the computer program includes a program code for executing the method shown in the flow chart. In such an embodiment, the computer program can be downloaded and installed from the network through the communication part 609, and / or installed from the removable medium 611. When the computer program is executed by the central processing unit (CPU) 601, the above-mentioned functions defined in the system of the present application are executed.
[0125] It should be noted that the computer-readable medium shown in the present application may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples of computer-readable storage media may include, but are not limited to: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present application, a computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in combination with an instruction execution system, device or device. In the present application, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, which carries a computer-readable program code. This propagated data signal may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. Computer-readable signal media may also be any computer-readable medium such as a computer-readable storage medium that can send, propagate or transmit a program for use by or in conjunction with an instruction execution system, device or device. The program code contained on the computer-readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, optical cable, RF, etc., or any suitable combination of the above.
[0126] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, functions and operating instructions of the system, method and computer program product according to various embodiments of the present application. In this regard, each box in the flow chart or block diagram can represent a module, a program segment or a part of a code, and the aforementioned module, program segment or a part of a code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some implementations as replacements, the functions marked in the box can also occur in a sequence different from that marked in the accompanying drawings. For example, the boxes represented by two connections can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram and / or flow chart, and the combination of the boxes in the block diagram and / or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operating instruction, or can be implemented with a combination of dedicated hardware and computer instructions.
[0127] The units or modules involved in the embodiments described in the present application may be implemented by software or by hardware. The units or modules described may also be arranged in a processor, for example, may be described as: a processor includes a first acquisition module, a second acquisition module, a determination module and a control module. Among them, the names of these units or modules do not constitute a limitation on the units or modules themselves under certain circumstances. For example, the first acquisition module may also be described as "obtaining the target time to be simulated and the target flow sub-area to be simulated".
[0128] As another aspect, the present application further provides a computer-readable storage medium, which may be included in the electronic device described in the above embodiment, or may exist independently without being assembled into the electronic device. The above computer-readable storage medium stores one or more programs, and when the above programs are used by one or more processors to execute the traffic signal simulation method described in the present application.
[0129] The above description is only a preferred embodiment of the present application and an explanation of the technical principles used. Those skilled in the art should understand that the scope of disclosure involved in the present application is not limited to the technical solution formed by a specific combination of the above technical features, but should also cover other technical solutions formed by any combination of the above technical features or their equivalent features without departing from the aforementioned disclosed concept. For example, the above features are replaced with the technical features with similar functions disclosed in this application (but not limited to) by each other to form a technical solution.
Claims
1. A traffic signal simulation method, characterized in that: include: Obtaining a target time to be simulated and a target flow sub-area to be simulated; Acquire at least one intersection to be simulated that is associated with the target traffic sub-area at the target time, and acquire the target sub-area time and signal control timing strategy of each intersection to be simulated in the target traffic sub-area; wherein the signal control timing strategy includes at least one of the basic parameter configuration of the intersection, the phase sequence, and the execution time of each phase, and the phase is the green light release process in the traffic light; For each of the intersections to be simulated, a cycle landing point corresponding to the target time is determined based on the target time and the signal control timing strategy, and a target phase and remaining time corresponding to the target time are determined based on the cycle landing point; wherein the cycle landing point is the position of the target time in the cycle of the signal control timing strategy corresponding to the intersection to be simulated, and the remaining time is the length of time for continuing to execute the green light signal of the target phase; According to the target phase and the remaining time corresponding to each target time, the intersection to be simulated is simulated and controlled; Determining the cycle landing point corresponding to the target time based on the target time and the signal control timing strategy includes: Based on the target sub-area time of the intersection to be simulated in the target flow sub-area, determining the start time of the target sub-area time, Based on the target time and the start time, determining the running time of the intersection to be simulated in the target flow sub-area; Determine a timing cycle based on the signal control timing strategy, and determine the cycle landing point corresponding to the target time according to the running time and the timing cycle; A remainder operation is performed on the running time and the timing cycle, and a position corresponding to the remainder in the timing cycle is used as the end point of the cycle.
2. The simulation method according to claim 1, characterized in that: Also includes: Acquire traffic flow data of each intersection, and divide the traffic flow data of multiple intersections into multiple flow sub-areas; For each of the intersections, determine whether the traffic flow data continuously belongs to any of the flow sub-areas. If so, associate the continuous time corresponding to the traffic flow data belonging to the flow sub-area with the flow sub-area, and use the continuous time as the sub-area time of the intersection in the flow sub-area.
3. The simulation method according to claim 2, characterized in that: Also includes: Based on the coordinated control algorithm, the signal control timing strategy is configured for each sub-zone time.
4. The simulation method according to claim 1, characterized in that: The determining the target phase and the remaining time corresponding to the target time based on the cycle landing point includes: Based on the timing strategy, determine the phase sequence of the intersection to be simulated within a timing cycle and the time length corresponding to each phase; Based on the cycle landing point, the phase sequence and the time length corresponding to each phase, the target phase and the remaining time corresponding to the cycle landing point are determined.
5. The simulation method according to claim 4, characterized in that: The determining the target phase and the remaining time corresponding to the cycle landing point based on the cycle landing point, the phase sequence and the time range corresponding to each phase includes: Based on the periodic landing point and the time lengths corresponding to the phases, determine the time range in which the periodic landing point is located, and the position of the periodic landing point in the time range; The phase corresponding to the time range is taken as the target phase, and the duration between the cycle landing point and the end time of the time range is taken as the remaining time.
6. The simulation method according to claim 1, characterized in that: The step of performing simulation control on the intersection to be simulated according to the target phase and the remaining time corresponding to each target time includes: The target phase of the intersection to be simulated is controlled to execute a green light signal according to the remaining time, and other phases in the signal control timing strategy corresponding to the intersection to be simulated are controlled to execute a red light signal.
7. A traffic signal simulation device, characterized in that: include: A first acquisition module is used to acquire a target time to be simulated and a target flow sub-area to be simulated; The second acquisition module is used to acquire at least one intersection to be simulated that is associated with the target traffic sub-area at the target time, and acquire the target sub-area time and signal control timing strategy of each intersection to be simulated in the target traffic sub-area; wherein the signal control timing strategy includes at least one of the basic parameter configuration of the intersection, the phase sequence, and the execution time of each phase, and the phase is the green light release process in the traffic light; A determination module is used to determine, for each of the intersections to be simulated, a cycle landing point corresponding to the target time based on the target time and the signal control timing strategy, and determine a target phase and a remaining time corresponding to the target time based on the cycle landing point; wherein the cycle landing point is the position of the target time in the cycle of the signal control timing strategy corresponding to the intersection to be simulated, and the remaining time is the length of time for continuing to execute the green light signal of the target phase; A control module, used for performing simulation control on the intersection to be simulated according to the target phase and the remaining time corresponding to each target time; Determining the cycle landing point corresponding to the target time based on the target time and the signal control timing strategy includes: Based on the target sub-area time of the intersection to be simulated in the target flow sub-area, determining the start time of the target sub-area time, Based on the target time and the start time, determining the running time of the intersection to be simulated in the target flow sub-area; Determine a timing cycle based on the signal control timing strategy, and determine the cycle landing point corresponding to the target time according to the running time and the timing cycle; A remainder operation is performed on the running time and the timing cycle, and a position corresponding to the remainder in the timing cycle is used as the end point of the cycle.
8. The simulation device according to claim 7, characterized in that: Also includes: A third acquisition module is used to acquire the traffic flow data of each intersection, and divide the traffic flow data of the plurality of intersections into a plurality of flow sub-areas; The association module is used to determine, for each of the intersections, whether the traffic flow data continuously belongs to any of the flow sub-areas. If so, the continuous time corresponding to the traffic flow data belonging to the flow sub-area is associated with the flow sub-area, and the continuous time is used as the sub-area time of the intersection in the flow sub-area.
9. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the program, the traffic signal simulation method as described in any one of claims 1-6 is implemented.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the traffic signal simulation method as described in any one of claims 1 to 6 is implemented.
Citation Information
Patent Citations
Signal control system and signal control method based on traffic simulation
CN103456180A
Real-time online microscopic traffic simulation method and system
CN111241168A
Traffic situation simulation method, system and electronic equipment
CN111680377A