基于Django的城市通勤出发时间选择实验平台设计

2020-06-19 08:45:58李文韬谢小红孙晓燕
软件导刊 2020年4期

李文韬 谢小红 孙晓燕

摘要:随着交通工具的增加,交通拥堵成为最典型的城市病,人們通勤时间逐渐加长。为解决这一问题,采用基于Web框架的Django开发了一个城市通勤出发时间选择实验平台,目的是更方便地开展城市通勤出发时间实验。该平台具有较强的通用性,通过微调法修改实验参数后可实施路径选择和收费管理等条件下的出行选择实验。不仅可在传统PC端实现,还可利用Pad或手机等移动设备,使用微信小程序开展实验。代码简洁,实验界面清楚,管理账户能对整个实验进行操控。

关键词:Django;城市交通;通勤出发时间选择;微信小程序

DOI: 10. 11907/rjdk.191842

开放科学(资源服务)标识码(OSID):

中图分类号:TP319

文献标识码:A

文章编号:1672-7800(2020)004-0135-04

The Experimental Platform Design of Urban Commuter Departure Time

Based on Django

LI Wen-tao. XIE Xiao-hong, SUN Xiao-yan

( College of Computer and Information Engineering , Cuangxi Teacher Education Univer.sity , lVanning 530299 , Ch.ina )Abstract: With the increase of transportation. traffic congestion has become the most typical urban disease, and people's commutingtirue has gradually lengthened. In order to solve this prohlem better. this paper develops a city commute departure time selection experi-ment based on Django based on Weh fraiuework. The purpose of developing this platform is to make it easier to carry out the laboratorytest of urban commuting departure time. At the same time, the platform has strong versatility. After the experimental parameters aremodif'ied by the fine-tuning method. the travel selection experiment under the conditions of path selection and charge management isimplemented. The most significant advantage of the platform we developed is that it not only hreaks the traditional PC-side implementa-tion. but also uses the WeChat applet to conduct experiments using mobile devices such as Pad or mobile phones. And the code is sim-ple, the experimental interf'ace is clear. and the management account can control the entire experiment.Key Words : Django ; city traffic ; departure-time choice of commuters ; Wechat program

O 引言

随着我国城市化进程的加快,城市不断延伸,“职住分离”现象越来越普遍,人们通勤时间随之变得越来越长。2017年的《城市出行半径大数据报告》显示…,在“北上广深”4个城市中,北京市工作日平均出行半径为9.3km,上班族(也称为通勤者)通勤时间压力居4城之首。通勤时间对上班族而言就是“金钱”,花在路上的时间越长,无形中就缩短了休息或娱乐时间。

大量研究显示,通勤者更倾向于通过改变出发时间应对交通拥堵。交通系统中出行者的选择行为决定了系统复杂度,理解通勤者行为选择是研究交通拥堵问题的关键。实验室实验具有良好的可控性,能够有效揭示交通系统中各种机制以及机制与现象之间的因果关系[2]。因此,大量实验研究路径选择行为,目的是验证用户个体的有限理性行为[3],验证交通理论中的悖论[4-5]以及调查各种外在因素的影响,例如信息反馈[6]和不确定的环境[7-8]等。……

登录APP查看全文