CN106651010B - Shortest path-based wire network dividing method - Google Patents
Shortest path-based wire network dividing method Download PDFInfo
- Publication number
- CN106651010B CN106651010B CN201611048460.7A CN201611048460A CN106651010B CN 106651010 B CN106651010 B CN 106651010B CN 201611048460 A CN201611048460 A CN 201611048460A CN 106651010 B CN106651010 B CN 106651010B
- Authority
- CN
- China
- Prior art keywords
- net
- voronoi
- wire mesh
- points
- division
- 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.)
- Expired - Fee Related
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION 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/00—Administration; Management
- G06Q10/04—Forecasting or optimisation specially adapted for administrative or management purposes, e.g. linear programming or "cutting stock problem"
- G06Q10/047—Optimisation of routes or paths, e.g. travelling salesman problem
Abstract
The invention relates to a shortest path-based partitioning method on a non-directional connected network. The method is oriented to the actual problem to be solved, and the L2 Euclidean distance is replaced by the shortest path distance along the communication route between nodes on the line network when the Voronoi diagram on the line network is generated. The method is based on a shortest path algorithm on a multidirectional connected network, and after a group of randomly distributed seed points are given, a Voronoi unit calculated on the basis of the shortest path on the current network is calculated; and then, the Voronoi diagram CVT algorithm of the Euclidean space is popularized to the Voronoi diagram on the undirected connected net, and through iteration, the weighted length of the net corresponding to each seed point on the net is equal as much as possible, so that the optimized division of the net model is obtained. The method can effectively solve the problems of distribution of public infrastructure (gas stations, charging stations, sanitary facilities) and the like on urban roads, distribution of logistics storage nodes and the like.
Description
Technical Field
The invention relates to a shortest path-based net dividing method.
Background
How to divide planes based on a point set on a given plane is an important mathematical problem, and the method has important practical value in important fields such as communication node optimization, logistics distribution, urban planning and the like. The division of planes by Voronoi diagrams is the most common form. The Voronoi diagram is a mathematically important geometric structure, and is widely applied as an important abstract model representation method in many fields such as physics, chemistry, biology, engineering and the like. A set of discrete points P on a given plane, where each point is called a seed point, corresponds to a partition unit. If the distance from any point in the division unit to the seed point is smaller than the distance from any point to other seed points, the plane is called as a Voronoi division, the corresponding division unit is called as a Voronoi unit (Voronoi Cell), and in 1850, Dirichlet uses 2-dimensional and 3-dimensional Voronoi diagrams in quadratic research. In 1908, Georgy Voronoy defined and studied the Voronoi diagram problem for general n-dimensional space. In order to find the optimal space division result, the Voronoi diagram can be calculated firstly, then the geometric barycenter of the Voronoi unit is continuously used as a new seed point, the Voronoi diagram is recalculated, and the areas of the Voronoi unit can be made equal as much as possible through continuous iteration. This is the center of gravity Voronoi subdivision (CVT for short). The wanwen parallel et al at hong kong university studied the CVT's fast algorithm and GPU-based acceleration, and wangxing et al studied the CVT problem on triangular meshes.
In practical applications, for example, when electric vehicle charging stations are distributed in a city, it is generally required that the area of the coverage area of each charging station is as equal as possible, which can be solved by using the CVT method of Voronoi diagram. However, in an actual city, charging stations can only be distributed on the sides of streets, and electric vehicles can only run on the streets, so that the plane cannot be divided by using the traditional method of calculating the Voronoi diagram by using the euclidean distance. But the actual road condition needs to be considered, and the plane division problem is converted into the division problem on the road network. Moreover, in consideration of practical situations such as congestion, the geometric area covered by each seed point is not required to be equal, but the total weighted length of the roads covered by each seed point is required to be equal. We therefore propose an optimized Voronoi partitioning problem on a connectionless mesh.
Disclosure of Invention
The method focuses on the optimal division problem on the non-directional connected network. First, description and definition of the net model are given. For practical problems to be solved, when a Voronoi diagram of a net model is generated, the method replaces the L2 Euclidean distance by the shortest path distance between two points on the net along the communication route between nodes on the net, so that the considered net space has no convex space property. The method is based on a shortest path algorithm on a multidirectional connected network, and after a group of randomly distributed seed points are given, a Voronoi unit calculated on the basis of the shortest path on the current network is calculated; and then, the Voronoi diagram CVT algorithm of the Euclidean space is popularized to the Voronoi diagram on the undirected connected net, and through iteration, the weighted length of the net corresponding to each seed point on the net is equal as much as possible, so that the optimized division of the net model is obtained. The method can effectively solve the problems of distribution of public infrastructure (gas stations, charging stations, sanitary facilities) and the like on urban roads, distribution of logistics storage nodes and the like.
Drawings
The invention is described in further detail below with reference to the following figures and detailed description:
FIG. 1 is a net model and Voronoi diagram definition on a net. Wherein (a) a wire mesh; (b) the Voronoi diagrams on the net, s1, s2, s3 respectively represent three seed points, and the corresponding colors identify Voronoi cells corresponding to the respective seed points.
FIG. 2 is a schematic diagram of the steps of a Voronoi cell computation method on a net.
Fig. 3 is a schematic diagram of an application. The method comprises a Beijing urban area main traffic satellite map (upper left) and the connection condition of the main traffic roads within six rings (upper right, black square points are road intersections, and straight lines are the connection condition of a wire net), an initial charging station setting (middle), and a convergence result (lower) of the method after 35 iterations.
Detailed Description
And (3) defining a wire mesh model:
the wire mesh model represents a group of vertexes and the connection relation among the vertexes, and has wide application in the aspects of path planning and the like. We define net G ═ (V, E) over N-dimensional space, as shown in fig. 1 (a). Wherein the set of vertices is:
the set of edges is:
In the shortest path problem, there is also typically each edge (v) of the neti,vj) E gives weight wi,j. From vertex viTo vjThe sum of the weights of the edges passing through the path in sequence is called the weight of the path. From vertex viTo vjThe path with the smallest weight is called vertex viTo vjThe corresponding weight is called vertex viTo vjThe shortest distance of (d)i,j. If any two points in the vertex set have paths, the net is called connected, otherwise the net is not connected. If the edge is directional, i.e. (v)i,vj) And (v)j,vi) And if different directed edges are represented, the net is called a directed net, otherwise, the net is a non-directed net. For a multidirectional net, one can consider (v)i,vj) And (v)j,vi) Represent the same side and have wi,j=wj,i。
Voronoi diagram on a wire mesh
The method considers the Voronoi diagram problem on the undirected connected net and defines a net space omega on an N-dimensional connected net G (V, E)GComprises the following steps:
Note dG(p1,p2) Is the space omega of the wire meshGTwo points of upper p1,p2Measure of distance between, w (p)1,p2) Is two points p on the same curve1,p2And (4) an inter-weight. Given omegaGSet of discrete points onPoint skCorresponding Voronoi cellIs defined as:
balanceIs the space omega of the wire meshGA Voronoi division. FIG. 1(b) shows a Voronoi cell defined by three seed points on a net.
Center of gravity of wire mesh
For Voronoi partitioning on the wire mesh, we also want the sum of the "area" -weight of each Voronoi unit to be as equal as possible, for example in practical applications, we want to evenly set up charging stations so that the time required for each electric vehicle to reach its nearest charging station is as equal as possible; for another example, it is desirable to locate the garbage cans in the park so that each guest travels as equally as possible to the nearest garbage can.
To do this, a unidirectional connected net G ═ V, E, and net space Ω are givenGProbability density function p, for a given m seed pointsCorresponding Voronoi subdivisionWe define the "center of gravity" of each Voronoi cell as
Wherein E iskAs a sub-net GkIs set.
Calculation method for Voronoi diagram subdivision on undirected connected weighted line network
Given a non-directional connected net G ═ V, E, weight W, and net space ΩGM seed points ofThe Voronoi subdivision on the line network G is to calculate the Voronoi unit corresponding to each seed pointThe key to calculating the Voronoi diagram on the undirected connected-wire network is to calculate the length of the shortest path between any two points in the network, i.e. to define the online network spaceThe distance between any two points. For this reason, we consider the seed point set firstAdding net G ═ V, E, and updating to obtain net GS=(VS,ES) And corresponding weight WSThen calculate net GSThe shortest path length between the upper vertices. Next, G can be calculatedS=(VS,ES) The middle vertex belongs to the Voronoi unit and the division point of the edge. And finally forming the Voronoi subdivision on the wire mesh according to the dividing points. The specific method comprises the following steps:
(one) collecting the seed pointsAdding net G ═ V, E, and updating to obtain net GS=(VS,ES) And corresponding weight WS: each point S in S, assuming S is bounded by (v)I,vj) Then, there are:
ES=ES∪{(s,vi),(s,vj)}\{(vi,vj)},WS(s,vi)=w(s,vi) (6)
WS(s,vj)=w(s,vj),WS(vi,vj)=+∞,WS(s,s)=0 (7)
and (II) acquiring a new shortest path. The method only considers the case of non-negative connected nets. For a non-negative-weight connected net, each vertex of the net is traversed, and the shortest paths from the vertex to the other vertices are calculated by adopting a Dijkstra algorithm to obtain the shortest path between any two vertices.
(III) calculating a Voronoi diagram:
given a net G ═ V, E, Voronoi seed point setComputing point set S with respect to net space ΩGA Voronoi divisionI.e. the on-line network GS=(Vs,Es) And wire mesh space thereofUpper determination of VsThe Voronoi cell to which each vertex belongs, and each edge EsThe Voronoi cell to which the point on top belongs.
3.1 calculate VsVoronoi cell of middle vertex
Definition ofIs a space of wire netMapping to subsets of the Voronoi seed Point set S, representing the wire mesh spaceEach point in the set of seed points and the corresponding relation of the seed point set of the Voronoi unit.
Due to VsThe points in (1) are divided into two parts, namely a vertex set V and a Voronoi seed point set S in the wire mesh G. For theVor(s) { s }; for theThe method comprises the following steps of (1) preparing,
3.2 calculation of EsVoronoi cell of point on middle edge
If the shortest path from one end point of an edge to the seed point of a Voronoi cell to which the edge belongs passes through the edge, any point on the edge belongs to the Voronoi cell. Otherwise, the point on the edge may belong to a different Voronoi cell. So the following method is adopted to judge which Voronoi unit it belongs to:
if (v)i,vj)∈ESMemory for recording
Sij=Vor(vi)∩Vor(vj), (9)
diIs v isiTo Vor (v)i) Distance of the middle seed point, djIs v isjTo Vor (v)j) The distance between the seed points in the seed box,
(i) if | di-dj|=wi,jThen to curve gammaijAny point p above (excluding the end point v)i,vj) Is provided with
Vor(p)=Sij(10)
(ii) If | di-dj|≠wi,jCurve gammaijHas a unique dividing point pcSo that Vor (p)c)=Vor(vi)∪Vor(vj) And curve gammaijUpper pcTo endpoint viThe weight of (A) is:
w(pc,vi)=(wi,j+dj-di)/2。 (11)
the above two formulas are demonstrated as follows:
and (3) proving that: (ii) first proves (i). Without loss of generality, assume
dj=di+wi,j。 (12)
Due to djIs a vertex vjMinimum distance to all seed points, then s' ∈ Vor (v ∈ Vor)j) I.e. by
So that there is a possibility that,
Sij=Vor(vi)。 (15)
from (13), the sub-path properties of the shortest path are found from vjThe shortest path to s' passes through the edge (v)i,vj). From the shortest-circuit property, for curve γijAny point p above (excluding the end point v)i,vj) P belongs to the Voronoi cell in which s' is located, then
Also known from the shortest-circuit property
Also, from (12)
The compositions of (17) to (20) are,
In addition, according to the closure property,
from (15), (16), (22) and (23), there is Vor (p) ═ Sij. (i) Obtaining the syndrome.
And (ii) was confirmed. Without loss of generality, assume di<djThen must have
dj<di+wi,j。 (24)
Otherwise, if dj>di+wi,jThen we are vjFinding a shorter path to the seed point, which is compared to the known djIs vjThe shortest distance to the seed point contradicts. For curve gammaijAt any point p, as known from closeness,
Then p to skMust first go directly through the end point viThen arrives at sk. If not, p to skFirst via the end point vjThen arrives at skIs provided with
And is composed ofjIs vjThe shortest distance to the seed point is known,
as can be seen from (27) and (28) and the definition of the shortest path,
this contradicts (26). In this case, as is clear from the expressions (25) and (26),
known from (25) and (30) at this time
Vor(p)=Vor(vi)。 (31)
Due to curve gammaijIs a continuous curve, and the minimum distance from p to all the seed points is continuously changed in the process that the point p on the curve is continuously changed from one end point to the other end point. Also, as shown in (24), the minimum distance is monotonically increasing and then monotonically decreasing. Thus curve gammaijHas a unique dividing point pcAnd at the division point has
Then, as shown in (31) and (32),
Vor(pc)=Vor(vi)∪Vor(vj)。 (33)
since at this time pcTo skIs passing through the end point viIs then provided with
In the same way, there are
And due to
wi,j=w(pc,vi)+w(pc,vj), (36)
Substituting (34) to (36) into (32) gives (11).
The syndrome is two
To EsAny one side (v) ofi,vj) According to the method, whether the edge has the division point can be judged, and if the edge has the division point, the position of the division point is given by the formula (11). Note that all such sets of boundary segmentation points are C.
As can be seen from the definition of Vor and the definition of Voronoi cells on a net,
And (IV) finally solving the gravity center Voronoi division of the given area by using an iteration mode in the Lloyd algorithm, and continuously and iteratively constructing the Voronoi division and updating the position of the seed point. Given the number m of seed points, the region Ω, and the probability density function ρ defined on Ω, the main process is as follows:
4) If the new seed point set meets the given convergence criterion (typically determined using a method of whether the average distance of the new point set from the previous point set is less than a given threshold, which may be set to 0.1 times the unit length), the algorithm ends, otherwise, step 2 is performed.
This iterative approach has been demonstrated to have local convergence by Kieffer et al. The resulting Voronoi partitioning is the optimal partitioning of the wire mesh model for a given set of points as seed points.
Application of the method
As electric vehicles become a choice of more and more people, the demand for electric vehicle charging stations in urban traffic is increasing, and how to plan the locations of the charging stations so that users can find nearby charging stations as soon as possible and improve the utilization rate of each charging station becomes a problem to be considered by designers. Taking the main traffic road within six rings of Beijing as an example, the method is used for demonstrating how to determine the positions of 50 charging stations. The net generated by the road connection on the beijing map (1034 vertexes, 1801 edges, and the edge weight is the length of the corresponding road) and the final optimization result of placing 50 charging stations are shown in fig. 3. The application verifies that the method can effectively solve the problem of uniform distribution of the nodes on the road network.
Claims (4)
1. A shortest path-based partitioning method is characterized by comprising the following steps:
a) representing the data of the road scene as a multidirectional connected network, and abstracting the road congestion condition factors as the weight of edges in a network model;
b) giving a seed point set, adding the point set as a new node into a net model, and updating a vertex set, an edge set and the weight of the net;
c) obtaining a wire mesh Voronoi division based on a current point by a method of calculating a shortest path and edge division points;
d) calculating the gravity center of each current Voronoi unit, moving the seed point to the gravity center position, and calculating new Voronoi division;
e) repeating the step c and the step d until the position of the seed point set is converged;
wherein, the step of calculating the gravity center of each current Voronoi unit specifically comprises the following steps:
wherein, G ═ (V, E) is a net of unidirectional links in N-dimensional space, and V ═ V is a set of vertices1,v2,…,vn}, Edge set ΩGIn order to connect the wire mesh space on the wire mesh G, is the space omega of the wire meshGThe distance between the upper two points s and v is measured, and rho is the net space omegaGA probability density function of (a); gS=(VS,ES),Andrespectively adding seed points into GThen obtaining a new wire mesh model, and measuring wire mesh space and distance; ekAs a sub-net GkThe set of edges of (a) is,as a sub-net GkA corresponding wire mesh space;
the present point-based wire mesh Voronoi division specifically includes:
2. A method according to claim 1, characterized in that: finally, the most balanced net partition based on the point set can be found, so that the sum of the distances from each point on the net to the final seed point position is minimum.
3. A method according to claim 1, characterized in that: only Voronoi units of the top points and the edge division points on the line network need to be calculated, and Voronoi division of the line network is formed according to the division points;
wherein the online fixed points comprise original fixed points and seed points.
4. The method according to claim 1, steps c and d, characterized in that: the steps of Voronoi division and gravity center calculation on the wire mesh are different from plane division, and redefinition and calculation are required based on the shortest path distance on the wire mesh model.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201611048460.7A CN106651010B (en) | 2016-11-22 | 2016-11-22 | Shortest path-based wire network dividing method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201611048460.7A CN106651010B (en) | 2016-11-22 | 2016-11-22 | Shortest path-based wire network dividing method |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106651010A CN106651010A (en) | 2017-05-10 |
CN106651010B true CN106651010B (en) | 2020-05-12 |
Family
ID=58812582
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201611048460.7A Expired - Fee Related CN106651010B (en) | 2016-11-22 | 2016-11-22 | Shortest path-based wire network dividing method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106651010B (en) |
Families Citing this family (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108776668B (en) * | 2018-05-04 | 2020-11-17 | 上海西井信息科技有限公司 | Path estimation method, system, equipment and storage medium based on road network nodes |
CN108832668B (en) * | 2018-05-07 | 2023-08-08 | 北京三辰环卫机械有限公司 | Charging method, device and system for garbage bin |
CN111062531B (en) * | 2019-12-13 | 2021-08-27 | 上海中通吉网络技术有限公司 | Method and device for generating express trunk transportation scheme |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102393869A (en) * | 2011-12-02 | 2012-03-28 | 河海大学 | Continuous physical distribution node layout optimization method based on weighted Voronoi diagram |
CN103226804A (en) * | 2013-04-12 | 2013-07-31 | 山东大学 | Flow field visualization method based on flow line gravity center Voronoi diagram |
CN105183855A (en) * | 2015-09-08 | 2015-12-23 | 浪潮(北京)电子信息产业有限公司 | Information classification method and system |
CN106643783A (en) * | 2016-12-28 | 2017-05-10 | 国网天津市电力公司东丽供电分公司 | Shortest path Thiessen polygon-based electric vehicle charging station searching method |
-
2016
- 2016-11-22 CN CN201611048460.7A patent/CN106651010B/en not_active Expired - Fee Related
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102393869A (en) * | 2011-12-02 | 2012-03-28 | 河海大学 | Continuous physical distribution node layout optimization method based on weighted Voronoi diagram |
CN103226804A (en) * | 2013-04-12 | 2013-07-31 | 山东大学 | Flow field visualization method based on flow line gravity center Voronoi diagram |
CN105183855A (en) * | 2015-09-08 | 2015-12-23 | 浪潮(北京)电子信息产业有限公司 | Information classification method and system |
CN106643783A (en) * | 2016-12-28 | 2017-05-10 | 国网天津市电力公司东丽供电分公司 | Shortest path Thiessen polygon-based electric vehicle charging station searching method |
Non-Patent Citations (2)
Title |
---|
基于AHP与广义最短距离的GIS选址方法;易鸿杰 等;《城市勘测》;20141031(第5期);第66-69页 * |
纯电动汽车充电站选址布局研究;石悦悦;《中国优秀硕士论文全文数据库工程科技II辑》;20160215;全文 * |
Also Published As
Publication number | Publication date |
---|---|
CN106651010A (en) | 2017-05-10 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
Pushak et al. | Multiple-path selection for new highway alignments using discrete algorithms | |
CN109272170B (en) | A kind of traffic zone dividing system based on Louvain algorithm | |
Ai et al. | Generation of constrained network Voronoi diagram using linear tessellation and expansion method | |
CN106651010B (en) | Shortest path-based wire network dividing method | |
CN104462685B (en) | Transmission Line Design method based on grid GIS and Floyd algorithms | |
CN107291937B (en) | Point of interest (POI) travel isochrone visualization method | |
Feng et al. | Allocation using a heterogeneous space Voronoi diagram | |
CN110501020B (en) | Multi-target three-dimensional path planning method | |
CN107742169A (en) | A kind of Urban Transit Network system constituting method and performance estimating method based on complex network | |
Żochowska et al. | Analysis of selected transportation network structures based on graph measures | |
CN111291145A (en) | Mapping method, device and storage medium of wireless hotspot and interest point | |
Osaragi et al. | Street network created by proximity graphs: its topological structure and travel efficiency | |
CN111008730B (en) | Crowd concentration prediction model construction method and device based on urban space structure | |
CN111738527B (en) | Urban traffic cell division method based on hot spot detection model | |
Zavin et al. | Towards developing an intelligent system to suggest optimal path based on historic and real-time traffic data | |
Maass et al. | Street-level Travel-time estimation via aggregated Uber data | |
Mahmud et al. | Facility location models development to maximize total service area | |
Ding et al. | Urban road network growth model based on RNG proximity graph and angle restriction | |
US20220383349A1 (en) | System and method for partitioning geographical areas into logistical areas for dynamic pricing | |
Carro-Pérez et al. | Topological characterization of the public transportation complex network in Puebla City, México | |
Afandizadeh et al. | Cordon pricing considering air pollutants emission | |
Weise et al. | A many-objective route planning benchmark problem for navigation | |
Straub et al. | Learning from experts: Inferring road popularity from GPS trajectories | |
Zia et al. | A New Spatial Approach for Efficient Transformation of Equality-Generalized TSP to TSP | |
Al-Hadad et al. | A genetic algorithm approach to a 3D highway alignment development |
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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20200512 Termination date: 20211122 |
|
CF01 | Termination of patent right due to non-payment of annual fee |