CN111260947B - An analysis method of road network reachable range based on flooding algorithm - Google Patents

An analysis method of road network reachable range based on flooding algorithm Download PDF

Info

Publication number
CN111260947B
CN111260947B CN202010103865.6A CN202010103865A CN111260947B CN 111260947 B CN111260947 B CN 111260947B CN 202010103865 A CN202010103865 A CN 202010103865A CN 111260947 B CN111260947 B CN 111260947B
Authority
CN
China
Prior art keywords
node
road network
road
way
class
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.)
Active
Application number
CN202010103865.6A
Other languages
Chinese (zh)
Other versions
CN111260947A (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.)
Beihang University
Original Assignee
Beihang 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 Beihang University filed Critical Beihang University
Priority to CN202010103865.6A priority Critical patent/CN111260947B/en
Publication of CN111260947A publication Critical patent/CN111260947A/en
Application granted granted Critical
Publication of CN111260947B publication Critical patent/CN111260947B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G08SIGNALLING
    • G08GTRAFFIC CONTROL SYSTEMS
    • G08G1/00Traffic control systems for road vehicles
    • G08G1/09Arrangements for giving variable traffic instructions
    • G08G1/0962Arrangements for giving variable traffic instructions having an indicator mounted inside the vehicle, e.g. giving voice messages
    • G08G1/0967Systems involving transmission of highway information, e.g. weather, speed limits
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR 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/06Resources, workflows, human or project management; Enterprise or organisation planning; Enterprise or organisation modelling
    • G06Q10/063Operations research, analysis or management
    • G06Q10/0631Resource planning, allocation, distributing or scheduling for enterprises or organisations
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR 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
    • G06Q50/00Information and communication technology [ICT] specially adapted for implementation of business processes of specific business sectors, e.g. utilities or tourism
    • G06Q50/10Services
    • G06Q50/26Government or public services
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR 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
    • G06Q50/00Information and communication technology [ICT] specially adapted for implementation of business processes of specific business sectors, e.g. utilities or tourism
    • G06Q50/40Business processes related to the transportation industry
    • GPHYSICS
    • G08SIGNALLING
    • G08GTRAFFIC CONTROL SYSTEMS
    • G08G1/00Traffic control systems for road vehicles
    • G08G1/01Detecting movement of traffic to be counted or controlled
    • G08G1/0104Measuring and analyzing of parameters relative to traffic conditions
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02ATECHNOLOGIES FOR ADAPTATION TO CLIMATE CHANGE
    • Y02A10/00TECHNOLOGIES FOR ADAPTATION TO CLIMATE CHANGE at coastal zones; at river basins
    • Y02A10/40Controlling or monitoring, e.g. of flood or hurricane; Forecasting, e.g. risk assessment or mapping

Landscapes

  • Business, Economics & Management (AREA)
  • Human Resources & Organizations (AREA)
  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Tourism & Hospitality (AREA)
  • Strategic Management (AREA)
  • Economics (AREA)
  • Marketing (AREA)
  • Theoretical Computer Science (AREA)
  • General Business, Economics & Management (AREA)
  • Entrepreneurship & Innovation (AREA)
  • Health & Medical Sciences (AREA)
  • Primary Health Care (AREA)
  • General Health & Medical Sciences (AREA)
  • Educational Administration (AREA)
  • Development Economics (AREA)
  • Quality & Reliability (AREA)
  • Chemical & Material Sciences (AREA)
  • Life Sciences & Earth Sciences (AREA)
  • Operations Research (AREA)
  • Analytical Chemistry (AREA)
  • Atmospheric Sciences (AREA)
  • Game Theory and Decision Science (AREA)
  • Traffic Control Systems (AREA)

Abstract

The invention discloses a road network reachable range analysis method based on a flooding algorithm, and belongs to the technical field of traffic area reachability. For a selected vehicle A, determining a traffic area range by using maximum speed and time, adding road numbers in the range into a road network Set _ way, screening, adding start and end point numbers corresponding to each screened road into a road node Set _ node, and constructing a road network node class by using all node numbers: meanwhile, constructing a road network connection edge class according to the road numbers in the screened road network Set _ way; connecting the N road network node classes and the M road network connecting edge classes to construct a road network model; and finally, simulating the running of the selected vehicle A in the road network model by adopting a recursive flooding algorithm to obtain a reachable road network list, and distributing tasks for the vehicle A to realize accurate transportation operation. Compared with the existing method, the method is more accurate and the complexity of the calculation process is low.

Description

一种基于洪泛算法的路网可达范围分析方法An analysis method of road network reachable range based on flooding algorithm

技术领域technical field

本发明属于交通区域可达性技术领域,具体是一种基于洪泛算法的路网可达范围分析方法。The invention belongs to the technical field of accessibility of traffic areas, in particular to a method for analyzing the reachability of a road network based on a flooding algorithm.

背景技术Background technique

车辆可达分析是指对特定车辆,综合考虑空间因素和时间因素,寻找在规定时间内该车辆能够到达的交通区域。Vehicle accessibility analysis refers to a specific vehicle, comprehensively considering space and time factors, to find the traffic area that the vehicle can reach within a specified time.

车辆可达分析是物流配送与城市智能化交通等研究的热点问题。对于物流公司,其物流服务业务的覆盖范围是衡量其服务能力的重要标准,能否合理选择配送中心,配置配送车辆是实现物流服务全覆盖的关键,而准确的可达性分析则是对相关问题进行最优决策不可或缺的部分;对于城市交通,准确地分析城市内出租车和网约车等车辆的可达性可为城市交通资源的合理分配提供指导,从而有效解决城市交通拥挤以及资源分配不合理等问题。Vehicle accessibility analysis is a hot issue in logistics distribution and urban intelligent transportation research. For a logistics company, the coverage of its logistics service business is an important criterion for measuring its service capability. Whether a distribution center can be reasonably selected and the configuration of distribution vehicles are the keys to achieving full coverage of logistics services, and accurate accessibility analysis is the key to achieving full coverage of logistics services. It is an indispensable part of the optimal decision-making of the problem; for urban traffic, accurate analysis of the accessibility of vehicles such as taxis and online car-hailing in the city can provide guidance for the rational allocation of urban traffic resources, so as to effectively solve urban traffic congestion and Unreasonable allocation of resources, etc.

洪泛算法是指:在网络中,从任何节点通过一个路由器发送的信息包会被发送给与该路由器相连的所有其他节点,是快速散布路由更新信息到整个大型网络的每个节点的一种方法。现有技术中,洪泛算法主要应用于数据通信系统领域,用于实现数据包在主机网络间的传输与交换。但是,洪泛算法在交通领域的应用很少。The flooding algorithm refers to: in the network, a packet sent from any node through a router will be sent to all other nodes connected to the router, which is a kind of fast dissemination of routing update information to each node of the entire large network. method. In the prior art, the flooding algorithm is mainly used in the field of data communication systems to realize the transmission and exchange of data packets between host networks. However, flooding algorithms are rarely used in the transportation domain.

目前,现有车辆可达区域计算方法多数基于车辆轨迹,根据车辆查询点和边界点的距离,将交通区域网格化,再基于最短路径进行分析,得到车辆可达区域。另一改进方法引入了不同时间段对可达区域的影响。At present, most of the existing vehicle reachable area calculation methods are based on vehicle trajectories, grid the traffic area according to the distance between the vehicle query point and the boundary point, and then analyze based on the shortest path to obtain the vehicle reachable area. Another improvement method introduces the influence of different time periods on the reachable area.

但这些方法都是基于车辆查询点与边界点间区域的时空约束进行筛选,并未根据交通区域内不同道路的特点进行准确分析。对于偏远地区的物流配送问题,交通道路状况往往十分复杂,除时间约束外,道路限高限重等问题也会影响运输,所以以上方法的可达性分析适用范围局限,且准确性不足。However, these methods are based on the spatial and temporal constraints of the area between the vehicle query point and the boundary point, and do not accurately analyze the characteristics of different roads in the traffic area. For logistics and distribution problems in remote areas, traffic and road conditions are often very complex. In addition to time constraints, issues such as road height and weight restrictions will also affect transportation. Therefore, the accessibility analysis of the above methods has limited application scope and insufficient accuracy.

发明内容SUMMARY OF THE INVENTION

针对上述问题,本发明提供一种基于洪泛算法的路网可达范围分析方法,根据交通区域内不同道路的特性构建道路网络,将洪泛算法用于交通道路网络中以模拟车辆的行驶过程,对车辆进行较为准确的可达分析。相对于普通的车辆可达分析,本发明考虑了交通区域内道路的复杂性,适用范围广,分析得到的结果准确性明显提高。In view of the above problems, the present invention provides a method for analyzing the reachable range of a road network based on a flooding algorithm, which constructs a road network according to the characteristics of different roads in a traffic area, and applies the flooding algorithm to the traffic road network to simulate the driving process of vehicles. , to carry out a more accurate reachability analysis of the vehicle. Compared with the common vehicle reachability analysis, the present invention takes into account the complexity of the roads in the traffic area, has a wide application range, and significantly improves the accuracy of the results obtained by the analysis.

所述的基于洪泛算法的路网可达范围分析方法,具体步骤如下:The specific steps of the method for analyzing the reachable range of the road network based on the flooding algorithm are as follows:

步骤一、设给定时间为t,针对某选定车辆A,利用车辆A的最大速度v确定交通区域范围,将范围内的道路编号添加到路网集合Set_way中。Step 1: Set a given time as t, for a selected vehicle A, use the maximum speed v of vehicle A to determine the traffic area range, and add the road numbers within the range to the road network set Set_way.

交通区域范围包含:设给定时间为t,选定的车辆最大速度为v,则所确定的交通区域范围为以车辆位置为圆心,vt为半径所做出的圆。The traffic area range includes: set the given time as t and the selected maximum speed of the vehicle as v, then the determined traffic area range is a circle made with the vehicle position as the center and vt as the radius.

步骤二、根据车辆A信息对路网集合Set_way中的所有道路进行筛选;Step 2: Screen all roads in the road network set Set_way according to the vehicle A information;

根据车辆的高度,宽度和载重筛选区域内道路,依次判断所选交通区域内道路与车辆信息是否匹配,将高度、宽度、载重、车辆种类限制不符合的道路从路网集合Set_way中中剔除,剩余满足条件的道路用于道路网络的构建。According to the height, width and load of the vehicle, the roads in the area are screened, and it is judged in turn whether the road and vehicle information in the selected traffic area match, and the roads that do not meet the restrictions on height, width, load, and vehicle type are removed from the road network set Set_way. The remaining roads that meet the conditions are used for the construction of the road network.

筛选后的路网集合Set_way={wgid1,wgid2,……,wgidM};wgidM是第M条符合车辆A高度、宽度和载重信息的道路编号。The filtered road network set Set_way={wgid1, wgid2, .

步骤三、从筛选后的路网集合Set_way中依次选择每条道路,将各道路对应的起点与终点编号添加到道路节点集合Set_node中;Step 3: Select each road in turn from the filtered road network set Set_way, and add the corresponding start and end numbers of each road to the road node set Set_node;

集合Set_node={ngid1,ngid2,……,ngidN};ngidN是从Set_way中道路选择的第N个节点编号。Set Set_node={ngid1,ngid2,...,ngidN}; ngidN is the Nth node number selected from the road in Set_way.

步骤四、将道路节点集合Set_node中所有的节点编号构建为路网节点类:Step 4. Build all the node numbers in the road node set Set_node into a road network node class:

道路节点集合Set_node中共N个对象,则生成N个路网节点类Node_way,构成路网节点类集合Set<Node_way>,Set<Node_way>={Node_way1,Node_way2,……,Node_wayp,……,Node_wayq,……,Node_wayN};There are N objects in the road node set Set_node, then N road network node classes Node_way are generated to form the road network node class set Set<Node_way>, Set<Node_way>={Node_way1,Node_way2,...,Node_wayp,...,Node_wayq, ...,Node_wayN};

每个节点类Node_way中都包含一个节点编号ngid,一个由多个路网连边类构成的集合Set<Linked_way>以及一个洪泛时间值flood_time。Each node class Node_way contains a node number ngid, a set Set<Linked_way> composed of multiple road network edge classes, and a flood time value flood_time.

节点编号ngid对应集合Set_node中的编号;集合Set<Linked_way>的元素为与该节点相连接的所有路网连边;洪泛时间值flood_time代表上次从该节点进行洪泛时的剩余时间值,默认值为0。The node number ngid corresponds to the number in the set Set_node; the elements of the set Set<Linked_way> are all the road network edges connected to the node; the flooding time value flood_time represents the remaining time value of the last flooding from this node, The default value is 0.

步骤五、根据筛选后的路网集合Set_way中的道路编号构建路网连边类;Step 5. Build a road network edge class according to the road number in the filtered road network set Set_way;

路网集合Set_way中共M个对象,则生成M个路网连边类Link_way,构成路网连边类集合Set<Link_way>={Link_way1,Link_way2,……,Link_waym,…,Link_wayM};There are M objects in the road network set Set_way, and M road network edge classes Link_way are generated to form the road network edge class set Set<Link_way>={Link_way1,Link_way2,...,Link_waym,...,Link_wayM};

每个连边类Link_way都包含一个道路编号信息wgid,一个通过所需时间信息travel_time,以及一个路网节点类Node_target。Each link class Link_way contains a road number information wgid, a travel time information travel_time, and a road network node class Node_target.

道路编号信息wgid对应集合Set_way中的编号;travel_time值为保存的通过各道路的时间;Node_target中存储的是该道路连边类Link_way所指向的路网节点Node_way。The road number information wgid corresponds to the number in the set Set_way; the travel_time value is the saved time of passing each road; Node_target stores the road network node Node_way pointed to by the road edge type Link_way.

步骤六、将N个路网节点类和M个路网连边类进行连接,构建道路网络模型。Step 6: Connect the N road network node classes and the M road network edge classes to construct a road network model.

连接是指:对集合Set<Link_way>内每个连边类进行赋值,并添加指向节点Node_target,同时将其添加到对应路网节点类的集合Set<Linked_way>;Connection refers to: assigning a value to each edge class in the set Set<Link_way>, adding the node Node_target, and adding it to the set Set<Linked_way> of the corresponding road network node class;

具体为:针对连边类Link_waym,按照对应道路编号wgidm值,在数据库中获取对应的道路信息;道路信息包括通过时间、终点编号与起点编号;Specifically: for the edge type Link_waym, according to the corresponding road number wgidm value, obtain the corresponding road information in the database; the road information includes the passing time, the end point number and the start point number;

对连边类Link_waym的travel_time赋值为对应道路的通过时间;Assign the travel_time of the edge class Link_waym to the passing time of the corresponding road;

根据道路编号wgidm得到的终点编号,在路网节点类集合Set<Node_way>中找到该终点编号对应的路网节点类Node_wayp,作为连边类Link_waym对应Node_target的值。According to the end point number obtained by the road number wgidm, the road network node class Node_wayp corresponding to the end point number is found in the road network node class set Set<Node_way>, as the value of the node_target corresponding to the link class Link_waym.

同时,根据道路编号wgidm得到的起点编号,在集合Set<Node_way>中找到该起点编号对应的路网节点类Node_wayq,将连边类Link_waym添加到路网节点类Node_wayq对应的集合Set<Linked_way>中。At the same time, according to the starting point number obtained by the road number wgidm, find the road network node class Node_wayq corresponding to the starting point number in the set Set<Node_way>, and add the edge class Link_waym to the set<Linked_way> corresponding to the road network node class Node_wayq. .

步骤七、采用递归的洪泛算法在道路网络模型中模拟选定车辆A的行驶,得到可达路网列表;Step 7, using a recursive flooding algorithm to simulate the driving of the selected vehicle A in the road network model to obtain a list of accessible road networks;

具体为:Specifically:

步骤701、将模拟车辆A运行的位置与状态构建成包类Packet_car并初始化,同时定义可达路网集合Set_arrived;Step 701: Build the running position and state of the simulated vehicle A into a package class Packet_car and initialize it, and define the reachable road network set Set_arrived at the same time;

包类Packet_car,包含车辆A运行的生命周期和集合Set_router;The package class Packet_car contains the life cycle of vehicle A and the set Set_router;

生命周期初始值为counter;The initial value of the life cycle is counter;

集合Set_router用于记录该包所经过的路网连边信息,由该包所经过的路网连边的编号构成,初始值为空;The set Set_router is used to record the information of the road network edge passed by the packet, which is composed of the number of the road network edge passed by the packet, and the initial value is empty;

可达路网集合Set_arrived用于存储车辆A最终经历的路网连边编号,初始值为空。The reachable road network set Set_arrived is used to store the road network edge number that vehicle A finally experiences, and the initial value is empty.

步骤702、在路网节点类集合Set<Node_way>中找到距离车辆A最近的路网节点作为源点,记为Node_way0,并接收包类Packet_car;Step 702: Find the road network node closest to the vehicle A in the road network node class set Set<Node_way> as the source point, denoted as Node_way0, and receive the packet class Packet_car;

设定生命周期值counter为t0Set the lifetime value counter to t 0 .

步骤703、判断t0是否大于0,如果是,进入步骤704;否则,该包已结束,进入步骤708;Step 703, determine whether t 0 is greater than 0, if so, go to step 704; otherwise, the packet has ended, go to step 708;

步骤704、判断t0是否大于该路网节点内洪泛时间,如果是,进入步骤705;否则,该包为无效包,进入步骤708;Step 704, determine whether t 0 is greater than the flooding time in the road network node, if so, go to step 705; otherwise, the packet is an invalid packet, go to step 708;

步骤705、判断当前路网节点的连边集合Set<Linked_way>中否有集合Set_router中不存在的连边,如果是,进入步骤706;否则,该路网节点已洪泛完成,进入步骤708;Step 705: Determine whether there is a link that does not exist in the set Set_router in the link set Set<Linked_way> of the current road network node, if so, go to step 706; otherwise, the road network node has been flooded, go to step 708;

步骤706、新建一个包Packet_new,其时间为t0-tw,向包Packet_new的集合Set_router中加入该不存在的连边编号;Step 706, create a new package Packet_new, and its time is t 0 -t w , and add the non-existing edge number to the set Set_router of the package Packet_new;

tw对应为各路网连边的travel_time。t w corresponds to the travel_time of each network connection.

具体加入连边编号的过程为:The specific process of adding the edge number is as follows:

判断加入的连边编号是否为1个,如果是,则向包Packet_new的集合Set_router中加入对应的连边编号即可,否则,当连边编号的数量大于1个时,根据各个时间t0-tw的差值,选择差值最大的时间对应的连边,将该连边编号加入包Packet_new的集合Set_router中。Determine whether the number of the added edge is 1. If so, add the corresponding edge number to the Set_router of the package Packet_new. Otherwise, when the number of edge numbers is greater than 1, according to each time t 0 - The difference value of t w , select the connection edge corresponding to the time with the largest difference value, and add the connection edge number to the set Set_router of the packet Packet_new.

步骤707、将包Packet_new的集合Set_router中加入的连边编号指向的节点Node_way1,作为接收包Packet_new的下一个路网节点,并将节点Node_way1的洪泛时间travel_time更新为t0,返回步骤703,开始新一组的洪泛计算,直至判断t0-tw为0。Step 707: Use the node Node_way1 pointed to by the edge number added in the set Set_router of the packet Packet_new as the next road network node for receiving the packet Packet_new, and update the flooding time travel_time of the node Node_way1 to t 0 , return to step 703, start The flooding of a new group is calculated until it is judged that t 0 -t w is 0.

步骤708、将集合Set_router中的路网连边编号存入初始定义的集合Set_arrived中并去重,算法结束;Step 708: Store the road network connection number in the set Set_router into the initially defined set Set_arrived and remove duplicates, and the algorithm ends;

集合Set_router中的路网连边编号即为车辆A的可达路网列表。The road network connection number in the set Set_router is the reachable road network list of vehicle A.

步骤八、根据在道路网络模型中得到的可达路网列表为车辆A分配任务,实现精准运输作业。Step 8: Assign tasks to vehicle A according to the reachable road network list obtained in the road network model, so as to realize precise transportation operations.

本发明的优点和积极效果在于:The advantages and positive effects of the present invention are:

1)、本发明一种基于洪泛算法的路网可达范围分析方法,充分考虑了车辆周围交通区域内道路的复杂性,根据其道路特点进行筛选,并单独考虑每条路线的通过时间,构造道路网络模型,相比于现有方法更为准确,结果更近似于实际情况。1), a kind of road network reachable range analysis method based on flooding algorithm of the present invention, fully considering the complexity of the road in the traffic area around the vehicle, screening according to its road characteristics, and considering the passing time of each route separately, Constructing a road network model is more accurate than existing methods, and the results are more similar to the actual situation.

2)、本发明一种基于洪泛算法的路网可达范围分析方法,采用了洪泛算法,用节点间传递的包模拟车辆的运行,同时针对道路网络的特点进行了一定优化,计算过程具有时间复杂度低的特点。2), a kind of road network reachable range analysis method based on flooding algorithm of the present invention, adopts flooding algorithm, simulates the operation of vehicles with packets transmitted between nodes, and at the same time carries out certain optimization according to the characteristics of the road network, the calculation process. It has the characteristics of low time complexity.

附图说明Description of drawings

图1是本发明一种基于洪泛算法的路网可达范围分析方法的流程图;Fig. 1 is the flow chart of a kind of road network reachability analysis method based on flooding algorithm of the present invention;

图2是本发明采用递归的洪泛算法计算可达路网列表的方法流程图;Fig. 2 is the method flow chart that the present invention adopts recursive flooding algorithm to calculate reachable road network list;

图3是本发明用于解释递归洪泛算法的实施例。FIG. 3 is an embodiment of the present invention for explaining the recursive flooding algorithm.

具体实施方式Detailed ways

为了便于本领域普通技术人员理解和实施本发明,下面结合附图对本发明作进一步的详细和深入描述。In order to facilitate the understanding and implementation of the present invention by those of ordinary skill in the art, the present invention will be further described in detail and in-depth below with reference to the accompanying drawings.

本发明提供的基于洪泛算法的车辆路网可达范围分析方法,适用于对特定车辆进行给定时间的可达性分析,最终可计算得出限定时间内车辆所可能到达的交通区域;具体过程为:首先根据输入的车辆信息与时间信息确定交通区域范围,然后根据车辆特性筛选区域内道路,再将所选区域内符合要求路网构建为特定道路网络模型,采用递归的洪泛算法在路网中模拟车辆行驶计算得到可达路网列表,最终根据可达结果为相应运输车辆分配任务,实现精准运输作业。The method for analyzing the reachability of the vehicle road network based on the flooding algorithm provided by the present invention is suitable for analyzing the accessibility of a specific vehicle at a given time, and finally can calculate the traffic area that the vehicle may reach within a limited time; The process is: first determine the traffic area range according to the input vehicle information and time information, then filter the roads in the area according to the vehicle characteristics, and then construct the road network that meets the requirements in the selected area as a specific road network model, and use the recursive flooding algorithm. The list of reachable road networks is obtained by simulating vehicle driving in the road network, and finally assigns tasks to corresponding transport vehicles according to the reachable results to achieve precise transport operations.

如图1所示,具体步骤如下:As shown in Figure 1, the specific steps are as follows:

步骤一、设给定时间为t,针对某选定车辆A,利用车辆A的最大速度v确定交通区域范围,将范围内的道路编号添加到路网集合Set_way中。Step 1: Set a given time as t, for a selected vehicle A, use the maximum speed v of vehicle A to determine the traffic area range, and add the road numbers within the range to the road network set Set_way.

交通区域范围包含限定时间内车辆A所有可能到达的区域,确定过程如下:The traffic area range includes all possible areas that vehicle A can reach within a limited time. The determination process is as follows:

首先,输入车辆A的坐标(lat,lon),车辆最大速度v和限定时间t;然后,以车辆A坐标(lat,lon)为圆心,vt为半径作圆C,圆C范围即为交通区域范围;将圆C内的道路编号并添加到路网集合Set_way中。First, input the coordinates of vehicle A (lat, lon), the maximum speed of the vehicle v and the limited time t; then, take the coordinates of vehicle A (lat, lon) as the center and vt as the radius to make a circle C, and the range of the circle C is the traffic area Extent; add road numbers within circle C to the road network set Set_way.

所选择的交通区域需要包含限定时间内车辆所有可能到达的区域,从而保证后续分析计算的准确性。同时,此处区域需尽可能得小,以便于在后续分析计算的过程中减少无效计算。故选择圆C为所选区域,该圆C即为保证包含所有可能区域前提下的最小区域。The selected traffic area needs to include all possible areas that vehicles can reach within a limited time, so as to ensure the accuracy of subsequent analysis and calculation. At the same time, the area here needs to be as small as possible, so as to reduce invalid calculation in the process of subsequent analysis and calculation. Therefore, the circle C is selected as the selected area, and the circle C is the minimum area under the premise of ensuring that all possible areas are included.

步骤二、根据车辆A信息对路网集合Set_way中的所有道路进行筛选;Step 2: Screen all roads in the road network set Set_way according to the vehicle A information;

车辆A信息包括:高度为height,宽度为width和载重为load,从数据库中依次调取路网集合Set_way中每条道路,根据各道路的高度、宽度和载重信息,分别与车辆信息的height,width和load进行对比,将不满足车辆A高度、宽度和载重信息的道路从路网集合Set_way中剔除。The information of vehicle A includes: height is height, width is width and load is load, each road in the road network set Set_way is retrieved from the database in turn, and the height, width and load information of each road are respectively related to the height, Width and load are compared, and roads that do not meet the height, width and load information of vehicle A are removed from the road network set Set_way.

筛选后的路网集合Set_way={wgid1,wgid2,……,wgidM};wgidM是第M条符合车辆A高度、宽度和载重信息的道路编号。The filtered road network set Set_way={wgid1, wgid2, .

本步骤筛选的目的为剔除该车辆不可通行的路网。在部分偏远地区的配送问题中,存在着大量道路路况较差、年久失修的情况,将这部分道路剔除后再进行可达性分析对于提高得到结果的准确性十分重要。The purpose of screening in this step is to eliminate the road network that is not passable by the vehicle. In the distribution problems in some remote areas, there are a large number of roads with poor road conditions and long-term disrepair. It is very important to eliminate these roads and then conduct accessibility analysis to improve the accuracy of the results.

步骤三、从筛选后的路网集合Set_way中依次选择每条道路,将各道路对应的起点与终点编号添加到道路节点集合Set_node中;Step 3: Select each road in turn from the filtered road network set Set_way, and add the corresponding start and end numbers of each road to the road node set Set_node;

集合Set_node={ngid1,ngid2,……,ngidN};ngidN是从Set_way中道路选择的第N个节点编号。Set Set_node={ngid1,ngid2,...,ngidN}; ngidN is the Nth node number selected from the road in Set_way.

步骤四、将道路节点集合Set_node中所有的节点编号构建为路网节点类:Step 4. Build all the node numbers in the road node set Set_node into a road network node class:

道路节点集合Set_node中共N个对象,则生成N个路网节点类Node_way,构成路网节点类集合Set<Node_way>,Set<Node_way>={Node_way1,Node_way2,……,Node_wayp,……,Node_wayq,……,Node_wayN};There are N objects in the road node set Set_node, then N road network node classes Node_way are generated to form the road network node class set Set<Node_way>, Set<Node_way>={Node_way1,Node_way2,...,Node_wayp,...,Node_wayq, ...,Node_wayN};

每个节点类Node_way由区域内不同道路的交点抽象而成,都包含一个节点编号ngid,一个由多个路网连边类构成的集合Set<Linked_way>以及一个洪泛时间值flood_time。Each node class Node_way is abstracted from the intersection of different roads in the area, and includes a node number ngid, a set of multiple road network connection edge classes Set<Linked_way> and a flood time value flood_time.

节点编号ngid对应集合Set_node中的编号;集合Set<Linked_way>代表与该节点连接的道路,集合中的元素为与该节点相连接的所有路网连边的编号;洪泛时间值flood_time代表上次从该节点进行洪泛时的剩余时间值,默认值为0。The node number ngid corresponds to the number in the set Set_node; the set Set<Linked_way> represents the road connected to the node, and the elements in the set are the numbers of all road network edges connected to the node; the flood time value flood_time represents the last time The remaining time value when flooding from this node, the default value is 0.

步骤五、根据筛选后的路网集合Set_way中的道路编号构建路网连边类;Step 5. Build a road network edge class according to the road number in the filtered road network set Set_way;

路网集合Set_way中共M个对象,则生成M个路网连边类Link_way,构成路网连边类集合Set<Link_way>={Link_way1,Link_way2,……,Link_waym,…,Link_wayM};There are M objects in the road network set Set_way, and M road network edge classes Link_way are generated to form the road network edge class set Set<Link_way>={Link_way1,Link_way2,...,Link_waym,...,Link_wayM};

每个连边类Link_way由区域内的单条道路抽象而成,都包含一个道路编号信息wgid,一个通过所需时间信息travel_time,以及一个路网节点类Node_target。Each link class Link_way is abstracted from a single road in the area, and contains a road number information wgid, a travel time information travel_time, and a road network node class Node_target.

道路编号信息wgid对应集合Set_way中的编号;travel_time值为保存的通过各道路的时间;Node_target中代表该连边指向的路网节点,存储的是该道路连边类Link_way所指向的路网节点Node_way。The road number information wgid corresponds to the number in the set Set_way; the travel_time value is the saved time of passing each road; Node_target represents the road network node pointed to by the link, and stores the road network node Node_way pointed to by the road link class Link_way .

步骤六、将N个路网节点类Node_way和M个路网连边类Link_way进行连接,构建道路网络模型。Step 6: Connect the N road network node classes Node_way and the M road network edge classes Link_way to construct a road network model.

连接是指:对集合Set<Link_way>内每个连边类进行赋值,并添加指向节点Node_target;同时将其添加到对应路网节点类的集合Set<Linked_way>;Connection refers to: assigning a value to each edge class in the set Set<Link_way>, and adding the node Node_target; at the same time, adding it to the set Set<Linked_way> of the corresponding road network node class;

具体为:针对连边类Link_waym,按照对应道路编号wgidm值,在数据库中获取对应的道路信息;道路信息包括通过时间、终点编号与起点编号;Specifically: for the edge type Link_waym, according to the corresponding road number wgidm value, obtain the corresponding road information in the database; the road information includes the passing time, the end point number and the start point number;

对连边类Link_waym的travel_time赋值为对应道路的通过时间;Assign the travel_time of the edge class Link_waym to the passing time of the corresponding road;

根据道路编号wgidm得到的终点编号,在路网节点类集合Set<Node_way>中找到该终点编号对应的路网节点类Node_wayp,作为连边类Link_waym对应Node_target的值。According to the end point number obtained by the road number wgidm, the road network node class Node_wayp corresponding to the end point number is found in the road network node class set Set<Node_way>, as the value of the node_target corresponding to the link class Link_waym.

同时,根据道路编号wgidm得到的起点编号,在集合Set<Node_way>中找到该起点编号对应的路网节点类Node_wayq,将连边类Link_waym添加到路网节点类Node_wayq对应的集合Set<Linked_way>中。At the same time, according to the starting point number obtained by the road number wgidm, find the road network node class Node_wayq corresponding to the starting point number in the set Set<Node_way>, and add the edge class Link_waym to the set<Linked_way> corresponding to the road network node class Node_wayq. .

步骤七、采用递归的洪泛算法在道路网络模型中模拟选定车辆A的行驶,得到可达路网列表;Step 7, using a recursive flooding algorithm to simulate the driving of the selected vehicle A in the road network model to obtain a list of accessible road networks;

本发明在实施洪泛计算时,提供一个包类Packet_car作为于洪泛算法中在网络中传播的介质,模拟的车辆运行时的位置和状态。首先根据车辆信息,在节点中找到距离车辆最近的节点作为源点,建立一个初始时间为输入时间的包,使源点接收该包,开始递归洪泛计算。When implementing the flooding calculation, the present invention provides a packet class Packet_car as the medium that propagates in the network in the flooding algorithm, and simulates the running position and state of the vehicle. First, according to the vehicle information, find the node closest to the vehicle as the source point in the nodes, and establish a packet with the initial time as the input time, so that the source point receives the packet and starts the recursive flooding calculation.

如图2所示,具体为:As shown in Figure 2, it is specifically:

步骤701、将模拟车辆A运行的位置与状态构建成包类Packet_car并初始化,同时定义可达路网集合Set_arrived;Step 701: Build the running position and state of the simulated vehicle A into a package class Packet_car and initialize it, and define the reachable road network set Set_arrived at the same time;

包类Packet_car,包含车辆A运行的生命周期和集合Set_router;The package class Packet_car contains the life cycle of vehicle A and the set Set_router;

生命周期初始值为counter,用于记录车辆运行中所剩时间。The initial value of the life cycle is counter, which is used to record the time remaining in the vehicle operation.

集合Set_router用于记录该包所经过的路网连边信息,由该包所经过的路网连边的编号构成,初始值为空;The set Set_router is used to record the information of the road network edge passed by the packet, which is composed of the number of the road network edge passed by the packet, and the initial value is empty;

可达路网集合Set_arrived用于存储车辆A最终经历的可达路网连边编号,初始值为空。The reachable road network set Set_arrived is used to store the number of reachable road network edges that vehicle A finally experiences, and the initial value is empty.

步骤702、在路网节点类集合Set<Node_way>中找到距离车辆A最近的路网节点作为源点,记为Node_way0,并接收包类Packet_car;Step 702: Find the road network node closest to the vehicle A in the road network node class set Set<Node_way> as the source point, denoted as Node_way0, and receive the packet class Packet_car;

设定生命周期值counter为t0Set the lifetime value counter to t 0 .

步骤703、判断t0是否大于0,如果是,进入步骤704;否则,该包已结束生命周期,进入步骤708;Step 703, determine whether t 0 is greater than 0, if so, go to step 704; otherwise, the package has ended its life cycle, go to step 708;

步骤704、判断t0是否大于该路网节点内洪泛时间,如果是,进入步骤705;否则,该包为无效包,进入步骤708;Step 704, determine whether t 0 is greater than the flooding time in the road network node, if so, go to step 705; otherwise, the packet is an invalid packet, go to step 708;

步骤705、判断当前路网节点的连边集合Set<Linked_way>中否有集合Set_router中不存在的连边,如果是,进入步骤706;否则,该路网节点已洪泛完成,进入步骤708;Step 705: Determine whether there is a link that does not exist in the set Set_router in the link set Set<Linked_way> of the current road network node, if so, go to step 706; otherwise, the road network node has been flooded, go to step 708;

步骤706、新建一个包Packet_new,其时间为t0-tw,向集合Set_router中加入该不存在的连边编号并作为包Packet_new的路径集合Set_router;Step 706, create a new package Packet_new, and its time is t 0 -t w , add the non-existing edge number to the set Set_router and use it as the path set Set_router of the package Packet_new;

tw对应为各路网连边的travel_time。t w corresponds to the travel_time of each network connection.

具体加入连边编号的过程为:The specific process of adding the edge number is as follows:

判断加入的连边编号是否为1个,如果是,则向集合Set_router中加入对应的连边编号即可,否则,当连边编号的数量大于1个时,根据各个时间t0-tw的差值,选择差值最大的时间对应的连边,将该连边编号加入集合Set_router中。Determine whether the number of the added edge is 1. If so, add the corresponding edge number to the set Set_router. Otherwise, when the number of edge numbers is greater than 1, according to each time t 0 -t w Difference, select the edge corresponding to the time with the largest difference, and add the edge number to the set Set_router.

如图3所示,判断节点接收到的包是否具有有效性:即判断包的剩余时间是否大于节点记录的洪泛时间,若为是,则为有效包,进行洪泛,否则为无效包,结束。As shown in Figure 3, determine whether the packet received by the node is valid: that is, determine whether the remaining time of the packet is greater than the flooding time recorded by the node, if so, it is a valid packet and floods it, otherwise it is an invalid packet, Finish.

从源点O开始进行递归洪泛计算,假设节点B两次接收到包,分别来自源点O与节点A,当节点B接收到来自节点A的包进行洪泛计算时,包的所剩时间要小于来自节点O的包的所剩时间,则其进行洪泛计算的结果必定包含于来自节点O的包的计算结果之中,所以节点B接收到来自节点A的包进行的洪泛计算为无效计算。本发明通过在洪泛计算开始前通过比较包内剩余时间与节点洪泛时间,判断该包是否为无效包,避免无效包的计算。The recursive flooding calculation starts from source point O. Suppose node B receives the packet twice, from source point O and node A, respectively. When node B receives the packet from node A and performs flooding calculation, the remaining time of the packet If it is less than the remaining time of the packet from node O, the result of its flooding calculation must be included in the calculation result of the packet from node O, so node B receives the packet from node A and performs flooding calculation as Invalid calculation. The invention judges whether the packet is an invalid packet by comparing the remaining time in the packet with the node flooding time before the flooding calculation starts, so as to avoid the calculation of the invalid packet.

步骤707、将包Packet_new的集合Set_router中加入的连边编号指向的节点Node_way1,作为接收包Packet_new的下一个路网节点,并将节点Node_way1的洪泛时间travel_time更新为t0,返回步骤703,进行递归,开始新一组的洪泛计算,直至判断t0-tw为0。Step 707: Use the node Node_way1 pointed to by the edge number added in the set Set_router of the packet Packet_new as the next road network node for receiving the packet Packet_new, and update the flooding time travel_time of the node Node_way1 to t 0 , return to step 703, and proceed to Recursively, start a new set of flooding calculations until it is judged that t 0 -t w is 0.

步骤708、将集合Set_router中的路网连边编号存入初始定义的集合Set_arrived中并去重,算法结束;Step 708: Store the road network connection number in the set Set_router into the initially defined set Set_arrived and remove duplicates, and the algorithm ends;

集合Set_router={wgid1,wgid2,……,wgidK}中的路网连边编号即为车辆A的可达路网列表。The road network connection number in the set Set_router={wgid1,wgid2,...,wgidK} is the reachable road network list of vehicle A.

当递归传递的洪泛算法全部结束后,代表所有用来模拟车辆运行的包已全部结束生命周期,此时Set_arrived中所记录的编号即为在限定时间内特定车辆可以到达的道路编号。将道路编号去除重复并进行排序后输出,车辆可达性分析完成。When the flooding algorithm of recursive transmission is completed, it means that all the packages used to simulate the running of the vehicle have completed their life cycle. At this time, the number recorded in Set_arrived is the road number that a specific vehicle can reach within a limited time. The road numbers are deduplicated and sorted and output, and the vehicle accessibility analysis is completed.

步骤八、根据在道路网络模型中得到的可达路网列表为车辆A分配任务,实现精准运输作业。Step 8: Assign tasks to vehicle A according to the reachable road network list obtained in the road network model, so as to realize precise transportation operations.

将特定车辆A可以到达的道路编号结果借助图像化界面进行显示或借入其他装置进行分析,为相应运输车辆分配任务,实现精准运输作业。Display the road number results that a specific vehicle A can reach with the help of a graphical interface or borrow other devices for analysis, assign tasks to the corresponding transport vehicles, and achieve precise transport operations.

本发明根据交通道路特性,建立了特殊的道路网络模型,充分考虑了区域内不同道路的复杂性,根据道路特定进行筛选与构建网络,使得可达性分析结果准确、适用范围广;同时将必要的信息从数据库内提取至模型中,为后续的递归洪泛计算提供了载体。The invention establishes a special road network model according to the characteristics of the traffic road, fully considers the complexity of different roads in the area, selects and builds the network according to the specific road, so that the accessibility analysis result is accurate and the application range is wide; The information is extracted from the database into the model, which provides a carrier for subsequent recursive flooding calculations.

本发明采用洪泛算法来模拟车辆的运行,现有技术中,洪泛算法主要应用于数据通信系统领域,在交通领域的应用很少。而洪泛算法在网络中进行介质包的递归传递,各个包可以代表运行中的车辆,包的相关参数表示运行的车辆的位置和状态信息。对网络中各个包的传递进行分析,可得到精确的可达性分析结果。The present invention uses a flooding algorithm to simulate the operation of the vehicle. In the prior art, the flooding algorithm is mainly applied in the field of data communication systems, and is rarely used in the field of traffic. The flooding algorithm performs recursive transmission of media packets in the network, each packet can represent the running vehicle, and the relevant parameters of the packet represent the position and status information of the running vehicle. By analyzing the transmission of each packet in the network, accurate reachability analysis results can be obtained.

同时,针对车辆问题对洪泛算法进行了优化,对于模拟车辆运行的特殊情况,部分节点接收的包会为无效包,采用普通洪泛算法会存在一定无效计算的情况,会消耗大量的时间。本发明对算法进行优化,增加了对包有效性的判断步骤,避免了该部分的无效计算,减小了算法时间复杂度。At the same time, the flooding algorithm is optimized for the vehicle problem. For the special situation of simulated vehicle operation, the packets received by some nodes will be invalid packets. If the ordinary flooding algorithm is used, there will be some invalid calculations, which will consume a lot of time. The invention optimizes the algorithm, increases the steps of judging the validity of the packet, avoids the invalid calculation of this part, and reduces the time complexity of the algorithm.

本发明针对特定车辆,考虑了其周边区域内道路的复杂性,进行道路网络构建,运用洪泛算法对车辆可达性进行分析,得到结果并输出。相对现有方法,所得到的可达路网准确性强,方法与装置适用范围广。特别地,对于一些交通情况复杂的区域,本发明提供的方法与装置可以准确地判断道路是否允许车辆通行,从而在进行时空间可达分析前将无法通过的道路进行剔除,这使得结果的准确性大大提高。For a specific vehicle, the invention takes into account the complexity of the roads in the surrounding area, constructs the road network, uses the flooding algorithm to analyze the accessibility of the vehicle, and obtains and outputs the result. Compared with the existing method, the obtained reachable road network has high accuracy, and the method and the device have wide application range. In particular, for some areas with complex traffic conditions, the method and device provided by the present invention can accurately determine whether the road allows vehicles to pass, so that the unpassable roads are eliminated before the time-space reachability analysis is performed, which makes the results more accurate. Sex is greatly improved.

Claims (5)

1.一种基于洪泛算法的路网可达范围分析方法,其特征在于,具体步骤如下:1. a road network reachability analysis method based on flooding algorithm, is characterized in that, concrete steps are as follows: 步骤一、设给定时间为t,针对某选定车辆A,利用车辆A的最大速度v确定交通区域范围,将范围内的道路编号添加到路网集合Set_way中;Step 1. Set the given time as t, and for a selected vehicle A, determine the traffic area range by using the maximum speed v of the vehicle A, and add the road numbers within the range to the road network set Set_way; 步骤二、根据车辆A信息对路网集合Set_way中的所有道路进行筛选;Step 2: Screen all roads in the road network set Set_way according to the vehicle A information; 筛选后的路网集合Set_way={wgid1,wgid2,……,wgidM};wgidM是第M条符合车辆A高度、宽度和载重信息的道路编号;The filtered road network set Set_way={wgid1,wgid2,...,wgidM}; wgidM is the M-th road number that matches the height, width and load information of vehicle A; 步骤三、从筛选后的路网集合Set_way中依次选择每条道路,将各道路对应的起点与终点编号添加到道路节点集合Set_node中;Step 3: Select each road in turn from the filtered road network set Set_way, and add the corresponding start and end numbers of each road to the road node set Set_node; 集合Set_node={ngid1,ngid2,……,ngidN};ngidN是从Set_way中道路选择的第N个节点编号;Set Set_node={ngid1,ngid2,...,ngidN}; ngidN is the Nth node number selected from the road in Set_way; 步骤四、将道路节点集合Set_node中所有的节点编号构建为路网节点类:Step 4. Build all the node numbers in the road node set Set_node into a road network node class: 道路节点集合Set_node中共N个对象,则生成N个路网节点类Node_way,构成路网节点类集合Set<Node_way>,Set<Node_way>={Node_way1,Node_way2,……,Node_wayp,……,Node_wayq,……,Node_wayN};There are N objects in the road node set Set_node, then N road network node classes Node_way are generated to form the road network node class set Set<Node_way>, Set<Node_way>={Node_way1,Node_way2,...,Node_wayp,...,Node_wayq, ...,Node_wayN}; 每个节点类Node_way中都包含一个节点编号ngid,一个由多个路网连边类构成的集合Set<Linked_way>以及一个洪泛时间值flood_time;Each node class Node_way contains a node number ngid, a set Set<Linked_way> composed of multiple road network edge classes, and a flood time value flood_time; 节点编号ngid对应集合Set_node中的编号;集合Set<Linked_way>的元素为与该节点相连接的所有路网连边;洪泛时间值flood_time代表上次从该节点进行洪泛时的剩余时间值,默认值为0;The node number ngid corresponds to the number in the set Set_node; the elements of the set Set<Linked_way> are all the road network edges connected to the node; the flooding time value flood_time represents the remaining time value of the last flooding from this node, The default value is 0; 步骤五、根据筛选后的路网集合Set_way中的道路编号构建路网连边类;Step 5. Build a road network edge class according to the road number in the filtered road network set Set_way; 路网集合Set_way中共M个对象,则生成M个路网连边类Link_way,构成路网连边类集合Set<Link_way>={Link_way1,Link_way2,……,Link_waym,…,Link_wayM};There are M objects in the road network set Set_way, and M road network edge classes Link_way are generated to form the road network edge class set Set<Link_way>={Link_way1,Link_way2,...,Link_waym,...,Link_wayM}; 每个连边类Link_way都包含一个道路编号信息wgid,一个通过所需时间信息travel_time,以及一个路网节点类Node_target;Each edge class Link_way contains a road number information wgid, a travel time information travel_time, and a road network node class Node_target; 道路编号信息wgid对应集合Set_way中的编号;travel_time值为保存的通过各道路的时间;Node_target中存储的是该道路连边类Link_way所指向的路网节点Node_way;The road number information wgid corresponds to the number in the set Set_way; the travel_time value is the saved time of passing each road; Node_target stores the road network node Node_way pointed to by the road edge class Link_way; 步骤六、将N个路网节点类和M个路网连边类进行连接,构建道路网络模型;Step 6: Connect the N road network node classes and the M road network edge classes to construct a road network model; 连接是指:对集合Set<Link_way>内每个连边类进行赋值,并添加指向节点Node_target,同时将其添加到对应路网节点类的集合Set<Linked_way>;Connection refers to: assigning a value to each edge class in the set Set<Link_way>, adding the node Node_target, and adding it to the set Set<Linked_way> of the corresponding road network node class; 步骤七、采用递归的洪泛算法在道路网络模型中模拟选定车辆A的行驶,得到可达路网列表;Step 7, using a recursive flooding algorithm to simulate the driving of the selected vehicle A in the road network model to obtain a list of accessible road networks; 具体为:Specifically: 步骤701、将模拟车辆A运行的位置与状态构建成包类Packet_car并初始化,同时定义可达路网集合Set_arrived;Step 701: Build the running position and state of the simulated vehicle A into a package class Packet_car and initialize it, and define the reachable road network set Set_arrived at the same time; 包类Packet_car,包含车辆A运行的生命周期和集合Set_router;The package class Packet_car contains the life cycle of vehicle A and the set Set_router; 生命周期初始值为counter;The initial value of the life cycle is counter; 集合Set_router用于记录该包所经过的路网连边信息,由该包所经过的路网连边的编号构成,初始值为空;The set Set_router is used to record the information of the road network edge passed by the packet, which is composed of the number of the road network edge passed by the packet, and the initial value is empty; 可达路网集合Set_arrived用于存储车辆A最终经历的路网连边编号,初始值为空;The reachable road network set Set_arrived is used to store the road network edge number that vehicle A finally experiences, and the initial value is empty; 步骤702、在路网节点类集合Set<Node_way>中找到距离车辆A最近的路网节点作为源点,记为Node_way0,并接收包类Packet_car;Step 702: Find the road network node closest to the vehicle A in the road network node class set Set<Node_way> as the source point, denoted as Node_way0, and receive the packet class Packet_car; 设定生命周期值counter为t0Set the lifetime value counter to t 0 ; 步骤703、判断t0是否大于0,如果是,进入步骤704;否则,该包已结束,进入步骤708;Step 703, determine whether t 0 is greater than 0, if so, go to step 704; otherwise, the packet has ended, go to step 708; 步骤704、判断t0是否大于该路网节点内洪泛时间,如果是,进入步骤705;否则,该包为无效包,进入步骤708;Step 704, determine whether t 0 is greater than the flooding time in the road network node, if so, go to step 705; otherwise, the packet is an invalid packet, go to step 708; 步骤705、判断当前路网节点的连边集合Set<Linked_way>中是否有集合Set_router中不存在的连边,如果是,进入步骤706;否则,该路网节点已洪泛完成,进入步骤708;Step 705: Determine whether there is a link in the set Set<Linked_way> of the current road network node that does not exist in the set Set_router, if so, go to step 706; otherwise, the road network node has been flooded, go to step 708; 步骤706、新建一个包Packet_new,其时间为t0-tw,向包Packet_new的集合Set_router中加入该不存在的连边编号;Step 706, create a new package Packet_new, and its time is t 0 -t w , and add the non-existing edge number to the set Set_router of the package Packet_new; tw对应为各路网连边的travel_time;t w corresponds to the travel_time of each network connection; 步骤707、将包Packet_new的集合Set_router中加入的连边编号指向的节点Node_way1,作为接收包Packet_new的下一个路网节点,并将节点Node_way1的洪泛时间travel_time更新为t0,返回步骤703,开始新一组的洪泛计算,直至判断t0-tw为0;Step 707: Use the node Node_way1 pointed to by the edge number added in the set Set_router of the packet Packet_new as the next road network node for receiving the packet Packet_new, and update the flooding time travel_time of the node Node_way1 to t 0 , return to step 703, start Flood calculation of a new group until t 0 -t w is judged to be 0; 步骤708、将集合Set_router中的路网连边编号存入初始定义的集合Set_arrived中并去重,算法结束;Step 708: Store the road network connection number in the set Set_router into the initially defined set Set_arrived and remove duplicates, and the algorithm ends; 集合Set_router中的路网连边编号即为车辆A的可达路网列表;The road network connection number in the set Set_router is the reachable road network list of vehicle A; 步骤八、根据在道路网络模型中得到的可达路网列表为车辆A分配任务,实现精准运输作业。Step 8: Assign tasks to vehicle A according to the reachable road network list obtained in the road network model, so as to realize precise transportation operations. 2.如权利要求1所述的一种基于洪泛算法的路网可达范围分析方法,其特征在于,所述的步骤一中,交通区域范围包含:设给定时间为t,选定的车辆最大速度为v,则所确定的交通区域范围为以车辆位置为圆心,vt为半径所做出的圆。2. a kind of road network reachable range analysis method based on flooding algorithm as claimed in claim 1 is characterized in that, in described step 1, the traffic area range comprises: set given time as t, selected The maximum speed of the vehicle is v, then the determined traffic area range is a circle with the vehicle position as the center and vt as the radius. 3.如权利要求1所述的一种基于洪泛算法的路网可达范围分析方法,其特征在于,所述的步骤二中所述的车辆A信息包括:高度为height,宽度为width和载重为load,从数据库中依次调取路网集合Set_way中每条道路,根据各道路的高度、宽度和载重信息,分别与车辆信息的height,width和load进行对比,将不满足车辆A高度、宽度和载重信息的道路从路网集合Set_way中剔除。3. a kind of road network reachable range analysis method based on flooding algorithm as claimed in claim 1 is characterized in that, the vehicle A information described in described step 2 comprises: height is height, width is width and The load is load, and each road in the road network set Set_way is retrieved from the database in turn. According to the height, width and load information of each road, they are compared with the height, width and load of the vehicle information respectively. The height, width and load of vehicle A will not be satisfied. Roads with width and load information are removed from the road network set Set_way. 4.如权利要求1所述的一种基于洪泛算法的路网可达范围分析方法,其特征在于,所述的步骤六中连接具体为:针对连边类Link_waym,按照对应道路编号wgidm值,在数据库中获取对应的道路信息;道路信息包括通过时间、终点编号与起点编号;4. a kind of road network reachable range analysis method based on flooding algorithm as claimed in claim 1, is characterized in that, in described step 6, the connection is specifically: for edge class Link_waym, according to the corresponding road number wgidm value , obtain the corresponding road information in the database; the road information includes the passing time, the end point number and the start point number; 对连边类Link_waym的travel_time赋值为对应道路的通过时间;Assign the travel_time of the edge class Link_waym to the passing time of the corresponding road; 根据道路编号wgidm得到的终点编号,在路网节点类集合Set<Node_way>中找到该终点编号对应的路网节点类Node_wayp,作为连边类Link_waym对应Node_target的值;According to the end point number obtained by the road number wgidm, find the road network node class Node_wayp corresponding to the end point number in the road network node class set Set<Node_way>, as the value of the node_target corresponding to the link class Link_waym; 同时,根据道路编号wgidm得到的起点编号,在集合Set<Node_way>中找到该起点编号对应的路网节点类Node_wayq,将连边类Link_waym添加到路网节点类Node_wayq对应的集合Set<Linked_way>中。At the same time, according to the starting point number obtained by the road number wgidm, find the road network node class Node_wayq corresponding to the starting point number in the set Set<Node_way>, and add the edge class Link_waym to the set<Linked_way> corresponding to the road network node class Node_wayq. . 5.如权利要求1所述的一种基于洪泛算法的路网可达范围分析方法,其特征在于,所述的步骤706中具体加入连边编号的过程为:5. a kind of road network reachability analysis method based on flooding algorithm as claimed in claim 1, is characterized in that, in described step 706, the process of specifically adding the number of connected edges is: 判断加入的连边编号是否为1个,如果是,则向包Packet_new的集合Set_router中加入对应的连边编号即可,否则,当连边编号的数量大于1个时,根据各个时间t0-tw的差值,选择差值最大的时间对应的连边,将该连边编号加入包Packet_new的集合Set_router中。Determine whether the number of the added edge is 1. If so, add the corresponding edge number to the Set_router of the package Packet_new. Otherwise, when the number of edge numbers is greater than 1, according to each time t 0 - The difference value of t w , select the connection edge corresponding to the time with the largest difference value, and add the connection edge number to the set Set_router of the packet Packet_new.
CN202010103865.6A 2020-02-20 2020-02-20 An analysis method of road network reachable range based on flooding algorithm Active CN111260947B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010103865.6A CN111260947B (en) 2020-02-20 2020-02-20 An analysis method of road network reachable range based on flooding algorithm

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010103865.6A CN111260947B (en) 2020-02-20 2020-02-20 An analysis method of road network reachable range based on flooding algorithm

Publications (2)

Publication Number Publication Date
CN111260947A CN111260947A (en) 2020-06-09
CN111260947B true CN111260947B (en) 2020-10-30

Family

ID=70949530

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010103865.6A Active CN111260947B (en) 2020-02-20 2020-02-20 An analysis method of road network reachable range based on flooding algorithm

Country Status (1)

Country Link
CN (1) CN111260947B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113592180B (en) * 2021-08-02 2023-07-07 上海歆广数据科技有限公司 Seed point service area division method and system

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5402957B2 (en) * 2011-02-09 2014-01-29 株式会社デンソー Electronics
WO2016119834A1 (en) * 2015-01-28 2016-08-04 Nokia Solutions And Networks Oy Method for communications reliability enhancements with access entity assistance
CN105578552B (en) * 2015-12-22 2018-12-21 山东大学 Based on vehicle-cluster-communication cell three-tier architecture data transmission system and method
CN106096798A (en) * 2016-07-05 2016-11-09 南京航空航天大学 A kind of city road network optimization method under accessibility optimal conditions
CN108109382B (en) * 2018-02-05 2020-08-04 青岛大学 Congestion point, congestion line and congestion area discovery method based on composite network
CN108667668B (en) * 2018-05-21 2020-12-29 同济大学 An accessibility routing method based on the connectivity base of the Internet of Vehicles in the urban road scene

Also Published As

Publication number Publication date
CN111260947A (en) 2020-06-09

Similar Documents

Publication Publication Date Title
Bell et al. A stochastic user equilibrium path flow estimator
CN103077604B (en) traffic sensor management method and system
Ho et al. Stochastic model and connectivity dynamics for VANETs in signalized road systems
CN110009906B (en) Dynamic route planning method based on traffic prediction
CN111898793B (en) Path selection method considering user perception difference in combined travel mode
Serok et al. Identification, cost evaluation, and prioritization of urban traffic congestions and their origin
Kim et al. Navopt: Navigator assisted vehicular route optimizer
Rahman et al. Street parked vehicles based vehicular fog computing: Tcp throughput evaluation and future research direction
Fakhrmoosavi et al. An iterative learning approach for network contraction: Path finding problem in stochastic time‐varying networks
CN111260947B (en) An analysis method of road network reachable range based on flooding algorithm
Ma et al. Motif analysis of urban rail transit network
CN116757397A (en) Bus passenger flow distribution method considering capacity constraint
Kamiński et al. Multiagent routing simulation with partial smart vehicles penetration
Xiao et al. A collaborative reservation mechanism of multiple parking lots based on dynamic vehicle path planning
Yousefikia et al. A study on the generalized TFlowFuzzy OD estimation
Alabbas et al. Reinforcement learning based gateway selection in vanets
Twahirwa et al. Travel Matrix Enabled Delta‐Based Roadside Units Deployment for Vehicular Ad Hoc Networks: A Case of Kigali City
KR101047625B1 (en) Gateway setting device and method
CN113409475B (en) Traffic billing method and system
Peixoto et al. Exploiting fog computing with an adapted dbscan for traffic congestion detection system
Rong et al. Continuum dynamic traffic assignment model for autonomous vehicles in a polycentric urban city with environmental consideration
Vemagiri et al. Enhancing Peak-Hour Connectivity in Urban Ride-Sharing Platforms through Dynamic Graph Theory Analysis: A Simulation-Based Approach
Decker Electric vehicle charging and routing management via multi-infrastructure data fusion
Alabdouli et al. Enhancing Route Guidance Through Integrated V2X Communication and Transportation Systems: A Comprehensive Review
Fathy et al. A method to predict travel time in large-scale urban areas using Vehicular Networks

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