[go: up one dir, main page]

CN107883956A - A kind of routing resource and system based on dijkstra's algorithm - Google Patents

A kind of routing resource and system based on dijkstra's algorithm Download PDF

Info

Publication number
CN107883956A
CN107883956A CN201710979873.5A CN201710979873A CN107883956A CN 107883956 A CN107883956 A CN 107883956A CN 201710979873 A CN201710979873 A CN 201710979873A CN 107883956 A CN107883956 A CN 107883956A
Authority
CN
China
Prior art keywords
path
weight
selection
msub
indoor
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.)
Pending
Application number
CN201710979873.5A
Other languages
Chinese (zh)
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.)
China University of Geosciences Wuhan
Original Assignee
China University of Geosciences Wuhan
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 China University of Geosciences Wuhan filed Critical China University of Geosciences Wuhan
Priority to CN201710979873.5A priority Critical patent/CN107883956A/en
Publication of CN107883956A publication Critical patent/CN107883956A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01CMEASURING DISTANCES, LEVELS OR BEARINGS; SURVEYING; NAVIGATION; GYROSCOPIC INSTRUMENTS; PHOTOGRAMMETRY OR VIDEOGRAMMETRY
    • G01C21/00Navigation; Navigational instruments not provided for in groups G01C1/00 - G01C19/00
    • G01C21/20Instruments for performing navigational calculations
    • G01C21/206Instruments for performing navigational calculations specially adapted for indoor navigation

Landscapes

  • Engineering & Computer Science (AREA)
  • Radar, Positioning & Navigation (AREA)
  • Remote Sensing (AREA)
  • Automation & Control Theory (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Navigation (AREA)

Abstract

本发明公开了一种基于Dijkstra算法的路径选择方法及系统,先获取室内路径模型,该室内路径模型包含各个节点之间的各个选择因素的权值,该室内路径模型中的选择因素包括路径距离及路径的拥挤度,然后计算室内路径模型各个节点之间的综合权值,再以综合权值对应的替换Dijkstra算法中的路径距离的权值来进行Dijkstra算法,选择出一条总的综合权值最小的路径。本发明对多项影响路径规划的选择因素进行了综合考虑,能够得到更加符合实际室内环境和用户个性化需求的综合最优路径。

The invention discloses a path selection method and system based on the Dijkstra algorithm. Firstly, an indoor path model is obtained. The indoor path model includes the weights of each selection factor between each node, and the selection factors in the indoor path model include path distance. and the congestion degree of the path, and then calculate the comprehensive weight between each node of the indoor path model, and then replace the weight of the path distance in the Dijkstra algorithm with the corresponding comprehensive weight to perform the Dijkstra algorithm, and select a total comprehensive weight the smallest path. The present invention comprehensively considers multiple selection factors affecting path planning, and can obtain a comprehensive optimal path that is more in line with the actual indoor environment and individual needs of users.

Description

一种基于Dijkstra算法的路径选择方法及系统A method and system for path selection based on Dijkstra algorithm

技术领域technical field

本发明涉及导航领域,尤其涉及导航过程中路径的选择方面,更具体地说,涉及一种基于Dijkstra算法的路径选择方法及系统。The present invention relates to the field of navigation, in particular to the aspect of path selection in the navigation process, and more specifically, to a path selection method and system based on Dijkstra algorithm.

背景技术Background technique

随着城市化进程的加快,大型室内建筑物越来越多,其内部结构越来越复杂,人们在室内活动的时间越来越长,室内导航路径规划有着切实的意义。路径规划算法中,Dijkstra(迪杰斯特拉)算法是求有向图中从某一源点到其余各点最短路径的有效算法,算法适应网络拓扑变化,且性能稳定,是路径规划的经典算法。With the acceleration of urbanization, there are more and more large indoor buildings, and their internal structures are becoming more and more complex. People spend more and more time indoors, so indoor navigation path planning has practical significance. Among the path planning algorithms, the Dijkstra algorithm is an effective algorithm for finding the shortest path from a source point to other points in a directed graph. The algorithm adapts to network topology changes and has stable performance. It is a classic path planning algorithm. algorithm.

Dijkstra算法思想是:设G=(V,E)是一个带权有向图,把图中各顶点的集合V分成两组,第一组为已求出最短路径的顶点集合(用S表示,初始时S中只有一个源点,以后每求得一条最短路径,就将加入到集合S中,直到全部顶点都加入到S中,算法就结束了),第二组为其余未确定最短路径的顶点集合(用U表示),按最短路径长度的递增次序依次把第二组的顶点加入S中。在加入的过程中,总保持从源点v到S中各顶点的最短路径长度不大于从源点v到U中任何顶点的最短路径长度。此外,每个顶点对应一个距离,S中的顶点的距离就是从v到此顶点的最短路径长度,U中的顶点的距离,是从v到此顶点只包括S中的顶点为中间顶点的当前最短路径长度。The idea of Dijkstra's algorithm is: Let G=(V, E) be a weighted directed graph, divide the set V of each vertex in the figure into two groups, and the first group is the set of vertices for which the shortest path has been obtained (represented by S, Initially, there is only one source point in S, and each time a shortest path is obtained, it will be added to the set S until all vertices are added to S, and the algorithm is over), the second group is the rest of the undetermined shortest path For the vertex set (denoted by U), the vertices of the second group are added to S in the ascending order of the shortest path length. In the process of joining, always keep the shortest path length from the source point v to each vertex in S not greater than the shortest path length from the source point v to any vertex in U. In addition, each vertex corresponds to a distance. The distance of the vertex in S is the shortest path length from v to this vertex. The distance of the vertex in U is from v to this vertex, only including the current vertex in S as the intermediate vertex. Shortest path length.

Dijkstra算法步骤:Dijkstra algorithm steps:

a.初始时,S只包含源点,即S={v},v的距离为0。U包含除v外的其他顶点,即:U={其余顶点},若v与U中顶点u有边,则<u,v>有不为∞的权值,若u不是v的出边邻接点,则<u,v>权值为∞。a. Initially, S only contains the source point, that is, S={v}, and the distance of v is 0. U contains other vertices except v, that is: U={other vertices}, if v has an edge with vertex u in U, then <u, v> has a weight not equal to ∞, if u is not adjacent to the outgoing edge of v point, then the weight of <u, v> is ∞.

b.从U中选取一个距离v最小的顶点k,把k,加入S中(该选定的距离就是v到k的最短路径长度)。b. Select a vertex k with the smallest distance v from U, and add k to S (the selected distance is the shortest path length from v to k).

c.以k为新考虑的中间点,修改U中各顶点的距离;若从源点v到顶点u的距离(经过顶点k)比原来距离(不经过顶点k)短,则修改顶点u的距离值,修改后的距离值的顶点k的距离加上边上的权。c. Take k as the newly considered intermediate point, modify the distance of each vertex in U; if the distance from source point v to vertex u (passing vertex k) is shorter than the original distance (not passing vertex k), modify the distance of vertex u The distance value, the modified distance value is the distance of vertex k plus the weight on the edge.

d.重复步骤b和c直到所有顶点都包含在S中。d. Repeat steps b and c until all vertices are included in S.

上述的Dijkstra算法可以得到从起始点到终点的最短路径,但是在实际的室内导航路径规划问题中,由于室内环境的复杂性和多样性,实际的室内路径选择也呈现个性化和多样化,使得人们对室内路径的选择不仅仅以路径距离作为唯一标准,还有一些影响路径选择的其他因素,仅仅考虑路径距离并不能满足人们在室内的路径选择需求。The above-mentioned Dijkstra algorithm can obtain the shortest path from the starting point to the end point, but in the actual indoor navigation path planning problem, due to the complexity and diversity of the indoor environment, the actual indoor path selection is also personalized and diverse, making People's choice of indoor paths is not only based on path distance as the only criterion, but also some other factors that affect path selection. Only considering path distance cannot satisfy people's indoor path selection needs.

发明内容Contents of the invention

本发明要解决的技术问题在于,针对上述的现有室内环境的复杂性和多样性,室内路径选择呈现个性化和多样化,现有路径规划方法仅以路径距离作为唯一标准进行室内路径的规划导航,仅仅考虑路径距离并不能满足人们在室内的路径选择需求的技术缺陷,提供了一种基于Dijkstra算法的路径选择方法及系统。The technical problem to be solved by the present invention is that, in view of the complexity and diversity of the above-mentioned existing indoor environment, indoor path selection presents individuality and diversification, and the existing path planning method only uses the path distance as the only standard for indoor path planning Navigation, the technical defect that only considering the path distance cannot satisfy people's indoor path selection needs, provides a path selection method and system based on Dijkstra algorithm.

根据本发明的其中一方面,本发明为解决其技术问题,提供了一种基于Dijkstra算法的路径选择方法,包含下述步骤:According to one aspect of the present invention, the present invention provides a kind of route selection method based on Dijkstra algorithm for solving its technical problem, comprises the following steps:

S1、获取室内路径模型,该室内路径模型包含各个节点之间的各个选择因素的权值,该室内路径模型中的选择因素包括路径距离及路径的拥挤度;S1. Obtain an indoor path model, the indoor path model includes the weights of each selection factor between each node, and the selection factors in the indoor path model include path distance and path congestion;

S2、计算室内路径模型各个节点之间的综合权值,其中任意节点p与q之间的综合权值通过下述公式计算所得:S2. Calculate the comprehensive weight between each node of the indoor path model, wherein the comprehensive weight between any node p and q is calculated by the following formula:

f=ω1×f12×f2+…+ωn×fnf=ω 1 ×f 12 ×f 2 +...+ω n ×f n ,

式中,f表示综合权值,n表示选择因素的总个数,f1、f2、…及fn分别为节点p与节点q之间的各个因素的权值,ω1、ω2、…及ωn分别为f1、f2、…及fn对应的权重。In the formula, f represents the comprehensive weight, n represents the total number of selected factors, f 1 , f 2 , ... and f n are the weights of each factor between node p and node q respectively, ω 1 , ω 2 , ... and ω n are weights corresponding to f 1 , f 2 , ... and f n respectively.

S3、以综合权值对应的替换Dijkstra算法中的路径距离的权值来进行Dijkstra算法,选择出一条总的综合权值最小的路径。S3. Perform the Dijkstra algorithm with the weight corresponding to the comprehensive weight replacing the path distance in the Dijkstra algorithm, and select a path with the smallest total comprehensive weight.

进一步的,在本发明的基于Dijkstra算法的路径选择方法中,第k个选择因素的归一化后的权重通过下述方法得到:Further, in the path selection method based on the Dijkstra algorithm of the present invention, the normalized weight of the kth selection factor is obtained by the following method:

式中,k=1、2、…、n,Sk是利用1~9级判断矩阵标准度,分别求出第k个选择因素分别相对于所有的选择因素的矩阵标准度的值,然后将该选择因素所有的矩阵标准度的值相加所得到的和。In the formula, k=1, 2, ..., n, S k is to utilize 1~9 levels to judge the matrix standard degree, obtain the value of the matrix standard degree of the kth selection factor respectively with respect to all selection factors respectively, then will The sum obtained by adding all matrix standard degree values for this selection factor.

进一步的,在本发明的基于Dijkstra算法的路径选择方法中,上述的多个选择因素可归结为三个选择因素,分别为对路径距离、路径的拥挤度以及路径的偏好程度。Further, in the route selection method based on Dijkstra algorithm of the present invention, the above-mentioned multiple selection factors can be summarized into three selection factors, which are respectively the distance to the route, the congestion degree of the route and the preference degree of the route.

进一步的,在本发明的基于Dijkstra算法的路径选择方法中,路径距离的权重为ω1=0.633,路径的拥挤度的权重为ω2=0.261,路径的偏好程度的权重为ω3=0.106。Further, in the path selection method based on Dijkstra algorithm of the present invention, the weight of path distance is ω 1 =0.633, the weight of path congestion is ω 2 =0.261, and the weight of path preference is ω 3 =0.106.

进一步的,在本发明的基于Dijkstra算法的路径选择方法中,各个选择因素的权重的得到过程中,还包括步骤:通过对归一化后的权重进行一致性判断来检验计算得到的归一化后的权重是否符合权值类型之间的实际重要性,若是,则将本次计算的权重作为权重的最终值,否则,获取重新选取矩阵标准度的值来计算权重;Further, in the path selection method based on the Dijkstra algorithm of the present invention, in the process of obtaining the weights of each selection factor, a step is also included: checking the calculated normalized weights by judging the consistency of the normalized weights Whether the final weight conforms to the actual importance between the weight types, if so, use the weight calculated this time as the final value of the weight, otherwise, obtain the value of the re-selected matrix standard degree to calculate the weight;

进行一致性判断的方法如下:The method of making a consistency judgment is as follows:

判断的值是否小于0.1,若是则符合一致性,否则不符合一致性;judge Whether the value of is less than 0.1, if it is consistent, otherwise it is not consistent;

其中,R.I.等于平均随机一致性表中n阶矩阵的值,λmax是判断矩阵的最大特征根,判断矩阵的第i行的第j列的元素为第i个选择因素相对于第j选择因素的矩阵标准度的值,i=1、2、…、n,j=1、2、…、n。in, RI is equal to the value of the n-order matrix in the average random consistency table, λ max is the largest characteristic root of the judgment matrix, and the element of the i-th row and the j-th column of the judgment matrix is the matrix of the i-th selection factor relative to the j-th selection factor The value of standard degree, i=1, 2,..., n, j=1, 2,..., n.

根据本发明的另一方面,本发明为解决其技术问题,还提供了一种基于Dijkstra算法的路径选择系统,包含下述步骤:According to another aspect of the present invention, the present invention also provides a kind of path selection system based on Dijkstra algorithm for solving its technical problem, comprises the following steps:

路径模型获取模块,用于获取室内路径模型,该室内路径模型包含各个节点之间的各个选择因素的权值,该室内路径模型中的选择因素包括路径距离及路径的拥挤度;A path model acquisition module, used to obtain an indoor path model, the indoor path model includes the weight of each selection factor between each node, and the selection factors in the indoor path model include path distance and path congestion;

综合权值计算模块,用于计算室内路径模型各个节点之间的综合权值,其中任意节点p与q之间的综合权值通过下述公式计算所得:The comprehensive weight calculation module is used to calculate the comprehensive weight between each node of the indoor path model, wherein the comprehensive weight between any node p and q is calculated by the following formula:

f=ω1×f12×f2+…+ωn×fnf=ω 1 ×f 12 ×f 2 +...+ω n ×f n ,

式中,f表示综合权值,n表示选择因素的总个数,f1、f2、…及fn分别为节点p与节点q之间的各个因素的权值,ω1、ω2、…及ωn分别为f1、f2、…及fn对应的权重。In the formula, f represents the comprehensive weight, n represents the total number of selected factors, f 1 , f 2 , ... and f n are the weights of each factor between node p and node q respectively, ω 1 , ω 2 , ... and ω n are weights corresponding to f 1 , f 2 , ... and f n respectively.

Dijkstra算法模块,用于以综合权值对应的替换Dijkstra算法中的路径距离的权值来进行Dijkstra算法,选择出一条总的综合权值最小的路径。The Dijkstra algorithm module is used to replace the weight of the path distance in the Dijkstra algorithm corresponding to the comprehensive weight to perform the Dijkstra algorithm, and select a path with the smallest total comprehensive weight.

进一步的,在本发明的基于Dijkstra算法的路径选择系统中,第k个选择因素的归一化后的权重通过下述方法得到:Further, in the path selection system based on the Dijkstra algorithm of the present invention, the normalized weight of the kth selection factor is obtained by the following method:

式中,k=1、2、…、n,Sk是利用1~9级判断矩阵标准度,分别求出第k个选择因素分别相对于所有的选择因素的矩阵标准度的值,然后将该选择因素所有的矩阵标准度的值相加所得到的和。In the formula, k=1, 2, ..., n, S k is to utilize 1~9 grades to judge the matrix standard degree, obtain the value of the matrix standard degree of the kth selection factor respectively relative to all selection factors respectively, and then The sum obtained by adding all matrix standard degree values for this selection factor.

进一步的,在本发明的基于Dijkstra算法的路径选择系统中,上述的多个选择因素可归结为三个选择因素,分别为路径距离、路径的拥挤度以及路径的偏好程度。Further, in the route selection system based on the Dijkstra algorithm of the present invention, the above multiple selection factors can be summarized into three selection factors, which are respectively route distance, route congestion degree and route preference degree.

进一步的,在本发明的基于Dijkstra算法的路径选择系统中,路径距离的权重为ω1=0.633,路径的拥挤度的权重为ω2=0.261,路径的偏好程度的权重为ω3=0.106。Further, in the route selection system based on Dijkstra algorithm of the present invention, the weight of route distance is ω 1 =0.633, the weight of route congestion is ω 2 =0.261, and the weight of route preference is ω 3 =0.106.

进一步的,在本发明的基于Dijkstra算法的路径选择系统中,各个选择因素的权重的得到过程中,还包括步骤:通过对归一化后的权重进行一致性来检验计算得到的归一化后的权重是否符合权值类型之间的实际重要性,若是,则将本次计算的权重作为权重的最终值,否则,获取重新选取矩阵标准度的值来计算权重;Further, in the path selection system based on the Dijkstra algorithm of the present invention, in the process of obtaining the weights of each selection factor, a step is also included: checking the normalized weight obtained by the calculation by performing consistency on the normalized weight Whether the weight of the weight conforms to the actual importance between the weight types, if so, the weight calculated this time is used as the final value of the weight, otherwise, the value of the standard degree of the re-selected matrix is obtained to calculate the weight;

进行一致性判断的方法如下:The method of making a consistency judgment is as follows:

判断的值是否小于0.1,若是则符合一致性,否则不符合一致性;judge Whether the value of is less than 0.1, if it is consistent, otherwise it is not consistent;

其中,R.I.等于平均随机一致性表中n阶矩阵的值,λmax是判断矩阵的最大特征根,判断矩阵的第i行的第j列的元素为第i个选择因素相对于第j选择因素的矩阵标准度的值,i=1、2、…、n,j=1、2、…、n。in, RI is equal to the value of the n-order matrix in the average random consistency table, λ max is the largest characteristic root of the judgment matrix, and the element of the i-th row and the j-th column of the judgment matrix is the matrix of the i-th selection factor relative to the j-th selection factor The value of standard degree, i=1, 2,..., n, j=1, 2,..., n.

本发明的基于Dijkstra算法的路径选择方法及系统,先获取室内路径模型,该室内路径模型包含各个节点之间的各个选择因素的权值,该室内路径模型中的选择因素包括路径距离及路径的拥挤度,然后计算室内路径模型各个节点之间的综合权值,再以综合权值对应的替换Dijkstra算法中的路径距离的权值来进行Dijkstra算法,选择出一条总的综合权值最小的路径。本发明对多项影响路径规划的选择因素进行了综合考虑,能够得到更加符合实际室内环境和用户个性化需求的综合最优路径。The route selection method and system based on the Dijkstra algorithm of the present invention first obtains the indoor route model, the indoor route model includes the weights of each selection factor between each node, and the selection factors in the indoor route model include the route distance and the weight of the route Then calculate the comprehensive weight between each node of the indoor path model, and then replace the weight of the path distance in the Dijkstra algorithm with the corresponding comprehensive weight to perform the Dijkstra algorithm, and select a path with the smallest total comprehensive weight . The present invention comprehensively considers multiple selection factors affecting path planning, and can obtain a comprehensive optimal path that is more in line with the actual indoor environment and individual needs of users.

附图说明Description of drawings

下面将结合附图及实施例对本发明作进一步说明,附图中:The present invention will be further described below in conjunction with accompanying drawing and embodiment, in the accompanying drawing:

图1是本发明的基于Dijkstra算法的路径选择方法的一实施例的流程图;Fig. 1 is the flowchart of an embodiment of the path selection method based on Dijkstra algorithm of the present invention;

图2是本发明的路径网络拓扑图。Fig. 2 is a path network topology diagram of the present invention.

具体实施方式Detailed ways

为了对本发明的技术特征、目的和效果有更加清楚的理解,现对照附图详细说明本发明的具体实施方式。In order to have a clearer understanding of the technical features, purposes and effects of the present invention, the specific implementation manners of the present invention will now be described in detail with reference to the accompanying drawings.

参考图1,其为本发明的基于Dijkstra算法的路径选择方法的一实施例的流程图。本实施例的路径选择方法主要包含下述步骤:Referring to FIG. 1 , it is a flowchart of an embodiment of a path selection method based on the Dijkstra algorithm of the present invention. The path selection method of the present embodiment mainly includes the following steps:

S1、获取室内路径模型,该室内路径模型包含各个节点之间的各个选择因素的权值,选择因素至少为两种。S1. Obtain an indoor path model, the indoor path model includes the weights of each selection factor between each node, and there are at least two selection factors.

室内环境的多样性和复杂性,用户作为室内活动的主体,室内的路径选择往往更加具有灵活性和自主性,室内导航路径规划旨在要为用户规划出从起始点到达目标点的合适的路线,使得用户能行走更短的路径、使用更少的时间、更加贴合人们对路径的不同喜好程度。本实施例选取了路径距离的权值、路径的拥挤度的权值、路径的偏好程度的权值作为影响室内路径规划的三个权值指标进行说明,以此来得到更全面更符合用户室内导航个性化需求的综合优化路线,但应当理解的是,本发明的影响因素包含但是不局限于该三种影响因素。Due to the diversity and complexity of indoor environments, users are the main body of indoor activities, and indoor path selection is often more flexible and autonomous. Indoor navigation path planning aims to plan a suitable route from the starting point to the target point for users , so that users can walk shorter paths, use less time, and better fit people's different preferences for paths. In this embodiment, the weight of the path distance, the weight of the congestion degree of the path, and the weight of the preference degree of the path are selected as the three weight indicators that affect indoor path planning for illustration, so as to obtain a more comprehensive and more in line with the user's indoor It should be understood that the influencing factors of the present invention include but are not limited to these three influencing factors.

路径距离反应了路段的长短,是导航路径规划问题中最直接的因素,其简单直观,可以通过对路段的相关测量计算得到。路径距离的权值是所有导航路径规划的基础,是用户在进行路径选择时必然会考虑的因素,通常其值越小越有利于对该路段的选择。传统的Dijkstra算法便是选取了路径距离作为导航路径规划的唯一权值进而得到从起始点到目的点的最短路径。但是由于室内环境的复杂性和多样性,用户往往不会只单一考虑路径距离的权值作为路径选择的因素,因此需要分析室内导航路径规划的其他影响因素,规划出更加全面的综合优化路径。按照路径的长短,可以将路径划分为多个等级,每个等级对应一个权值,路径越长数值越大。The path distance reflects the length of the road section, and is the most direct factor in the navigation path planning problem. It is simple and intuitive, and can be calculated through the relevant measurement of the road section. The weight value of path distance is the basis of all navigation path planning, and it is a factor that users will definitely consider when making path selection. Usually, the smaller the value is, the more favorable it is for the path selection. The traditional Dijkstra algorithm selects the path distance as the only weight for navigation path planning to obtain the shortest path from the starting point to the destination point. However, due to the complexity and diversity of the indoor environment, users often do not only consider the weight of the path distance as a factor for path selection. Therefore, it is necessary to analyze other influencing factors of indoor navigation path planning and plan a more comprehensive comprehensive optimization path. According to the length of the path, the path can be divided into multiple levels, and each level corresponds to a weight value. The longer the path, the larger the value.

拥挤度是综合反映道路网畅通或拥堵的概念性数值,结合拥挤度权值进行路径优化,能有效避开拥堵路段,节约出行时间。北京市在2011年4月发布了《城市道路交通运行评价指标体系》并与同年八月正式实施,用交通运行指数来综合反映道路网交通拥堵情况,该城市道路交通运行评价指标体系将交通拥挤度定性的划分为五个级别,数值取值范围为0至10,每隔两个数划分为一等级,分别对应“畅通”、“基本畅通”、“轻度拥堵”、“中度拥堵”、“严重拥堵”,数值越小表明交通道路越畅通,数值越高表明交通拥堵状况越严重。参考和借鉴室外导航中的交通评价指标体系中拥挤度的定义方案,可以确定室内导航路径规划的室内道路拥挤度的具体定义规则。在室外导航领域中,交通拥挤度主要通过车流量的大小来反映实时的交通拥挤状况,类似的,在室内路径导航中,本发明通过人流量的大小来体现室内拥挤度。在实际的应用中,可以通过对某一建筑物进行实际测量其人流数据,对大量数据进行统计分析得到室内道路拥挤度指数,进而反映室内建筑的拥挤度呈现的特点。参考城市道路交通拥挤度的定义规则,本实施例将室内拥挤度评价指数分为五个等级,评价指标为:“畅通”、“基本畅通”、“轻度拥堵”、“中度拥堵”、“严重拥堵”。拥挤度指数取值范围为[0,10],每间隔两个数划分一个等级,拥挤度指数的取值可直接作为该影响因素的权值。拥挤度数值越接近0表示路段越畅通,数值越接近10表示路段越拥堵。拥挤程度与拥挤度指数的对应关系如下表1:The degree of congestion is a conceptual value that comprehensively reflects the smoothness or congestion of the road network. Combined with the weight of the degree of congestion for path optimization, it can effectively avoid congested roads and save travel time. Beijing released the "Urban Road Traffic Operation Evaluation Index System" in April 2011 and officially implemented it in August of the same year. The traffic operation index is used to comprehensively reflect the traffic congestion of the road network. The urban road traffic operation evaluation index system will traffic congestion The degree is qualitatively divided into five levels, the value ranges from 0 to 10, and every two numbers are divided into one level, corresponding to "smooth traffic", "basically smooth traffic", "slight congestion" and "moderate congestion" , "serious congestion", the smaller the value, the smoother the traffic road, and the higher the value, the more serious the traffic congestion. Referring to the definition scheme of congestion degree in the traffic evaluation index system in outdoor navigation, the specific definition rules of indoor road congestion degree for indoor navigation path planning can be determined. In the field of outdoor navigation, the traffic congestion mainly reflects the real-time traffic congestion situation through the size of the traffic flow. Similarly, in the indoor route navigation, the present invention reflects the indoor congestion through the size of the human flow. In practical applications, the indoor road congestion index can be obtained by statistically analyzing a large amount of data by actually measuring the flow of people in a certain building, and then reflecting the characteristics of the indoor building congestion. With reference to the definition rules of urban road traffic congestion, this embodiment divides the indoor congestion evaluation index into five grades, and the evaluation indicators are: "smooth", "basically smooth", "slight congestion", "moderate congestion", "Severe congestion". The value range of the congestion degree index is [0, 10], and every interval of two numbers is divided into a grade. The value of the congestion degree index can be directly used as the weight of the influencing factor. The closer the value of the congestion degree is to 0, the smoother the road section is, and the closer the value is to 10, the more congested the road section is. The corresponding relationship between congestion degree and congestion index is shown in Table 1:

表1室内路网拥挤度评价表Table 1 Indoor road network congestion evaluation table

在实际的室内导航路径规划中,由于室内建筑物结构的多样性和复杂性以及不同的使用情境,用户作为路径决策的主体,用户在室内的活动往往带有很强的自主选择性和个性化偏好,用户偏好度也会影响室内导航的路径选择,因此用户的个性化偏好不能被忽视,比如:在大型室内商场,一些用户比较偏好选择主道路或者靠近某些店铺、电梯等的路段。用户偏好度代表了用户对该路段的喜好程度,是提供给用户的一种具有主观性的决策指标。在满足一定的时间或距离约束下寻找更加满足用户喜好的路径,在路径消耗(时间或距离)和用户个性化需求之间寻得平衡,这种规划思想结合了室内环境特点,增强了路径的体验感,体现的人性化思想。由于室内环境的复杂性和用户室内活动的多样化、个性化,室内路径的选择带有很强的主观性和实时性,同时本发明主要侧重于考虑用户偏好度对室内路径规划影响的分析,建立具有综合权值的室内路径导航模型,因此,本发明采用基于规则的划定方法,将用户偏好度定性地划分为九个等级,数值赋值范围为1~9,每个数值对应一级偏好程度,用户偏好度与评价指数的对应关系如下式,用户偏好度数值越小,用户喜好程度越高,即用户越喜欢,用户选择倾向性越大;用户偏好度数值越大,喜好程度越差,即越不喜好,用户选择倾向性越小。在具体室内导航路径规划中,可以获取不同用户按照主观赋权法来设置相应的偏好值,偏好值也即本发明的路径的偏好程度的权值。In actual indoor navigation path planning, due to the diversity and complexity of indoor building structures and different use scenarios, users are the main body of path decision-making, and users' indoor activities often have strong autonomy and individuality. Preference, user preference will also affect the route selection of indoor navigation, so the user's personalized preference cannot be ignored, for example: in large indoor shopping malls, some users prefer to choose the main road or the road section near some shops, elevators, etc. The user preference represents the user's liking for the road section, and is a subjective decision-making index provided to the user. Find a path that better meets user preferences under a certain time or distance constraint, and find a balance between path consumption (time or distance) and user individual needs. This planning idea combines the characteristics of the indoor environment and enhances the path. The sense of experience reflects the humanized thought. Due to the complexity of the indoor environment and the diversification and personalization of indoor activities of users, the selection of indoor routes is highly subjective and real-time. At the same time, the present invention mainly focuses on the analysis of the influence of user preference on indoor route planning. An indoor path navigation model with comprehensive weights is established. Therefore, the present invention adopts a rule-based delineation method to qualitatively divide user preference into nine levels, and the value assignment range is 1 to 9, and each value corresponds to a first-level preference The corresponding relationship between user preference degree and evaluation index is as follows: the smaller the value of user preference degree, the higher the degree of user preference, that is, the more the user likes it, the greater the user's choice tendency; the larger the value of user preference degree, the worse the degree of preference , that is, the more disliked, the smaller the user's tendency to choose. In specific indoor navigation route planning, different users can be obtained to set corresponding preference values according to the subjective weighting method, and the preference value is also the weight value of the degree of preference of the route in the present invention.

S2、计算室内路径模型各个节点之间的综合权值,其中任意节点p与q之间的综合权值通过下述公式计算所得:S2. Calculate the comprehensive weight between each node of the indoor path model, wherein the comprehensive weight between any node p and q is calculated by the following formula:

f=ω1×f12×f2+…+ωn×fnf=ω 1 ×f 12 ×f 2 +...+ω n ×f n ,

式中,f表示综合权值,n表示选择因素的总个数,f1、f2、…及fn分别为节点p与节点q之间的各个因素的权值,ω1、ω2、…及ωn分别为f1、f2、…及fn对应的权重。若ω1、ω2、ω3归一化,则ω123=1。In the formula, f represents the comprehensive weight, n represents the total number of selected factors, f 1 , f 2 , ... and f n are the weights of each factor between node p and node q respectively, ω 1 , ω 2 , ... and ω n are weights corresponding to f 1 , f 2 , ... and f n respectively. If ω 1 , ω 2 , and ω 3 are normalized, then ω 123 =1.

本发明使用层次分析法,首先定性的确定各权值两两之间的重要程度,然后将定性的分析转化为定量的数据计算进而得到具体的各项权值类型对综合权值的影响。使用AHP求解室内导航路径规划问题中多目标线性加权的各项权值类型对综合权值各影响度,具体步骤如下:The present invention uses the analytic hierarchy process to first qualitatively determine the importance of each pair of weights, and then convert the qualitative analysis into quantitative data calculation to obtain the impact of specific weight types on the comprehensive weight. Using AHP to solve the multi-objective linear weighted weight types in the indoor navigation path planning problem has an influence on the comprehensive weight. The specific steps are as follows:

构建各权值类型的判断矩阵,首先要引入判断矩阵标准度,采用T.L.Saaty等人提出的1~9级判断矩阵标准度(可参见书籍《The Analytic Hierarchy Process》,作者T.L.Saaty),具体如下表2所示:To construct the judgment matrix of each weight type, first of all, the standard degree of the judgment matrix must be introduced, and the standard degree of the judgment matrix from 1 to 9 levels proposed by T.L.Saaty et al. (see the book "The Analytic Hierarchy Process", author T.L.Saaty), as follows Table 2 shows:

表2 1~9级判断矩阵标准度Table 2 1st to 9th grade judgment matrix standard degree

根据判断矩阵标准度表,构造各项权值类型的判断矩阵,如下表3所示:According to the judgment matrix standard degree table, the judgment matrix of each weight type is constructed, as shown in Table 3 below:

表3各权值类型的判断矩阵Table 3 Judgment matrix of each weight type

从表中可以看出,本实施例预设了各项权值的两两之间的相对重要程度,比如:路径距离的权值比路径的拥挤度的权值和路径的偏好程度的权值对综合权值的影响度要高,路径的拥挤度的权比路径的偏好程度的的影响度稍高。As can be seen from the table, this embodiment presets the relative importance of each pair of weights, such as: the weight of the path distance is more than the weight of the congestion degree of the path and the weight of the preference degree of the path The degree of influence on the comprehensive weight is higher, and the weight of the path congestion degree is slightly higher than the degree of influence of the path preference degree.

然后采用规范列平均法进行计算,求组合权重系数的计算步骤如下:Then use the canonical column average method to calculate, and the calculation steps to find the combination weight coefficient are as follows:

首先对判断矩阵按列求和,得到下表4:First, the judgment matrix is summed column by column, and the following table 4 is obtained:

表4矩阵列求和Table 4 Matrix column summation

Ff f1f1 f2f2 f3f3 f1f1 11 33 55 f2f2 1/31/3 11 33 f3f3 1/51/5 1/31/3 11 sumsum 23/1523/15 13/313/3 99

对各列归一化并进行行求和得到特征向量,如下表5:Normalize each column and sum the rows to obtain the feature vector, as shown in Table 5 below:

表5列归一化Table 5 column normalization

Ff f1f1 f2f2 f3f3 sumsum f1f1 15/2315/23 9/139/13 5/95/9 1.91.9 f2f2 5/235/23 3/133/13 1/31/3 0.7820.782 f3f3 3/233/23 1/131/13 1/91/9 0.3180.318

然后对特征向量归一化,得到组合权重系数,即各影响度数值:Then normalize the eigenvectors to obtain the combination weight coefficient, that is, the value of each influence degree:

ω1=0.633,ω2=0.261,ω3=0.106。ω 1 =0.633, ω 2 =0.261, ω 3 =0.106.

对影响度系数进行一致性判断,通过一致性判断来检验计算得到的相对权重系数是否符合权值类型之间的实际重要性,从而检验多权值融合的正确性。引入统一的平均随机一致性表(参见期刊《European Journal of Operational Research》中文章《Beynon MJ.An analysis of distributions of priority values from alternative comparisonscales within AHP》,2002,140(1):104-117.),如下表6:The consistency judgment is made on the influence coefficient, and the consistency judgment is used to check whether the calculated relative weight coefficient conforms to the actual importance between the weight types, so as to check the correctness of the multi-weight fusion. Introduce a unified average random consistency table (see the article "Beynon MJ. An analysis of distributions of priority values from alternative comparison scales within AHP" in the journal "European Journal of Operational Research", 2002,140(1):104-117.) , as shown in Table 6:

表6平均随机一致性表Table 6 Average Random Consistency Table

表6平均随机一致性表(续)Table 6 average random consistency table (continued)

表6平均随机一致性表(续)Table 6 average random consistency table (continued)

检验一致性公式为:The formula for checking consistency is:

其中in

n为参数个数,即各项权值类型个数,R.I.等于平均随机一致性表中n阶矩阵的值,λmax是判断矩阵的最大特征根。如果C.R.<0.1,则判断矩阵是一致的,否则不一致。一致时,则将本次计算的权重作为权重的最终值,否则,获取重新选取矩阵标准度的值来计算权重。由于n is the number of parameters, that is, the number of weight types, RI is equal to the value of the n-order matrix in the average random consistency table, and λ max is the largest characteristic root of the judgment matrix. If CR<0.1, the judgment matrix is consistent, otherwise it is inconsistent. When they are consistent, the weight calculated this time is used as the final value of the weight, otherwise, the value of the standard degree of the reselected matrix is obtained to calculate the weight. because

可得λmax=3.0556,将λmax和n带入上式可得C.I.=3.0556-3/3-1=0.0535,将C.I.带入上式可得到C.R.=0.0535/0.52=0.053<0.1。由此可知,通过以上计算得到的判断矩阵满足一致性,与各项权值之间的实际重要性相符合,验证了其正确性。综上所述,将得到的组合权值系数综合权值的计算式,得到改进的室内导航路径规划模型的综合权值如下式It can be obtained that λ max = 3.0556. Substituting λ max and n into the above formula can obtain CI = 3.0556-3/3-1 = 0.0535, and substituting CI into the above formula can obtain CR = 0.0535/0.52 = 0.053<0.1. It can be seen that the judgment matrix obtained through the above calculation satisfies the consistency, which is consistent with the actual importance of each weight value, and its correctness is verified. To sum up, the comprehensive weight of the improved indoor navigation path planning model obtained from the calculation formula of the combined weight coefficient comprehensive weight is as follows:

F=0.633*f1+0.261*f2+0.106*f3 F=0.633*f 1 +0.261*f 2 +0.106*f 3

S3、以综合权值对应的替换Dijkstra算法中的路径距离的权值来进行Dijkstra算法,选择出一条总的综合权值最小的路径。本步骤与Dijkstra算法完全一致,只是以综合权值对应的替换了Dijkstra算法中的路径距离的权值。S3. Perform the Dijkstra algorithm with the weight corresponding to the comprehensive weight replacing the path distance in the Dijkstra algorithm, and select a path with the smallest total comprehensive weight. This step is completely consistent with the Dijkstra algorithm, except that the weight value of the path distance in the Dijkstra algorithm is replaced by the comprehensive weight value.

本发明采用如下的室内路径网络拓扑图来进行具体的实例仿真测试,路径网络拓扑图如下图2所示。其中,设路网中的节点0为起始节点,两节点间路段上标注出的三项数值依次分别代表路径距离、拥挤度、用户偏好度权值。The present invention adopts the following indoor path network topology diagram to carry out specific example simulation tests, and the path network topology diagram is shown in Figure 2 below. Among them, node 0 in the road network is set as the starting node, and the three values marked on the road section between two nodes represent the path distance, congestion degree, and user preference weight respectively.

首先对以上路网信息数据预处理得到路径距离、拥挤度、用户偏好度三项权值的多维数组,依次如下式所示,其中如果两节点不相邻,则其数值定义为无穷大。First, the above road network information data is preprocessed to obtain a multidimensional array of three weights of path distance, congestion degree, and user preference degree, as shown in the following formula, where if two nodes are not adjacent, the value is defined as infinity.

将相邻两节点间各路段的各项权值代入建立的室内导航路径规划模型的综合权值计算式:F=0.633*f1+0.261*f2+0.106*f3,可得到相邻两节点间各路段的综合权值,得到该路径网络拓扑图的综合权值的矩阵式。如下式所示:Substituting the weights of each road section between two adjacent nodes into the comprehensive weight calculation formula of the established indoor navigation path planning model: F=0.633*f 1 +0.261*f 2 +0.106*f 3 , the two adjacent nodes can be obtained The comprehensive weight of each road section between nodes is obtained to obtain the matrix formula of the comprehensive weight of the path network topology map. As shown in the following formula:

式中数值代表了室内导航路径规划模型的两节点间路段的综合权值,不相邻节点的综合权值为无穷大。通过以上矩阵式,结合Dijkstra算法得到综合权值最小的路径,即规划出从起始节点到目标节点的综合多项权值类型、更加符合用户个性化需求的综合最优路径。设定0为源节点,仿真测试结果如下表7所示:The value in the formula represents the comprehensive weight of the section between two nodes in the indoor navigation path planning model, and the comprehensive weight of non-adjacent nodes is infinite. Through the above matrix formula, combined with the Dijkstra algorithm, the path with the smallest comprehensive weight is obtained, that is, a comprehensive optimal path that is more in line with the individual needs of users is planned from the start node to the target node with multiple weight types. Set 0 as the source node, and the simulation test results are shown in Table 7 below:

表7改进模型测试结果Table 7 Improved model test results

表7中显示了从源节点到各节点的综合最优路径。以从起始节点0到目的节点9为例来说,综合了多项权值类型的最优路径为从节点0经过节点3经过节点5再到节点6最后到达节点9的一条路径。Table 7 shows the comprehensive optimal path from the source node to each node. Taking the starting node 0 to the destination node 9 as an example, the optimal path that combines multiple weight types is a path from node 0, passing through node 3, passing through node 5, then going to node 6, and finally reaching node 9.

传统的Dijkstra算法进行路径规划只考虑路径长度这唯一一项权值,以起始点为中心向外层层扩展直到扩展到终点为止,得到一条从起始点到终点的最短路径。采用传统的Dijkstra算法路径规划模型求解路径网络拓扑图中从起始节点0到各目标节点的规划路径,结果如下表8所示。The traditional Dijkstra algorithm only considers the only weight of the path length for path planning, and expands from the starting point to the outer layer until it reaches the end point, and obtains a shortest path from the starting point to the end point. The traditional Dijkstra algorithm path planning model is used to solve the planned path from the starting node 0 to each target node in the path network topology graph, and the results are shown in Table 8 below.

表8传统模型测试结果Table 8 Traditional model test results

同样以从起始节点0到目的节点9为例来说,传统Dijkstra算法路径规划模型得到的规划路径为从节点0经过节点2经过节点5再经过节点6最后到达节点9的一条路径。Also taking from the starting node 0 to the destination node 9 as an example, the planned path obtained by the traditional Dijkstra algorithm path planning model is a path from node 0, passing through node 2, passing through node 5, passing through node 6, and finally reaching node 9.

对改进的室内导航路径规划模型得到的优化路径与传统Dijkstra算法路径规划得到的优化路径的测试结果进行对比分析。以从起始节点0到目的节点4为例,改进的模型下得到的优化路径为从起始节点0经过节点3最后到达目的节点4;传统的Dijkstra算法模型下得到的路径为从起始节点0经过节点1最后到达目的节点4。可以看出,单独把路径距离作为唯一的考虑因素时,0-1-4为从起始节点0到目的节点4的最短路径,这种情况仅仅只考虑了路径的长短,但是由于室内环境的复杂性和多样性,用户作为室内活动的主体,其个性化需求越来越强烈,道路拥挤度、用户偏好度是室内路径导航问题中的重要影响因素,需要被考虑在内。改进的室内导航规划模型规划的优化路径为0-3-4,虽然这条路径不是最短的,但是其拥挤度和用户偏好度较小,即道路较为畅通,并且用户更为喜好,因此,该路网中0-3-4这条路径为一条综合最优的从起始节点0到目的节点4的路径。在室内环境中,用户对于室内路径的选择不仅仅是选择一条最短的路径,在路径距离的基础上同时会考虑道路的拥挤程度、自身的个性化偏好程度等重要因素,改进的室内导航规划模型避免了传统Dijkstra算法仅仅只考虑路径距离这一项因素的单一性问题,综合考虑了路径距离、拥挤度、用户偏好度对室内导航路径规划的影响,更具有全面性,更能满足用户需求。The test results of the optimized path obtained by the improved indoor navigation path planning model and the optimized path obtained by the traditional Dijkstra algorithm path planning are compared and analyzed. Taking from the starting node 0 to the destination node 4 as an example, the optimized path obtained under the improved model is from the starting node 0 through node 3 and finally reaches the destination node 4; the path obtained under the traditional Dijkstra algorithm model is from the starting node 0 passes through node 1 and finally reaches the destination node 4. It can be seen that when the path distance is considered as the only factor, 0-1-4 is the shortest path from the starting node 0 to the destination node 4. In this case, only the length of the path is considered, but due to the indoor environment Complexity and diversity. As the main body of indoor activities, users have increasingly strong individual needs. Road congestion and user preference are important factors in indoor route navigation problems and need to be taken into consideration. The optimized path planned by the improved indoor navigation planning model is 0-3-4. Although this path is not the shortest, its congestion and user preference are relatively small, that is, the road is relatively smooth and users prefer it. Therefore, the The path 0-3-4 in the road network is a comprehensive optimal path from the starting node 0 to the destination node 4. In the indoor environment, the user's choice of the indoor path is not only to choose the shortest path, but also consider the road congestion, personal preference and other important factors on the basis of the path distance. The improved indoor navigation planning model It avoids the singleness problem that the traditional Dijkstra algorithm only considers the path distance, and comprehensively considers the influence of path distance, congestion, and user preference on indoor navigation path planning, which is more comprehensive and can better meet user needs.

本发明还对应的提供了一种基于Dijkstra算法的路径选择系统,包含:The present invention also correspondingly provides a path selection system based on Dijkstra algorithm, comprising:

路径模型获取模块,用于获取室内路径模型,该室内路径模型包含各个节点之间的各个选择因素的权值,选择因素至少为两种;A route model acquiring module, configured to acquire an indoor route model, the indoor route model includes the weights of each selection factor between each node, and there are at least two selection factors;

综合权值计算模块,用于计算室内路径模型各个节点之间的综合权值,其中任意节点p与q之间的综合权值通过下述公式计算所得:The comprehensive weight calculation module is used to calculate the comprehensive weight between each node of the indoor path model, wherein the comprehensive weight between any node p and q is calculated by the following formula:

f=ω1×f12×f2+…+ωn×fnf=ω 1 ×f 12 ×f 2 +...+ω n ×f n ,

式中,f表示综合权值,n表示选择因素的总个数,f1、f2、…及fn分别为节点p与节点q之间的各个因素的权值,ω1、ω2、…及ωn分别为f1、f2、…及fn对应的权重。In the formula, f represents the comprehensive weight, n represents the total number of selected factors, f 1 , f 2 , ... and f n are the weights of each factor between node p and node q respectively, ω 1 , ω 2 , ... and ω n are weights corresponding to f 1 , f 2 , ... and f n respectively.

Dijkstra算法模块,用于以综合权值对应的替换Dijkstra算法中的路径距离的权值来进行Dijkstra算法,选择出一条总的综合权值最小的路径。The Dijkstra algorithm module is used to replace the weight of the path distance in the Dijkstra algorithm corresponding to the comprehensive weight to perform the Dijkstra algorithm, and select a path with the smallest total comprehensive weight.

上面结合附图对本发明的实施例进行了描述,但是本发明并不局限于上述的具体实施方式,上述的具体实施方式仅仅是示意性的,而不是限制性的,本领域的普通技术人员在本发明的启示下,在不脱离本发明宗旨和权利要求所保护的范围情况下,还可做出很多形式,这些均属于本发明的保护之内。Embodiments of the present invention have been described above in conjunction with the accompanying drawings, but the present invention is not limited to the above-mentioned specific implementations, and the above-mentioned specific implementations are only illustrative, rather than restrictive. Those of ordinary skill in the art will Under the enlightenment of the present invention, many forms can also be made without departing from the gist of the present invention and the protection scope of the claims, and these all belong to the protection of the present invention.

Claims (10)

1.一种基于Dijkstra算法的路径选择方法,其特征在于,包含下述步骤:1. a path selection method based on Dijkstra algorithm, is characterized in that, comprises the following steps: S1、获取室内路径模型,该室内路径模型包含各个节点之间的各个选择因素的权值,该室内路径模型中的选择因素包括路径距离及路径的拥挤度;S1. Obtain an indoor path model, the indoor path model includes the weights of each selection factor between each node, and the selection factors in the indoor path model include path distance and path congestion; S2、计算室内路径模型各个节点之间的综合权值,其中任意节点p与q之间的综合权值通过下述公式计算所得:S2. Calculate the comprehensive weight between each node of the indoor path model, wherein the comprehensive weight between any node p and q is calculated by the following formula: f=ω1×f12×f2+…+ωn×fnf=ω 1 ×f 12 ×f 2 +...+ω n ×f n , 式中,f表示综合权值,n表示选择因素的总个数,f1、f2、…及fn分别为节点p与节点q之间的各个因素的权值,ω1、ω2、…及ωn分别为f1、f2、…及fn对应的权重;In the formula, f represents the comprehensive weight, n represents the total number of selected factors, f 1 , f 2 , ... and f n are the weights of each factor between node p and node q respectively, ω 1 , ω 2 , ... and ω n are the weights corresponding to f 1 , f 2 , ... and f n respectively; S3、以综合权值对应的替换Dijkstra算法中的路径距离的权值来进行Dijkstra算法,选择出一条总的综合权值最小的路径。S3. Perform the Dijkstra algorithm with the weight corresponding to the comprehensive weight replacing the path distance in the Dijkstra algorithm, and select a path with the smallest total comprehensive weight. 2.根据权利要求1所述的路径选择方法,其特征在于,第k个选择因素的归一化后的权重通过下述方法得到:2. path selection method according to claim 1, is characterized in that, the weight after the normalization of the k selection factor obtains by following method: <mrow> <msub> <mi>&amp;omega;</mi> <mi>k</mi> </msub> <mo>=</mo> <mfrac> <msub> <mi>S</mi> <mi>k</mi> </msub> <mrow> <msub> <mi>S</mi> <mn>1</mn> </msub> <mo>+</mo> <msub> <mi>S</mi> <mn>2</mn> </msub> <mo>+</mo> <mo>...</mo> <mo>+</mo> <msub> <mi>S</mi> <mi>n</mi> </msub> </mrow> </mfrac> <mo>,</mo> </mrow> <mrow><msub><mi>&amp;omega;</mi><mi>k</mi></msub><mo>=</mo><mfrac><msub><mi>S</mi><mi>k</mi></msub><mrow><msub><mi>S</mi><mn>1</mn></msub><mo>+</mo><msub><mi>S</mi><mn>2</mn></msub><mo>+</mo><mo>...</mo><mo>+</mo><msub><mi>S</mi><mi>n</mi></msub></mrow></mfrac><mo>,</mo></mrow> 式中,k=1、2、…、n,Sk是利用1~9级判断矩阵标准度,分别求出第k个选择因素分别相对于所有的选择因素的矩阵标准度的值,然后将该选择因素所有的矩阵标准度的值相加所得到的和。In the formula, k=1, 2, ..., n, S k is to utilize 1~9 grades to judge the matrix standard degree, obtain the value of the matrix standard degree of the kth selection factor respectively relative to all selection factors respectively, and then The sum obtained by adding all matrix standard degree values for this selection factor. 3.根据权利要求2所述的路径选择方法,其特征在于,所述多个选择因素为三个选择因素,分别为路径距离、路径的拥挤度以及路径的偏好程度。3 . The path selection method according to claim 2 , wherein the plurality of selection factors are three selection factors, which are respectively path distance, path congestion degree, and path preference degree. 4 . 4.根据权利要求3所述的路径选择方法,其特征在于,路径距离的权重为ω1=0.633,路径的拥挤度的权重为ω2=0.261,路径的偏好程度的权重为ω3=0.106。4. The path selection method according to claim 3, wherein the weight of path distance is ω 1 =0.633, the weight of path congestion is ω 2 =0.261, and the weight of path preference is ω 3 =0.106 . 5.根据权利要求2所述的路径选择方法,其特征在于,各个选择因素的权重的得到过程中,还包括步骤:通过对归一化后的权重进行一致性判断来检验计算得到的归一化后的权重是否符合权值类型之间的实际重要性,若是,则将本次计算的权重作为权重的最终值,否则,获取重新选取矩阵标准度的值来计算权重;5. The path selection method according to claim 2, characterized in that, in the process of obtaining the weight of each selection factor, it also includes the step of: checking the calculated normalized weight by performing a consistency judgment on the normalized weight Whether the optimized weight is in line with the actual importance between the weight types, if so, the weight calculated this time is used as the final value of the weight, otherwise, the value of the standard degree of the reselected matrix is obtained to calculate the weight; 进行一致性判断的方法如下:The method of making a consistency judgment is as follows: 判断的值是否小于0.1,若是则符合一致性,否则不符合一致性;judge Whether the value of is less than 0.1, if it is consistent, otherwise it is not consistent; 其中,R.I.等于平均随机一致性表中n阶矩阵的值,λmax是判断矩阵的最大特征根,判断矩阵的第i行的第j列的元素为第i个选择因素相对于第j选择因素的矩阵标准度的值,i=1、2、…、n,j=1、2、…、n。in, RI is equal to the value of the n-order matrix in the average random consistency table, λ max is the largest characteristic root of the judgment matrix, and the element of the i-th row and the j-th column of the judgment matrix is the matrix of the i-th selection factor relative to the j-th selection factor The value of standard degree, i=1, 2,..., n, j=1, 2,..., n. 6.一种基于Dijkstra算法的路径选择系统,其特征在于,包含:6. A path selection system based on Dijkstra algorithm, characterized in that, comprising: 路径模型获取模块,用于获取室内路径模型,该室内路径模型包含各个节点之间的各个选择因素的权值,该室内路径模型中的选择因素包括路径距离及路径的拥挤度;The path model acquisition module is used to obtain an indoor path model, the indoor path model includes the weight of each selection factor between each node, and the selection factors in the indoor path model include path distance and path congestion; 综合权值计算模块,用于计算室内路径模型各个节点之间的综合权值,其中任意节点p与q之间的综合权值通过下述公式计算所得:The comprehensive weight calculation module is used to calculate the comprehensive weight between each node of the indoor path model, wherein the comprehensive weight between any node p and q is calculated by the following formula: f=ω1×f12×f2+…+ωn×fnf=ω 1 ×f 12 ×f 2 +...+ω n ×f n , 式中,f表示综合权值,n表示选择因素的总个数,f1、f2、…及fn分别为节点p与节点q之间的各个因素的权值,ω1、ω2、…及ωn分别为f1、f2、…及fn对应的权重。In the formula, f represents the comprehensive weight, n represents the total number of selected factors, f 1 , f 2 , ... and f n are the weights of each factor between node p and node q respectively, ω 1 , ω 2 , ... and ω n are weights corresponding to f 1 , f 2 , ... and f n respectively. Dijkstra算法模块,用于以综合权值对应的替换Dijkstra算法中的路径距离的权值来进行Dijkstra算法,选择出一条总的综合权值最小的路径。The Dijkstra algorithm module is used to replace the weight of the path distance in the Dijkstra algorithm corresponding to the comprehensive weight to perform the Dijkstra algorithm, and select a path with the smallest total comprehensive weight. 7.根据权利要求6所述的路径选择系统,其特征在于,第k个选择因素的归一化后的权重通过下述方法得到:7. path selection system according to claim 6, is characterized in that, the weight after the normalization of the k selection factor obtains by following method: <mrow> <msub> <mi>&amp;omega;</mi> <mi>k</mi> </msub> <mo>=</mo> <mfrac> <msub> <mi>S</mi> <mi>k</mi> </msub> <mrow> <msub> <mi>S</mi> <mn>1</mn> </msub> <mo>+</mo> <msub> <mi>S</mi> <mn>2</mn> </msub> <mo>+</mo> <mo>...</mo> <mo>+</mo> <msub> <mi>S</mi> <mi>n</mi> </msub> </mrow> </mfrac> <mo>,</mo> </mrow> <mrow><msub><mi>&amp;omega;</mi><mi>k</mi></msub><mo>=</mo><mfrac><msub><mi>S</mi><mi>k</mi></msub><mrow><msub><mi>S</mi><mn>1</mn></msub><mo>+</mo><msub><mi>S</mi><mn>2</mn></msub><mo>+</mo><mo>...</mo><mo>+</mo><msub><mi>S</mi><mi>n</mi></msub></mrow></mfrac><mo>,</mo></mrow> 式中,k=1、2、…、n,Sk是利用1~9级判断矩阵标准度,分别求出第k个选择因素分别相对于所有的选择因素的矩阵标准度的值,然后将该选择因素所有的矩阵标准度的值相加所得到的和。In the formula, k=1, 2, ..., n, S k is to utilize 1~9 grades to judge the matrix standard degree, obtain the value of the matrix standard degree of the kth selection factor respectively relative to all selection factors respectively, and then The sum obtained by adding all matrix standard degree values for this selection factor. 8.根据权利要求7所述的路径选择系统,其特征在于,所述多个选择因素为三个选择因素,分别路径距离、路径的拥挤度以及路径的偏好程度。8. The path selection system according to claim 7, wherein the plurality of selection factors are three selection factors, namely path distance, path congestion degree and path preference degree. 9.根据权利要求8所述的路径选择系统,其特征在于,路径距离的权重为ω1=0.633,路径的拥挤度的权重为ω2=0.261,路径的偏好程度的权重为ω3=0.106。9. The path selection system according to claim 8, wherein the weight of path distance is ω 1 =0.633, the weight of path congestion is ω 2 =0.261, and the weight of path preference is ω 3 =0.106 . 10.根据权利要求7所述的路径选择系统,其特征在于,各个选择因素的权重的得到过程中,还包括步骤:通过对归一化后的权重进行一致性判断来检验计算得到的归一化后的权重是否符合权值类型之间的实际重要性,若是,则将本次计算的权重作为权重的最终值,否则,获取重新选取矩阵标准度的值来计算权重;10. The path selection system according to claim 7, characterized in that, in the process of obtaining the weights of each selection factor, it also includes the step of: checking the calculated normalization by judging the consistency of the normalized weights Whether the optimized weight is in line with the actual importance between weight types, if so, the weight calculated this time will be used as the final value of the weight, otherwise, the value of the standard degree of the re-selected matrix will be obtained to calculate the weight; 进行一致性判断的方法如下:The method of making a consistency judgment is as follows: 判断的值是否小于0.1,若是则符合一致性,否则不符合一致性;judge Whether the value of is less than 0.1, if it is consistent, otherwise it is not consistent; 其中,R.I.等于平均随机一致性表中n阶矩阵的值,λmax是判断矩阵的最大特征根,判断矩阵的第i行的第j列的元素为第i个选择因素相对于第j选择因素的矩阵标准度的值,i=1、2、…、n,j=1、2、…、n。in, RI is equal to the value of the n-order matrix in the average random consistency table, λ max is the largest characteristic root of the judgment matrix, and the element of the i-th row and the j-th column of the judgment matrix is the matrix of the i-th selection factor relative to the j-th selection factor The value of standard degree, i=1, 2,..., n, j=1, 2,..., n.
CN201710979873.5A 2017-10-19 2017-10-19 A kind of routing resource and system based on dijkstra's algorithm Pending CN107883956A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710979873.5A CN107883956A (en) 2017-10-19 2017-10-19 A kind of routing resource and system based on dijkstra's algorithm

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710979873.5A CN107883956A (en) 2017-10-19 2017-10-19 A kind of routing resource and system based on dijkstra's algorithm

Publications (1)

Publication Number Publication Date
CN107883956A true CN107883956A (en) 2018-04-06

Family

ID=61782040

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710979873.5A Pending CN107883956A (en) 2017-10-19 2017-10-19 A kind of routing resource and system based on dijkstra's algorithm

Country Status (1)

Country Link
CN (1) CN107883956A (en)

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109506667A (en) * 2018-11-28 2019-03-22 上海智能交通有限公司 A kind of information interacting method of the intelligent travel for heavily loaded oversize vehicle
CN109979006A (en) * 2019-03-14 2019-07-05 北京建筑大学 Indoor road net model construction method and device
CN110598921A (en) * 2019-08-30 2019-12-20 泰华智慧产业集团股份有限公司 Shortest path algorithm-based building project auxiliary site selection method and system
CN110672089A (en) * 2019-09-23 2020-01-10 上海功存智能科技有限公司 Method and device for navigation in indoor environment
CN111367275A (en) * 2020-02-18 2020-07-03 吉利汽车研究院(宁波)有限公司 An intelligent driving control method, device, system and storage medium
CN111573126A (en) * 2020-05-11 2020-08-25 盐城工学院 Modular intelligent logistics system material distribution path planning method based on omnidirectional wheel
CN112862625A (en) * 2021-01-07 2021-05-28 国网浙江杭州市余杭区供电有限公司 Power supply path acquisition method based on Dijkstra algorithm
CN114021229A (en) * 2021-10-26 2022-02-08 同济大学 Path planning method and system for bridge concrete distribution and storage medium
CN114866459A (en) * 2022-04-18 2022-08-05 北京计算机技术及应用研究所 Path planning method under multi-constraint condition
CN115646818A (en) * 2022-12-28 2023-01-31 江苏智联天地科技有限公司 AGV intelligence letter sorting system

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007334472A (en) * 2006-06-13 2007-12-27 Mitsubishi Electric Engineering Co Ltd Taxi fare system device
CN103791906A (en) * 2014-02-21 2014-05-14 南京北大工道创新有限公司 Indoor positioning position correction method based on indoor positioning device
CA2847758A1 (en) * 2013-10-24 2015-04-24 Palantir Technologies, Inc. Systems and methods for distance and congestion-aware resource deployment
CN105910605A (en) * 2016-05-30 2016-08-31 中国科学技术大学苏州研究院 Indoor navigation dynamic route generation method
CN106052692A (en) * 2016-05-20 2016-10-26 中国地质大学(武汉) Shortest route planning and navigating method and system
CN106918345A (en) * 2017-03-27 2017-07-04 中国农业大学 A kind of optimization method and device in scenic region guide path

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007334472A (en) * 2006-06-13 2007-12-27 Mitsubishi Electric Engineering Co Ltd Taxi fare system device
CA2847758A1 (en) * 2013-10-24 2015-04-24 Palantir Technologies, Inc. Systems and methods for distance and congestion-aware resource deployment
CN103791906A (en) * 2014-02-21 2014-05-14 南京北大工道创新有限公司 Indoor positioning position correction method based on indoor positioning device
CN106052692A (en) * 2016-05-20 2016-10-26 中国地质大学(武汉) Shortest route planning and navigating method and system
CN105910605A (en) * 2016-05-30 2016-08-31 中国科学技术大学苏州研究院 Indoor navigation dynamic route generation method
CN106918345A (en) * 2017-03-27 2017-07-04 中国农业大学 A kind of optimization method and device in scenic region guide path

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
王海峰等: "基于驾驶员偏好的智能导航终端开发中的路网权值标定方法研究", 《科学技术与工程》 *
陆百川等: "基于主客观赋权法的最优路径选择分析", 《武汉理工大学学报(信息与管理工程版)》 *

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109506667A (en) * 2018-11-28 2019-03-22 上海智能交通有限公司 A kind of information interacting method of the intelligent travel for heavily loaded oversize vehicle
CN109979006A (en) * 2019-03-14 2019-07-05 北京建筑大学 Indoor road net model construction method and device
CN109979006B (en) * 2019-03-14 2024-02-23 北京建筑大学 Indoor road network model construction method and device
CN110598921A (en) * 2019-08-30 2019-12-20 泰华智慧产业集团股份有限公司 Shortest path algorithm-based building project auxiliary site selection method and system
CN110672089A (en) * 2019-09-23 2020-01-10 上海功存智能科技有限公司 Method and device for navigation in indoor environment
CN111367275A (en) * 2020-02-18 2020-07-03 吉利汽车研究院(宁波)有限公司 An intelligent driving control method, device, system and storage medium
CN111573126A (en) * 2020-05-11 2020-08-25 盐城工学院 Modular intelligent logistics system material distribution path planning method based on omnidirectional wheel
CN112862625A (en) * 2021-01-07 2021-05-28 国网浙江杭州市余杭区供电有限公司 Power supply path acquisition method based on Dijkstra algorithm
CN114021229A (en) * 2021-10-26 2022-02-08 同济大学 Path planning method and system for bridge concrete distribution and storage medium
CN114866459A (en) * 2022-04-18 2022-08-05 北京计算机技术及应用研究所 Path planning method under multi-constraint condition
CN114866459B (en) * 2022-04-18 2023-04-28 北京计算机技术及应用研究所 Path planning method under multiple constraint conditions
CN115646818A (en) * 2022-12-28 2023-01-31 江苏智联天地科技有限公司 AGV intelligence letter sorting system

Similar Documents

Publication Publication Date Title
CN107883956A (en) A kind of routing resource and system based on dijkstra&#39;s algorithm
CN114463977B (en) A route planning method based on vehicle-road coordination multi-source data fusion traffic flow prediction
Malczewski et al. GIS–multicriteria evaluation with ordered weighted averaging (OWA): case study of developing watershed management strategies
CN108038576A (en) Based on the logistics distribution routing resource and system for improving dijkstra&#39;s algorithm
Zhang et al. Centrality characteristics of road network patterns of traffic analysis zones
CN109409662B (en) Measuring method for correlation between urban traffic and commercial space based on space syntax
CN110135092A (en) Complicated weighting network of communication lines key node recognition methods based on half local center
Caprì et al. Green walking networks for climate change adaptation
CN108734413A (en) A kind of high ferro station road network evaluation method and device
Sekar et al. Uncertainty in multicommodity routing networks: When does it help?
CN106370198A (en) Route selection method taking outgoing delayed reaction into account
CN108876035A (en) The traffic distribution and traffic flow for considering traveler destination preference distribute built-up pattern
CN109887280B (en) Traffic network node criticality assessment method
El Rashidy et al. A composite resilience index for road transport networks
CN112819659A (en) Tourist attraction development and evaluation method
CN118965660B (en) A method and system for identifying key nodes of highway networks in plateau mountainous areas
CN109886502A (en) A routing method to reduce the impact of nighttime delivery noise
CN111985065A (en) Automatic Road Selection Technology Based on Gravitational Field Theory
CN106780275A (en) A kind of business place choice method and device
CN111008736A (en) Opening decision method and system for new airline
CN107121143B (en) Road selection method for collaborative POI data
Zhu et al. On the stability of optimal bayesian persuasion strategy under a mistrust dynamics in routing games
CN107764277A (en) A kind of mathematical method based on the planning of scenic spot Route guiding
Ivanchev et al. Spatial and temporal analysis of mismatch between planned road infrastructure and traffic demand in large cities
CN112464417B (en) Robustness assessment method for scenic gallery

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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20180406