Rail transit path planning method and related device based on incremental MAPF
The incremental MAPF method is used to construct and update conflict trees and dynamically adjust rail transit paths, which solves the difficulty of traditional MAPF path planning in dynamic environments and achieves conflict-free path planning and improved operating efficiency in complex environments.
Patent Information
- Application Number
- CN202410813361.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-24
- Publication Date
- 2024-09-24
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
Traditional multi-agent path planning (MAPF) technology cannot effectively adapt to dynamic traffic conditions and emergencies, resulting in difficulties in train path planning in dynamic environments and affecting normal train operation.
The rail transit path planning method based on incremental MAPF is adopted to adapt to changes in the traffic environment by constructing a conflict tree and updating the best nodes, and dynamically adjust the train path to ensure that the path is conflict-free.
It quickly determines conflict-free paths in the initial traffic environment and updates the conflict tree incrementally when the traffic environment changes. It is suitable for complex dynamic environments and improves the flexibility and efficiency of train operation.
Smart Images

Figure CN118387169B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of rail transit path planning, and in particular to a rail transit path planning method based on incremental MAPF and related devices. Background Art
[0002] In rail transit operations, route planning and real-time rescheduling strategies are essential to handle various disruption events, which may include platform congestion, power shortages, train failures, or signal system failures, which may cause train delays and seriously affect passenger safety and experience.
[0003] Traditional multi-agent path planning (MAPF) technology plays a key role in planning train routes in shared environments, but it is usually limited to static environments and cannot effectively adapt to dynamic traffic conditions and emergencies, such as traffic congestion or track maintenance. Current ways to deal with interference events include leaving appropriate time buffers in rail transit timetables to deal with minor delays, but for serious events that affect the normal operation of trains, real-time rescheduling strategies are required to resolve conflicts. Therefore, how to make train path planning suitable for dynamic and changing environments is an urgent problem to be solved in the field of rail transit. Summary of the invention
[0004] The purpose of the present invention is to provide a rail transit path planning method and related devices based on incremental MAPF, which realizes multi-train path planning in a dynamic environment.
[0005] To achieve the above object, the present invention provides the following solutions:
[0006] On the one hand, the present invention provides a rail transit path planning method based on incremental MAPF, comprising the following steps:
[0007] A conflict tree is constructed according to the current path plan of each rail transit train; the root node of the conflict tree includes the current path plans of all rail transit trains.
[0008] If there is a conflict between the current path plans of each rail transit train in the root node, the conflict tree is updated according to the initial traffic environment and the root node of the conflict tree, and in the updated conflict tree, the determined static best node is used as the current best node, otherwise the root node is used as the current best node; the static best node is a conflict-free node on the updated conflict tree under the initial traffic environment; the conflict-free node is a node in the conflict tree where there is no conflict between the current path plans of each rail transit train.
[0009] When the traffic environment changes, the current traffic environment is obtained, and based on the current traffic environment and the current optimal node, it is determined whether the current path plan of each rail transit train in the current optimal node conflicts with the current traffic environment to obtain a first judgment result; the traffic environment includes the current accessibility of each station in the rail transit route map.
[0010] If the first judgment result is yes, the conflict tree is updated according to the current traffic environment and the current best node, and in the updated conflict tree, the determined dynamic best node is used as the current best node; the dynamic best node is a conflict-free node on the updated conflict tree under the current traffic environment.
[0011] The operation of each rail transit train is controlled according to the current path plan of each rail transit train in the current best node.
[0012] Optionally, according to the initial traffic environment and the root node of the conflict tree, the conflict tree is updated and in the updated conflict tree, the determined static best node is used as the current best node, specifically including:
[0013] A plurality of child nodes are generated according to the initial traffic environment and the root node of the conflict tree, and a child node set is determined; for any child node, the current path plan of some rail transit trains in the child node is the path plan obtained by modifying the current path plan of the corresponding rail transit train in the root node.
[0014] If there is a non-conflicting node in the sub-node set, a static optimal node is determined in the sub-node set; the static optimal node is a non-conflicting node in the sub-node set with the least total number of stations passed by rail transit trains.
[0015] The static best node is used as the current best node.
[0016] Optionally, if there is no conflict-free node in the child node set, each child node in the child node set is taken as an intermediate node to obtain an intermediate node set.
[0017] For any intermediate node in the intermediate node set, multiple child nodes of the intermediate node are generated.
[0018] According to the child nodes of all intermediate nodes, the child node set is updated until there is a conflict-free node in the child node set.
[0019] Optionally, according to the current traffic environment and the current best node, the conflict tree is updated and in the updated conflict tree, the determined dynamic best node is used as the current best node, specifically including:
[0020] A plurality of child nodes are generated according to the current traffic environment and the current best node, and a child node set is determined; for any child node, the current path plan of some rail transit trains in the child node is the path plan obtained by modifying the current path plan of the corresponding rail transit train in the current best node.
[0021] If there are non-conflicting nodes in the child node set, a dynamic optimal node is determined in the child node set.
[0022] The dynamic best node is used as the current best node.
[0023] Optionally, multiple sub-nodes are generated according to the current traffic environment and the current best node, specifically including:
[0024] For any rail transit train in the current best node, it is determined whether a current path plan of the rail transit train conflicts with the current traffic environment to obtain a second determination result.
[0025] If the second judgment result is yes, the rail transit train is taken as the affected rail transit train to obtain an affected rail transit train set.
[0026] According to the current traffic environment, the current path plan of each affected rail transit train in the affected rail transit train set is modified to obtain a child node of the current best node; the multiple child nodes of the current best node are different.
[0027] Optionally, the current path plan of the rail transit train includes the station where the rail transit train is located at each moment.
[0028] Optionally, before constructing the conflict tree according to the current path plan of each rail transit train, the method further includes:
[0029] For any rail transit train, obtain the current station and target station of each rail transit train.
[0030] The path planning is performed according to the current station and the target station of the rail transit train to obtain the initial path plan of the rail transit train.
[0031] The initial path plan of the rail transit train is used as the current path plan of the rail transit train.
[0032] On the other hand, the present invention provides a computer device, comprising: a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement the steps of a rail transit path planning method based on incremental MAPF as described in any one of the above items.
[0033] According to the specific embodiments provided by the present invention, the present invention discloses the following technical effects:
[0034] The present invention provides a rail transit path planning method and related devices based on incremental MAPF, the method comprising the following steps: first constructing a conflict tree according to the current path plan of each rail transit train, when there is a conflict between the current path plans of each rail transit train in the root node, updating the conflict tree and determining a non-conflict node as the current best node; when the traffic environment changes, judging whether the current traffic environment causes a conflict in the path plan in the current best node according to the current traffic environment and the current best node, when it is determined that a conflict occurs, updating the conflict tree again according to the current traffic environment and the current best node and determining a non-conflict node as the current best node, the current path plan of each rail transit train in the current best node is suitable for the changed traffic environment, and can be used to control the operation of each rail transit train. The scheme of the present invention quickly determines a non-conflicting path plan for each rail transit train based on multi-agent path planning in a static scenario of the initial traffic environment, and when the traffic environment changes, there is no need to re-construct the conflict tree based on the traffic environment, but the conflict tree is updated in an incremental form, which is suitable for complex and dynamically changeable rail transit scenarios. BRIEF DESCRIPTION OF THE DRAWINGS
[0035] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0036] Figure 1 A flow chart of a rail transit path planning method based on incremental MAPF provided in Example 1 of the present invention;
[0037] Figure 2 A specific flow chart of step A3 in a rail transit path planning method based on incremental MAPF provided in Example 1 of the present invention;
[0038] Figure 3 A specific flow chart of step A81 in a rail transit path planning method based on incremental MAPF provided in Example 1 of the present invention;
[0039] Figure 4 A schematic diagram of a rail transit scenario in a rail transit path planning method based on incremental MAPF provided in Example 1 of the present invention;
[0040] Figure 5-Figure 8 They are schematic diagrams of various conflicts in a rail transit path planning method based on incremental MAPF provided in Example 1 of the present invention;
[0041] Fig. 9 A schematic diagram of a conflict tree root node in a rail transit path planning method based on incremental MAPF provided in Example 1 of the present invention;
[0042] Figure 10-11 They are schematic diagrams of generating sub-nodes of a conflict tree in a rail transit path planning method based on incremental MAPF provided in Embodiment 1 of the present invention;
[0043] Fig.12 This is a diagram of the internal structure of a computer device. DETAILED DESCRIPTION
[0044] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0045] The purpose of the present invention is to provide a rail transit path planning method and related devices based on incremental MAPF, aiming to make the path planning of trains applicable to dynamic and changeable environments.
[0046] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, the present invention is further described in detail below with reference to the accompanying drawings and specific embodiments.
[0047] Example 1
[0048] like Figure 1 As shown in the flowchart, a rail transit path planning method based on incremental MAPF in this embodiment includes the following steps:
[0049] A1. Construct a conflict tree according to the current path plan of each rail transit train; the root node of the conflict tree includes the current path plans of all rail transit trains. The current path plan of the rail transit train includes the station where the rail transit train is located at every moment.
[0050] A2. Determine whether there is a conflict between the current path plans of each rail transit train in the root node. If so, execute step A3; otherwise, execute step A4.
[0051] A3. Update the conflict tree according to the initial traffic environment and the root node of the conflict tree and use the determined static best node as the current best node in the updated conflict tree. Figure 2 In the flowchart shown, step A3 specifically includes the following steps:
[0052] A31. Generate multiple child nodes according to the initial traffic environment and the root node of the conflict tree, and determine the child node set; for any child node, the current path plan of some rail transit trains in the child node is the path plan obtained by modifying the current path plan of the corresponding rail transit train in the root node.
[0053] A32. Determine whether there is a conflict-free node in the sub-node set. If so, execute step A33; otherwise, execute step A35.
[0054] A33, determine the static best node in the subnode set, and execute step A34. Specifically, the static best node is a non-conflicting node in the subnode set with the least total number of stations passed by each rail transit train. The non-conflicting node is a node in the conflict tree where the current path plan of each rail transit train does not conflict.
[0055] A34. Take the static best node as the current best node.
[0056] A35. Take each child node in the child node set as an intermediate node to obtain an intermediate node set.
[0057] A36. For any intermediate node in the intermediate node set, generate multiple child nodes of the intermediate node.
[0058] A37. Update the child node set according to the child nodes of all intermediate nodes, and jump to step A32 until there is a conflict-free node in the child node set.
[0059] A4. Take the root node as the current best node.
[0060] A5. Control the operation of each rail transit train according to the current path plan of each rail transit train in the current best node.
[0061] A6. Obtaining the current traffic environment. In this embodiment, by determining whether the traffic environment has changed, the current traffic environment is obtained when the traffic environment changes. Of course, in other optional implementations, the future changes or the current traffic environment can also be obtained or predicted at each moment as the current traffic environment.
[0062] A7. According to the current traffic environment and the current best node, determine whether the current path plan of each rail transit train in the current best node conflicts with the current traffic environment, and obtain a first judgment result; the traffic environment includes the current accessibility of each station in the rail transit line map. If the first judgment result is yes, execute step A8, otherwise execute step A5.
[0063] A8. Update the conflict tree according to the current traffic environment and the current best node, and in the updated conflict tree, use the determined dynamic best node as the current best node; the dynamic best node is a non-conflicting node on the updated conflict tree under the current traffic environment. Similar to the specific steps of step A3, step A8 specifically includes the following steps:
[0064] A81. Generate multiple child nodes according to the current traffic environment and the current best node, and determine the child node set; for any child node, the current path plan of some rail transit trains in the child node is the path plan obtained by modifying the current path plan of the corresponding rail transit train in the current best node. Figure 3 In the flowchart shown, step A81 generates multiple child nodes according to the current traffic environment and the current best node, specifically including:
[0065] A811. Determine in turn whether the current path plan of each rail transit train in the current optimal node conflicts with the current traffic environment, and obtain a second judgment result; if the second judgment result is yes, execute step A812; if the second judgment result is no, jump to execute step A811.
[0066] A812. Take the rail transit train as the affected rail transit train to obtain the affected rail transit train set.
[0067] A813. According to the current traffic environment, modify the current path plan of each affected rail transit train in the affected rail transit train set to obtain a child node of the current best node; the multiple child nodes of the current best node are different.
[0068] A82. If there is a non-conflicting node in the child node set, determine the dynamic best node in the child node set.
[0069] A83. Use the dynamic best node as the current best node.
[0070] Before constructing the conflict tree according to the current path plan of each rail transit train in step A1, the rail transit path planning method based on incremental MAPF provided in this embodiment further includes the following steps:
[0071] B1. For any rail transit train, obtain the current station and target station of each rail transit train.
[0072] B2. Perform path planning based on the current station and target station of the rail transit train to obtain an initial path plan for the rail transit train.
[0073] B3. Use the initial path plan of the rail transit train as the current path plan of the rail transit train.
[0074] In the specific implementation, before the path planning algorithm starts, it should also include the means of modeling the rail transit network map and the rail transit train modeling. Figure 4 The method provided in this embodiment is further illustrated by taking the rail transit scenario shown as an example.
[0075] like Figure 4 As shown in Figure 1, the key locations of the rail transit network, such as turnouts and stations, are abstracted as nodes of the graph. The map modeling method abstracts the environment into nodes and edges. Each node represents a walkable location, and the edge represents the connection between nodes or the walkable path. Figure 4 Among them, 3, 5, and 6 are turnout nodes, and 0, 1, 2, 4, and 7 are nodes on the track. Figure 4 The edges in the model are used to represent the connection between two nodes. These edges are presented in a scaled-down manner in a rectangular coordinate system. They usually represent that a train can reach one location from another within a certain period of time. When a train moves along an edge, it will take a certain amount of time. In the discrete MAPF model, a train can choose to wait at the current node or move to an adjacent node within a time step. Each edge has a unique identifier, such as Figure 4 Represented as e1, e2, e3, etc., we can have a clearer understanding of the movement of trains in the network and the time cost.
[0076] Taking into account the characteristics of rail transit networks, it is necessary to recognize some limitations, especially in the case of three-way turnouts. Not all directions can be freely passed. For example, in Figure 4 In the map shown, there are three edges 5-6, 3-6, and 7-6 at node 6. However, in the actual train operation scenario, paths 7-6-3 and 3-6-7 are prohibited. Similarly, at node 5, the fork formed by 1-5, 4-5, 5-6, and 5-2, paths 4-5-1, 2-5-6, 1-5-4, and 6-5-2 are also impassable. These prohibited sections need to be properly considered when using D*-Lite path planning to ensure that the generated path planning solution is consistent with the actual situation. In the process of path planning, we will start from Figure 4 These impassable sections are excluded from the route planning so that the actual operation restrictions can be followed during route planning, generating a more reasonable and efficient route. Through such optimization and consideration, we can ensure that the planned route not only meets the structural characteristics of the network, but can also be successfully applied in actual train operation.
[0077] After the map modeling phase is completed, the next step is to model the agent and adapt it to the map. In order to accurately describe the location of the train in the rail transit network, we use a triple to represent it, specifically (Tr, v, t). Among them, Tr corresponds to a train in the map, and v and t respectively represent the train at time step t, the train is located at node v. For example, in Figure 4 In the figure, Tr1 is represented as (Tr1, 0, 0) and Tr2 is represented as (Tr2, 3, 0). This triple representation can accurately describe the position of the train on the track. By matching the state of the agent with the edge of the map, we can accurately determine the position of the train during the path planning process and better cope with the needs of rail transit path planning in various situations. This strategy of agent modeling and map adaptation can ensure the accuracy and practicality of path planning, thus providing a solid foundation for the successful implementation of the entire rail transit path planning method.
[0078] After completing the modeling of the map and the agent, in order to facilitate the understanding of conflicts in rail transit, the following conflicts are introduced:
[0079] exist Figure 5 As shown in the conflict, node 1 is blocked due to environmental changes. In the I-MAPF problem, environmental changes are defined as blocking vertices that occur over a period of time, so node 1 is blocked and the agent cannot pass. In addition, the node that will cause the failure is selected from the node set V. The system will notify all agents one time step before the environmental change occurs, that is, all trains will know the node information of the environmental change, and the train path that conflicts with the blocked node needs to be re-planned.
[0080] exist Figure 6 There is a situation called "edge conflict" when two agents try to go from node 0 to node 1. They must go through a common edge. This causes an edge conflict. Figure 8 The conflict shown is also a type of edge conflict. The two agents are moving in opposite directions. In this case, the two agents are moving from node 0 to node 1 and from node 1 to node 0 respectively. Unlike the previous edge conflict, in this case, letting the agent wait at the node cannot effectively resolve the conflict. Therefore, the conflict needs to be handled in a timely manner.
[0081] exist Figure 7 The conflict shown in Figure 1 is that the two agents are going from node 0 to node 2 and from node 1 to node 2 respectively. This kind of conflict is called a vertex conflict.
[0082] According to the following Figure 4As shown in , the current station of rail transit train Tr1 is 0, the target station is 7, the current station of rail transit train Tr2 is 3, and the target station is 4. Initially, the algorithm does not consider the impact of changes in the traffic environment during static path planning, and finds a suitable path planning solution for each rail transit train separately. Each rail transit train is regarded as an intelligent agent. The bottom layer D*-lite of the CBS-D*-lite algorithm is first used to perform single-agent path planning for Tr1 and Tr2, that is, without considering the impact of other trains, the single-agent path planning of Tr1 can be obtained as: 0-1-5-6-7, and the single-agent path planning of Tr2 can be obtained as: 3-2-5-4.
[0083] This set of single-agent path schemes according to Tr1 and Tr2 is used to create the root node of the conflict tree (CT), such as Fig. 9 As shown in the figure, Con represents constraint information, Env represents environmental change information, Sol represents path planning scheme, Cost represents the cost of path planning (the cost is calculated by the sum of the stations that all agents need to pass to reach the target), and the constraint and environmental change information of the root node are empty. In the root node, both Tr1 and Tr2 agents plan to use node 5 at time step 2. Since one node cannot accommodate two trains at the same time, this leads to a station conflict.
[0084] Now, for the above conflicts, two new nodes can be created by adding constraints to each conflicting agent, such as Fig.10 As shown, Fig.10 In the left subtree, the constraint (Tr1,5,2) is added, that is, Tr1 is not allowed to be at node 5 at time step 2, so a new path for Tr1 is planned. In the right subtree, the constraint (Tr2,5,2) is added, that is, Tr2 is not allowed to be at node 5 at time step 2, and a new path for Tr2 is planned. At this time, there is no conflict in the two subtrees, and the cost is 8, so both can be used as solutions before the conflict. In this example, the left subtree is used as the solution.
[0085] After obtaining the initial solution for path planning, we now consider the impact of node blockage caused by environmental changes. The agent is informed of the first environmental change that will occur at time step t=1: station 2 will be unavailable for a period of time at time step t=1. At this time, it needs to Figure 4 In the map shown, site 2 is removed. Fig.10As shown in the figure, in the root node of CT, the path planned by Tr2 in the initial solution includes visiting node 2 at t=1, which conflicts with the environmental change. Therefore, Tr2 must modify its path so that node 2 is not used at t=1. The CBS-D*-lite algorithm first adds a new constraint to Tr2 and runs its underlying search to adjust its path (the first stage in CBS-D*-lite). In the first stage, only the agents that conflict with the environmental blockage are considered for replanning, that is, replanning the path of Tr2, and the existing constraints need to be satisfied, resulting in a new path plan 3-6-5-4.
[0086] At this time, it is necessary to determine whether the newly planned path conflicts with the paths of other agents. The path of Tr1 is 0-1-1-5-6-7, which does not conflict with the new path of Tr2, so Fig.11 Of course, if the new path of Tr2 conflicts with the path of other agents, Fig.11 The child node of is used as the root of the new CT for path planning, constraints are added to resolve the conflict between Tr1 and Tr2, and a new subtree is generated. If the newly generated subtree has no conflict, it can be used as a solution.
[0087] This embodiment provides a rail transit path planning method based on incremental MAPF, firstly constructing a conflict tree according to the current path plan of each rail transit train, when there is a conflict between the current path plans of each rail transit train in the root node, updating the conflict tree and determining a non-conflict node as the current best node; when the traffic environment changes, judging whether the current traffic environment causes a conflict in the path plan in the current best node according to the current traffic environment and the current best node, when it is determined that a conflict occurs, updating the conflict tree again according to the current traffic environment and the current best node and determining a non-conflict node as the current best node, the current path plan of each rail transit train in the current best node is suitable for the changed traffic environment, and can be used to control the operation of each rail transit train. In the static scenario of the initial traffic environment, the scheme of the present invention quickly determines a non-conflicting path plan for each rail transit train based on multi-agent path planning, and when the traffic environment changes, there is no need to re-construct the conflict tree based on the traffic environment, but the conflict tree is updated in an incremental form, which is suitable for complex and dynamic rail transit scenarios.
[0088] Example 2
[0089] A computer device, which may be a database, may have an internal structure as shown in Fig.12As shown. The computer device includes a processor, a memory, an input / output interface (Input / Output, referred to as I / O) and a communication interface. Among them, the processor, the memory and the input / output interface are connected through a system bus, and the communication interface is connected to the system bus through the input / output interface. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used to store pending transactions. The input / output interface of the computer device is used to exchange information between the processor and an external device. The communication interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, the rail transit path planning method based on incremental MAPF in Example 1 is implemented.
[0090] It should be noted that the object information (including but not limited to object device information, object personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in the present invention are all information and data authorized by the object or fully authorized by all parties, and the collection, use and processing of relevant data must comply with relevant laws, regulations and standards of relevant countries and regions.
[0091] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiments can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided by the present invention can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetoresistive random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided by the present invention may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited to this. The processor involved in each embodiment provided by the present invention may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, etc., but are not limited to this.
[0092] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0093] The principles and implementation methods of the present invention are described in this article using specific examples. The description of the above embodiments is only used to help understand the method and core idea of the present invention. At the same time, for those skilled in the art, according to the idea of the present invention, there will be changes in the specific implementation methods and application scope. In summary, the content of this specification should not be understood as limiting the present invention.
Claims
1. A rail transit path planning method based on incremental MAPF, characterized in that: include: Construct a conflict tree based on the current path plan of each rail transit train; The root node of the conflict tree includes the current path plans of all rail transit trains; If there is a conflict between the current path plans of each rail transit train in the root node, then according to the initial traffic environment and the root node of the conflict tree, the conflict tree is updated and in the updated conflict tree, the determined static best node is used as the current best node, otherwise the root node of the conflict tree is used as the current best node; the static best node is a non-conflict node on the updated conflict tree under the initial traffic environment; the non-conflict node is a node in the conflict tree where the current path plans of each rail transit train do not conflict; When the traffic environment changes, the current traffic environment is obtained, and according to the current traffic environment and the current best node, it is determined whether the current path plan of each rail transit train in the current best node conflicts with the current traffic environment, and a first judgment result is obtained; the traffic environment includes the current traffic conditions of each station in the rail transit line map; If the first judgment result is yes, then according to the current traffic environment and the current best node, the conflict tree is updated and the determined dynamic best node is used as the current best node in the updated conflict tree; the dynamic best node is a non-conflict node on the updated conflict tree under the current traffic environment; Controlling the operation of each rail transit train according to the current path plan of each rail transit train in the current optimal node; According to the current traffic environment and the current best node, the conflict tree is updated and the determined dynamic best node is used as the current best node in the updated conflict tree, specifically including: Generate multiple child nodes according to the current traffic environment and the current best node, and determine a child node set; for any child node, the current path plan of some rail transit trains in the child node is a path plan obtained by modifying the current path plan of the corresponding rail transit train in the current best node; If there is a non-conflicting node in the sub-node set, determining a dynamic best node in the sub-node set; Taking the dynamic best node as the current best node; Generating a plurality of sub-nodes according to the current traffic environment and the current best node specifically includes: For any rail transit train in the current optimal node, determine whether a current path plan of the rail transit train conflicts with the current traffic environment, and obtain a second determination result; If the second judgment result is yes, taking the rail transit train as an affected rail transit train to obtain an affected rail transit train set; According to the current traffic environment, the current path plan of each affected rail transit train in the affected rail transit train set is modified to obtain a child node of the current best node; the multiple child nodes of the current best node are different.
2. The rail transit path planning method based on incremental MAPF according to claim 1 is characterized in that: According to the initial traffic environment and the root node of the conflict tree, the conflict tree is updated and in the updated conflict tree, the determined static best node is used as the current best node, specifically including: Generate multiple child nodes according to the initial traffic environment and the root node of the conflict tree, and determine a child node set; for any child node, the current path plan of some rail transit trains in the child node is the path plan obtained by modifying the current path plan of the corresponding rail transit train in the root node; If there is a non-conflicting node in the sub-node set, a static optimal node is determined in the sub-node set; the static optimal node is a non-conflicting node in the sub-node set with the least sum of stations passed by rail transit trains; The static best node is used as the current best node.
3. The rail transit path planning method based on incremental MAPF according to claim 2 is characterized in that: Also includes: If there is no conflict-free node in the sub-node set, each sub-node in the sub-node set is taken as an intermediate node to obtain an intermediate node set; For any intermediate node in the intermediate node set, generate multiple child nodes of the intermediate node; The child node set is updated according to the child nodes of all intermediate nodes until there is a conflict-free node in the child node set.
4. The rail transit path planning method based on incremental MAPF according to claim 1 is characterized in that: The current path plan of the rail transit train includes the station where the rail transit train is located at each moment.
5. The rail transit path planning method based on incremental MAPF according to claim 1 is characterized in that: Before constructing the conflict tree according to the current path plan of each rail transit train, it also includes: For any rail transit train, obtain the current station and target station of each rail transit train; Performing path planning according to the current station and the target station of the rail transit train to obtain an initial path plan of the rail transit train; The initial path plan of the rail transit train is used as the current path plan of the rail transit train.
6. A computer device comprising: A memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that the processor executes the computer program to implement the steps of a rail transit path planning method based on incremental MAPF as described in any one of claims 1-5.
