CN104376716B - Method for dynamically generating bus timetables on basis of Bayesian network models - Google Patents
Method for dynamically generating bus timetables on basis of Bayesian network models Download PDFInfo
- Publication number
- CN104376716B CN104376716B CN201410710551.7A CN201410710551A CN104376716B CN 104376716 B CN104376716 B CN 104376716B CN 201410710551 A CN201410710551 A CN 201410710551A CN 104376716 B CN104376716 B CN 104376716B
- Authority
- CN
- China
- Prior art keywords
- bus
- bayesian network
- timetable
- network model
- schedule
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
- 238000000034 method Methods 0.000 title claims abstract description 35
- 230000008859 change Effects 0.000 claims abstract description 15
- 230000007613 environmental effect Effects 0.000 claims description 11
- 206010039203 Road traffic accident Diseases 0.000 claims description 5
- 238000004458 analytical method Methods 0.000 claims description 5
- 230000001364 causal effect Effects 0.000 claims description 5
- 230000014759 maintenance of location Effects 0.000 claims description 5
- 230000007704 transition Effects 0.000 claims description 3
- 238000012216 screening Methods 0.000 abstract 1
- 230000008569 process Effects 0.000 description 7
- 238000004422 calculation algorithm Methods 0.000 description 5
- 238000006243 chemical reaction Methods 0.000 description 3
- 238000013461 design Methods 0.000 description 3
- 230000006870 function Effects 0.000 description 3
- 238000007726 management method Methods 0.000 description 3
- 238000012549 training Methods 0.000 description 3
- 238000007476 Maximum Likelihood Methods 0.000 description 2
- 238000004364 calculation method Methods 0.000 description 2
- 230000008878 coupling Effects 0.000 description 2
- 238000010168 coupling process Methods 0.000 description 2
- 238000005859 coupling reaction Methods 0.000 description 2
- 238000011161 development Methods 0.000 description 2
- 230000006872 improvement Effects 0.000 description 2
- 230000007246 mechanism Effects 0.000 description 2
- 238000011160 research Methods 0.000 description 2
- 238000010998 test method Methods 0.000 description 2
- 238000012360 testing method Methods 0.000 description 2
- 238000013528 artificial neural network Methods 0.000 description 1
- 230000008901 benefit Effects 0.000 description 1
- 230000001419 dependent effect Effects 0.000 description 1
- 238000009795 derivation Methods 0.000 description 1
- 238000010586 diagram Methods 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 238000011156 evaluation Methods 0.000 description 1
- 230000003993 interaction Effects 0.000 description 1
- 230000002452 interceptive effect Effects 0.000 description 1
- 238000012417 linear regression Methods 0.000 description 1
- 238000010801 machine learning Methods 0.000 description 1
- 239000011159 matrix material Substances 0.000 description 1
- 238000005457 optimization Methods 0.000 description 1
- 238000010223 real-time analysis Methods 0.000 description 1
- 230000004044 response Effects 0.000 description 1
- 238000010206 sensitivity analysis Methods 0.000 description 1
- 238000004088 simulation Methods 0.000 description 1
- 230000002123 temporal effect Effects 0.000 description 1
- 230000001131 transforming effect Effects 0.000 description 1
- 238000012795 verification Methods 0.000 description 1
Landscapes
- Management, Administration, Business Operations System, And Electronic Commerce (AREA)
- Traffic Control Systems (AREA)
Abstract
本发明涉及一种基于贝叶斯网络模型的公交时刻表动态生成方法,包括:筛选影响公交时刻表动态生成的微观和宏观因素;构建公交时刻表动态生成的二层微观和宏观贝叶斯网络模型,即:构建公交环境动态变化预报贝叶斯网络模型和公交时刻表动态生成贝叶斯网络模型;预测随机干扰下的各种线路运力运量发生概率以及它们失衡的原因;结合调度策略,围绕及时疏散乘客目标,生成可能的时刻表方案;从政府、企业和乘客角度出发,计算评估时刻表好坏的各种指标,评估它们的优劣。本发明能够实现根据公交环境变化动态调整时刻表的功能,为公交日常运营管理提供技术支撑。
The invention relates to a method for dynamically generating bus timetables based on a Bayesian network model, comprising: screening micro and macro factors that affect the dynamic generation of bus timetables; constructing a two-layer microcosmic and macroscopic Bayesian network for dynamically generating bus timetables Model, that is: constructing a Bayesian network model for forecasting dynamic changes in the bus environment and dynamically generating a Bayesian network model for bus schedules; predicting the probability of occurrence of various lines' capacity and volume under random interference and the reasons for their imbalance; combined with scheduling strategies, Generate possible timetable schemes around the goal of timely evacuation of passengers; from the perspective of the government, enterprises and passengers, calculate various indicators for evaluating the quality of timetables and evaluate their pros and cons. The invention can realize the function of dynamically adjusting the timetable according to the change of the bus environment, and provides technical support for the daily operation and management of the bus.
Description
技术领域technical field
本发明涉及公交信息化技术领域,具体地说是一种基于贝叶斯网络模型的公交时刻表动态生成方法。The invention relates to the technical field of public transport informationization, in particular to a method for dynamically generating a public transport schedule based on a Bayesian network model.
背景技术Background technique
公交时刻表编制是公交日常运营的核心任务之一,根据居民出行时空分布特征,合理组织安排各时段的发车频率及其类型,主要解决运力和运量的最大匹配问题。当现实中的随机因素干扰致使公交客流或行驶时间变化时,这引起公交运力和运量失衡,从而公交调度方案失效。因此,根据公交环境动态变化动态调整时刻表,极具有理论价值和现实意义。The compilation of bus timetable is one of the core tasks of the daily operation of public transport. According to the spatial and temporal distribution characteristics of residents’ travel, the frequency and type of departures in each time period are reasonably organized and arranged, and the problem of the maximum matching of transport capacity and traffic volume is mainly solved. When random factors in reality cause changes in bus passenger flow or travel time, this will cause an imbalance in bus transport capacity and volume, and thus the bus dispatching scheme will fail. Therefore, it is of great theoretical value and practical significance to dynamically adjust the timetable according to the dynamic changes of the bus environment.
直接决定公交时刻表失效的因素是上下行方向的运力和运量,它们受天气变化、交通拥堵、大型活动等外部环境影响,当检测交通事件时,评估其分别影响客流或行驶时间变化程度,进而分析时刻表的失效原因,据此动态调整时刻表。目前,众多国内外学者根据公交环境动态变化动态调整时刻表,主要研究思路有二:The factors that directly determine the failure of the bus timetable are the capacity and volume of the uplink and downlink, which are affected by external environments such as weather changes, traffic congestion, and large-scale events. When detecting traffic events, evaluate the degree to which they affect passenger flow or travel time. Then analyze the cause of failure of the timetable, and dynamically adjust the timetable accordingly. At present, many domestic and foreign scholars dynamically adjust the timetable according to the dynamic changes of the bus environment. There are two main research ideas:
一、预测客流或行驶时间变化,一方面,利用多元线性回归、结构方程等方法,定性定量深入探讨影响客流或行驶时间变化的众多因素之间关联性,并进行相关灵敏度分析;另一方面,利用时间序列法,将其视为一个黑匣子,直接揭示客流或行驶时间变化的演化趋势,为编制时刻表提供数据支撑。1. Predict changes in passenger flow or travel time. On the one hand, use methods such as multiple linear regression and structural equations to qualitatively and quantitatively explore the correlation among many factors that affect passenger flow or travel time changes, and conduct related sensitivity analysis; on the other hand, Using the time series method, treat it as a black box, directly reveal the evolution trend of passenger flow or travel time changes, and provide data support for the compilation of timetables.
二、编制时刻表,一方面,在上述工作基础上研究客流和行驶时间的统计规律,当检测交通事件时,构建时刻表编制模型,利用最优化理论生成时刻表;另一方面,利用神经网络等人工模拟技术,模拟调度人员的思维模式,根据环境变化,调整调整时刻表。2. Compile the timetable. On the one hand, on the basis of the above work, study the statistical laws of passenger flow and travel time. When detecting traffic events, build a timetable compilation model and use the optimization theory to generate the timetable; on the other hand, use the neural network Such as artificial simulation technology, simulating the thinking mode of dispatchers, and adjusting the schedule according to changes in the environment.
由上可知,现有研究办法无法解决随机干扰引起的公交时刻表动态变化连锁反应过程,应该从整体出发,揭示影响外部环境变化如何引起客流或行驶时间变化,进而影响时刻表动态调整过程如何发生,以及它们之间相互引发、干涉、转化和耦合等复杂关系,预测复杂交通环境变化情形下的公交时刻表生成及其发生概率。It can be seen from the above that the existing research methods cannot solve the chain reaction process of the dynamic change of the bus schedule caused by random interference. We should start from the whole and reveal how changes in the external environment cause changes in passenger flow or travel time, and then affect how the dynamic adjustment process of the schedule occurs. , and the complex relationships among them, such as triggering, interfering, transforming and coupling, to predict the generation and probability of bus schedules under complex traffic environment changes.
贝叶斯网络是一种刻画事物之间因果关系的概率图模型,非常适合对突发事件的发生及其引起的链式反应过程进行建模分析。基于此,本发明分析影响公交时刻表动态生成的运力和运量之间失衡原因,将外部环境因素视为输入,分析其如何影响客流或行驶时间变化,进而如何引起公交运力和运量之间失衡,根据现有运力配置,输出是时刻表最大匹配运量的结果,控制输入可以控制部分状态的变化,据此构建突发事件贝叶斯网络中的各外部环境条件节点输入客流或行驶时间运力运量计算时刻表决策节点输出的四层拓扑网络结构,实现预测复杂交通环境变化情形下的公交时刻表及其发生概率,为公交动态调度提供可靠的技术支撑。Bayesian network is a probabilistic graphical model that describes the causal relationship between things, which is very suitable for modeling and analyzing the occurrence of emergencies and the chain reaction process caused by them. Based on this, the present invention analyzes the causes of the imbalance between the transport capacity and traffic volume that affect the dynamic generation of bus timetables, regards external environmental factors as input, analyzes how it affects passenger flow or travel time changes, and then how to cause the imbalance between bus transport capacity and traffic volume. Unbalanced, according to the existing capacity configuration, the output is the result of the maximum matching capacity of the timetable, and the control input can control the change of some states. Based on this, the external environmental condition nodes in the emergency Bayesian network are constructed to input passenger flow or travel time The four-layer topological network structure output by the decision-making node of the timetable for capacity and volume calculation realizes the prediction of the bus timetable and its occurrence probability in the case of complex traffic environment changes, and provides reliable technical support for the dynamic bus dispatching.
发明内容Contents of the invention
本发明提供了一种基于贝叶斯网络模型的公交时刻表动态生成方法,在分析影响公交时刻表动态变化的各种影响因素基础上,结合实际的公交动态数据,刻画它们之间的因果关系,当根据智能公交调度平台检测外部环境变化时,推理各种复杂交通环境下的运力和运量失衡原因及其发生概率,据此计算发车频率及其调度类型,本发明主要用于根据公交外部环境变化动态生成时刻表,为公交日常运营管理提供技术支撑。The invention provides a dynamic generation method of bus timetable based on Bayesian network model, on the basis of analyzing various influencing factors affecting the dynamic change of bus timetable, combined with actual bus dynamic data, to describe the causal relationship between them , when detecting changes in the external environment based on the intelligent bus dispatching platform, infer the reasons for the unbalanced transport capacity and traffic volume under various complex traffic environments and the probability of occurrence, and calculate the departure frequency and its dispatching type accordingly. The timetable is dynamically generated in response to environmental changes, providing technical support for the daily operation and management of public transport.
本发明方案是通过以下技术方案实现的:The solution of the present invention is achieved through the following technical solutions:
本发明提供一种基于贝叶斯网络模型的公交时刻表动态生成方法,包括以下步骤:The invention provides a method for dynamically generating a bus timetable based on a Bayesian network model, comprising the following steps:
(1)采用定量和定性相结合的方法筛选影响公交时刻表动态生成的众多外部环境因素,包括交通事故引起行驶时间变化,进而引起运力不足或大型活动致使客流波动,进而引起运量不足;(1) Using a combination of quantitative and qualitative methods to screen out many external environmental factors that affect the dynamic generation of bus timetables, including traffic accidents that cause changes in travel time, which in turn cause insufficient transport capacity or large-scale events that cause passenger flow fluctuations, which in turn cause insufficient transport capacity;
(2)构建公交时刻表动态生成的上下两层贝叶斯网络模型,其中:上层模型刻画引起客流或行驶时间变化的外部环境随机干扰,是下层模型的输入条件,下层模型描述致使运力和运量失衡的外部环境随机干扰,为时刻表生成提供数据支撑;(2) Construct the upper and lower two-layer Bayesian network model for the dynamic generation of bus schedules, in which: the upper model describes the random disturbance of the external environment that causes changes in passenger flow or travel time, and is the input condition of the lower model, which describes the resulting transport capacity and traffic Random interference from the external environment with unbalanced quantity provides data support for schedule generation;
(3)当交通事件发生时,结合智能公交调度平台的实时运营数据,利用步骤(2)微宏观模型预测的各种线路运力运量发生概率以及失衡的原因,结合调度策略,围绕以最小成本及时疏散乘客为目标,生成多种时刻表方案;(3) When a traffic event occurs, combined with the real-time operation data of the intelligent bus dispatching platform, using the probability of occurrence of various line capacity and volume predicted by the micro-macro model in step (2) and the cause of the imbalance, combined with the dispatching strategy, the minimum cost Timely evacuation of passengers is the goal, and various timetable schemes are generated;
(4)计算步骤(3)中的每种时刻表方案的乘客等车时间、站点滞留情况、运营成本各项指标,评估其优劣。(4) Calculate the indicators of passenger waiting time, station retention, and operating costs for each timetable scheme in step (3), and evaluate its pros and cons.
作为一种改进,采用定量和定性相结合的方法,筛选影响公交时刻表动态生成的众多因素过程,包括:As an improvement, a combination of quantitative and qualitative methods is used to screen the process of many factors that affect the dynamic generation of bus schedules, including:
(1)从微观上,分析N个外部环境随机因素X=(X1,X2,...,XN)在时间t如何干扰客流波动pft(X)或行驶时间变化ptt(X),如:道路类型、路况、交通事故、大型活动、交通管制和天气变化等,进而影响时刻表所需的用车需求和可用车辆数;(1) From the microscopic point of view, analyze how N random factors of the external environment X=(X 1 , X 2 ,...,X N ) interfere with passenger flow fluctuation pf t (X) or travel time change pt t (X ), such as: road types, road conditions, traffic accidents, large-scale events, traffic control and weather changes, etc., which in turn affect the car demand and the number of available vehicles required for the timetable;
(2)从宏观上,揭示当前T时段时刻表生成的线路上行直接决定因素和线路下行直接影响因素当前T时段的上行用车需求下行用车需求上行可用车辆数和下行可用车辆数以及在下T+1时段内上行用车需求下行用车需求上行可用车辆数和下行可用车辆数 (2) From a macro perspective, reveal the direct determinants of the line uplink generated by the timetable of the current T period and line downlink direct influence factors Uplink car demand in the current T period downlink car demand Number of vehicles available for uplink and the number of vehicles available for downlink And the demand for uplink vehicles in the next T+1 period downlink car demand Number of vehicles available for uplink and the number of vehicles available for downlink
作为进一步改进,根据筛选出的影响公交时刻表生成的微观和宏观因素,构建公交时刻表动态生成的二层贝叶斯网络模型,包括:As a further improvement, according to the selected micro and macro factors that affect the generation of bus schedules, a two-layer Bayesian network model for the dynamic generation of bus schedules is constructed, including:
(1)节点抽象定义,(1) Node abstract definition,
在公交环境动态变化预报贝叶斯网络模型中,它的条件结点为N个外部环境随机因素X=(X1,X2,...,XN),包括道路类型、路况、交通事故、大型活动、交通管制和天气变化等;它的决策结点为时间t的客流波动或行驶时间变化Y={pft(X),ptt(X)}。In the Bayesian network model for forecasting dynamic changes in the public transport environment, its conditional nodes are N random factors of the external environment X=(X 1 , X 2 ,...,X N ), including road types, road conditions, traffic accidents , large-scale activities, traffic control and weather changes, etc.; its decision node is the passenger flow fluctuation or travel time change Y={pf t (X), pt t (X)} at time t.
在公交时刻表动态生成贝叶斯网络模型中,它的条件结点为线路上或下行方向在当前T时段和下一T+1时段内的用车需求,以及它们的可用车辆数,即
(2)结构学习,(2) Structural Learning,
利用条件独立性检验方法,分别对公交环境动态变化预报和公交时刻表动态生成贝叶斯网络模型的所有结点,若任意两个结点和之间相互依赖,存在有向边相连接,构建一个有向无环图,建立它们的贝叶斯网络结构图S。Using the conditional independence test method, all the nodes of the Bayesian network model are dynamically generated for the dynamic change forecast of the bus environment and the bus schedule. If any two nodes are dependent on each other and there are directed edges connected, construct A directed acyclic graph, build their Bayesian network structure graph S.
(3)参数学习,(3) Parameter learning,
利用最大似然估计方法,分别对公交环境动态变化预报和公交时刻表动态生成贝叶斯网络模型,在它们各自给定网络拓扑结构S和训练样本集D,利用先验知识,确定各自贝叶斯网络模型各结点处的条件概率密度为:Using the maximum likelihood estimation method, the Bayesian network model is dynamically generated for the dynamic change forecast of the bus environment and the bus schedule, respectively. Given the network topology S and the training sample set D, the prior knowledge is used to determine the respective Bayesian network models. The conditional probability density at each node of the Si network model is:
描述外部环境变化和客流或行驶时间波动之间概率因果关系Describe the probabilistic causal relationship between changes in the external environment and fluctuations in passenger flow or travel time
刻画外部环境随机干扰和线路上下行的发车频率之间状态转移关系Describe the state transition relationship between the random interference of the external environment and the frequency of the uplink and downlink departures of the line
作为一种优选,预测随机干扰下的各种线路运力运量发生概率以及它们失衡的原因,包括:As a preference, predict the probability of occurrence of various line capacity and volume under random interference and the reasons for their imbalance, including:
(1)对于某条线路来说,共有K个站点和M辆车,利用智能公交调度平台的实际数据,结合每i辆车的经纬度坐标,估计在时间t到达k站点的客流到达人数以及该车辆到达首末站的行驶时间 (1) For a certain line, there are K stations and M vehicles in total. Using the actual data of the intelligent bus dispatching platform, combined with the latitude and longitude coordinates of each i vehicle, it is estimated that the number of passengers arriving at station k at time t and the travel time of the vehicle to the first and last station
(2)当检测到交通事件时,确定N个外部环境随机因素X=(X1,X2,...,XN)的取值,利用团树传播算法,根据公交环境动态变化模型X→Y={pft(X),ptt(X)},预测它们的波动时间ptt(X)和变化客流pft(X)以及它们的发生概率;(2) When a traffic event is detected, determine the values of N external environment random factors X=(X 1 , X 2 ,..., X N ), use the group tree propagation algorithm, and according to the dynamic change model X of the bus environment →Y={pf t (X), pt t (X)}, predict their fluctuation time pt t (X) and change passenger flow pf t (X) and their probability of occurrence;
(3)在上述基础上,汇总线路上下行在某T时段的用车需求
作为另一种优先,结合调度策略,围绕及时疏散乘客目标,生成可能的时刻表方案,包括:As another priority, combined with scheduling strategies, a possible schedule scheme is generated around the goal of timely evacuation of passengers, including:
(1)采用均匀均衡发车策略,考虑单一调度模式,在满足公交车的能力约束c、拥挤程度γ∈[γmin,γmax]、政府发车间隔F基础上,确定发车频率范围和
(2)根据运力运量间失衡,利用团树传播算法,利用时刻表生成贝叶斯网络模型
作为进一步优先,从政府、企业和乘客角度出发,计算评估时刻表好坏的各种指标,评估它们的优劣,包括:As a further priority, from the perspective of the government, enterprises and passengers, calculate various indicators for evaluating the quality of timetables and evaluate their pros and cons, including:
(1)在时刻表方案基础上,考虑单位里程运营费用l,计算每种方案的总乘客等车时间
(2)从政府、企业和乘客角度出发,综合评价上述每个时刻表方案的优劣,为公交管理部门选择最佳时刻表方案提供决策支持。(2) From the perspective of the government, enterprises and passengers, comprehensively evaluate the pros and cons of each of the above timetable schemes, and provide decision support for the public transport management department to choose the best timetable scheme.
本发明由于采用了上述几种措施进行改进,利用贝叶斯网络刻画外部环境变化如何引起客流或行驶时间变化,进而影响公交时刻表的动态调整的过程,避免了现有方法无法解决突发事件引起的运力和运量失衡连锁反应过程,能够从原始样本数据中挖掘公交外部环境变化、客流或行驶时间波动、时刻表动态调整之间的耦合关系,从事前、事中和事后全过程多方位实时分析交通事件如何引起公交时刻表变化的原因及其发展趋势,为公交动态调度提供数据支撑。The present invention improves by adopting the above-mentioned several measures, uses Bayesian network to describe how changes in the external environment cause changes in passenger flow or travel time, and then affects the process of dynamic adjustment of bus timetables, avoiding the inability of existing methods to solve emergencies The chain reaction process of the unbalanced transport capacity and traffic volume caused by it can mine the coupling relationship between the external environment changes of public transport, the fluctuation of passenger flow or travel time, and the dynamic adjustment of timetable from the original sample data, and the whole process is multi-faceted before, during and after the event Real-time analysis of the reasons and development trends of how traffic events cause changes in bus schedules provides data support for dynamic bus scheduling.
附图说明Description of drawings
图1是本发明涉及的公交时刻表生成贝叶斯网络的结构示意图;Fig. 1 is the structural representation that the bus schedule that the present invention relates to generates Bayesian network;
图2是本发明实施的流程图。Figure 2 is a flowchart of the implementation of the present invention.
具体实施方式detailed description
下面结合本发明所提供的附图作进一步说明:Further description will be made below in conjunction with the accompanying drawings provided by the present invention:
如图1所示,本发明提供一种基于贝叶斯网络模型的公交时刻表动态生成方法,按照交通事件发生、发展和演化的过程,构建公交时刻表动态生成的二层微观和宏观贝叶斯网络模型,分析影响公交时刻表动态生成的运力和运量之间失衡原因,将外部环境因素视为输入,分析其如何影响客流或行驶时间变化,进而如何引起公交运力和运量之间失衡,输出是时刻表最大匹配运量的结果。控制输入可以控制部分状态的变化,据此构建突发事件贝叶斯网络中的各外部环境条件节点输入客流或行驶时间预测运力运量计算时刻表决策节点输出的四层拓扑网络结构,实现预测复杂交通环境变化情形下的公交时刻表及其发生概率,为公交动态调度提供可靠的技术支撑。As shown in Fig. 1, the present invention provides a kind of dynamic generation method of bus timetable based on Bayesian network model, according to the process of occurrence, development and evolution of traffic events, constructs the two-layer microcosmic and macro Bayeux of dynamic generation of bus timetable This network model analyzes the reasons for the imbalance between transport capacity and traffic volume that affect the dynamic generation of bus schedules, takes external environmental factors as input, and analyzes how they affect passenger flow or travel time changes, and then how to cause the imbalance between bus transport capacity and traffic volume , the output is the result of the maximum matching capacity of the timetable. The control input can control the change of some states. Based on this, the external environmental condition nodes in the emergency Bayesian network are constructed. The four-layer topology network structure of the output of the passenger flow or travel time prediction, the calculation of the timetable, and the output of the decision node of the emergency Bayesian network is realized. The bus schedule and its occurrence probability under complex traffic environment changes provide reliable technical support for bus dynamic scheduling.
如图2所示,本发明提供一种基于贝叶斯网络模型的公交时刻表动态生成方法,包括机理分析、模型设计、模型验证及模型分析运用等四个步骤,具体实施方式如下。As shown in Figure 2, the present invention provides a method for dynamically generating a bus timetable based on a Bayesian network model, including four steps of mechanism analysis, model design, model verification, and model analysis and application. The specific implementation methods are as follows.
步骤1:机理分析,采用定量和定性相结合方法筛选影响公交时刻表动态生成的众多外部环境因素,建立影响公交时刻表失效的因素库。Step 1: Mechanism analysis, using a combination of quantitative and qualitative methods to screen many external environmental factors that affect the dynamic generation of bus timetables, and establish a library of factors that affect the failure of bus timetables.
步骤1.1:从微观上,分析N个外部环境随机因素X=(X1,X2,...,XN)在时间t如何干扰客流波动pft(X)或行驶时间变化ptt(X),如:道路类型、路况、交通事故、大型活动、交通管制和天气变化等,进而影响时刻表所需的用车需求和可用车辆数;Step 1.1: Microscopically, analyze how N external environmental random factors X=(X 1 , X 2 ,...,X N ) interfere with passenger flow fluctuation pf t (X) or travel time change pt t (X ), such as: road types, road conditions, traffic accidents, large-scale events, traffic control and weather changes, etc., which in turn affect the car demand and the number of available vehicles required for the timetable;
步骤1.1.1:邀请专家座谈,分别选择客流波动或行驶时间变化的所有n个可能影响因素,前者涉及季节、节假日、时段、大型活动、交通管制、车辆故障、天气等,后者蕴含道路类型、交通流、交通拥堵、站点类型、客流和天气等。Step 1.1.1: Invite experts to discuss and select all n possible influencing factors of passenger flow fluctuations or travel time changes. The former involves seasons, holidays, time periods, large-scale events, traffic control, vehicle failures, weather, etc., and the latter contains road types , traffic flow, traffic congestion, station type, passenger flow and weather, etc.
步骤1.1.2:结合智能公交调度平台,动态获取某j个外部环境影响因素在任意时刻i的数值aij,以及它们相应的客流或行驶时间yi,将总共m条数据记录作为样本D,形成条件矩阵A=(aij)mn和决策向量Y=(yi)m。Step 1.1.2: Combined with the intelligent bus dispatching platform, dynamically obtain the value a ij of some j external environmental factors at any time i, and their corresponding passenger flow or travel time y i , and take a total of m data records as sample D, A condition matrix A=(a ij ) mn and a decision vector Y=(y i ) m are formed.
步骤1.1.3:根据AB=Y,基于最小二乘法,计算B=(b1,b2,...,bn)=(A′A)-1(A′Y),对若bj大于人工阀值σ,该因素决定客流或行驶时间,获取n个影响因素变量。Step 1.1.3: According to AB=Y, based on the least squares method, calculate B=(b 1 , b 2 ,..., b n )=(A'A) -1 (A'Y), for If b j is greater than the artificial threshold σ, this factor determines passenger flow or travel time, and n influencing factor variables are obtained.
步骤1.2:从宏观上,揭示当前T时段时刻表生成的线路上行直接决定因素和线路下行直接影响因素当前T时段的上行用车需求下行用车需求上行可用车辆数和下行可用车辆数以及在下T+1时段内上行用车需求下行用车需求上行可用车辆数和下行可用车辆数 Step 1.2: From a macro perspective, reveal the direct determinants of the uplink line generated by the timetable of the current T period and line downlink direct influence factors Uplink car demand in the current T period downlink car demand Number of vehicles available for uplink and the number of vehicles available for downlink And the demand for uplink vehicles in the next T+1 period downlink car demand Number of vehicles available for uplink and the number of vehicles available for downlink
步骤1.2.1:根据线路的运营时间范围,将其划分为N个时段,分别计算上下行方向在当前T时段和下一T+1时段内的用车需求以及它们的可用车辆数
步骤1.2.2:结合智能公交调度平台,对于某条线路来说,共有K个站点和M辆车,结合每i辆车的经纬度坐标,估计在时间t到达k站点的客流到达人数以及该车辆到达首末站的行驶时间 Step 1.2.2: Combined with the intelligent bus dispatching platform, for a certain line, there are K stations and M vehicles in total, combined with the latitude and longitude coordinates of each i vehicle, estimate the number of passengers arriving at station k at time t and the travel time of the vehicle to the first and last station
步骤1.2.3:汇总线路在T时段的用车需求
步骤二:模型设计,构建公交时刻表动态生成的上下二层微观和宏观贝叶斯网络模型,包括节点变量定义、确定各条件和决策变量的取值范围及先验概率分布、结构学习和参数学习四部分,其中上层模型刻画引起客流或行驶时间变化的外部环境随机干扰,是下层模型的输入条件,下层模型描述致使运力和运量失衡的外部环境随机干扰,为时刻表生成提供数据支撑;。Step 2: Model design, constructing the upper and lower two-layer microcosmic and macroscopic Bayesian network models dynamically generated by the bus schedule, including the definition of node variables, determining the value range of each condition and decision variable, prior probability distribution, structure learning and parameters Study four parts, in which the upper model describes the random disturbance of the external environment that causes changes in passenger flow or travel time, which is the input condition of the lower model. The lower model describes the random disturbance of the external environment that causes the imbalance of transportation capacity and volume, and provides data support for the generation of timetables; .
步骤2.1:变量节点定义,Step 2.1: Variable node definition,
在公交环境动态变化预报贝叶斯网络模型中,共有n+2个节点变量X={X1,X2,...,Xn}∪Y={pft(X),ptt(X)},分为n个条件和2个决策变量节点。前者是公交外部环境随机干扰输入要素,后者是客流或行驶时间输出结果,关注公交外部环境随机干扰输入要素之间相互影响,以及它们的变化如何引起客流或行驶时间变化。In the Bayesian network model for forecasting dynamic changes in the public transport environment, there are n+2 node variables X={X 1 , X 2 ,...,X n }∪Y={pf t (X), pt t (X )}, divided into n conditions and 2 decision variable nodes. The former is the input element of the random disturbance of the external environment of the bus, and the latter is the output result of the passenger flow or travel time. It focuses on the interaction between the input elements of the random disturbance of the external environment of the bus and how their changes cause changes in the passenger flow or travel time.
在公交时刻表动态生成贝叶斯网络模型中,它的条件结点为线路上或下行方向在当前T时段和下一T+1时段内的用车需求,以及它们的可用车辆数,即
步骤2.2:分别确定微观和宏观模型的上述条件和决策变量节点的取值范围及它们之间先验概率分布。Step 2.2: Determine the value ranges of the above conditions and decision variable nodes of the microcosmic and macroscopic models and the prior probability distribution between them.
步骤2.2.1:对微(宏)观模型的任意结点(S∪Z)的取值范围将其离散化K个特征取值状态空间为
步骤2.2.2:统计微(宏)观模型的任意结点(S∪Z)取值状态的概率
步骤2.3:分别构建微观和宏观贝叶斯网络各节点之间拓扑结构。Step 2.3: Construct the topological structure between each node of the micro- and macro-Bayesian network respectively.
步骤2.3.1:采用K2算法,在训练集上进行无监督的机器学习,分别得到微(宏)观模型的初始网络结构。Step 2.3.1: Use the K2 algorithm to perform unsupervised machine learning on the training set to obtain the initial network structure of the micro (macro) model.
步骤2.3.2:利用专家的先验知识,基于条件独立性检验方法,若微(宏)观模型的任意两个结点(S∪Z)和(S∪Z)之间相互依赖,存在有向边相连接对微(宏)模型的网络结构进行微调。Step 2.3.2: Using the prior knowledge of experts, based on the conditional independence test method, if any two nodes of the micro (macro) model (S∪Z) and (S∪Z) depend on each other, and there are directed edges to connect Fine-tune the network structure of the micro (macro) model.
步骤2.3.3:检测获得调整后的微(宏)观模型网络结构是否符合要求,若满足要求,输出公交动态环境预报(时刻表生成)的贝叶斯网络结构图S;否则返回步骤2.3.2,继续微(宏)观模型的网络结构。Step 2.3.3: Detect whether the adjusted micro (macro) model network structure meets the requirements, if the requirements are met, output the Bayesian network structure diagram S of the bus dynamic environment forecast (timetable generation); otherwise return to step 2.3. 2. Continue the network structure of the micro (macro) model.
步骤2.4:在上述网络结构基础上,利用最大似然估计方法,估计微观和宏观模型中各结点之间条件概率分布表。Step 2.4: Based on the above network structure, use the maximum likelihood estimation method to estimate the conditional probability distribution table between the nodes in the micro and macro models.
步骤2.4.1:对微宏观模型的任意结点(S∪Z),将先验分布和似然函数相结合,估计参数 Step 2.4.1: For any node of the micro-macro model (S∪Z), combining the prior distribution and the likelihood function to estimate the parameters
步骤2.4.2:假设θ是Dirichlet函数的随机分布,令θ的似然函数为
步骤2.4.3:根据上述公式推导过程,可计算微观和宏观模型中各结点之间条件概率分布表,即公交外部环境随机干扰要素和客流或行驶时间波动之间条件概率,进而影响运力和运量波动(时刻表动态调整)之间条件概率。Step 2.4.3: According to the derivation process of the above formula, the conditional probability distribution table between the nodes in the micro and macro models can be calculated, that is, the conditional probability between the random disturbance factors in the external environment of the bus and the passenger flow or travel time fluctuations, and then affect the transport capacity and Conditional probability between traffic fluctuations (schedule dynamic adjustment).
描述外部环境变化和客流或行驶时间波动之间概率因果关系:Describe the probabilistic causal relationship between changes in the external environment and fluctuations in passenger flow or travel time:
刻画外部环境随机干扰和线路上下行的发车频率之间状态转移关系:Describe the state transition relationship between the random interference of the external environment and the uplink and downlink departure frequencies of the line:
步骤三:将部分训练集的作为测试样本,检验上微观和宏观模型的精度,若模型结果达不到预期目标,返回步骤二。Step 3: Use part of the training set as a test sample to test the accuracy of the micro and macro models. If the model results do not meet the expected goals, return to step 2.
步骤四:模型分析运用,推理预测各种复杂交通环境的公交时刻表动态生成过程。Step 4: Model analysis and application, reasoning and prediction of the dynamic generation process of bus schedules in various complex traffic environments.
步骤4.1:结合智能公交调度平台,当公交外部环境变化,动态监测各个影响因素的实测值x=(x1,x2,...,xn),对计算其特征状态(如果xi在和之间),确定网络模型的当前所有节点状态 Step 4.1: Combined with the intelligent bus dispatching platform, when the external environment of the bus changes, the measured value x=(x 1 , x 2 ,..., x n ) of each influencing factor is dynamically monitored. Calculate its characteristic state (if x i is in and between), determine the current state of all nodes of the network model
步骤4.2:利用团树传播算法,根据微观模型X→Y={pft(X),ptt(X)},对于某条线路的K个站点和M辆车来说,结合每i辆车的经纬度坐标,估计在时间t到达k站点的客流到达人数以及该车辆到达首末站的行驶时间 Step 4.2: Using the group tree propagation algorithm, according to the micro model X→Y={pf t (X), pt t (X)}, for K stations and M vehicles of a certain line, combine each i vehicle The latitude and longitude coordinates of , estimate the number of passengers arriving at station k at time t and the travel time of the vehicle to the first and last station
步骤4.3:在上述基础上,汇总线路上下行在某T时段的用车需求
步骤4.4:采用均匀均衡发车策略,考虑单一调度模式,在满足公交车的能力约束c、拥挤程度γ∈[γmin,γmax]、政府发车间隔F基础上,初步确定发车频率范围和以及其概率,利用团树传播算法,根据
步骤4.5:在时刻表方案基础上,考虑单位里程运营费用l,计算每种方案的总乘客等车时间
以上列举的仅是本发明的具体实施例。显然,本发明不限于以上实施例,还可以有许多变形,如:本发明改变贝叶斯网络的结构设计和参数学习方法,可拓展影响客流或行驶时间的影响因素,如:道路类型等,运用不同的调度策略和评估方法。本领域的普通技术人员能从本发明公开的内容直接导出或联想到的所有变形,均应认为是本发明的保护范围。What are listed above are only specific embodiments of the present invention. Obviously, the present invention is not limited to the above embodiments, and many variations are also possible, such as: the present invention changes the structure design and parameter learning method of the Bayesian network, and can expand the influencing factors affecting passenger flow or travel time, such as: road type, etc. Use different scheduling strategies and evaluation methods. All deformations that can be directly derived or associated by those skilled in the art from the content disclosed in the present invention should be considered as the protection scope of the present invention.
Claims (6)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410710551.7A CN104376716B (en) | 2014-11-28 | 2014-11-28 | Method for dynamically generating bus timetables on basis of Bayesian network models |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410710551.7A CN104376716B (en) | 2014-11-28 | 2014-11-28 | Method for dynamically generating bus timetables on basis of Bayesian network models |
Publications (2)
Publication Number | Publication Date |
---|---|
CN104376716A CN104376716A (en) | 2015-02-25 |
CN104376716B true CN104376716B (en) | 2017-01-11 |
Family
ID=52555600
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201410710551.7A Active CN104376716B (en) | 2014-11-28 | 2014-11-28 | Method for dynamically generating bus timetables on basis of Bayesian network models |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104376716B (en) |
Families Citing this family (15)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104866925B (en) * | 2015-05-27 | 2018-04-20 | 上海工程技术大学 | A kind of time-table optimization method based on ATS adjustment functions |
CN105654199A (en) * | 2015-12-30 | 2016-06-08 | 山东大学 | Bus line passenger flow prediction method |
CN105808877B (en) * | 2016-03-21 | 2019-03-19 | 南通大学 | A kind of public transport network distribution method based on website accumulative capacity |
CN106448233B (en) * | 2016-08-19 | 2017-12-05 | 大连理工大学 | Public bus network timetable cooperative optimization method based on big data |
CN107403254B (en) * | 2017-06-29 | 2022-03-22 | 浩鲸云计算科技股份有限公司 | Transportation capacity arrangement method based on traffic node passenger flow prediction |
CN107622300B (en) * | 2017-08-09 | 2021-07-27 | 北京光年无限科技有限公司 | Cognitive decision method and system of multi-modal virtual robot |
CN108109061A (en) * | 2018-02-08 | 2018-06-01 | 上海业创信息科技有限公司 | Online vehicle dispatch system and method |
CN108538072B (en) * | 2018-04-17 | 2020-06-26 | 重庆交通开投科技发展有限公司 | Method and device for determining departure strategy |
CN108806249B (en) * | 2018-06-07 | 2021-06-11 | 上海市城市建设设计研究总院(集团)有限公司 | Passenger trip optimization method based on bus APP software |
CN109584600B (en) * | 2018-12-21 | 2021-08-03 | 南通大学 | An automated control method for schedule reliability applied to driverless buses |
EP3921787A1 (en) * | 2019-02-07 | 2021-12-15 | Volvo Truck Corporation | Method and system for operating a fleet of vehicles |
CN109752019A (en) * | 2019-02-26 | 2019-05-14 | 西安工程大学 | Optimal traffic path planning method based on Bayesian network |
CN112862398B (en) * | 2021-02-08 | 2024-01-26 | 北京顺达同行科技有限公司 | Logistics distribution adjustment method and device and computer readable storage medium |
CN113077641B (en) * | 2021-03-24 | 2022-06-14 | 中南大学 | A decision-mapping method, device and storage medium for bus in-transit control |
CN116993131B (en) * | 2023-09-27 | 2024-01-02 | 深圳市海成智联科技有限公司 | Optimization method and system based on public transport line management |
Family Cites Families (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
ATE221237T1 (en) * | 1997-12-12 | 2002-08-15 | Precimation Ag | METHOD AND DEVICE FOR AUTOMATICALLY DISPLAYING THE EXPECTED TIME REMAINING UNTIL THE ARRIVAL OF THE NEXT VEHICLE AT STOPS OF A MEANS OF TRANSPORT |
CN102157075B (en) * | 2011-03-15 | 2013-07-03 | 上海交通大学 | Method for predicting bus arrivals |
CN104157132B (en) * | 2014-08-18 | 2016-08-17 | 东南大学 | A kind of dynamic optimization method of self-adapting type bus departure timetable |
-
2014
- 2014-11-28 CN CN201410710551.7A patent/CN104376716B/en active Active
Also Published As
Publication number | Publication date |
---|---|
CN104376716A (en) | 2015-02-25 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104376716B (en) | Method for dynamically generating bus timetables on basis of Bayesian network models | |
CN104298881B (en) | A kind of public transport environment dynamic change forecasting procedure based on Bayesian network model | |
CN111376954B (en) | Train autonomous scheduling method and system | |
CN112150207B (en) | Online ride-hailing order demand prediction method based on spatiotemporal contextual attention network | |
CN110942086B (en) | Data prediction optimization method, device, equipment and readable storage medium | |
CN102044149B (en) | City bus operation coordinating method and device based on time variant passenger flows | |
WO2021174971A1 (en) | Water environment risk prediction and early warning method | |
Huang et al. | Physics-informed deep learning for traffic state estimation: Illustrations with LWR and CTM models | |
Liu et al. | Stochastic user equilibrium based spatial-temporal distribution prediction of electric vehicle charging load | |
CN104008427A (en) | Central air conditioner cooling load prediction method based on BP neural network | |
CN103279802B (en) | Commuter's day activity-travel time prediction method | |
WO2023207540A1 (en) | Emergency police scheduling method and system based on digital twinning | |
CN105243393A (en) | Characteristic-based fault forecasting method for complex electromechanical system | |
CN113844507B (en) | A method for constructing a train simulation operation system based on digital twins | |
CN106371422A (en) | Method for predicting key infrastructure fault propagation | |
CN105469317A (en) | Electric power communication network reliability analysis method | |
CN116443080B (en) | Rail transit driving dispatching command method, system, equipment and medium | |
CN111967712A (en) | Traffic risk prediction method based on complex network theory | |
CN104050506A (en) | Aircraft conflict detection method based on Spiking neural network | |
CN112613630B (en) | A short-term traffic demand forecasting method integrating multi-scale spatiotemporal statistical information | |
Wang et al. | An Ensemble Learning Model for Short‐Term Passenger Flow Prediction | |
Liu et al. | A refinement and abstraction method of the SPZN formal model for intelligent networked vehicles systems. | |
Sun et al. | TRANSIT-GYM: A simulation and evaluation engine for analysis of bus transit systems | |
CN103136446A (en) | Back propagation (BP) neural network landslide forecasting method based on optimized input layer | |
Othman et al. | Enhancing realism in simulation through deep learning |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
TR01 | Transfer of patent right |
Effective date of registration: 20190926 Address after: 200135 Shanghai City, Pudong New Area Chinese (Shanghai) free trade zone fanchun Road No. 400 Building 1 layer 3 Patentee after: Shanghai set up Mdt InfoTech Ltd Address before: 226000 Jiangsu Province, Nantong City Chongchuan District sik Road No. 9 Patentee before: Nantong University |
|
TR01 | Transfer of patent right | ||
TR01 | Transfer of patent right | ||
TR01 | Transfer of patent right |
Effective date of registration: 20191115 Address after: Room 302, No. 8319, Yanshan Road, Bengbu City, Anhui Province Patentee after: Bengbu Lichao Information Technology Co., Ltd Address before: 200135 Shanghai City, Pudong New Area Chinese (Shanghai) free trade zone fanchun Road No. 400 Building 1 layer 3 Patentee before: Shanghai set up Mdt InfoTech Ltd |
|
TR01 | Transfer of patent right | ||
TR01 | Transfer of patent right |
Effective date of registration: 20191219 Address after: 311201 Building 1, Purple Orange International Innovation Center, No.39, Jincheng Road, Chengxiang street, Xiaoshan District, Hangzhou City, Zhejiang Province Patentee after: Datang communication (Zhejiang) Technology Co., Ltd Address before: Room 302, No. 8319, Yanshan Road, Bengbu City, Anhui Province Patentee before: Bengbu Lichao Information Technology Co., Ltd |
|
CP03 | Change of name, title or address | ||
CP03 | Change of name, title or address |
Address after: 311200 room 330, 3F, Yuesheng International Center, ningwei street, Xiaoshan District, Hangzhou City, Zhejiang Province Patentee after: Xintang Xintong (Zhejiang) Technology Co.,Ltd. Address before: 311201 Building 1, Zicheng International Innovation Center, 39 Jincheng Road, Chengxiang street, Xiaoshan District, Hangzhou City, Zhejiang Province Patentee before: Datang communication (Zhejiang) Technology Co.,Ltd. |