摘要
针对给定的两交叉路口交通灯管理问题,研究其数学模型并通过C#.NET进行仿真。已知约束条件为距离是L的两交叉路口,车流服从均匀分布,汽车相继到达时间服从指数分布。首先分析问题要求并作相应的基本假设,在保证两个交叉路口汽车平均等待时间最少的目标下,根据约束条件推导红绿灯周期计算公式得出数学模型,包括模型的5个输入参数和一组输出量。在C#.NET环境下,应用面向对象和多线程编程理论,设计了模型的主要对象类和仿真程序,列举了一组参数的具体仿真实例,得到东西交叉路口的红绿灯周期,验证和满足了汽车运行时服从两种分布的约束。同时给出了其他多组参数的仿真结果表。
The mathematical model and simulation based on C#. NET are studied for the two given crossroads traffic lights management problem. The constraints of the problem are that each ear flow is uniformity distributing and the coming-time of ear is index distributing, for the two crossroads with distance of L. First, the requirement of question is analyzed and the corresponding hypotheses are given. Then the mathematical model is attained by deducing the red and green lights cycles and ensuring the lowest average waiting time of ears at the two crossroads, including five input parameters of model and one group of output parameters. The simulation programs of the model and the main classes are designed by using O.O. (Objected-Oriented) and multithread theory in the C#. NET circumstance. Lastly, the concrete simulation examples are demonstrated with one group of parameters, and the corresponding results of the red and green lights cycles of east and west crossroads can well verify and satisfy the constraints of the two distributings, when the ears are running on the roads. Also, the table of other parameters'examples is attached.
出处
《吉林大学学报(信息科学版)》
CAS
2007年第1期103-109,共7页
Journal of Jilin University(Information Science Edition)
基金
安徽省高等学校省级重点教学研究基金资助项目(2007jyxm085)
安徽省教育厅自然科学研究计划基金资助项目(2004kj265)
关键词
交通灯管理
数学模型
概率分布
仿真
traffic lights management
mathematics model
probability distribution
simulation