摘要
文章针对学生上下学的路径问题,基于K-means算法和蚁群算法进行研究,通过使用三阶段布局法(确定候选站点、确定初始候选站点的布局方法、站点布局优化)确定站点的位置设置,采用MATLAB仿真软件对K-means算法、蚁群算法进行模拟,并对调查数据进行分析。文章主要研究这两种方法下的路径优化方式,通过实验计算,证明了蚁群算法得出的学生上下学路径要优于K-means算法下的路径,K-means算法使得每条路径人数分布不均匀且路程不相近;而蚁群算法使得每条路径学生的搭乘数均等,校车走过的路程相近。
This paper conducts a study on the path problem of students going to and from school based on K-means algorithm and ant colony optimization.It uses the three-stage layout method(determining candidate stations,determining the layout method of initial candidate stations,optimizing the station layout)to determine the location of the station.MATLAB simulation software is used to simulate the K-means algorithm and ant colony optimization,and analyze the survey data.The main focus of this article is on path optimization under these two methods.Through experimental calculations,it has been proven that the students'p ath t o a nd f rom school under the ant colony optimization is better than that under the K-means algorithm.The K-means algorithm results in uneven distribution of students on each path and uneven distances,while the ant colony optimization ensures that the number of students on each path is equal,and the distance traveled by the school bus is similar.
作者
刘晓龙
马旭琴
王学军
LIU Xiaolong;MA Xuqin;WANG Xuejun(School of Mechanical Engineering,Ningxia Institute of Science and Technology,Shizhuishan 753000,China)
出处
《物流科技》
2024年第22期76-81,共6页
Logistics Sci Tech