首页 | 本学科首页   官方微博 | 高级检索  
     检索      

城市公交线路选择算法优化
引用本文:汤亭亭,严凌,孙梦瑶.城市公交线路选择算法优化[J].物流技术,2021(2):84-88.
作者姓名:汤亭亭  严凌  孙梦瑶
作者单位:上海理工大学管理学院
摘    要:为提高城市居民乘坐公交出行的意愿,解决出行路径选择问题。拟从居民乘坐公交车出行的换乘次数最少为前提,提出用广度优先迭代结合Dijkstra算法为居民出行提供最优的公交线路。首先用广度优先迭代找出连接起讫点之间所有的换乘次数最少的公交线路,再使用Dijkstra算法在换乘次数少的线路中找到行程时间最短的线路,使得乘客在整个乘坐公交出行过程中换乘次数最少、乘坐时间最少。采用python编程实现结果验证,与实际结果路线对比,所提供的线路接近于实际运营,证明了该算法的有效性并且运行速度较快。

关 键 词:公交换乘  最短路  广度优先搜索  DIJKSTRA算法

Optimization of Selection Algorithm for Urban Bus Routes
TANG Tingting,YAN Ling,SUN Mengyao.Optimization of Selection Algorithm for Urban Bus Routes[J].Logistics Technology,2021(2):84-88.
Authors:TANG Tingting  YAN Ling  SUN Mengyao
Institution:(Business School,University of Shanghai for Science&Technology,Shanghai 200093,China)
Abstract:To encourage urban citizens to prioritize bus as a transportation means,and solve the route selection problem,we proposed to combine breadth-first iterations with Dijkstra algorithm to provide the optimized bus path for the residents with the least number of transfers in bus travel as the objective.First of all,we used the breadth-first iteration to find all the bus routes with the least number of transfers between the starting and ending points.Then,we adopted the Dijkstra algorithm to identify the route taking shortest time among the routes with least number of transfers,so that passengers could have the least number of transfers and shortest time during the whole bus travel.Finally,we verified the result with Python programming,and found that compared with the actual route,the route provided was close to the actual operation,which proved the validity and fast running speed of the proposed algorithm.
Keywords:bus transfer  shortest path  breadth-first search  Dijkstra algorithm
本文献已被 维普 等数据库收录!
设为首页 | 免责声明 | 关于勤云 | 加入收藏

Copyright©北京勤云科技发展有限公司  京ICP备09084417号