A fast path search optimization method under large-scale complex road network conditions
By obtaining railway network mapping data, analyzing line attributes and dynamically selecting path search algorithms, the problem of low efficiency in searching high-speed train paths in large-scale complex railway networks is solved, fast and scientific driving path optimization is achieved, and work efficiency is improved. and the scientific nature of the development plan.
Patent Information
- Application Number
- CN202110641463.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-06-09
- Publication Date
- 2024-10-18
- Estimated Expiration
- 2041-06-09
AI Technical Summary
Under the conditions of large-scale and complex railway networks, it is difficult for the existing technology to quickly and accurately search for the optimal driving path of high-speed trains, resulting in low retrieval efficiency and unable to meet the needs of actual map compilation work. Moreover, the manual compilation method is time-consuming and labor-intensive and cannot meet the needs of high-speed trains. Scientific and efficient requirements for railway train operation plans.
By obtaining the compilation data of the road network operation diagram, analyzing the line attribute information of the high-speed train, and dynamically selecting the applicable path search algorithm, including the same line path search algorithm and the different line path search algorithm, optimizing the driving path and using adaptive computer software Automatically complete path search to reduce manual intervention and improve efficiency.
It realizes fast path search under large-scale complex road network conditions, reduces time and space complexity, improves work efficiency, provides a more reasonable and scientific train operation plan, improves the usability and flexibility of the algorithm, and reduces Image search difficulty.
Smart Images

Figure CN113503886B_ABST
Abstract
Description
Technical Field
[0001] The invention relates to the technical field of railway transportation, and in particular to a fast path search optimization method under large-scale complex road network conditions. Background Art
[0002] At present, my country's railway lines are crisscrossed. In the large-scale complex ring network diagram, there is more than one train operation route between the starting and ending stations. If only the enumeration method in the existing technology is used to search for all the route information of each section between the starting and ending stations, the search volume is extremely large, the search efficiency is low, and it cannot meet the needs of actual map compilation. In order to accurately obtain the relevant route information of high-speed railway trains passing through two stations and provide scientific train operation plans, relevant experts and scholars have conducted a lot of research. The research content mainly has two aspects: one is the network construction, structure storage and path expression of the road network, and the other is to design a simple and easy algorithm with low complexity. However, most of the current railway network path search modes are still in the manual compilation stage, and there is no automatic planning of the optimal path by computer means. Although the manual compilation method can achieve the expected effect, it consumes a lot of manpower, material resources and energy. Some experts and scholars have studied a large number of path search methods, but most of them cannot meet the path search application scenarios of large-scale complex railway networks. Therefore, the research on how to quickly search for high-speed train routes under large-scale and complex road networks to provide more efficient and scientific operation plans has important practical significance. Summary of the invention
[0003] The present invention provides a fast path search optimization method under large-scale complex road network conditions, which is used to solve the problem that the manual compilation method in the prior art is time-consuming, labor-intensive and inefficient.
[0004] A fast path search optimization method under large-scale complex road network conditions, comprising:
[0005] Obtaining mapping data of a road network operation diagram, and using the mapping data as a data source;
[0006] Analyzing the high-speed train route according to the mapping data of the data source to determine the line attribute information of the high-speed train;
[0007] According to the line attribute information, the path search algorithm to be adopted is determined; wherein,
[0008] The path search algorithm includes: a same-line path search algorithm and a different-line path search algorithm;
[0009] According to the path search algorithm, a path search is performed to optimize the driving path of the high-speed train.
[0010] As an embodiment of the present invention, the step of obtaining the mapping data of the road network operation diagram and using the mapping data as a data source includes:
[0011] Obtain the road network operation diagram and determine the road network elements; among them,
[0012] The road network elements include: stations, yards, track stations, switches, sections, and tracks;
[0013] According to the road network elements, the map data of the road network operation diagram is obtained; wherein,
[0014] The mapping data includes: connection relationship data, location coordinate data and attribute data of road network elements;
[0015] The mapping data is classified and the classified mapping data is used as a data input source.
[0016] As an embodiment of the present invention, the step of analyzing the high-speed train route according to the mapping data of the data source to determine the line attribute information of the high-speed train includes:
[0017] The mapping data is processed in blocks according to line attributes and railway bureau attributes to determine line attribute data and railway bureau attribute data;
[0018] Obtaining the station information of the starting station and the terminal station of the high-speed train;
[0019] Determining the line attribute of the high-speed train according to the line attribute data and the station information;
[0020] The railway bureau attributes of the high-speed train are determined according to the railway bureau attribute data and the station information.
[0021] As an embodiment of the present invention: the determining of the path search algorithm to be adopted according to the line attribute information includes:
[0022] According to the line attribute information, it is determined whether the high-speed train uses a same-line path search algorithm or a different-line path search algorithm; wherein,
[0023] When the railway bureau attributes of the starting station and the terminal station of the high-speed train are the same, a same-line path search algorithm is adopted;
[0024] When the railway bureau attributes of the starting station and the terminal station of the high-speed train are different, different line path search algorithms are adopted.
[0025] As an embodiment of the present invention: when different line path search algorithms are adopted, it also includes:
[0026] According to the line attribute information, it is determined whether the high-speed train is in a transfer state, and the transfer state is determined to be a return state or a detour state; wherein,
[0027] When the high-speed train is in a turnaround situation, a turnaround path search algorithm is used to search for a path;
[0028] When the high-speed train is in a detour situation, a detour path search algorithm is used to search for a path.
[0029] As an embodiment of the present invention: performing path search according to the path search algorithm to optimize the driving path of the high-speed train includes:
[0030] Acquire the path search algorithm, and determine whether the path search algorithm is a same-line path search algorithm or a different-line path search algorithm;
[0031] When the path search algorithm is a same-line path search algorithm, a bidirectional driving path search is performed by a bidirectional search algorithm of the same-line path search algorithm, and the driving path of the high-speed train is optimized according to the searched driving path;
[0032] When the path search algorithm is a different line path search algorithm, statistics are collected on the transfer situation of the high-speed train, and a driving path search is performed according to the transfer situation through a return path search algorithm or a detour path search algorithm, and the driving path of the high-speed train is optimized according to the searched driving path.
[0033] As an implementation example of the present invention: the bidirectional driving path search using the bidirectional search algorithm of the same-line path search algorithm includes:
[0034] The starting station is used as the initial node, and the terminal station is used as the target node;
[0035] Performing a driving path search at the initial node by using a forward and reverse search method simultaneously, and recording the forward and reverse driving paths of the initial node;
[0036] Performing a driving path search at the target node by a forward and reverse search method simultaneously, and recording the forward and reverse driving paths of the target node;
[0037] When the forward and reverse searches overlap during the search process, the search is stopped, and the driving path from the initial node to the overlapping node to the target node is recorded as the driving path of the high-speed train.
[0038] As an embodiment of the present invention, the counting of the transfer status of the high-speed train includes:
[0039] Step 1: Obtain the pre-stored driving path of the high-speed train, and count the set of stops along the way, the set of train arrival times, and the set of train departure times:
[0040]
[0041]
[0042]
[0043] Among them, ST T Indicates a stop along the way; AR T represents the arrival time set; F T represents the departure time set of the train; T represents the train; n(T) represents the number of transfer stops; f represents departure; ar represents arrival;
[0044] Step 2: Define the train starting station as and the terminal station The interval is defined as T(x, y), and the statistical transfer set is:
[0045] P=T1(x1,y1)+T1(x2,y2)+……+T m (x m ,y m )
[0046] in, Indicates the xth starting station of the high-speed train; represents the yth stop of the high-speed train; T m represents the mth transfer station; m = 1, 2, 3, ... m; m represents the number of transfer stations;
[0047] As an embodiment of the present invention: the driving path search using the detour path search algorithm includes:
[0048] Step 1: Obtain the path of the starting station and the terminal station, and determine the mileage using the following formula (1):
[0049] |R 1 +R 2 |=|R 1 |+|R 2 |≥l TN (i, s)+l TN (s,j) (1)
[0050] Among them, R 1 is the path from the starting station i to the terminal station s; R 2 is the path from the starting station s to the terminal station j; l TN(i, s) represents the curve equation from the starting station i to the ending station s; TN (s, j) represents the curve equation from the starting station s to the ending station j;
[0051] Step 2: Based on the driving mileage and the following formula (2), determine whether the effective path from the starting station i to the terminal station j is R 1 +R 2 :
[0052]
[0053] Among them, when R 1 +R 2 ≥γl TN (i, j), the R 1 +R 2 is not a valid path from the starting station i to the terminal station j; when R 1 +R 2 <γl TN (i, j), the R 1 +R 2 It is not a valid path from the starting station i to the terminal station j; γ represents the upper limit of the shortest coefficient of the valid path;
[0054] Step 3: According to the above formula (2), the necessary conditions for determining the effective path are:
[0055] l TN (i, s)+l TN (s,j)≤γl TN (i, j)
[0056] Step 4: Determine a valid path according to the necessary conditions of the valid path, and use the valid path as the driving path.
[0057] As an embodiment of the present invention, the driving path search using the return path search algorithm includes:
[0058] Step S1: Obtain the pre-stored driving path of the high-speed train and determine the judgment model of the reversible path:
[0059]
[0060] in, represents the number of stops on path R up to the xth stop; represents the number of stops on path R up to the yth stop; Represents a valid path on the return path;
[0061] Step S2: According to the determination model, the starting station and the terminal station are substituted to determine a valid path, and the valid path is used as the driving path.
[0062] The beneficial effects of the present invention are as follows: in view of the deficiencies in the prior art, the present invention proposes to automatically complete the automatic route search of the national road network map through computer software, and can also adaptively use different search algorithms to search within the same line, within the same railway bureau of different lines, and within different railway bureaus of different lines. Rapid route search is performed within the bureau, across railway bureaus, and across the country. Compared with traditional manual search or traditional search methods, the proposed method is lower than the traditional method in terms of both time complexity and space complexity, improves work efficiency, reduces the difficulty of map compilation and search, and formulates train operation plans more reasonably and scientifically. Since the present invention adopts the adaptive selection of the optimal algorithm, the best search algorithm can be found and the route search can be completed in the shortest time, so that the overall route time consumption is lower than that of the traditional route search method. In addition, the use of an adaptive search algorithm improves the availability and flexibility of the algorithm, and provides users with the most optimized driving plan in a more efficient and scientific manner.
[0063] Other features and advantages of the present invention will be described in the following description, and partly become apparent from the description, or understood by practicing the present invention. The purpose and other advantages of the present invention can be realized and obtained by the structures particularly pointed out in the written description and the accompanying drawings.
[0064] The technical solution of the present invention is further described in detail below through the accompanying drawings and embodiments. BRIEF DESCRIPTION OF THE DRAWINGS
[0065] The accompanying drawings are used to provide a further understanding of the present invention and constitute a part of the specification. Together with the embodiments of the present invention, they are used to explain the present invention and do not constitute a limitation of the present invention. In the accompanying drawings:
[0066] Figure 1 The present invention is a flowchart of a fast path search optimization method under large-scale complex road network conditions in an embodiment of the present invention.
[0067] Figure 2 This is the original picture of the same-line path search case in the embodiment of the present invention;
[0068] Figure 3 To run the same route scheme effect diagram path using the traditional optimization path search algorithm;
[0069] Figure 4 This is a diagram showing the effect of running the same route scheme using the optimized path search algorithm of the present invention in an embodiment of the present invention;
[0070] Figure 5 The original diagram of the detour path in different routes;
[0071] Figure 6The effect diagram of running the detour solution for the traditional path search algorithm;
[0072] Figure 7 This is a diagram showing the effect of using the optimized path search algorithm of the present invention to run a detour solution in an embodiment of the present invention;
[0073] Figure 8 The original diagram of the return path in different routes;
[0074] Fig. 9 The effect diagram of running the return solution for the traditional path search algorithm;
[0075] Fig.10 This is a diagram showing the effect of using the optimized path search algorithm of the present invention to run the return scheme in an embodiment of the present invention;
[0076] Fig.11 It is the elliptical disk diagram in the present invention;
[0077] Fig.12 It is the elliptical disk diagram in the present invention. DETAILED DESCRIPTION
[0078] The preferred embodiments of the present invention are described below in conjunction with the accompanying drawings. It should be understood that the preferred embodiments described herein are only used to illustrate and explain the present invention, and are not used to limit the present invention.
[0079] Embodiment 1:
[0080] As attached Figure 1 As shown, the present invention is a fast path search optimization method under large-scale complex road network conditions, comprising:
[0081] Step 100: Obtaining the mapping data of the road network operation diagram, and using the mapping data as a data source;
[0082] Step 101: analyzing the high-speed train route according to the mapping data of the data source to determine the line attribute information of the high-speed train;
[0083] Step 102: Determine the path search algorithm to be used according to the line attribute information; wherein:
[0084] The path search algorithm includes: a same-line path search algorithm and a different-line path search algorithm;
[0085] Step 103: Perform path search according to the path search algorithm to optimize the driving path of the high-speed train.
[0086] The working principle of the above technical solution is as follows: the present invention combines the advantages and disadvantages of traditional algorithms in the prior art with the characteristics of railway transportation, takes the data of the compilation of the road network operation diagram as the data source of the method of the present invention, and analyzes the driving path of the high-speed train based on the line attributes and railway bureau attributes of the block concept, determines the line attributes and railway bureau attributes between the starting station and the terminal station of the high-speed train, that is, the line attribute information, and adopts an adaptive path search algorithm based on the line attribute information. Different path search algorithms are adopted according to different judgment results. It is not necessary to completely traverse the entire road network map from the national road network every time the search is performed. The path search algorithm used is dynamically adjusted according to different situations to achieve efficient search results and realize the optimization of the driving path.
[0087] From the above principles, it can be known that the present invention can not only pre-generate and store effective paths for the transfer station part, but also dynamically select different path search methods by utilizing different line and railway bureau attributes.
[0088] The beneficial effects of the above technical solution are as follows: In view of the shortcomings of the prior art, the present invention proposes to automatically complete the automatic route search of the national road network map through computer software, and can also adaptively use different search algorithms to search within the same line, search within the same railway bureau of different lines, and search within different railway bureaus of different lines. Rapid route search is performed within the bureau, across railway bureaus, and across the country. Compared with traditional manual search or traditional search methods, the proposed method is lower than the traditional method in terms of both time complexity and space complexity, improves work efficiency, reduces the difficulty of map compilation and search, and formulates train operation plans more reasonably and scientifically. Since the present invention adopts the adaptive selection of the optimal algorithm, the best search algorithm can be found and the route search can be completed in the shortest time, so that the overall route time consumption is lower than the traditional route search method. In addition, the use of an adaptive search algorithm improves the availability and flexibility of the algorithm, and provides users with the most optimized driving plan in a more efficient and scientific manner.
[0089] Embodiment 2:
[0090] As an embodiment of the present invention, the step of obtaining the mapping data of the road network operation diagram and using the mapping data as a data source includes:
[0091] Obtain the road network operation diagram and determine the road network elements; among them,
[0092] The road network elements include: stations, yards, track stations, switches, sections, and tracks;
[0093] According to the road network elements, the map data of the road network operation diagram is obtained; wherein,
[0094] The mapping data includes: connection relationship data, location coordinate data and attribute data of road network elements;
[0095] The mapping data is classified and the classified mapping data is used as a data input source.
[0096] The principle of the above technical solution is that: the present invention is based on the contents covered in the map compilation data, namely: the connection relationship, position coordinate information and related attributes of objects such as stations, yards, line stations, switches, sections and lines; the present invention also includes data classification, data classification mainly stores different types of data through different storage spaces, and can set different data structures through different types of data to form a data input source.
[0097] The beneficial effect of the above technical solution is that the present invention provides a large amount of data source for driving route search through mapping data, and can clarify the relationship between different stations, yard lines, etc., thereby improving the accuracy and speed of driving route search.
[0098] Embodiment 3:
[0099] As an embodiment of the present invention, the step of analyzing the high-speed train route according to the mapping data of the data source to determine the line attribute information of the high-speed train includes:
[0100] The mapping data is processed in blocks according to line attributes and railway bureau attributes to determine line attribute data and railway bureau attribute data;
[0101] Obtaining the station information of the starting station and the terminal station of the high-speed train;
[0102] Determining the line attribute of the high-speed train according to the line attribute data and the station information;
[0103] The railway bureau attributes of the high-speed train are determined according to the railway bureau attribute data and the station information.
[0104] The principle of the above technical solution is that the present invention pre-identifies and processes the line attributes of the entire traffic network through mapping data. The line attributes include pre-storing the effective paths of existing high-speed vehicles according to transfer stations. Through pre-blocked data, the road bureau attributes and line attributes of the high-speed train can be directly determined after the starting station and the terminal station of the high-speed train are clarified.
[0105] The beneficial effect of the above technical solution is that the present invention combines the corresponding line and the corresponding road bureau for judgment, and adopts different path search algorithms according to different judgment results. The advantage of this processing is that it is not necessary to completely traverse the entire road network map within the national road network every time the search is performed. The path search algorithm used can be dynamically adjusted according to different situations to achieve efficient search results.
[0106] In one embodiment, the step of analyzing the high-speed train route according to the mapping data of the data source to determine the line attribute information of the high-speed train further includes:
[0107] Step 1: Obtain the mapping data, and filter out line attribute data and railway bureau attribute data by the following formula (A):
[0108]
[0109] Among them, δ represents the data differentiation coefficient of line attribute data, X a represents the ath mapping data; ε represents the data differentiation coefficient of the road bureau attribute data, a=1,2,3……B; B represents the number of mapping data;
[0110] Step 2: According to the selected line attribute data and the site information, the line attribute is determined by the following formula (C):
[0111]
[0112] Among them, l TN (i, j) represents the curve equation from the starting station i to the ending station j;
[0113] Step 3: According to the selected line attribute data and the station information, the road bureau attribute is determined by the following formula (D):
[0114]
[0115] Step 4: Determine the line attribute information corresponding to the high-speed train according to the line attributes and the railway bureau attributes:
[0116]
[0117] Among them, XL represents the line attribute information corresponding to the high-speed train.
[0118] The principle and beneficial effect of the above technical solution are: the present invention obtains line attribute data through four steps, namely, attribute screening is performed through mapping data to determine the line attribute data and the railway bureau attribute data in the mapping data. This step is to calculate the line attribute data and the railway bureau attribute data in sequence through the line attribute and railway bureau attribute data discrimination coefficient. These data exist in the form of a set, belong to a large amount of attribute data, and are stored in different data blocks. In the calculation process of the line attributes and the railway bureau attributes, the present invention calculates the line attributes and the railway bureau attributes in sequence by introducing the curve equation from the starting station i to the terminal station j. The calculated line attributes and railway bureau attributes are related to the entire path of the starting station and the terminal station. Therefore, they can be biased towards all stations and related line attributes and railway bureau attributes in the entire route. Finally, the final line attribute information is determined by an exponential function, and the line attribute information can be displayed more clearly and obviously in the form of an image.
[0119] Embodiment 4:
[0120] As an embodiment of the present invention: the determining of the path search algorithm to be adopted according to the line attribute information includes:
[0121] According to the line attribute information, it is determined whether the high-speed train uses a same-line path search algorithm or a different-line path search algorithm; wherein,
[0122] When the railway bureau attributes of the starting station and the terminal station of the high-speed train are the same, a same-line path search algorithm is adopted;
[0123] When the railway bureau attributes of the starting station and the terminal station of the high-speed train are different, different line path search algorithms are adopted.
[0124] In the present invention: the same-line path search algorithm and the different-line path search algorithm, each algorithm includes many branch algorithms, and the branch algorithms should be determined according to the actual situation. For example, the same-line path search algorithm includes a one-way search method and a two-way search method.
[0125] The principle of the above technical solution is that the present invention determines the algorithm to be adopted according to the line attribute information, judges whether they belong to the same line based on the line information of the starting station and the terminal station, and automatically selects the path search algorithm. When the line attributes of the two stations belong to the same line, the system will automatically select the path search algorithm of the same line for path search; when the line attributes of the two stations do not belong to the same line and there is a turnaround, the system automatically selects the turnaround path search algorithm for path search; when the line attributes of the two stations do not belong to the same line and there is a detour, the system automatically selects the detour path search algorithm for path search.
[0126] The beneficial effect of the above technical solution is that: the present invention is based on the existence of a certain correlation between railway networks, that is, each station corresponds to the line and railway bureau to which it belongs. We sort out this correlation, and when searching for a path, we give priority to determining whether the two stations being searched belong to the same line. If the result of the determination is the same, there is no need to call a complex path search algorithm, and it is only necessary to traverse the starting node and the end node in the same line using a bidirectional search algorithm, without determining the branch paths of each node. The present invention belongs to a method for adaptively using different algorithms to perform path search under large-scale complex road network conditions under different mode conditions. The time complexity of the path search on the same line and the path search on different lines is lower than that of the traditional method. The use of pre-generation and storage strategies can effectively improve the efficiency of the path search, meeting the needs of fast algorithm determination in large-scale complex road networks.
[0127] Embodiment 5:
[0128] As an embodiment of the present invention: when different line path search algorithms are adopted, it also includes:
[0129] According to the line attribute information, it is determined whether the high-speed train is in a transfer state, and the transfer state is determined to be a return state or a detour state; wherein,
[0130] When the high-speed train is in a turnaround situation, a turnaround path search algorithm is used to search for a path;
[0131] When the high-speed train is in a detour situation, a detour path search algorithm is used to search for a path.
[0132] The principle of the above technical solution is that the present invention will obtain route attribute information, because the route attribute information contains the transfer conditions of vehicles in the existing routes, that is, there will be parking, possible turn-back conditions and detour conditions. Based on different transfer conditions, the present invention will also select the most suitable path search algorithm according to the transfer conditions.
[0133] The beneficial effect of the above technical solution is that the present invention determines the specific driving conditions of high-speed vehicles during operation based on line attribute information, and refines the path search algorithm for different lines by detouring or turning back, thereby improving the accuracy of the driving path search and achieving high-precision optimization of the driving route search.
[0134] Embodiment 6:
[0135] As an embodiment of the present invention: performing path search according to the path search algorithm to optimize the driving path of the high-speed train includes:
[0136] Acquire the path search algorithm, and determine whether the path search algorithm is a same-line path search algorithm or a different-line path search algorithm;
[0137] When the path search algorithm is a same-line path search algorithm, a two-way driving path search is performed by using a two-way search algorithm of the same-line path search algorithm, and the driving path of the high-speed train is optimized according to the searched driving path;
[0138] When the path search algorithm is a different line path search algorithm, statistics are collected on the transfer situation of the high-speed train, and a driving path search is performed according to the transfer situation through a return path search algorithm or a detour path search algorithm, and the driving path of the high-speed train is optimized according to the searched driving path.
[0139] The principle of the above technical solution is that when searching for a co-linear path, the present invention searches the initial node and the target node simultaneously through a bidirectional search algorithm, one searches forward and backward from the initial state, and the other searches forward and backward from the target state, and the search stops when the two meet in the middle, and the optimized driving path can be determined by the driving paths searched in both directions. The bidirectional search algorithm is a graph traversal algorithm used to search for the shortest path from one vertex to another vertex in a directed graph.
[0140] When searching for different line paths, the present invention determines the driving path with the shortest mileage through a return path search algorithm or a detour path search algorithm according to the transfer situation, thereby optimizing the driving path of the high-speed train.
[0141] The beneficial effect of the above technical solution is that: the present invention adopts a bidirectional search algorithm, which reduces the complexity of the search when searching for the same line path. When searching for different line paths, the present invention can handle the transfer situation that may occur in railway transportation, the return plan or detour plan due to the inability to directly reach some lines, and the problem of some nodes being repeated in the driving path.
[0142] In one embodiment, the traditional one-way search method [8] can satisfy the path search under the same line condition. However, in order to pursue higher efficiency, we assume that a tree with a branching factor A is searched and the distance from the initial node to the target node is D. Then the complexity calculated by the one-way search algorithm is O(A D ). The complexity of the bidirectional search algorithm is The complexity of using a bidirectional search algorithm on the same line is much smaller than that of a unidirectional search algorithm.
[0143] Embodiment 7:
[0144] As an embodiment of the present invention: the bidirectional driving path search using the bidirectional search algorithm of the same-line path search algorithm includes:
[0145] The starting station is used as the initial node, and the terminal station is used as the target node;
[0146] Performing a driving path search at the initial node using a forward and reverse search algorithm, and recording the forward and reverse driving paths of the initial node;
[0147] Performing a driving path search at the target node using a forward and reverse search algorithm, and recording the forward and reverse driving paths of the target node;
[0148] When the forward and reverse search methods overlap during the search process, the search is stopped, and the driving path from the starting node to the overlapping node to the final node is recorded as the driving path of the high-speed train.
[0149] The principle of the above technical solution is: Figure 2 , 3 As shown in Figure 4, in the attached figure, the hollow circle and the long strip represent the line station, the transfer station and the passing station. When the present invention uses the bidirectional search algorithm to search the bidirectional driving path, one searches forward and backward from the initial state at the same time, and the other searches forward and backward from the target state at the same time, so that half of the forward path and half of the reverse path are obtained, and a complete path is generated by combining the forward path and the reverse path, and the path optimization is achieved by replacing the path stored in the original mapping data.
[0150] The beneficial effect of the above technical solution is that: the present invention adopts a bidirectional search algorithm, which reduces the complexity of the search when searching for a co-linear path and improves the search accuracy of the driving path.
[0151] Embodiment 8:
[0152] As an embodiment of the present invention, the counting of the transfer status of the high-speed train includes:
[0153] Step 1: Obtain the pre-stored driving path of the high-speed train, and count the set of stops along the way, the set of train arrival times, and the set of train departure times:
[0154]
[0155]
[0156]
[0157] Among them, ST T Indicates a stop along the way; AR T represents the arrival time set; F T represents the departure time set of the train; T represents the train; n(T) represents the number of transfer stops; f represents departure; ar represents arrival;
[0158] Step 2: Define the train starting station as and the terminal station The interval is defined as T(x, y), and the statistical transfer set is:
[0159] P=T1(x1,y1)+T1(x2,y2)+……+T m (x m ,y m )
[0160] in, Indicates the xth starting station of the high-speed train; represents the yth stop of the high-speed train; T m represents the mth transfer station; m=1, 2, 3, ...m; m represents the number of transfer stations.
[0161] The principle of the above technical solution is that: in the route search of different lines, the pre-stored driving route schemes of the high-speed train will be statistically analyzed to facilitate the optimization of the driving route. In the statistical process, the present invention will conduct statistics on four aspects, namely, the set of stops along the way of the high-speed train, the set of arrival times of the train, the set of departure times of the train and the transfer set, so as to realize the statistics of the existing route.
[0162] The beneficial effects of the above technical solution are: Figure 5 , 6 As shown in FIG. 7 , the present invention analyzes the path information of the pre-generated valid paths, and when performing path search within the searched area, directly searches for the pre-generated valid paths for matching processing to achieve fast and efficient search requirements. Moreover, when performing path optimization, this information can also be used as basic data for path optimization.
[0163] Embodiment 9:
[0164] As an embodiment of the present invention, the method of searching a driving path by performing a path search algorithm through a detour includes:
[0165] Step 1: Obtain the path of the starting station and the terminal station, and determine the mileage using the following formula (1):
[0166] |R 1 +R 2 |=|R 1 |+|R 2 |≥l TN (i, s)+l TN (s,j) (1)
[0167] Among them, R 1is the path from the starting station i to the terminal station s; R 2 is the path from the starting station s to the terminal station j; l TN (i, s) represents the curve equation from the starting station i to the ending station s; TN (s, j) represents the curve equation from the starting station s to the ending station j;
[0168] Step 2: Based on the driving mileage and the following formula (2), determine whether the effective path from the starting station i to the terminal station j is R 1 +R 2 :
[0169]
[0170] Among them, when R 1 +R 2 ≥γl TN (i, j), the R 1 +R 2 is not a valid path from the starting station i to the terminal station j; when R 1 +R 2 <γl TN (i, j), the R 1 +R 2 It is not a valid path from the starting station i to the terminal station j; γ represents the upper limit of the shortest coefficient of the valid path;
[0171] Step 3: According to the above formula (2), the necessary conditions for determining the effective path are:
[0172] l TN (i, s)+l TN (s,j)≤γl TN (i, j)
[0173] Step 4: Determine a valid path according to the necessary conditions of the valid path, and use the valid path as the driving path.
[0174] The principle of the above technical solution is that: since detours in the railway network are inevitable, in the process of processing detours, if minimizing detours is one of the problems solved by the present invention, the present invention can determine multiple valid paths in the path by calculating the mileage and the valid path, and then determine whether the valid path from the starting station i to the terminal station j is R 1 +R 2 The necessary conditions for an effective path are determined through the process. Then, the driving path is determined based on the necessary conditions for an effective path. In this case, the shortest driving path can also be determined.
[0175] The beneficial effects of the above technical solution are: Figure 8 , 9 As shown in 10, the present invention determines the mileage based on the path of the starting station and the terminal station through a detour path search algorithm, and then determines and calculates the effective path of the high-speed train based on the mileage, and then determines the shortest effective path based on the necessary conditions of the established effective path, thereby obtaining the optimized driving plan for the detour route.
[0176] Embodiment 10:
[0177] As an embodiment of the present invention, the driving path search using the return path search algorithm includes:
[0178] Step S1: Obtain the pre-stored driving path of the high-speed train and determine the judgment model of the reversible path:
[0179]
[0180] in, represents the number of stops on path R up to the xth stop; represents the number of stops on path R up to the yth stop; Represents a valid path on the return path;
[0181] Step S2: According to the determination model, the starting station and the terminal station are substituted to determine a valid path, and the valid path is used as the driving path.
[0182] The working principle and beneficial effects of the above technical solution are as follows: the present invention processes the pre-stored driving route through the return path search algorithm, and realizes the determination of the return path based on the determination model of the return path. By substituting the starting station and the terminal station into the determination model, efficient optimization of the return path can be achieved.
[0183] In one embodiment: the present invention is to search for the shortest path, and any two station paths in the shortest path must also be the shortest path in the shortest path. Therefore, in embodiment 10 of the present invention, solving the shortest path is the shortest path in the return solution and the detour solution.
[0184] The algorithm of the present invention can describe and solve the shortest path between any two points.
[0185] In Example 9, ST ij ={s∈STl TN (i,s)+l TN (s,j)≤λl TN (i, j)}, when the present invention converts the two-dimensional Euclidean space into ST ijIt is represented as an elliptical disk, (the elliptical disk is used to visualize the present invention and is used to understand the effective path of the present invention) i to j is represented as the shortest path, where the curve equation is l TN (i,s)+l TN (s,j)=λl TN (i, j), the shortest path can be obtained according to the above formula and the necessary condition formula (2), but there are multiple shortest paths. The present invention sorts the shortest paths and records the node sets as s1, s2, ..., s n (i=s1). If there exists from i to s x (x<k) There are N paths, so the solution is i to j=s k N paths of ST ij It is divided into 2 categories, one is Another type is in, Subset of constitute and The "dividing line".
[0186] So for ST ij In the set, all paths from i to j pass through Then i to and The sum of the paths from i to j is the valid path from i to j. We use the two-dimensional Euclidean space to solve the set of intermediate points from i to j, with point i as the center, and (j1, j2) represents and The dividing line R1 and R2 are valid paths from i to point j0 on the boundary line. The set of intermediate points from i to j is a part inside the ellipse and outside (s1, s2).
[0187] In the algorithm description, R x (i,s) represents the xth path from i to s, and s to s k The shortest path is P(s,s k ) indicates that (s,x)∈Ψ indicates the xth valid path R from i to s x (i,s) and subnetwork From s to s k The shortest path P(s,s k ) . According to the judgment condition, we can get the path set Φ from node i to other points = {R m (i,s k )|k=2,3,…,n,m=1,2,…,N}.
[0188] In the present invention:
[0189] 1.1 A valid path is defined as:
[0190] Several paths that passengers frequently travel between any two points in the railway network are called effective paths. Effective paths usually have two important characteristics:
[0191] 1) The detour distance will not be too long;
[0192] 2) Duplicate nodes may appear on the path only when transfer or train turnaround is required.
[0193] For the paths in the network TN The mileage of path R is |R|. Remember R xy For R to The subpath of |R xy | is the subpath R xy Mileage. And record any two points in the network TN and The shortest path length between
[0194] To solve the problem that the detour mileage is not too long, the non-shortest coefficient upper limit λ is introduced to limit the effective path mileage to no more than λ times the shortest path mileage. 1 +R 2 (R 1 is the path from i to s, R 2 is the path from s to j), mileage | R 1 +R 2 |≥l TN (i,s)+l TN (s,j), if l TN (i,s)+c G (s,j)>λl TN (i,j), then |R 1 +R 2 |>λl TN (i,j), that is, path |R 1 +R 2 | is not a valid path from i to j, or in other words, s is not on any valid path from i to j. Therefore, the necessary condition for s∈ST to be on a valid path from i to j is
[0195] l TN (i,s)+l TN (s,j)≤λl TN (i,j) (3)
[0196] Remember ST ij ={s∈ST|l TN (i,s)+l TN(s,j)≤λl TN (i,j)}, with the help of two-dimensional Euclidean space, ST ij It can be represented as an elliptical disk. Fig.11 As shown, Fig.11 The straight line from i to j represents the shortest path from i to j, and the elliptic curve represents the equation l TN (i,s)+l TN (s,j)=λl TN (i,j), contains all possible points through which the valid path may pass - ST ij .
[0197] For the feature that duplicate nodes may appear on the path only when transfer or train reversal is required, the reversible station set is defined as ST Z , including stations in large and medium-sized cities where transfers are selected and the end stations of the line that need to turn back. For any sub-path R between any adjacent turn-back stations on the effective path xy , feature 2 is equivalent to R xy There are no repeated points on
[0198] In summary, the determination conditions of the effective path R are as follows:
[0199]
[0200] 2.2 Valid Path Search
[0201] Under the constraints of the judgment condition of formula (4), multiple valid paths can be searched within the range of formula (3). Note that "the path between any two points on the shortest path is also the shortest path", and the valid path also has a similar feature "the path between any two points on the valid path is also a valid path". Based on this feature, a search algorithm for valid paths is designed.
[0202] First, find the shortest path length between any two points. Then, for each node i, sort all nodes according to the shortest path length from node i to these nodes, and record the node sequence as s1, s2, …, s n (i=s1). For k=2,3,…,n, let j=s k . Let us assume that i to s x All N valid paths of (x<k) have been found. Now we solve i to j=s k There are N valid paths. ST ij Can be divided into 2 categories, namely and in, Subset of constitute and The "dividing line".
[0203] Note the collection ST ij Any path from i to j must pass through the dividing line So the valid path from i to j is i to any The effective path and The combination of valid paths from i to j. With the help of two-dimensional Euclidean space, the set of intermediate points for solving the valid path from i to j can be represented vividly, such as Fig.12 shown. Fig.12 The elliptical disk in Fig.11 The same, the arc (j1, j2) with point i as the center is expressed as and The dividing line R1 and R2 are two valid paths from i to point j0 on the boundary line. The set of intermediate points for solving the valid path from i to j is the M region inside the elliptical disk and outside the arc (s1, s2);
[0204] In the algorithm description, R x (i,s) represents the i-th valid path from i to s, P(s,s k ) means s to s k The shortest path of , (s,x)∈ψ represents the i-th valid path R from i to s i (i,s) and subnetwork From s to s k The shortest path P(s,s k ). Combined with the judgment condition (2), the valid path set Φ from node i to other nodes is given as {R m (i,s k )|k=2,3,……n,m=1,2,……,N}. The search algorithm for a valid path is as follows:
[0205] Algorithm 1: Search algorithm for effective path
[0206] start
[0207] Find the shortest path length between any two points in the network TN
[0208] Sort all nodes into {s1,s2,…,s n}, where l TN (i,s x )≤l TN (i,s y ),1≤x<y≤n;
[0209] For k = 2, 3, ..., n, the loop executes
[0210] Start 1
[0211]
[0212]
[0213]
[0214]
[0215]
[0216] Loop and execute when m < M
[0217] Start 2
[0218] (s′, x′) ← argmin{R x (i, s)| + |P(s, s k )||(s, x) ∈ Φ};
[0219] If |R x ′(i, s′)| + |P(s′, s k )| > λl TN (i, s k ), then terminate the loop;
[0220] If R x ′(i, s′) + P(s′, s k ) satisfies the decision condition (2), then:
[0221] m ← m + 1, R m (i, s k ) ← R x ′(i, s′) + P(s′, s k );
[0222] ψ ← (ψ\{(s′, i′)}) ∪ {(s′, i′ + 1)};
[0223] Return 2
[0224] Return 1
[0225] End
[0226] Obviously, those skilled in the art can make various changes and modifications to the present invention without departing from the spirit and scope of the present invention. Thus, if these modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalent technologies, the present invention is also intended to include these changes and modifications.
Claims
1. A fast path search optimization method under large-scale complex road network conditions, characterized in that: include: Obtaining mapping data of a road network operation diagram, and using the mapping data as a data source; Analyzing the high-speed train route according to the map data of the data source to determine the line attribute information of the high-speed train; According to the line attribute information, the path search algorithm to be adopted is determined; wherein, The path search algorithm includes: a same-line path search algorithm and a different-line path search algorithm; Performing path search according to the path search algorithm to optimize the driving path of the high-speed train; The determining, according to the line attribute information, a path search algorithm to be adopted comprises: According to the line attribute information, it is determined whether the high-speed train uses a same-line path search algorithm or a different-line path search algorithm; wherein, When the line attributes of the starting station and the terminal station of the high-speed train are the same, a same-line path search algorithm is adopted; When the line attributes of the starting station and the terminal station of the high-speed train are different, a different line path search algorithm is used; When different line path search algorithms are used, the method further includes: According to the line attribute information, it is determined whether the high-speed train is in a transfer state, and the transfer state is determined to be a return state or a detour state; wherein, When the high-speed train is in a turnaround situation, a turnaround path search algorithm is used to search for a path; When the high-speed train is in a detour situation, a detour path search algorithm is used to search for a path; The performing of path search according to the path search algorithm to optimize the driving path of the high-speed train includes: Acquire the path search algorithm, and determine whether the path search algorithm is a same-line path search algorithm or a different-line path search algorithm; When the path search algorithm is a same-line path search algorithm, a bidirectional driving path search is performed by a bidirectional search algorithm of the same-line path search algorithm, and the driving path of the high-speed train is optimized according to the searched driving path; When the path search algorithm is a different line path search algorithm, statistics are collected on the transfer situation of the high-speed train, a driving path search is performed using a return path search algorithm or a detour path search algorithm according to the transfer situation, and the driving path of the high-speed train is optimized according to the searched driving path; The bidirectional driving path search by the bidirectional search algorithm of the same line path search algorithm includes: The starting station is used as the initial node, and the terminal station is used as the target node; Performing a driving path search at the initial node by using a forward and reverse search method simultaneously, and recording the forward and reverse driving paths of the initial node; Performing a driving path search at the target node by a forward and reverse search method at the same time, and recording the forward and reverse driving paths of the target node; When the initial node and the target node are simultaneously searched in the forward and reverse directions and coincide with each other during the search process, the search is stopped, and the path from the initial node to the coincident node to the target node is recorded as the driving path of the high-speed train; The step of analyzing the high-speed train route according to the mapping data of the data source to determine the line attribute information of the high-speed train includes: The mapping data is processed in blocks according to line attributes and railway bureau attributes to determine line attribute data and railway bureau attribute data; Obtaining the station information of the starting station and the terminal station of the high-speed train; Determining the line attribute of the high-speed train according to the line attribute data and the station information; Determining the railway bureau attribute of the high-speed train according to the railway bureau attribute data and the station information; The driving path search using the detour path search algorithm includes: Step 1: Obtain the path of the starting station and the end station, and determine the mileage using the following formula (1): (1) in, Starting station To the final station Path; Starting station To the final station Path; Indicates the starting station To the final station The curve equation of Indicates the starting station To the final station The curve equation of Step 2: Determine the starting station based on the mileage and the following formula (2): To the final station Is the valid path of : Among them, when , Not the starting station To the final station The effective path of , The starting station To the final station The effective path of Indicates the shortest coefficient upper limit of the valid path; Step 3: According to the above formula (2), the necessary conditions for determining the effective path are: Step 4: Determine a valid path according to the necessary conditions of the valid path, and use the valid path as the driving path; The driving path search using the return path search algorithm includes: Step S1: Obtain the pre-stored driving path of the high-speed train and determine the judgment model of the reversible path: , in, Indicates the path Up to The number of stops for each stop; Indicates the path Up to The number of stops for each stop; Represents a valid path on the return path; Step S2: According to the determination model, the starting station and the terminal station are substituted to determine a valid path, and the valid path is used as the driving path.
2. A fast path search optimization method under large-scale complex road network conditions as claimed in claim 1, characterized in that: The step of obtaining the mapping data of the road network operation diagram and using the mapping data as a data source includes: Obtain the road network operation diagram and determine the road network elements; among them, The road network elements include: stations, yards, track stations, switches, sections, and tracks; According to the road network elements, the map data of the road network operation diagram is obtained; wherein, The mapping data includes: connection relationship data, location coordinate data and attribute data of road network elements; The mapping data is classified and the classified mapping data is used as a data input source.
3. The fast path search optimization method under large-scale complex road network conditions as claimed in claim 1, characterized in that: The statistics of the transfer of the high-speed train include: Step 1: Obtain the pre-stored driving path of the high-speed train, and count the set of stops along the way, the set of train arrival times, and the set of train departure times: in, Indicates a stop along the way to gather; represents the set of arrival times; Represents the departure time set of trains; Indicates a train; Indicates the number of stops for transfer; Indicates departure; Indicates arrival; Step 2: Define the train starting station as and the terminal station The interval is defined as , the statistical transfer set is: in, Indicates the number of high-speed trains Starting stations; Indicates the number of high-speed trains parking stations; Indicates transfer stations; ; Indicates the number of transfer stations.
