arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1503.04475cs.NE
收藏

交通灯效率的遗传算法仿真

Simulation of Genetic Algorithm: Traffic Light Efficiency

Eric Lienert

摘要:

交通是全世界许多城市地区的一个问题。交通流量是由某些设备,如交通灯。当每条车道可以通过十字路口时,交通灯发出信号。通常,静态调度会干扰理想的交通流。该项目的目的是找到一种方法,使交通灯控制的十字路口更有效率。这一目标是通过创建一个遗传算法来实现的,该算法通过遗传原理来增强输入算法,以产生最适合的算法。该程序由两个主要元素组成:Java编码和城市交通模拟(SUMO)编码,这是一个模拟真实交通的环境。Java代码通过一个命令提示符调用SUMO模拟,该命令提示符运行模拟、接收输出、更改算法并循环。SUMO组件初始化了一个模拟,其中创建了一个1 x 1的街道布局,每个十字路口都有自己的交通灯。每个循环都通过改变调度字符串(指示灯光变化)来增强输入算法。在执行循环模拟之后,然后分析数据。这是通过创建一个基于常规实践的算法来实现的,定时交通灯,并比较所有车辆退出系统所需的总时间和每辆车退出系统所需的平均时间。这些不同的变量:平均车辆离开系统所花费的时间和所有车辆离开系统所花费的总时间,然后一起绘制以提供视觉帮助。与传统的调度方法相比,遗传算法确实提高了交通灯和交通流的效率。

英文摘要:

Traffic is a problem in many urban areas worldwide. Traffic flow is dictated by certain devices such as traffic lights. The traffic lights signal when each lane is able to pass through the intersection. Often, static schedules interfere with ideal traffic flow. The purpose of this project was to find a way to make intersections controlled with traffic lights more efficient. This goal was accomplished through the creation of a genetic algorithm, which enhances an input algorithm through genetic principles to produce the fittest algorithm. The program was comprised of two major elements: coding in Java and coding in Simulation of Urban Mobility (SUMO), which is an environment that simulates real traffic. The Java code called upon the SUMO simulation via a command prompt which ran the simulation, received the output, altered the algorithm, and looped. The SUMO component initialized a simulation in which a 1 x 1 street layout was created, each intersection with its own traffic light. Each loop enhanced the input algorithm by altering the scheduling string (dictates the light changes). After the looped simulations were executed, the data was then analyzed. This was accomplished by creating an algorithm based upon regular practice, timed traffic lights, and comparing the output which was comprised of the total time it took for all vehicles to exit the system and the average time it took each individual vehicle to exit the system. These different variables: the time it took the average vehicle to exit the system and total time for all vehicles to exit the system, where then graphed together to provide a visual aid. The genetic algorithm did improve traffic light and traffic flow efficiency in comparison to traditional scheduling methods.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑