[go: up one dir, main page]

CN111612257A - A Shortest Path Solving Method Based on Spatial Reduction - Google Patents

A Shortest Path Solving Method Based on Spatial Reduction Download PDF

Info

Publication number
CN111612257A
CN111612257A CN202010457058.4A CN202010457058A CN111612257A CN 111612257 A CN111612257 A CN 111612257A CN 202010457058 A CN202010457058 A CN 202010457058A CN 111612257 A CN111612257 A CN 111612257A
Authority
CN
China
Prior art keywords
path
circle
destination
origin
polygons
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202010457058.4A
Other languages
Chinese (zh)
Other versions
CN111612257B (en
Inventor
魏金占
黎兆朕
陈钊
吴宁
刘文成
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangxi Xianglu Construction Co ltd
Beibu Gulf University
Original Assignee
Guangxi Xianglu Construction Co ltd
Beibu Gulf University
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangxi Xianglu Construction Co ltd, Beibu Gulf University filed Critical Guangxi Xianglu Construction Co ltd
Priority to CN202010457058.4A priority Critical patent/CN111612257B/en
Publication of CN111612257A publication Critical patent/CN111612257A/en
Application granted granted Critical
Publication of CN111612257B publication Critical patent/CN111612257B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q10/00Administration; Management
    • G06Q10/04Forecasting or optimisation specially adapted for administrative or management purposes, e.g. linear programming or "cutting stock problem"
    • G06Q10/047Optimisation of routes or paths, e.g. travelling salesman problem

Landscapes

  • Business, Economics & Management (AREA)
  • Human Resources & Organizations (AREA)
  • Engineering & Computer Science (AREA)
  • Strategic Management (AREA)
  • Economics (AREA)
  • Marketing (AREA)
  • Game Theory and Decision Science (AREA)
  • Entrepreneurship & Innovation (AREA)
  • Development Economics (AREA)
  • Operations Research (AREA)
  • Quality & Reliability (AREA)
  • Tourism & Hospitality (AREA)
  • Physics & Mathematics (AREA)
  • General Business, Economics & Management (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Processing Or Creating Images (AREA)
  • Navigation (AREA)

Abstract

本发明旨在提供基于空间归化的最短路径求解方法,包括以下步骤:将路网归化到矢量地理空间,获得起始地与目的地;以起始地与目的地连线中心为圆点,以起始地与目的地连线的长度为直径,构建包含起始地和目的地的第一圆;找出第一圆内所有的路径,并将这些路径进行拓扑构面;再次通过起始地与目的地连线与拓扑构面进行过滤,得到连接起始地与目的地的若干个多边形,并将这些多边形合并;合并后的多边形按照起始地、目的地将其切分为不同路径,选取路径较短者,即为获得的第一初始路径。本发明将弥补传统的A*算法估价函数选取困难问题,解决蚁群算法、遗传算法、神经网络算法等只能求解近似解无法得到数学最优解的难题。

Figure 202010457058

The present invention aims to provide a method for solving the shortest path based on spatial naturalization, which includes the following steps: naturalizing a road network into a vector geographic space to obtain a starting point and a destination; taking the center of the line connecting the starting point and the destination as a dot , take the length of the connection between the origin and the destination as the diameter, construct the first circle including the origin and destination; find all the paths in the first circle, and perform topology faceting on these paths; The origin and destination connection line and topological facet are filtered to obtain several polygons connecting the origin and destination, and these polygons are merged; the merged polygons are divided into different parts according to the origin and destination. Path, the shorter path is selected, which is the obtained first initial path. The invention will make up for the difficult problem of selecting the evaluation function of the traditional A* algorithm, and solve the problem that the ant colony algorithm, the genetic algorithm, and the neural network algorithm can only solve the approximate solution and cannot obtain the mathematical optimal solution.

Figure 202010457058

Description

基于空间归化的最短路径求解方法A Shortest Path Solving Method Based on Spatial Reduction

技术领域technical field

本发明涉及计算机图形学、地理信息科学和逻辑学领域,具体涉及一种基空间归化的最短路径求解方法。The invention relates to the fields of computer graphics, geographic information science and logic, in particular to a method for solving the shortest path of base space reduction.

背景技术Background technique

最短路径问题一直是计算机科学和地理信息科学中的经典问题,传统的类似问题解决多采用经典计算机算法如蚁群算法、A*算法、Dijkstra算法等,Dijkstra算法可以求解出数学最优解,但效率低;其他算法效率高,但却解算不出数学最优解,各种算法的解决思维不尽相同,因此很难兼顾优和准的问题,研究的方向也分为两个主流方向:Dijkstra算法的搜索效率优化和其他算法的精准度提升--至今没有学者能够统一两者,将其他算法的高效率与Dijkstra算法的数学严谨求解和二为一。The shortest path problem has always been a classic problem in computer science and geographic information science. Traditional similar problems are solved by classical computer algorithms such as ant colony algorithm, A* algorithm, Dijkstra algorithm, etc. Dijkstra algorithm can solve the mathematical optimal solution, but Low efficiency; other algorithms are highly efficient, but they cannot solve the mathematical optimal solution. The solution thinking of various algorithms is different, so it is difficult to take into account the problems of excellence and accuracy. The research directions are also divided into two mainstream directions: The search efficiency optimization of Dijkstra's algorithm and the accuracy improvement of other algorithms - so far no scholar has been able to unify the two, combining the high efficiency of other algorithms with the mathematically rigorous solution of Dijkstra's algorithm.

最短路径问题的解困扰计算机图形学、数学、逻辑学、地理信息科学等多个学科领域数十年,其研究解决的方向出现异化,需要效率难于顾及精准度,需要精准度难于顾及效率,因此该领域的研究走入死胡同至今无法解决这一矛盾。由简单数学分析可知,最短路径必然存在,其特点是路径上任意两点间的距离也是最短,是局部解和整体解得有机统一,因此研究自然分化为确保局部和确保整体两个方向。The solution of the shortest path problem has plagued many disciplines such as computer graphics, mathematics, logic, and geographic information science for decades. The direction of its research and solution has become alienated. Research in this field has reached a dead end and so far has not been able to resolve this contradiction. It can be seen from simple mathematical analysis that the shortest path must exist. Its characteristic is that the distance between any two points on the path is also the shortest, and the local solution and the overall solution are organically unified. Therefore, the research is naturally divided into two directions: ensuring the local and ensuring the whole.

由最短路劲的存在性和几何特点可知,问题最终就是长度比较,长度比较实质是线问题求解,而线是面的边界,因此可以通过将其他算法求解的问题归化到几何空间,通过几何手段完成样本空间的减缩优化,之后再利用Dijkstra算法求解最优解,最终实现所有最短路径算法在空间领域的统一,达到最短路径搜索“快”与“准”的统一。It can be seen from the existence and geometric characteristics of the shortest shortest length that the problem is ultimately the comparison of lengths. The comparison of lengths is essentially the solution of the line problem, and the line is the boundary of the surface. Therefore, the problem solved by other algorithms can be reduced to the geometric space, and the geometric The method completes the reduction and optimization of the sample space, and then uses the Dijkstra algorithm to solve the optimal solution, and finally realizes the unification of all the shortest path algorithms in the space field, and achieves the unification of "fast" and "quasi" shortest path search.

发明内容SUMMARY OF THE INVENTION

有鉴于现有技术的上述缺陷,为实现上述目的,本发明提供了一种基于空间归化的最短路径求解方法,以约束最短路径求解时解空间的发散问题,包括如下步骤:In view of the above-mentioned defects of the prior art, in order to achieve the above-mentioned purpose, the present invention provides a method for solving the shortest path based on space reduction, to solve the divergence problem of the solution space when the shortest path is solved, including the following steps:

S1、将路网归化到矢量地理空间,获得起始地与目的地;S1. Naturalize the road network to a vector geographic space to obtain the origin and destination;

S2、以起始地与目的地连线中心为圆点,以起始地与目的地连线的长度为直径,构建包含起始地和目的地的第一圆;S2. Taking the center of the line connecting the origin and the destination as the dot, and taking the length of the line connecting the origin and the destination as the diameter, construct the first circle including the origin and the destination;

S3、找出第一圆内所有的路径,并将这些路径进行拓扑构面;S3. Find all the paths in the first circle, and perform topological facets on these paths;

S4、再次通过起始地与目的地连线与步骤S3中得到的拓扑构面进行过滤,得到连接起始地与目的地的若干个多边形,并将这些多边形合并;S4, filter through the connection line between the origin and the destination and the topology facet obtained in step S3 again to obtain several polygons connecting the origin and the destination, and merge these polygons;

S5、将步骤S4中合并后的多边形按照起始地、目的地将其切分为不同路径,选取路径较短者,即为获得的第一初始路径。S5. Divide the polygons merged in step S4 into different paths according to the origin and destination, and select the shorter path, which is the obtained first initial path.

作为可选的改进技术方案:步骤S3中还包括:只要路径在圆内或与圆有交叉,均筛选出来进行拓扑构面。As an optional improved technical solution: step S3 also includes: as long as the path is within the circle or intersects with the circle, all are screened out for topology faceting.

作为可选的改进技术方案:还包括步骤S6、以第一初始路径长度为基准,将起始地与目的地的连线中心为圆心构建第二圆,将第二圆范围内过滤出来的路径进行拓扑构面,获取第二初始路径,将第二初始路径与第一初始路径进行比对,验算第一初始路径的准确性。As an optional improved technical solution: it also includes step S6, taking the length of the first initial path as the benchmark, constructing a second circle with the center of the line connecting the origin and the destination as the center of the circle, and filtering out the path within the range of the second circle. Perform topology profiling, obtain a second initial path, compare the second initial path with the first initial path, and check the accuracy of the first initial path.

作为可选的改进技术方案:步骤S6还包括如下步骤:As an optional improved technical solution: step S6 also includes the following steps:

S61、以此起点和终点连线即第一初始路径长度为直径,以起点和终点连线的中心为圆点,构建第二圆;S61, taking the connecting line between the starting point and the ending point, that is, the length of the first initial path as the diameter, and taking the center of the connecting line between the starting point and the ending point as the circle point to construct a second circle;

S62、找出第二圆圆内所有的路径,并将这些路径进行拓扑构面;S62, find out all the paths in the second circle, and perform topological facets on these paths;

S63、再次通过起点与终点连线与步骤S62中得到的拓扑构面进行过滤,得到连接起点与终点的若干多边形,并将这些多边形合并;S63, filter through the topological facet obtained in step S62 by connecting the starting point and the ending point again to obtain several polygons connecting the starting point and the ending point, and merge these polygons;

S64、将步骤S63中合并后的多边形按照起点、终点将其切分为不同路径,选取路径较短者,即为获得的第二初始路径;S64, the polygon merged in step S63 is divided into different paths according to the starting point and the ending point, and the shorter path is selected, which is the second initial path obtained;

S65、将第二初始路径与第一初始路径进行比对,以验算第一初始路径的准确性。S65. Compare the second initial path with the first initial path to check the accuracy of the first initial path.

作为可选的改进技术方案:步骤E2中还包括:只要路径在圆内或与第二圆有交叉,均筛选出来进行拓扑构面。As an optional improved technical solution: Step E2 further includes: as long as the path is within the circle or intersects with the second circle, all are screened out for topology faceting.

特别地,所述的步骤B中圆的构建过程原因分析如下:In particular, the reason for the construction process of the circle in the described step B is analyzed as follows:

在步骤S2中通过构建以起始地与目的地连线长度为直径的第一圆,将问题从距离长度的一维空间拓展到二维空间,通过二维空间的范围概念约束可能解的空间,进而求出初始解,即第一初始路径。In step S2, by constructing a first circle whose diameter is the length of the line connecting the origin and the destination, the problem is extended from a one-dimensional space of distance length to a two-dimensional space, and the space of possible solutions is constrained by the range concept of the two-dimensional space. , and then obtain the initial solution, that is, the first initial path.

步骤S3实现功能在于:The realization function of step S3 is:

通过构面将问题的解空间拓展到二维面领域,合并多边形的目的为迅速找出可以包含起始地与目的地的面,进而找出可能的问题解,同时也为后续计算机的循环优化提供理论说明及初始值。The solution space of the problem is expanded to the field of two-dimensional surfaces through facets, and the purpose of merging polygons is to quickly find the surface that can contain the origin and destination, and then find possible solutions to the problem, and also optimize the loop for subsequent computers. Provide theoretical explanations and initial values.

步骤S4与S5实现功能在于:Steps S4 and S5 implement functions as follows:

利用二维面是闭合线的概念,通过合并多边形将起始地、目的地、面、线结合在一起,通过闭合线找到初始解,进而为后期继续压缩解空间进而求解真值提供便利。Using the concept that a two-dimensional surface is a closed line, the origin, destination, surface, and line are combined by merging polygons, and the initial solution is found through the closed line, which provides convenience for the subsequent compression of the solution space and the solution of the true value.

步骤S6实现功能在于:The realization function of step S6 is:

通过步骤S5求的初始解是近似解,真值长度必然在两点连线和此近似解范围内。通过该近似解再次构建范围圆,由几何分析可知该范围圆内必然包含真值,进而再次约束和确保接真解求解的有效、快速、准确。The initial solution obtained through step S5 is an approximate solution, and the length of the true value must be within the range of the line connecting the two points and the approximate solution. The range circle is constructed again through the approximate solution. From the geometric analysis, it can be known that the range circle must contain the true value, and then the true value is constrained again to ensure the effective, fast and accurate solution of the true solution.

本发明将传统计算机图形学、逻辑学中对于最短路径求解统一归化到地理空间范畴,通过几何学、空间科学等相关技术,将参与解算的路径局限在小范围内。该范围与目标点连线线性相关,与全局样本数无关,因此也就解决了Dijkstra算法样本空间优化问题。借助升维降维思维,长度问题就是一维逻辑问题,而空间分析技术就是二维空间对象的逻辑判定技术,因此利用空间分析技术,将整体问题求解转化为局部问题求解进而求得最终解,也解决了其他算法如生物算法、智能算法只能求得局部最优解难于求解整体最优解的难题,是近年来将空间科学思维用于统一最短路径求解的新尝试。In the invention, the shortest path solution in traditional computer graphics and logic is unified into the category of geographic space, and the paths involved in the solution are limited to a small range through geometry, space science and other related technologies. The range is linearly related to the line connecting the target points and has nothing to do with the number of global samples, so it also solves the sample space optimization problem of the Dijkstra algorithm. With the help of dimension-raising and dimensional-reduction thinking, the length problem is a one-dimensional logic problem, and the space analysis technology is the logic judgment technology of the two-dimensional space object. Therefore, using the space analysis technology, the overall problem solution is transformed into a local problem solution and then the final solution is obtained. It also solves the problem that other algorithms, such as biological algorithms and intelligent algorithms, can only obtain local optimal solutions, but it is difficult to solve the overall optimal solution.

最短路径是二维环境下的一维问题,因此其求解复杂度不低于样本数的二次方。对于二维环境下的一维问题,必然存在一维和二维的关联,这种关联就是隐含的二维环境下的对象拓扑关系。本发明构建范围圆,其实质就是将距离的解空间从一维拓展到约束的二维的过程,因此以升维降维思维为引导,借助拓扑关系这一维度之间的关联,有可能将二维问题一维化,进而快速求解出一维问题解。The shortest path is a one-dimensional problem in a two-dimensional environment, so its solution complexity is not less than the quadratic of the number of samples. For a one-dimensional problem in a two-dimensional environment, there must be a one-dimensional and two-dimensional association, and this association is the implicit topological relationship of objects in a two-dimensional environment. The present invention constructs a range circle, and its essence is the process of expanding the solution space of distance from one-dimensional to two-dimensional constrained. The two-dimensional problem is one-dimensional, and then the one-dimensional problem solution is quickly solved.

本发明将弥补传统的A*算法估价函数选取困难问题,解决蚁群算法、遗传算法、神经网络算法等只能求解近似解无法完成数学最优解的难题。与专利ZL201510790636.5相比,本发明是该专利的前置,是将一维问题二维化过程中的全局二维化变革为局部二维化过程,优势在于不需要将全局样本进行二维拓扑构面,节约了大量的存储空间和计算资源,为实时最短路径分析的实现提供技术支持。The invention will make up for the difficult problem of the traditional A* algorithm evaluation function selection, and solve the problem that the ant colony algorithm, the genetic algorithm, the neural network algorithm can only solve the approximate solution and cannot complete the mathematical optimal solution. Compared with the patent ZL201510790636.5, the present invention is the preposition of the patent, which is to transform the global two-dimensionalization process in the two-dimensionalization process of one-dimensional problems into a local two-dimensionalization process. The topology facet saves a lot of storage space and computing resources, and provides technical support for the realization of real-time shortest path analysis.

附图说明Description of drawings

图1为本发明的流程图。FIG. 1 is a flow chart of the present invention.

图2为实施例中原始路线示意。FIG. 2 is a schematic diagram of the original route in the embodiment.

图3为实施例中以直接连线构建过滤范围圆的示意图。FIG. 3 is a schematic diagram of constructing a filter range circle by direct connection in an embodiment.

图4为实施例中过滤得到的所有路径构面的示意图。FIG. 4 is a schematic diagram of all path facets obtained by filtering in the embodiment.

图5为实施例中通过连线过滤连接起始点多边形的示意图。FIG. 5 is a schematic diagram of connecting starting point polygons by line filtering in an embodiment.

图6为实施例中找出构面后的多边形合并后导入空间坐标系后的矢量化图。FIG. 6 is a vectorized diagram after the polygons after the facets are found in the embodiment are merged and imported into the space coordinate system.

图7为实施例中以起终点为圆焦点,初始解长度为基准构建的圆示意图。FIG. 7 is a schematic diagram of a circle constructed with the start and end points as the circle focus and the initial solution length as the benchmark in the embodiment.

图8为实施例中图5的圆范围压盖的道路区域示意图。FIG. 8 is a schematic diagram of a road area of the circular range gland of FIG. 5 in an embodiment.

图9为实施例中的最优解示意图。FIG. 9 is a schematic diagram of the optimal solution in the embodiment.

图10至图12为通过椭圆来约束搜索范围的示意图。10 to 12 are schematic diagrams of constraining the search range by ellipses.

图13为通过圆来约束搜索范围的示意图。FIG. 13 is a schematic diagram of constraining the search range by a circle.

具体实施方式Detailed ways

下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述。The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention.

实施例一Example 1

参见图1,本实施例的最短路径求解方法,其运行平台为PC上的Windows 7操作系统,地理信息系统平台为北京超图地理信息平台软件5.3.3版本,包括以下步骤:Referring to Fig. 1, the shortest path solution method of the present embodiment, its operating platform is the Windows 7 operating system on the PC, and the geographic information system platform is Beijing SuperMap geographic information platform software 5.3.3 version, comprising the following steps:

S1、将路网归化到矢量地理空间,获得起始地与目的地,如图2。S1. Naturalize the road network into a vector geographic space to obtain the origin and destination, as shown in Figure 2.

S2、以起始地与目的地连线的中心为圆点,以起始地与目的地连线的长度为直径,构建包含起始地和目的地的第一圆;如图3。S2. Taking the center of the line connecting the origin and the destination as a dot, and taking the length of the line connecting the origin and the destination as the diameter, construct a first circle including the origin and destination; as shown in Figure 3.

S3、找出第一圆圆内所有的路径,并将这些路径进行拓扑构面,如图4;只要路径在圆内或与第一圆有交叉,均筛选出来进行拓扑构面。S3. Find all the paths in the first circle, and perform topological facets on these paths, as shown in Figure 4; as long as the paths are within the circle or intersect with the first circle, they are screened out for topological facets.

S4、再次通过起始地与目的地连线与步骤S3中得到的拓扑构面进行过滤,得到连接起始地与目的地的若干个多边形,并将这些多边形合并,如图5;S4, filter through the connection line between the origin and the destination and the topology facet obtained in step S3 again to obtain several polygons connecting the origin and the destination, and merge these polygons, as shown in Figure 5;

S5、将步骤S4中合并后的多边形按照起始地、目的地将其切分为不同路径,选取路径较短者,即为获得的第一初始路径,如图6。由于多边形为闭合线,因此任意多边形上两点都可以有两条路连接,短的即为初始值。S5. Divide the polygons merged in step S4 into different paths according to the origin and destination, and select the shorter path, which is the obtained first initial path, as shown in FIG. 6 . Since the polygon is a closed line, two points on any polygon can be connected by two paths, and the shorter one is the initial value.

上述选择最短路径可以采用现有技术完成最终最短路径的获取。The shortest path selected above can be obtained by using the prior art to complete the final shortest path.

通过本实施例的方案,可以较快求解得到较佳的路径,整个过程包括先将地理空间矢量化,利用圆的易构建的特点,以及利用圆的二维平面的优势,筛选出一维的路径,再将一维的路径进行拓扑构面、升维形成二维封闭的路径块,再利用一维的起始地与目的地的连线与二维封闭的路径块进行重合、过滤,选出最短的路径,实现初始路径的求解;这样的求解过程不依赖于地图的更新与变化,只需要筛选出路径即可;而且筛选路径的过程也较为的方便,提升了求解的效率。Through the solution of this embodiment, a better path can be solved quickly. The whole process includes first vectorizing the geographic space, taking advantage of the easy construction of a circle, and taking advantage of the advantages of a two-dimensional plane of a circle to filter out one-dimensional The one-dimensional path is then topologically faceted and dimensioned to form a two-dimensional closed path block, and then the one-dimensional connection between the origin and destination is used to overlap and filter the two-dimensional closed path block. It can find the shortest path and realize the solution of the initial path; such a solution process does not depend on the update and change of the map, and only needs to filter out the path; and the process of screening the path is also more convenient, which improves the efficiency of the solution.

实施例二Embodiment 2

本实施例为实施例一的优选方案;实施例一提供的求解方案是一个必要的技术方案,本实施例作为优选则是在该必要的技术方案的基础上,提供一个充分的技术方案。This embodiment is a preferred solution of Embodiment 1; the solution provided in Embodiment 1 is a necessary technical solution, and this embodiment is a preferred solution to provide a sufficient technical solution on the basis of the necessary technical solution.

S61、在实施例一中,已经求解得到了第一初始路径的起点与终点,以此起点和终点连线为直径,以起点和终点连线的中心为圆点,构建第二圆,如图7。S61. In the first embodiment, the starting point and the ending point of the first initial path have been obtained by solving, and the line connecting the starting point and the ending point is the diameter, and the center of the connecting line between the starting point and the ending point is the circle point, and a second circle is constructed, as shown in the figure 7.

S62、找出第二圆圆内所有的路径,并将这些路径进行拓扑构面,如图7;只要路径在圆内或与第二圆有交叉,均筛选出来进行拓扑构面。S62, find out all the paths in the second circle, and perform topological faceting on these paths, as shown in Figure 7; as long as the paths are within the circle or intersect with the second circle, they are all screened out for topological faceting.

S63、再次通过起点与终点连线与步骤S62中得到的拓扑构面进行过滤,得到连接起点与终点的若干多边形,并将这些多边形合并,如图8;S63, filter through the topological facet obtained in step S62 by connecting the starting point and the ending point again to obtain several polygons connecting the starting point and the ending point, and merge these polygons, as shown in Figure 8;

S64、将步骤S63中合并后的多边形按照起点、终点将其切分为不同路径,选取路径较短者,即为获得的第二初始路径。由于多边形为闭合线,因此任意多边形上两点都可以有两条路连接,短的即为初始值。S64. Divide the polygons merged in step S63 into different paths according to the starting point and the ending point, and select the shorter path, which is the obtained second initial path. Since the polygon is a closed line, two points on any polygon can be connected by two paths, and the shorter one is the initial value.

S65、将第二初始路径与第一初始路径进行比对,以验算第一初始路径的准确性。S65. Compare the second initial path with the first initial path to check the accuracy of the first initial path.

实施例一中得到的结果,可通过本实施例的再次计算验证,可以确认实施例一的计算结果确认无误,因此本实施例是一个充分的验证过程。The result obtained in the first embodiment can be verified by recalculation in this embodiment, and it can be confirmed that the calculation result of the first embodiment is correct, so this embodiment is a sufficient verification process.

本实施例在进行计算时,是利用实施例一计算得到的起点与终点进行的计算,因此形成的第二圆可能大于第一圆,也可能小于第一圆,无论是何种情况,都是对于实施例一的一次充分验证。When performing the calculation in this embodiment, the calculation is performed using the starting point and the end point obtained by the calculation in the first embodiment. Therefore, the second circle formed may be larger than the first circle, or may be smaller than the first circle, no matter what the case is, it is A full verification for Example 1.

同时第二圆与第一圆会存在一定的重合路径,因此第一圆的计算结果可以进行存储,在第二圆进行计算时调取使用。At the same time, there will be a certain overlapping path between the second circle and the first circle, so the calculation result of the first circle can be stored and used when the second circle is calculated.

在实施例一和实施例二中最短路径的计算,可以采用现有技术完成最终最短路径获取,如图8,图8中虚线为起始地和目的地之间的直线路径,而粗实线为计算出来的最短路径。采用的现有技术可以为专利号为ZL201510790636.5,当然不限于这套技术方案,只要能够完成最短路径获取的技术就行。In the calculation of the shortest path in the first and second embodiments, the existing technology can be used to complete the final shortest path acquisition, as shown in FIG. 8, the dotted line in FIG. 8 is the straight path between the origin and the destination, and the thick solid line is the shortest path calculated. The existing technology used may be the patent number ZL201510790636.5, which is of course not limited to this technical solution, as long as the technology for obtaining the shortest path can be completed.

参见图9至图13,直接根据第一初始路径长度,可以通过椭圆来约束搜索范围,也可以通过椭圆的外围圆来约束,其中圆包括椭圆范围。本发明采用圆来约束,主要原因如下:Referring to FIG. 9 to FIG. 13 , directly according to the first initial path length, the search range may be constrained by an ellipse, or may be constrained by a peripheral circle of the ellipse, where the circle includes the ellipse range. The present invention adopts circle to constrain, and the main reasons are as follows:

1、模型简单:只需要将初始路径长度和起终点相关即可,而该圆的中心就是起终点连线中心,而半径为初始路径长度一半,满足了用距离和起始点约束的目标;1. The model is simple: it only needs to correlate the initial path length with the starting point and the end point, and the center of the circle is the center of the line connecting the starting point and the ending point, and the radius is half of the initial path length, which satisfies the goal constrained by distance and starting point;

2、便于数学求解:椭圆不仅需要求解长短轴和焦点,而且在坐标系统之间转换时,特别是旋转计算时,其求解较为复杂,而圆仅需要只掉圆心即可,不存在图形旋转影响。2. Easy to solve mathematically: ellipse not only needs to solve the major and minor axes and focus, but also when converting between coordinate systems, especially when rotating, the solution is more complicated, while the circle only needs to drop the center of the circle, and there is no influence of graphic rotation. .

3、搜索精准:原始最简单的图形,在任意平台都能够无损转换,而对于椭圆,在不同平台之间转换时必然出现精度损失,如下图9。3. Accurate search: The original and simplest graphics can be converted non-destructively on any platform, while for ellipses, precision loss will inevitably occur when converting between different platforms, as shown in Figure 9 below.

对空间搜索的精度影响较大,容易出现检索遗漏的可能,如下图11-图12所示,在新平台搜索时左侧的线将遗漏。建立椭圆找出最短路径的方法可以参考申请号为CN201910314226.1的中国发明专利申请。It has a great impact on the accuracy of spatial search, and it is easy to miss the possibility of retrieval. As shown in Figure 11-Figure 12 below, the line on the left will be missed when searching on a new platform. For the method of establishing an ellipse to find the shortest path, please refer to the Chinese invention patent application with the application number CN201910314226.1.

参见图12,AOB是直径,O为圆心,直径长度多维初始路径:Referring to Figure 12, AOB is the diameter, O is the center of the circle, and the diameter-length multi-dimensional initial path:

AB<CA+CBAB<CA+CB

CA<AO+COCA<AO+CO

CB<BO+COCB<BO+CO

AO+CO<AO+CO=L1AO+CO<AO+CO=L1

BO+CO<EO+CO=L1BO+CO<EO+CO=L1

所以CA+CB<2*L1So CA+CB<2*L1

根据圆的属性可知,CA+CB=CA+AF>L1;According to the properties of the circle, CA+CB=CA+AF>L1;

也就是说,该圆上面任意一点到起终点的距离不超过初始距离的两倍2*L1且不小于L1,即该圆任一点到起终点距离范围为[L1,2*L1),解空间的下限为L1,也就是说圆外的距离必然超过该值,则意味着最优解必然在该圆范围内。通过初始解和该圆这样就把原来解空间从[L0,+∞)进行了降维约束到[L0,2*L1),包括区间[L0,L1]即两点间连线和初始值之间,后期只需在该范围内进行路径求解必然包括最优解。That is to say, the distance from any point on the circle to the starting and ending points is not more than twice the initial distance 2*L1 and not less than L1, that is, the distance from any point on the circle to the starting and ending points is [L1, 2*L1), and the solution space The lower limit of is L1, that is to say, the distance outside the circle must exceed this value, which means that the optimal solution must be within the range of the circle. Through the initial solution and the circle, the original solution space is reduced from [L0, +∞) to [L0, 2*L1), including the interval [L0, L1], that is, the connection between the two points and the initial value. In the later stage, the path solution only needs to be carried out in this range, and the optimal solution must be included.

本发明未详述之处,均为本领域技术人员的公知技术。The parts that are not described in detail in the present invention are known techniques of those skilled in the art.

以上详细描述了本发明的较佳具体实施例。应当理解,本领域的普通技术人员无需创造性劳动就可以根据本发明的构思作出诸多修改和变化。因此,凡本技术领域中技术人员依本发明的构思在现有技术的基础上通过逻辑分析、推理或者有限的实验可以得到的技术方案,皆应在由权利要求书所确定的保护范围内。The preferred embodiments of the present invention have been described in detail above. It should be understood that those skilled in the art can make many modifications and changes according to the concept of the present invention without creative efforts. Therefore, all technical solutions that can be obtained by those skilled in the art through logical analysis, reasoning or limited experiments on the basis of the prior art according to the concept of the present invention shall fall within the protection scope determined by the claims.

Claims (5)

1. The shortest path solving method based on the space normalization is characterized by comprising the following steps of:
s1, the road network is normalized to a vector geographic space, and a starting place and a destination are obtained;
s2, constructing a first circle containing the starting place and the destination by taking the center of a connecting line of the starting place and the destination as a circular point and taking the length of the connecting line of the starting place and the destination as a diameter;
s3, finding out all paths in the first circle, and carrying out topological construction on the paths;
s4, filtering the topological structural surface obtained in the step S3 again through connecting the starting place and the destination, obtaining a plurality of polygons connecting the starting place and the destination, and merging the polygons;
and S5, dividing the combined polygon in the step S4 into different paths according to the starting place and the destination, and selecting the path with the shorter path, namely the first initial path.
2. The shortest path solving method according to claim 1, wherein the step S3 further includes: if the path is in the circle or has a cross with the circle, the topological structure surface is screened out.
3. The shortest path solving method according to claim 1 or 2, further comprising the steps of:
s6, taking the length of the first initial path as a diameter, constructing a second circle by taking the connecting line center of the starting place and the destination as the center of the circle, carrying out topology construction on the path filtered in the range of the second circle, obtaining a second initial path, comparing the second initial path with the first initial path, and checking the accuracy of the first initial path.
4. The shortest path solving method according to claim 3, wherein the step S6 further comprises the steps of:
s61, constructing a second circle by taking the connecting line of the starting point and the end point, namely the first initial path length, as a diameter and taking the center of the connecting line of the starting point and the end point as a circular point;
s62, finding out all paths in the second circle, and carrying out topological construction on the paths;
s63, filtering the topological structural surface obtained in the step S62 through the connecting line of the starting point and the end point again to obtain a plurality of polygons connecting the starting point and the end point, and merging the polygons;
s64, dividing the combined polygon in the step S63 into different paths according to the starting point and the end point, and selecting the path with the shorter path, namely the second initial path;
and S65, comparing the second initial path with the first initial path to check the accuracy of the first initial path.
5. The shortest path solving method according to claim 4, wherein the step S62 further comprises: if the path is in the circle or crossed with the second circle, the topological structure surface is screened out.
CN202010457058.4A 2020-05-26 2020-05-26 A Shortest Path Solution Based on Spatial Reduction Active CN111612257B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010457058.4A CN111612257B (en) 2020-05-26 2020-05-26 A Shortest Path Solution Based on Spatial Reduction

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010457058.4A CN111612257B (en) 2020-05-26 2020-05-26 A Shortest Path Solution Based on Spatial Reduction

Publications (2)

Publication Number Publication Date
CN111612257A true CN111612257A (en) 2020-09-01
CN111612257B CN111612257B (en) 2023-05-02

Family

ID=72200954

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010457058.4A Active CN111612257B (en) 2020-05-26 2020-05-26 A Shortest Path Solution Based on Spatial Reduction

Country Status (1)

Country Link
CN (1) CN111612257B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110111082A (en) * 2019-05-14 2019-08-09 青岛奥利普自动化控制系统有限公司 A kind of shooting method conveniently for on-site verification work
CN116502989A (en) * 2023-06-27 2023-07-28 合肥城市云数据中心股份有限公司 Cold-chain logistics vehicle path optimization method based on mixed balance optimization algorithm

Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6195611B1 (en) * 1997-07-23 2001-02-27 Mitsubishi Denki Kabushiki Kaisha Route search method
CN101025366A (en) * 2006-02-17 2007-08-29 爱信艾达株式会社 Route search method, route guidance system, navigation system, and statistical processing server
JP2009053849A (en) * 2007-08-24 2009-03-12 Toyota Motor Corp Route search system, route search method, and autonomous mobile body
CN102084382A (en) * 2008-06-26 2011-06-01 皇家飞利浦电子股份有限公司 Method and system for fast precise path planning
JP2015059872A (en) * 2013-09-19 2015-03-30 ヤフー株式会社 Route search device, route search method, route search system, and route search program
CN105512169A (en) * 2016-03-10 2016-04-20 珠海市规划设计研究院 Shortest route searching method based on route and weight
CN106056574A (en) * 2016-05-04 2016-10-26 上海航天控制技术研究所 Area method-based to-ground attitude calculation method
CN106125764A (en) * 2016-08-03 2016-11-16 西北工业大学 A Dynamic Path Planning Method for UAV Based on A* Search
CN107423360A (en) * 2017-06-19 2017-12-01 广东中冶地理信息股份有限公司 A kind of labyrinth method for solving based on path center line
CN108827335A (en) * 2018-08-22 2018-11-16 北京理工大学 A kind of shortest path planning method based on unidirectional search model
CN109541634A (en) * 2018-12-28 2019-03-29 歌尔股份有限公司 A kind of paths planning method, device and mobile device
CN110110919A (en) * 2019-04-30 2019-08-09 杭州电子科技大学 The object intercepting method of path minimum is reached based on particle swarm algorithm and region
US20200234203A1 (en) * 2019-01-18 2020-07-23 Naver Corporation Method for computing at least one itinerary from a departure location to an arrival location

Patent Citations (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6195611B1 (en) * 1997-07-23 2001-02-27 Mitsubishi Denki Kabushiki Kaisha Route search method
CN101025366A (en) * 2006-02-17 2007-08-29 爱信艾达株式会社 Route search method, route guidance system, navigation system, and statistical processing server
JP2009053849A (en) * 2007-08-24 2009-03-12 Toyota Motor Corp Route search system, route search method, and autonomous mobile body
CN102084382A (en) * 2008-06-26 2011-06-01 皇家飞利浦电子股份有限公司 Method and system for fast precise path planning
JP2015059872A (en) * 2013-09-19 2015-03-30 ヤフー株式会社 Route search device, route search method, route search system, and route search program
CN105512169A (en) * 2016-03-10 2016-04-20 珠海市规划设计研究院 Shortest route searching method based on route and weight
CN106056574A (en) * 2016-05-04 2016-10-26 上海航天控制技术研究所 Area method-based to-ground attitude calculation method
CN106125764A (en) * 2016-08-03 2016-11-16 西北工业大学 A Dynamic Path Planning Method for UAV Based on A* Search
CN107423360A (en) * 2017-06-19 2017-12-01 广东中冶地理信息股份有限公司 A kind of labyrinth method for solving based on path center line
CN108827335A (en) * 2018-08-22 2018-11-16 北京理工大学 A kind of shortest path planning method based on unidirectional search model
CN109541634A (en) * 2018-12-28 2019-03-29 歌尔股份有限公司 A kind of paths planning method, device and mobile device
US20200234203A1 (en) * 2019-01-18 2020-07-23 Naver Corporation Method for computing at least one itinerary from a departure location to an arrival location
CN110110919A (en) * 2019-04-30 2019-08-09 杭州电子科技大学 The object intercepting method of path minimum is reached based on particle swarm algorithm and region

Non-Patent Citations (6)

* Cited by examiner, † Cited by third party
Title
付梦印,李杰,邓志红: "限制搜索区域的距离最短路径规划算法" *
张小国,王庆,万德钧: "基于电子地图的路径最优算法研究" *
王建宇,许震洪,周献中: "基于数字地图的多属性最优路径问题的算法研究" *
王海梅;周献中;: "一种限制搜索区域的最短路径改进算法" *
韩海玲: "基于城市路网的最短路径算法研究与应用" *
魏金占;岳国森;孙鸿睿;: "基于空间分析和并行计算的最短路径搜索方法" *

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110111082A (en) * 2019-05-14 2019-08-09 青岛奥利普自动化控制系统有限公司 A kind of shooting method conveniently for on-site verification work
CN110111082B (en) * 2019-05-14 2023-04-28 青岛奥利普奇智智能工业技术有限公司 Random shooting method for field checking work
CN116502989A (en) * 2023-06-27 2023-07-28 合肥城市云数据中心股份有限公司 Cold-chain logistics vehicle path optimization method based on mixed balance optimization algorithm
CN116502989B (en) * 2023-06-27 2023-09-08 合肥城市云数据中心股份有限公司 Cold-chain logistics vehicle path optimization method based on mixed balance optimization algorithm

Also Published As

Publication number Publication date
CN111612257B (en) 2023-05-02

Similar Documents

Publication Publication Date Title
US20220018669A1 (en) A method for searching the shortest path of must-pass nodes
Lim et al. Practical route planning under delay uncertainty: Stochastic shortest path queries
Lin et al. One-pass trajectory simplification using the synchronous Euclidean distance
US11403296B2 (en) Point-based relation splitting in geospatial-function-implied interval joins
Lin et al. Range-based skyline queries in mobile environments
CN106488401B (en) Generate the method and device of seamless adjacent geography fence
CN111612257B (en) A Shortest Path Solution Based on Spatial Reduction
US9910878B2 (en) Methods for processing within-distance queries
CN106777133A (en) A kind of similar connection processing method of metric space based on MapReduce
Teng et al. IDEAL: a vector-raster hybrid model for efficient spatial queries over complex polygons
CN113761093B (en) Method, device, computer equipment and storage medium for determining spatial binary group
CN107808059A (en) A kind of landform paths planning method based on directed networkses
Cho et al. A basis of spatial big data analysis with map-matching system
Kim et al. Adaptive lazy collision checking for optimal sampling-based motion planning
CN107038731B (en) A Complex Polygon Clipping Method for Solving Intersection Degenerate Problem
CN112965500B (en) Path planning method and device with must-pass point set and additional hard constraints
Marciuska et al. Determining objects within isochrones in spatial network databases
Rai et al. Top-k community similarity search over large road-network graphs
CN118444696A (en) Unmanned aerial vehicle unconstrained patrol path planning method with multiple target points
CN117570991A (en) Path planning method and device, electronic equipment and storage medium
Wang et al. ASQT: an efficient index for queries on compressed trajectories
CN102750460A (en) Operational method of layering simplifying large-scale graph data
Liu et al. Learning Road Network Index Structure for Efficient Map Matching
Duchêne et al. Road network generalization: A multi-agent system approach
Du et al. Optimizing the shortest path query on large-scale dynamic directed graph

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information

Address after: Floor 14, 15 and 16, No. 39, Yunjing Road, Qingxiu District, Nanning, Guangxi 530000

Applicant after: Guangxi Beitou Highway Construction Investment Group Co.,Ltd.

Applicant after: BEIBU GULF University

Address before: 532000, 14th, 15th, and 16th floors, No. 39 Yunjing Road, Qingxiu District, Nanning City, Guangxi Zhuang Autonomous Region

Applicant before: GUANGXI XIANGLU CONSTRUCTION Co.,Ltd.

Applicant before: BEIBU GULF University

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant