Railway network path planning method and device based on satisfiability

By adopting a satisfiability-based railway network path planning method in a high-speed railway system, using map modeling and μSMT-CBS algorithm to resolve conflicts in path planning, the path planning efficiency and safety of the railway system are improved, and traditional methods are solved. computational complexity and scalability issues.

CN118798457APending Publication Date: 2024-10-18HUAQIAO UNIVERSITY
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410832250.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-26
Publication Date
2024-10-18

AI Technical Summary

Technical Problem

Traditional multi-agent path planning methods face computational complexity and scalability challenges in high-speed railway systems, and cannot effectively cope with real-time changes in train position and speed, resulting in inefficient conflict detection and resolution.

Method used

A railway network path planning method based on satisfiability is adopted, and the railway network is abstracted into a dual-vertex graph through map modeling. The μSMT-CBS algorithm is used in combination with the SAT solver and A* algorithm to optimize path planning to reduce conflicts and improve efficiency.

Benefits of technology

This method can resolve conflicts more quickly, ensure safe and efficient train operation, adapt to system changes, provide instant optimal path planning solutions, and improve the efficiency and safety of the railway system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118798457A_ABST
    Figure CN118798457A_ABST
Patent Text Reader

Abstract

The invention discloses a satisfiability-based railway network path planning method and device, and relates to the field of path planning, and the method comprises the steps: obtaining a railway network diagram and a starting position and a target position of each train, carrying out the map modeling of the railway network diagram, obtaining a double-vertex diagram, and carrying out the modeling of each train into an intelligent agent; determining a time cost threshold mu of the path of the single agent; a muSMT-CBS algorithm is adopted to solve a path planning solution of each agent, and whether an effective path planning solution of the agent can be found or not is judged; if the effective solution for path planning of the intelligent agent is found, returning the solution, and if the effective solution for path planning of the intelligent agent is not found, adding 1 to mu, and repeating the previous step until the solution is found or the time cost for finding the path of any intelligent agent is less than or equal to the solution of mu; and the problem that conflicts in path planning are difficult to solve is solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of path planning, and in particular to a satisfiability-based railway network path planning method and device. Background Art

[0002] In the railway system, the close integration of route planning and train scheduling ensures efficient train operation and passenger travel experience. By optimizing the route and arranging the train schedule reasonably, the railway system can provide fast and reliable transportation services, meet the needs of passengers, and improve overall transportation efficiency and safety. The continuous optimization and innovation of route planning and train scheduling will further promote the development of high-speed rail transportation and bring people more convenient and comfortable travel options.

[0003] The multi-agent pathfinding (MAPF) problem refers to planning the optimal paths for multiple agents in a given environment. The goal is to find a set of paths that allow all agents to reach their respective target locations safely and efficiently, and avoid collisions and conflicts. In high-speed railway systems, train conflict is a challenging problem. Traditional multi-agent pathfinding (MAPF) methods face many challenges in solving these problems, which are specifically reflected in the following two aspects:

[0004] 1) Complexity and Scalability The trains in the high-speed railway system are large in scale, the track network is complex, and there are a large number of intersections and branch points. This leads to a huge state space for the path planning problem, making traditional search algorithms (such as the A* algorithm) face challenges in computational complexity when dealing with complex systems. At the same time, as the scale of the system increases, the scalability of the algorithm also becomes a problem.

[0005] 2) Conflict detection and resolution: High-speed train conflict detection and resolution is a key issue in MAPF. Traditional conflict detection methods are usually based on static map information and cannot effectively cope with real-time changes in train positions and speeds. In addition, the conflict resolution process requires coordination and adjustment of the paths of multiple trains, and the traditional CBS algorithm may face inefficiencies when dealing with large-scale conflicts. Summary of the invention

[0006] The purpose of this application is to propose a railway network path planning method and device based on satisfiability in response to the above-mentioned technical problems.

[0007] In a first aspect, the present invention provides a railway network path planning method based on satisfiability, comprising the following steps:

[0008] Obtain the railway network diagram and the starting and target positions of each train, perform map modeling on the railway network diagram, obtain a double vertex graph, and model each train as an intelligent agent;

[0009] Determine the time cost threshold μ of a single agent’s path;

[0010] Based on the dual vertex graph, agents and time cost threshold μ, the μSMT-CBS algorithm is used to solve the path planning solution of each agent, and determine whether an effective path planning solution for the agent can be found;

[0011] In response to determining that a valid solution for the agent's path planning is found, the solution is returned. In response to determining that a valid solution for the agent's path planning is not found, μ is increased by 1 and the previous step is repeated until a solution is found or a solution whose time cost of any agent's path is less than or equal to μ cannot be found.

[0012] As a preferred embodiment, the specific process of μSMT-CBS algorithm is as follows:

[0013] Create a conflict set, which is initially empty;

[0014] Generate a propositional logic model based on the current conflict set;

[0015] A SAT solver is used to solve the satisfactory assignment of the propositional logic model, and based on the satisfactory assignment, it is determined whether there is a solution for the path planning of the intelligent agent whose time cost is less than or equal to the time cost threshold μ;

[0016] In response to determining that there is a solution to the path planning of the agent that satisfies the time cost less than or equal to the time cost threshold μ, a decide procedure is used to check whether the solution to the path planning of the agent has a conflict. If so, the conflict in the solution is added to the current conflict set and the above two steps are repeated for the next iteration. Otherwise, it is determined that a valid solution to the path planning of the agent is found.

[0017] In response to determining that there is no solution to the path planning of the agent that satisfies the time cost less than or equal to the time cost threshold μ, it is determined that no effective solution to the path planning of the agent is found.

[0018] Preferably, generating a propositional logic model according to the current conflict set specifically includes:

[0019] Generate a set of first constraints for each conflict in the current conflict set, where the first constraints are used to resolve the conflict of a single agent;

[0020] Use the A* algorithm to calculate the path planning of a single agent that satisfies the first constraint for each agent;

[0021] Generate an initial propositional logic model based on the path planning of a single agent;

[0022] A second constraint is added based on the initial propositional logic model to generate a propositional logic model. The second constraint is used to resolve conflicts between all intelligent agents.

[0023] As a preferred method, a railway network graph is map modeled to obtain a dual vertex graph, and each train is modeled as an intelligent agent, specifically including:

[0024] Nodes are used to represent the positions of each track in the railway network diagram, and edges are used to represent track segments in the railway network diagram. The length of the edge represents the time cost required for a train to travel on the path formed by two adjacent nodes.

[0025] The node is taken as a vertex and mapped to itself to generate a companion vertex. The vertex and its companion vertex form a vertex pair, so a double vertex graph is constructed. The double vertex graph is used to represent the travel direction and path selection of the train in the railway network graph;

[0026] The position of the train on the track is represented by a quaternary group (TrainID, TrackID, Distance, Length), where:

[0027] TrainID: unique identifier of the train, used to distinguish different trains;

[0028] TrackID: A unique identifier of a track segment or path, indicating the track segment or path on which the train is located;

[0029] Distance: The position of the train on a track segment or path, which can be expressed as the distance from the start of the track segment;

[0030] Length: The length of the train, indicating the space it occupies on the track;

[0031] The train is modeled as an intelligent agent through quadruple, and the position of the intelligent agent is matched with the edge of the double vertex graph to establish a representation of the position and motion state of the intelligent agent in the railway network graph.

[0032] Preferably, the conflicts include edge conflicts, position conflicts and follow-up conflicts. Edge conflicts occur when at least two agents are on the same edge, position conflicts occur when at least two agents try to reach the same node at the same time, and follow-up conflicts occur when one agent tries to follow the movement of another agent.

[0033] Preferably, determining the time cost threshold μ of the path of a single agent specifically includes:

[0034] Use the A* algorithm to find a path plan for each agent, ignore all other agents, do not consider conflicts with other agents, and set the time cost of the path of the single agent with the longest completion time as the time cost threshold μ.

[0035] In a second aspect, the present invention provides a railway network path planning device based on satisfiability, comprising:

[0036] A modeling module is configured to obtain a railway network diagram and a starting position and a target position of each train, perform map modeling on the railway network diagram, obtain a double vertex graph, and model each train as an intelligent agent;

[0037] A threshold calculation module, configured to determine a time cost threshold μ of a path of a single agent;

[0038] A solution module is configured to solve the path planning solution of each agent using the μSMT-CBS algorithm based on the dual vertex graph, the agent and the time cost threshold μ, and determine whether a valid path planning solution of the agent can be found;

[0039] The judgment module is configured to return a solution in response to determining that a valid solution for the path planning of the intelligent agent is found, and to increase μ by 1 in response to determining that a valid solution for the path planning of the intelligent agent is not found, and to repeat the previous step until a solution is found or a solution whose time cost of the path of any intelligent agent is less than or equal to μ cannot be found.

[0040] In a third aspect, the present invention provides an electronic device comprising one or more processors; a storage device for storing one or more programs, wherein when the one or more programs are executed by the one or more processors, the one or more processors implement the method described in any implementation manner in the first aspect.

[0041] In a fourth aspect, the present invention provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the method described in any implementation manner in the first aspect.

[0042] In a fifth aspect, the present invention provides a computer program product, comprising a computer program, which, when executed by a processor, implements the method described in any implementation manner in the first aspect.

[0043] Compared with the prior art, the present invention has the following beneficial effects:

[0044] (1) The satisfiability-based railway network path planning method proposed in the present invention performs map modeling on the high-speed railway network, abstracts it into a dual-vertex graph, and uses agent modeling to abstract each train and its related information into an independent agent with a shape. It adopts the multi-agent path planning (MAPF) idea and combines the μSMT-CBS algorithm to resolve conflicts in path planning.

[0045] (2) The satisfiability-based railway network path planning method proposed in this invention is able to generate a reasonable number of Boolean variables and further improve the coding by borrowing the ideas of search-based solvers (such as ICTS) in SAT coding. Unlike the original CBS algorithm that resolves conflicts between agents through branching search, the μSMT-CBS algorithm improves the propositional model by introducing a second constraint to resolve conflicts. Therefore, the μSMT-CBS algorithm does not branch at a high level, but instead incrementally expands the propositional logic model and negotiates with an external SAT solver.

[0046] (3) The μSMT-CBS algorithm used in the satisfiability-based railway network path planning method proposed in this invention can reduce the running time and energy consumption to a greater extent, resolve conflicts more quickly, and ensure the safe and efficient operation of trains. With the expansion of the railway system and the increase in transportation demand, the μSMT-CBS algorithm can efficiently adapt to the changes in the system and find a feasible optimal path planning solution. It can quickly solve in a real-time environment and provide the railway system with an immediate optimal path planning solution, thereby improving the efficiency and safety of the system. BRIEF DESCRIPTION OF THE DRAWINGS

[0047] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings required for use in the description of 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.

[0048] Figure 1 A schematic diagram of a flow chart of a railway network path planning method based on satisfiability according to an embodiment of the present application;

[0049] Figure 2 A flowchart of a railway network path planning method based on satisfiability according to an embodiment of the present application;

[0050] Figure 3-5 A schematic diagram of map modeling and agent modeling of a railway network path planning method based on satisfiability according to an embodiment of the present application;

[0051] Figure 6-9This is a conflict example diagram of the railway network path planning method based on satisfiability according to an embodiment of the present application;

[0052] Fig.10 A flowchart of the μSMT-CBS algorithm of the railway network path planning method based on satisfiability according to an embodiment of the present application;

[0053] Fig.11 A flowchart of a generation propositional logic model for a railway network path planning method based on satisfiability according to an embodiment of the present application;

[0054] Fig.12 A schematic diagram of a railway network path planning device based on satisfiability according to an embodiment of the present application;

[0055] Fig.13 A schematic diagram of the hardware structure of an electronic device provided in an embodiment of the present invention. DETAILED DESCRIPTION

[0056] In order to make the purpose, technical scheme and advantages of the present invention clearer, the present invention will be further described in detail below with reference to the accompanying drawings. Obviously, the described embodiments are only part of the embodiments of the present invention, rather than all 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.

[0057] Figure 1 A railway network path planning method based on satisfiability provided by an embodiment of the present application is shown, comprising the following steps:

[0058] S1, obtain the railway network diagram and the starting position and target position of each train, perform map modeling on the railway network diagram, obtain a double vertex graph, and model each train as an intelligent agent.

[0059] In a specific embodiment, a railway network graph is map modeled to obtain a dual-vertex graph, and each train is modeled as an intelligent agent, specifically including:

[0060] Nodes are used to represent the positions of each track in the railway network diagram, and edges are used to represent track segments in the railway network diagram. The length of the edge represents the time cost required for a train to travel on the path formed by two adjacent nodes.

[0061] The node is taken as a vertex and mapped to itself to generate a companion vertex. The vertex and its companion vertex form a vertex pair, so a double vertex graph is constructed. The double vertex graph is used to represent the travel direction and path selection of the train in the railway network graph;

[0062] The position of the train on the track is represented by a quaternary group (TrainID, TrackID, Distance, Length), where:

[0063] TrainID: unique identifier of the train, used to distinguish different trains;

[0064] TrackID: A unique identifier of a track segment or path, indicating the track segment or path on which the train is located;

[0065] Distance: The position of the train on a track segment or path, which can be expressed as the distance from the start of the track segment;

[0066] Length: The length of the train, indicating the space it occupies on the track;

[0067] The train is modeled as an intelligent agent through quadruple, and the position of the intelligent agent is matched with the edge of the double vertex graph to establish a representation of the position and motion state of the intelligent agent in the railway network graph.

[0068] Specifically, refer to Figure 2 ,Map modeling is to accurately represent the structure and connection ,relationship of the railway network and provide a basis for the subsequent ,path planning, e.g. Figure 3 As shown in Figure 1. In map modeling, the track is divided into multiple segments and separated by nodes to better represent the structure and connection relationship of the railway network. Nodes play an important role in map modeling. They represent key locations in the railway network, such as switches and stations. Each node corresponds to a specific location, and different locations on the track may have multiple nodes for modeling. Figure 4 As shown in the figure, a, d, e, f, g, i, j, m, and n are nodes on the track, while b, c, and h are turnout nodes. Edges are used to represent the connection between nodes. In a railway network, an edge represents a path for a train to move on the track, and its length determines the time cost required for the train to travel on the path. This time cost can be determined by multiple factors, including the length of the track, slope, curvature, speed limit, etc.

[0069] In the railway network, especially when there are junctions in multiple directions, there are some sections where travel is restricted or prohibited. Figure 4 In the network shown, there are three edges hb, hg, and hi at node h, but in actual train operation, path bhg may be a prohibited section. Similarly, at node c, path mcd may also be impassable. When planning a path, these restrictions need to be considered to ensure that the generated path planning solution is consistent with the actual situation.

[0070] To this end, the embodiments of the present application can introduce Figure 5 The two-vertex graph shown:

[0071] Double Vertex Graph is a special graph structure used to represent railway systems or networks with special topological characteristics. In a double vertex graph, first there is a normal graph, which consists of a set of vertices and a set of edges. The vertices here are nodes. Then, through a bijective mapping, the vertex set V is mapped to itself to obtain the partner vertex to form a vertex pair, for example Figure 5 In the figure, a and a' are a vertex pair. Each vertex must have a companion vertex, and together they form a connected vertex pair. The edges in the dual-vertex graph represent the track segments in the railway network, and the vertex pairs represent the connection relationship between these segments. The path always starts from a vertex, and then the train must move to the connected partner vertex before using the edge connected to that vertex. With this path rule, the dual-vertex graph can accurately represent the travel direction and path selection of trains in the railway system. For example, in Figure 5 In the example, after entering node h, train Tr1 must move to node h', and then can only go to node i, so it cannot take the prohibited path bhg.

[0072] This enables the generation of path planning solutions that are in line with the actual situation. Such optimization and consideration ensures the rationality and practicality of path planning, so that the generated path can be successfully applied in actual train operations and complies with the structural characteristics and operating constraints of the railway network.

[0073] In the railway network, it is essential to accurately describe the location of the train for path planning. To achieve this goal, the agent needs to be modeled after the map modeling stage. Therefore, a quadruple (TrainID, TrackID, Distance, Length) is constructed to represent the position of the train on the track. This quadruple provides the train's identification, the track segment it is in, the specific location, and length information, which can be used in applications such as path planning, train scheduling, and safety conflict detection. By matching the agent's position with the edge of the map, a representation of the agent's accurate position and motion state in the railway network can be established. At the same time, combined with the train's length information, the space occupied by the train on the track can be taken into account to avoid collisions and conflicts. This is crucial for the safety and practicality of path planning, especially in the case of high-density traffic.

[0074] The input railway network diagram and the starting and target positions of each train are obtained, and the path planning problem of the railway system is abstracted into a MAPF problem through map modeling and agent modeling.

[0075] S2, determines the time cost threshold μ of the path of a single agent.

[0076] In a specific embodiment, step S2 specifically includes:

[0077] Use the A* algorithm to find a path plan for each agent, ignore all other agents, do not consider conflicts with other agents, and set the time cost of the path of the single agent with the longest completion time as the time cost threshold μ.

[0078] Specifically, the initial makespan is set to μ. Then the μSMT-CBS algorithm is run to try to find an effective solution. Makespan refers to the cost of a path in the path planning solution, which is the largest cost among all paths.

[0079] S3, based on the dual vertex graph, the agent and the time cost threshold μ, the μSMT-CBS algorithm is used to solve the path planning solution for each agent, and it is determined whether an effective path planning solution for the agent can be found.

[0080] In a specific embodiment, the conflicts include edge conflicts, position conflicts and following conflicts. Edge conflicts occur when at least two agents are on the same edge, position conflicts occur when at least two agents try to reach the same node at the same time, and following conflicts occur when one agent tries to follow the movement of another agent.

[0081] Specifically, refer to Figure 6-9 In multi-agent path planning (MAPF), the goal of the agents is to complete their respective tasks in the shared environment in an optimal way. However, due to the mutual influence and competition between agents, conflicts may arise. These conflicts include edge conflicts, position conflicts, following conflicts, etc. Solving these conflicts is a key issue in MAPF. Common conflict types include the following:

[0082] 1. Edge Conflict: Edge conflict occurs when multiple agents share the same edge. When two or more agents try to pass through the same edge at the same time, a conflict may occur. This conflict may lead to collision or blockage, which needs to be resolved by adjusting the path or scheduling. Figure 7 As shown, trains Tr1 and Tr2 occupy the edge ab at the same time, resulting in an edge conflict.

[0083] 2. Vertex Conflict: Vertex conflict occurs when multiple agents try to reach the same node at the same time. When multiple agents plan to pass through the same node during path planning, conflicts may occur. This conflict may cause collisions or blockages and needs to be resolved by adjusting the path or scheduling. Figure 6 As shown in the figure, train Tr1 tries to run from node b to node h, and train Tr2 tries to run from node i to node h. The two trains may run to node h at the same time, which will cause a position conflict and lead to a train collision. When encountering this situation, one solution is to adjust the speed of the two trains to ensure a safe interval between the trains and prevent them from running to node h at the same time.

[0084] Figure 8 The situation shown is also a type of position conflict. Trains Tr1 and Tr2 are traveling towards each other. In the following time period, trains Tr1 and Tr2 may occupy point h at the same time, resulting in a position conflict. In this case, a train collision may occur.

[0085] 3. Follow Conflict: Follow conflict occurs when one agent tries to follow another agent. A conflict may occur when one agent tries to follow another agent but cannot maintain a safe distance due to speed or space constraints. This conflict may lead to collisions or dangerous situations and needs to be resolved by adjusting the following strategy or speed. Fig. 9 As shown in the figure, train Tr1 tries to run from node b to node h, and train Tr2 tries to run from node h to node i. Train Tr1 tries to follow the path of train Tr2, and a following conflict occurs between the two. Following conflict means that the following vehicle is too close and the distance between vehicles is not maintained, which may lead to a rear-end collision. The solution to following conflict can be to adjust the speed or path of the intelligent agent to avoid conflict or maintain a safe following distance.

[0086] Safety during train operation is of vital importance. The embodiments of the present application are dedicated to developing solutions to ensure that trains avoid collisions and conflicts during operation by adopting the μSMT-CBS algorithm.

[0087] In a specific embodiment, the specific process of the μSMT-CBS algorithm is as follows:

[0088] Create a conflict set, which is initially empty;

[0089] Generate a propositional logic model based on the current conflict set;

[0090] A SAT solver is used to solve the satisfactory assignment of the propositional logic model, and based on the satisfactory assignment, it is determined whether there is a solution for the path planning of the intelligent agent whose time cost is less than or equal to the time cost threshold μ;

[0091] In response to determining that there is a solution to the path planning of the agent that satisfies the time cost less than or equal to the time cost threshold μ, a decide procedure is used to check whether the solution to the path planning of the agent has a conflict. If so, the conflict in the solution is added to the current conflict set and the above two steps are repeated for the next iteration. Otherwise, it is determined that a valid solution to the path planning of the agent is found.

[0092] In response to determining that there is no solution to the path planning of the agent that satisfies the time cost less than or equal to the time cost threshold μ, it is determined that no effective solution to the path planning of the agent is found.

[0093] Specifically, refer to Fig.10 , an embodiment of the present application adopts the μSMT-CBS algorithm, which is an algorithm for finding the Makespan optimal solution for the MAPF problem. It converts the MAPF problem of finding a valid Makespan optimal solution into a propositional logic model. Each propositional logic model created by the μSMT-CBS algorithm is solved using a SAT solver. The SAT solver contains a decide program, which is a decision-making process that can accept an assignment that satisfies the propositional logic model, and outputs true if the assignment corresponds to the solution to the decision problem. If the decide program returns false, that is, the assignment cannot satisfy the propositional logic model, then the decide program returns a conflict, generates a new first constraint based on the conflict, and adds it to the propositional logic model for resolving the conflict, and then uses the SAT solver to solve it. Repeat the above steps until all conflicts are resolved and a conflict-free solution is obtained.

[0094] The μSMT-CBS algorithm begins with an input MAPF problem and a Makespan bound μ, and maintains a conflict set containing all conflicts returned by the decider so far. Initially, the conflict set is empty. In each iteration of the μSMT-CBS algorithm, a propositional logic model is generated for the current conflict set, and a satisfactory assignment to this propositional logic model is defined as a solution to P with a maximum time cost of μ, where P is the MAPF problem being solved. The decider in the μSMT-CBS algorithm checks whether the solution is valid, that is, whether it contains conflicts. If the solution is invalid (there are conflicts), the decider returns one of the conflicts detected. Then, the propositional logic model is updated so that the assignment that satisfies it defines a solution in which all conflicts returned by the decider so far are avoided.

[0095] The SAT solver is used to solve the satisfactory assignment of the propositional logic model, and the satisfactory assignment of the propositional logic model is the path planning solution. If no solution exists, the given MAPF problem is unsolvable, that is, there is no solution with makespan equal to or less than μ. If a solution exists, the decide procedure will be applied to check whether the found solution is a valid (conflict-free) MAPF solution. If it is a valid solution, the solution will be returned. Otherwise, the decide procedure will return one of the conflicts that exist in this solution. The returned conflict is added to the conflict set. This process continues until a valid solution is found or it is determined that no solution exists.

[0096] In a specific embodiment, generating a propositional logic model according to the current conflict set specifically includes:

[0097] Generate a set of first constraints for each conflict in the current conflict set, where the first constraints are used to resolve the conflict of a single agent;

[0098] Use the A* algorithm to calculate the path planning of a single agent that satisfies the first constraint for each agent;

[0099] Generate an initial propositional logic model based on the path planning of a single agent;

[0100] A second constraint is added based on the initial propositional logic model to generate a propositional logic model. The second constraint is used to resolve conflicts between all intelligent agents.

[0101] Specifically, refer to Fig.11 ,The specific steps of generating propositional logic model are as follows:

[0102] 1) Calculate a set of first constraints for the current conflict set: For each conflict in the current conflict set, generate a set of first constraints to resolve the conflict. First constraints are a set of restrictions or rules that limit the actions or movements that a single agent can take when planning a path. For example, agent k cannot move from position i to j within time (a, b), which is a set of first constraints.

[0103] 2) Calculate a set of path plans for each agent according to the first constraint: For each agent, consider its corresponding first constraint and use the A* algorithm to generate all the path plans of the agent. In order to efficiently calculate and store the path plans of this set of single agents, the embodiment of the present application creates a specific multi-valued decision graph MDD for each agent. MDD is a direct acyclic graph with a single source and sink, which represents the path plans of all single agents of the agent up to the time cost threshold μ. The node X in MDD irepresents the vertices and corresponding times that agent i may occupy in path planning, and edge E i Represents the movement action of the single agent in the path planning of agent i. In MDD, the source refers to the starting node, which represents the initial state or starting position of the path planning. The sink refers to the end node, which represents the end state or target position of the path planning.

[0104] 3) Create a propositional logic model: Each satisfactory assignment of the propositional logic model corresponds to a MAPF solution, in which each agent follows the path plan of a single agent in its MDD. In order to create such a propositional logic model, the embodiment of the present application introduces node X from MDD i and edge E i and the following Boolean variables:

[0105] (1) Set to true to indicate that agent i performs actions starting at time t and ending at time t ′ End and move the agent from vertex v to vertex v ′ ;

[0106] (2) Set to true to indicate that agent i plans to occupy vertex v at time t;

[0107] (3) Set to true to indicate that agent i goes from time t to t ′ End the execution of the waiting operation;

[0108] In order to ensure that the assignments to all these variables constitute a solution to the given MAPF problem, the embodiments of the present application add the following restrictions on these Boolean variables in the propositional logic model:

[0109]

[0110] in, represents logical deduction, ∨ represents or;

[0111] Equations (1) and (2) indicate that if agent i appears in vertex v at time t, it must leave through an edge connected to vertex v. Because there are usually more than one edge connecting vertex v, only one of them is taken, so logical or is used. Equation (3) indicates that once an agent enters an edge in the MDD, it must leave it at the target vertex of the current edge. The embodiment of the present application also adds a clause in the clause in the propositional logic model to verify that each agent starts from its starting position and ends at its target position.

[0112] For each agent i:

[0113] (4) It means that agent i plans to occupy the starting position v0 at the starting time t = t0.

[0114] (5) represents the plan of agent i at the last time t = t n When occupying the target position v n .

[0115] By adding these clauses, the μSMT-CBS algorithm ensures that each agent’s path begins at its starting position and ends at its goal position. Therefore, a satisfactory evaluation of this formula represents a solution to the given MAPF problem.

[0116] 4) Adding a second constraint: In order to avoid all conflicts in the conflict set, the embodiment of the present application verifies that for each conflict, there is at least one constraint that can resolve the conflict, which is achieved by adding appropriate second constraints to the clauses in the created propositional logic model. That is, for agent i, in time period t i and t i +1, move from vertex v to vertex v ′ ; Another agent j, in time period t j and t j +1, move from vertex u to vertex u ′ , these two actions conflict, you can add the following conditions:

[0117]

[0118] In formula (4), Represents the logical NOT operation. It is used to indicate the negation of the execution Specifically, in the path planning problem, the Indicates not to perform the action.

[0119] This condition expresses a mutual exclusion relationship between two conflicting actions. By including this condition in the propositional logic model, we can ensure that in any satisfactory solution, at most one of these actions can be applied, thus resolving the conflict.

[0120] Through such a process, feasible and optimal path planning solutions can be provided to ensure that trains can move efficiently without conflict in a complex multi-train environment, and further improve the safety and efficiency of train operation, reduce accident risks, and ensure the safety of passengers and vehicles.

[0121] S4, in response to determining that a valid solution for the path planning of the agent is found, the solution is returned. In response to determining that a valid solution for the path planning of the agent is not found, μ is increased by 1 and the previous step is repeated until a solution is found or a solution whose time cost of the path of any agent is less than or equal to μ cannot be found.

[0122] Specifically, if a valid solution for the agent's path planning is found, the solution is returned. Otherwise, μ is increased by 1 and the above process is repeated. This process continues until a valid solution is found or no solution with makespan less than or equal to μ is found.

[0123] The above steps S1-S4 do not necessarily represent the order between the steps, but are represented by step symbols, and the order between the steps can be adjusted.

[0124] Further references Fig.12 As an implementation of the methods shown in the above figures, the present application provides an embodiment of a railway network path planning device based on satisfiability. Figure 1 Corresponding to the method embodiment shown, the device can be specifically applied to various electronic devices.

[0125] The present application embodiment provides a railway network path planning device based on satisfiability, including:

[0126] A modeling module 1 is configured to obtain a railway network diagram and a starting position and a target position of each train, perform map modeling on the railway network diagram, obtain a double vertex graph, and model each train as an intelligent agent;

[0127] A threshold calculation module 2, configured to determine a time cost threshold μ of a path of a single agent;

[0128] A solution module 3 is configured to solve the path planning solution of each agent using the μSMT-CBS algorithm based on the dual vertex graph, the agent and the time cost threshold μ, and determine whether an effective path planning solution of the agent can be found;

[0129] The judgment module 4 is configured to return a solution in response to determining that a valid solution for the path planning of the intelligent agent is found, and to increase μ by 1 in response to determining that a valid solution for the path planning of the intelligent agent is not found, and to repeat the previous step until a solution is found or a solution whose time cost of the path of any intelligent agent is less than or equal to μ cannot be found.

[0130] Fig.13 Schematic diagram of the hardware structure of the electronic device provided by the embodiment of the present invention. Fig.13As shown, the electronic device of this embodiment includes: a processor 1301 and a memory 1302; wherein the memory 1302 is used to store computer-executable instructions; the processor 1301 is used to execute the computer-executable instructions stored in the memory to implement the various steps performed by the electronic device in the above embodiment. For details, please refer to the relevant description in the above method embodiment.

[0131] Optionally, the memory 1302 may be independent or integrated with the processor 1301 .

[0132] When the memory 1302 is independently provided, the electronic device further includes a bus 1303 for connecting the memory 1302 and the processor 1301 .

[0133] An embodiment of the present invention further provides a computer storage medium, in which computer execution instructions are stored. When a processor executes the computer execution instructions, the above method is implemented.

[0134] An embodiment of the present invention further provides a computer program product, including a computer program. When the computer program is executed by a processor, the above method is implemented.

[0135] In the embodiments provided by the present invention, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic, for example, the division of modules is only a logical function division, and there may be other division methods in actual implementation, such as multiple modules can be combined or integrated into another system, or some features can be ignored or not executed. Another point, the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interfaces, devices or modules, which can be electrical, mechanical or other forms.

[0136] The modules described as separate components may or may not be physically separated, and the components shown as modules may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the modules may be selected according to actual needs to implement the solution of this embodiment.

[0137] In addition, each functional module in each embodiment of the present invention may be integrated into one processing unit, or each module may exist physically separately, or two or more modules may be integrated into one unit. The above-mentioned module-composed unit may be implemented in the form of hardware or in the form of hardware plus software functional units.

[0138] The above-mentioned integrated module implemented in the form of a software function module can be stored in a computer-readable storage medium. The above-mentioned software function module is stored in a storage medium, including a number of instructions for enabling a computer device (which can be a personal computer, a server, or a network device, etc.) or a processor to perform some steps of the methods of various embodiments of the present application.

[0139] It should be understood that the processor may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), etc. A general-purpose processor may be a microprocessor or any conventional processor. The steps of the method disclosed in the invention may be directly implemented as being executed by a hardware processor, or may be implemented by a combination of hardware and software modules in the processor.

[0140] The memory may include a high-speed RAM memory, and may also include a non-volatile storage NVM, such as at least one disk memory, and may also be a USB flash drive, a mobile hard disk, a read-only memory, a magnetic disk or an optical disk, etc.

[0141] The bus may be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, or an Extended Industry Standard Architecture (EISA) bus, etc. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, the bus in the drawings of the present application is not limited to only one bus or one type of bus.

[0142] The above storage medium can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk. The storage medium can be any available medium that can be accessed by a general or special purpose computer.

[0143] An exemplary storage medium is coupled to a processor so that the processor can read information from the storage medium and write information to the storage medium. Of course, the storage medium can also be a component of the processor. The processor and the storage medium can be located in an application specific integrated circuit (ASIC). Of course, the processor and the storage medium can also exist as discrete components in an electronic device or a main control device.

[0144] Those skilled in the art can understand that all or part of the steps of implementing the above-mentioned method embodiments can be completed by hardware related to program instructions. The aforementioned program can be stored in a computer-readable storage medium. When the program is executed, the steps of the above-mentioned method embodiments are executed; and the aforementioned storage medium includes: ROM, RAM, disk or optical disk and other media that can store program codes.

[0145] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or replace some or all of the technical features therein with equivalents. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present invention.

Claims

1. A railway network path planning method based on satisfiability, characterized in that: The following steps are involved: Obtain the railway network diagram and the starting and target positions of each train, perform map modeling on the railway network diagram, obtain a double vertex graph, and model each train as an intelligent agent; Determine the time cost threshold μ of a single agent’s path; Based on the dual vertex graph, the agent and the time cost threshold μ, the μSMT-CBS algorithm is used to solve the path planning solution of each agent, and it is determined whether an effective path planning solution of the agent can be found; In response to determining that a valid solution for the path planning of the agent is found, the solution is returned. In response to determining that a valid solution for the path planning of the agent is not found, μ is increased by 1 and the previous step is repeated until the solution is found or a solution whose time cost of the path of any agent is less than or equal to μ cannot be found.

2. The railway network path planning method based on satisfiability according to claim 1 is characterized in that: The specific process of the μSMT-CBS algorithm is as follows: Create a conflict set, which is initially empty; Generate a propositional logic model based on the current conflict set; Solving the satisfactory assignment of the propositional logic model using a SAT solver, and determining whether there is a solution for the path planning of the intelligent agent that satisfies the time cost less than or equal to the time cost threshold μ based on the satisfactory assignment; In response to determining that there is a solution to the path planning of the agent that satisfies the time cost less than or equal to the time cost threshold μ, a decide procedure is used to check whether the solution to the path planning of the agent has a conflict, and if so, the conflict in the solution is added to the current conflict set and the above two steps are repeated for the next iteration, otherwise it is determined that a valid solution to the path planning of the agent is found; In response to determining that there is no solution to the path planning of the agent that satisfies the time cost less than or equal to the time cost threshold μ, it is determined that no effective solution to the path planning of the agent is found.

3. The railway network path planning method based on satisfiability according to claim 2 is characterized in that: Generating a propositional logic model according to the current conflict set specifically includes: Generating a set of first constraints for each conflict in the current conflict set, wherein the first constraints are used to resolve the conflict of a single agent; Using the A* algorithm for each agent, calculate the path planning of a single agent that satisfies the first constraint; generating an initial propositional logic model based on the path planning of the single agent; The propositional logic model is generated by adding a second constraint based on the initial propositional logic model, wherein the second constraint is used to resolve conflicts among all intelligent agents.

4. The railway network path planning method based on satisfiability according to claim 2 is characterized in that: The railway network graph is modeled to obtain a dual-vertex graph, and each train is modeled as an intelligent agent, specifically including: A node is used to represent each position of each track in the railway network diagram, and an edge is used to represent a track segment in the railway network diagram, and the length of the edge represents the time cost required for a train to travel on a path formed by two adjacent nodes; The node is taken as a vertex and mapped to itself to generate a companion vertex, and the vertex and its companion vertex form a vertex pair, so as to construct a double vertex graph, and the double vertex graph is used to represent the travel direction and path selection of the train in the railway network graph; The position of the train on the track is represented by a quaternary group (TrainID, TrackID, Distance, Length), where: TrainID: unique identifier of the train, used to distinguish different trains; TrackID: A unique identifier of a track segment or path, indicating the track segment or path on which the train is located; Distance: The position of the train on a track segment or path, which can be expressed as the distance from the start of the track segment; Length: The length of the train, indicating the space it occupies on the track; The train is modeled as an intelligent agent through the four-tuple, and the position of the intelligent agent is matched with the edge of the dual-vertex graph to establish a representation of the position and motion state of the intelligent agent in the railway network graph.

5. The railway network path planning method based on satisfiability according to claim 2 is characterized in that: The conflicts include edge conflicts, position conflicts and follow-up conflicts. The edge conflicts occur when at least two agents are on the same edge, the position conflicts occur when at least two agents try to reach the same node at the same time, and the follow-up conflicts occur when one agent tries to follow the movement of another agent.

6. The railway network path planning method based on satisfiability according to claim 1, characterized in that: Determine the time cost threshold μ of the path of a single agent, including: Use the A* algorithm to find a path plan for each agent, ignore all other agents, do not consider conflicts with other agents, and set the time cost of the path of the single agent with the longest completion time as the time cost threshold μ.

7. A railway network path planning device based on satisfiability, characterized in that: include: A modeling module is configured to obtain a railway network diagram and a starting position and a target position of each train, perform map modeling on the railway network diagram, obtain a double vertex graph, and model each train as an intelligent agent; A threshold calculation module, configured to determine a time cost threshold μ of a path of a single agent; A solution module is configured to solve the path planning solution of each agent using the μSMT-CBS algorithm based on the dual vertex graph, the agent and the time cost threshold μ, and determine whether an effective path planning solution of the agent can be found; The judgment module is configured to return the solution in response to determining that a valid solution for the path planning of the intelligent agent is found, and to increase μ by 1 in response to determining that a valid solution for the path planning of the intelligent agent is not found, and repeat the previous step until the solution is found or a solution whose time cost of the path of any intelligent agent is less than or equal to μ cannot be found.

8. An electronic device comprising: one or more processors; a storage device for storing one or more programs, When the one or more programs are executed by the one or more processors, the one or more processors implement the method according to any one of claims 1 to 6.

9. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the method according to any one of claims 1 to 6 is implemented.

10. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the method according to any one of claims 1 to 6 is implemented.