CN111125862B - Following model emission measuring and calculating method based on genetic algorithm and specific power - Google Patents
Following model emission measuring and calculating method based on genetic algorithm and specific power Download PDFInfo
- Publication number
- CN111125862B CN111125862B CN201910925530.XA CN201910925530A CN111125862B CN 111125862 B CN111125862 B CN 111125862B CN 201910925530 A CN201910925530 A CN 201910925530A CN 111125862 B CN111125862 B CN 111125862B
- Authority
- CN
- China
- Prior art keywords
- following
- model
- vehicle
- speed
- vsp
- 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
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06N—COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
- G06N3/00—Computing arrangements based on biological models
- G06N3/12—Computing arrangements based on biological models using genetic models
- G06N3/126—Evolutionary algorithms, e.g. genetic algorithms or genetic programming
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02T—CLIMATE CHANGE MITIGATION TECHNOLOGIES RELATED TO TRANSPORTATION
- Y02T10/00—Road transport of goods or passengers
- Y02T10/10—Internal combustion engine [ICE] based vehicles
- Y02T10/40—Engine management systems
Landscapes
- Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- Health & Medical Sciences (AREA)
- Life Sciences & Earth Sciences (AREA)
- Biophysics (AREA)
- Bioinformatics & Cheminformatics (AREA)
- Bioinformatics & Computational Biology (AREA)
- Evolutionary Biology (AREA)
- Theoretical Computer Science (AREA)
- Computational Linguistics (AREA)
- Molecular Biology (AREA)
- Biomedical Technology (AREA)
- Genetics & Genomics (AREA)
- Data Mining & Analysis (AREA)
- Evolutionary Computation (AREA)
- General Health & Medical Sciences (AREA)
- Artificial Intelligence (AREA)
- Computing Systems (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Mathematical Physics (AREA)
- Software Systems (AREA)
- Physiology (AREA)
- Management, Administration, Business Operations System, And Electronic Commerce (AREA)
Abstract
Description
技术领域Technical field
本发明涉及交通环境技术领域,特别涉及一种基于遗传算法和比功率的跟驰模型排放测算方法。The invention relates to the technical field of traffic environment, and in particular to a car-following model emission measurement method based on genetic algorithm and specific power.
背景技术Background technique
将微观交通仿真与排放模型结合,分析交通管理策略对机动车排放的影响,已经成为交通环境领域的一个研究热点。车辆跟驰模型,用于刻画跟驰后车不同状态下的瞬时速度与加速度,但目前在仿真中,由于跟驰模型刻画的跟驰行为太过激进,常常无法用于跟驰后车排放测算。而众多学者在对跟驰模型优化的研究中,尝试从模型参数调整入手,从而得到一个满意的结果。例如在耿中波对Wiedemann74和Fritzsche跟驰模型的优化研究中,首先对模型参数进行敏感性分析,其次对敏感性参数设置其阈值范围和参数取值步长,最后对参数采取两两交叉的方式进行取值,最终确定399种参数组合,这也是目前对跟驰模型参数优化最常用的方法。Combining microscopic traffic simulation with emission models to analyze the impact of traffic management strategies on motor vehicle emissions has become a research hotspot in the field of transportation environment. The vehicle following model is used to describe the instantaneous speed and acceleration of the vehicle following the vehicle under different conditions. However, in current simulations, because the following behavior described by the vehicle following model is too radical, it often cannot be used to calculate the emissions of the vehicle following the vehicle. . In their research on the optimization of car-following models, many scholars try to adjust the model parameters to obtain a satisfactory result. For example, in Geng Zhongbo's optimization research on the Wiedemann74 and Fritzsche car-following models, he first conducted a sensitivity analysis on the model parameters, then set the threshold range and parameter value step size for the sensitivity parameters, and finally conducted a cross-over of the parameters. value, and finally determined 399 parameter combinations, which is currently the most commonly used method for optimizing the parameters of the car-following model.
上述研究方法虽然可以对模型仿真效果进行优化,但存在以下缺点:Although the above research methods can optimize the model simulation effect, they have the following shortcomings:
(1)、在跟驰模型中,可以优化的参数众多,仅从参数敏感性分析提取关键参数进行优化不足以保证模型参数优化的全面性;(1) In the car-following model, there are many parameters that can be optimized. Simply extracting key parameters for optimization from parameter sensitivity analysis is not enough to ensure the comprehensiveness of model parameter optimization;
(2)、在对跟驰模型参数进行优化时,必须要确定的是模型的参数阈值范围和取值步长,这关系到最终模型参数组合;例如,如果对Wiedeman74跟驰模型中的11个参数进行优化,每个参数通过设置阈值和步长得到10个组合,那么在对这个11个参数进行配对验证时就一共有1011种参数组合,由于计算量过大,即使是高性能的计算机也无法在短时间内可以计算出结果;(2) When optimizing the parameters of the car-following model, what must be determined is the parameter threshold range and value step of the model, which is related to the final model parameter combination; for example, if 11 of the Wiedeman74 car-following models are optimized The parameters are optimized, and 10 combinations are obtained for each parameter by setting the threshold and step size. Then when the 11 parameters are paired and verified, there are a total of 10 11 parameter combinations. Due to the excessive calculation amount, even a high-performance computer It is also impossible to calculate the results in a short time;
(3)、在对跟驰模型优化用于排放测算的研究中,针对不同的跟驰模型往往需要进行多次敏感性分析,方可确定优化参数,降低了工作效率。(3) In the research on the optimization of car-following models for emission measurement, multiple sensitivity analyzes are often required for different car-following models to determine the optimization parameters, which reduces work efficiency.
发明内容Contents of the invention
本发明实施例提供了一种基于遗传算法和比功率的跟驰模型排放测算方法,用以解决现有技术中存在的问题。The embodiment of the present invention provides a car-following model emission measurement method based on genetic algorithm and specific power to solve the problems existing in the existing technology.
一种基于遗传算法和比功率的跟驰模型排放测算方法,包括:A car-following model emission measurement method based on genetic algorithm and specific power, including:
S1、获取实测跟驰前车的逐秒速度和加速度数据,并对数据进行检查、清洗,确保获取数据的有效性;S1. Obtain the measured second-by-second speed and acceleration data of the car ahead, and check and clean the data to ensure the validity of the data obtained;
S2、编程跟驰模型,根据实测跟驰前车的逐秒速度和加速度数据,仿真跟驰后车的逐秒速度和加速度数据,对比仿真跟驰后车和实测跟驰前车的机动车比功率VSP,作为排放评价指标,并计算仿真和实测均方误差MSE;S2. Program the car-following model. Based on the measured second-by-second speed and acceleration data of the car following the car ahead, simulate the second-by-second speed and acceleration data of the car following the car behind. Compare the motor vehicle ratio between the simulated car following the car and the measured vehicle ratio of the car following the car ahead. Power VSP is used as an emission evaluation index, and the simulated and measured mean square error MSE is calculated;
S3、利用遗传算法对跟驰模型参数进行优化,得到模型最优参数解;S3. Use the genetic algorithm to optimize the parameters of the car-following model and obtain the optimal parameter solution of the model;
S4、基于车辆速度、加速度和VSP模型效果评价:利用所述S3中得到模型最优参数解,代入所述S2中,获取参数优化后的时间-速度、时间-加速度轨迹图和VSP分布图;S4. Evaluation of model effects based on vehicle speed, acceleration and VSP: Use the optimal parameter solution of the model obtained in S3, substitute it into S2, and obtain the time-speed, time-acceleration trajectory diagram and VSP distribution diagram after parameter optimization;
S5、基于速度-VSP排放模型效果评价,计算实际车辆排放量、参数优化前后跟驰模型车辆排放量,进行对比分析验证。S5. Based on the speed-VSP emission model effect evaluation, calculate the actual vehicle emissions and the vehicle emissions of the car-following model before and after parameter optimization, and perform comparative analysis and verification.
优选地,在所述S2中,所述根据实测跟驰前车的逐秒速度和加速度数据,仿真跟驰后车的逐秒速度和加速度数据包括:Preferably, in S2, the second-by-second speed and acceleration data of the simulated following vehicle based on the measured second-by-second speed and acceleration data of the following vehicle include:
S21、首先判断当前时刻跟驰后车处于哪种跟驰状态;S21. First determine which following state the car behind is in at the current moment;
S22、然后根据各个跟驰状态不同的加速度计算方式,确定跟驰后车的仿真加速度,从而确定跟驰后车下一秒的仿真速度;S22. Then determine the simulated acceleration of the car following the car based on the different acceleration calculation methods in each following state, thereby determining the simulated speed of the car following the car in the next second;
S23、然后根据跟驰后车的仿真速度、仿真加速度和实测跟驰前车的速度、加速度,循环仿真后一秒跟驰后车的速度、加速度。S23. Then, based on the simulated speed and simulated acceleration of the following car and the measured speed and acceleration of the following car, cycle the speed and acceleration of the following car one second after the simulation.
优选地,在所述S2中,Preferably, in said S2,
所述机动车比功率VSP的计算公式为:The calculation formula of the motor vehicle specific power VSP is:
VSP=v(1.1a+0.132)+0.000302v3 VSP=v(1.1a+0.132)+0.000302v 3
其中,v为速度,a为加速度;Among them, v is the velocity and a is the acceleration;
所述仿真和实测均方误差MSE的计算公式为:The calculation formula of the simulated and measured mean square error MSE is:
其中:Si为第i秒仿真VSP;Ti为第i秒实测VSP。Among them: S i is the simulated VSP at the i-th second; T i is the measured VSP at the i-th second.
优选地,在所述S3中,所述利用遗传算法对跟驰模型参数进行优化包括:Preferably, in S3, using a genetic algorithm to optimize the parameters of the following model includes:
S31、参数选择和阈值设定:选定在跟驰模型中需要优化的参数和取值范围;S31. Parameter selection and threshold setting: Select the parameters and value ranges that need to be optimized in the car-following model;
S32、种群二进制编码:将所优化的参数值转换为二进制编码;S32. Population binary coding: convert the optimized parameter values into binary coding;
S33、确定初始种群的数量:所选择的优化参数在参数范围内随机组成的个体数目;S33. Determine the number of initial populations: the number of individuals randomly composed within the parameter range of the selected optimization parameters;
S34、计算种群适应度函数:即优化目标的评价函数;S34. Calculate the population fitness function: that is, the evaluation function of the optimization objective;
S35、选择操作:根据“物竞天择,适者生存”的原理,选择部分最优个体为下一代种群,对应上面的适应度函数,MSE值越小,代表仿真后车和实测后车VSP分布越接近,在下一代中MSE值较小对应的跟驰模型参数被保留的概率越大;S35. Selection operation: According to the principle of "natural selection, survival of the fittest", select some of the best individuals as the next generation population. Corresponding to the fitness function above, the smaller the MSE value, the higher the simulated VSP and the measured VSP. The closer the distribution is, the greater the probability that the following model parameters corresponding to smaller MSE values will be retained in the next generation;
S36、交叉、变异操作:优化参数为二进制编码,如同一条染色体,我们对染色体进行交叉、变异操作相当于增加了下一代个体的随机性;S36. Crossover and mutation operations: The optimization parameters are binary codes, just like a chromosome. Our crossover and mutation operations on the chromosome are equivalent to increasing the randomness of the next generation of individuals;
S37、最大迭代次数:即模型在迭代到设定的终止次数时,自动停止,输出模型的最优解;S37. Maximum number of iterations: that is, when the model iterates to the set termination number, it will automatically stop and output the optimal solution of the model;
S38、收敛容许误差:即当模型在子代和父代输出的最优解误差小于设定值时,模型自行终止,输出模型最优参数解。S38. Convergence tolerance: that is, when the error of the optimal solution output by the model between the offspring and the parent is less than the set value, the model terminates itself and outputs the optimal parameter solution of the model.
本发明有益效果:本发明优化跟驰模型的全部参数,保证模型参数优化的全面性,利用遗传算法对所有参数进行交叉配对,既保证模型可以得到最优解,又可以利用遗传算法的特性减少模型参数的组合数,提高模型优化效率;同时由于本发明是利用遗传算法提出的一种优化方法,所以适用于众多跟驰模型,另外本发明利用遗传算法对跟驰模型参数进行优化后,与实测相比,模型仿真输出跟驰后车的时间-速度、加速度曲线有明显的改善,模型仿真输出跟驰后车的VSP分布曲线有明显的改善,VSP均方误差明显减小,排放总量估算误差也明显减小。Beneficial effects of the present invention: The present invention optimizes all parameters of the car-following model to ensure the comprehensiveness of model parameter optimization. It uses a genetic algorithm to cross-match all parameters, which not only ensures that the model can obtain the optimal solution, but also utilizes the characteristics of the genetic algorithm to reduce The number of combinations of model parameters improves the efficiency of model optimization; at the same time, because the present invention is an optimization method proposed by using a genetic algorithm, it is suitable for many car-following models. In addition, after the present invention uses a genetic algorithm to optimize the parameters of the car-following model, it is compared with Compared with the actual measurement, the model simulation output time-speed and acceleration curves of the car following the car have been significantly improved, the model simulation output VSP distribution curve of the car behind has been significantly improved, the VSP mean square error has been significantly reduced, and the total emissions The estimation error is also significantly reduced.
附图说明Description of drawings
图1为本发明实施例提供的一种基于遗传算法和比功率的跟驰模型排放测算方法的流程图;Figure 1 is a flow chart of a car-following model emission measurement method based on genetic algorithm and specific power provided by an embodiment of the present invention;
图2为本发明实施例提供的一种基于遗传算法和比功率的跟驰模型排放测算方法的跟驰数据采集行车路线图和采集设备;Figure 2 is a car-following data collection driving route map and collection equipment for a car-following model emission measurement method based on genetic algorithm and specific power provided by an embodiment of the present invention;
图3为本发明实施例提供的一种基于遗传算法和比功率的跟驰模型排放测算方法的参数优化前Wiedemann74跟驰模型仿真VSP分布图;Figure 3 is a Wiedemann74 car-following model simulation VSP distribution diagram before parameter optimization of a car-following model emission measurement method based on genetic algorithm and specific power provided by the embodiment of the present invention;
图4为本发明实施例提供的一种基于遗传算法和比功率的跟驰模型排放测算方法的参数优化前Fritzsche跟驰模型仿真VSP分布图;Figure 4 is a Fritzsche car-following model simulation VSP distribution diagram before parameter optimization of a car-following model emission measurement method based on genetic algorithm and specific power provided by the embodiment of the present invention;
图5为本发明实施例提供的一种基于遗传算法和比功率的跟驰模型排放测算方法的参数优化前后wiedemann74跟驰模型实测仿真时间-速度、时间-加速度曲线;Figure 5 shows the measured simulation time-speed and time-acceleration curves of the Wiedemann74 car-following model before and after parameter optimization of a car-following model emission measurement method based on genetic algorithm and specific power provided by the embodiment of the present invention;
图6为本发明实施例提供的一种基于遗传算法和比功率的跟驰模型排放测算方法的参数优化后Wiedemann74跟驰模型仿真参数优化后VSP分布图;Figure 6 is a VSP distribution diagram after parameter optimization of the Wiedemann74 car-following model simulation parameters of a car-following model emission measurement method based on genetic algorithm and specific power provided by the embodiment of the present invention;
图7为本发明实施例提供的一种基于遗传算法和比功率的跟驰模型排放测算方法的参数优化前后Fritzsche跟驰模型实测仿真时间-速度、时间-加速度曲线;Figure 7 shows the measured simulation time-speed and time-acceleration curves of the Fritzsche car-following model before and after parameter optimization of a car-following model emission measurement method based on genetic algorithm and specific power provided by the embodiment of the present invention;
图8为本发明实施例提供的一种基于遗传算法和比功率的跟驰模型排放测算方法的参数优化前后Fritzsche跟驰模型仿真参数优化后VSP分布图;Figure 8 is a VSP distribution diagram before and after parameter optimization of the Fritzsche car-following model simulation parameter optimization of a car-following model emission measurement method based on genetic algorithm and specific power provided by the embodiment of the present invention;
图9为本发明实施例提供的一种基于遗传算法和比功率的跟驰模型排放测算方法的实测与跟驰模型参数优化前后排放总量对比图;Figure 9 is a comparison chart of the actual measurement and the total emissions before and after the optimization of the parameters of the car-following model of a car-following model emission measurement method based on genetic algorithm and specific power provided by the embodiment of the present invention;
图10为本发明实施例提供的一种基于遗传算法和比功率的跟驰模型排放测算方法的跟驰模型参数优化前后整体误差对比图。Figure 10 is a comparison chart of the overall errors before and after optimization of the car-following model parameters of a car-following model emission measurement method based on genetic algorithm and specific power provided by the embodiment of the present invention.
具体实施方式Detailed ways
下面结合发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整的描述,但应当理解本发明的保护范围并不受具体实施方式的限制。The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention. However, it should be understood that the protection scope of the present invention is not limited by the specific embodiments.
参照图1-10,本发明提供了一种基于遗传算法和比功率的跟驰模型排放测算方法,Referring to Figures 1-10, the present invention provides a car-following model emission measurement method based on genetic algorithm and specific power.
参照图1,包括:Refer to Figure 1, including:
S1、获取实测跟驰前车的逐秒速度和加速度数据,并对数据进行检查、清洗,确保获取数据的有效性;S1. Obtain the measured second-by-second speed and acceleration data of the car ahead, and check and clean the data to ensure the validity of the data obtained;
S2、利用python编程跟驰模型,根据实测跟驰前车的逐秒速度和加速度数据,仿真跟驰后车的逐秒速度和加速度数据,即包括:S2. Use python to program the car-following model, and simulate the second-by-second speed and acceleration data of the car following the car based on the measured second-by-second speed and acceleration data of the car ahead, which includes:
S21、首先判断当前时刻跟驰后车处于哪种跟驰状态;S21. First determine which following state the car behind is in at the current moment;
S22、然后根据各个跟驰状态不同的加速度计算方式,确定跟驰后车的仿真加速度,从而确定跟驰后车下一秒的仿真速度;S22. Then determine the simulated acceleration of the car following the car based on the different acceleration calculation methods in each following state, thereby determining the simulated speed of the car following the car in the next second;
S23、然后根据跟驰后车的仿真速度、仿真加速度和实测跟驰前车的速度、加速度,循环仿真后一秒跟驰后车的速度、加速度。S23. Then, based on the simulated speed and simulated acceleration of the following car and the measured speed and acceleration of the following car, cycle the speed and acceleration of the following car one second after the simulation.
利用仿真输出跟驰后车的速度和加速度,做时间-速度曲线和时间-加速度曲线,对比仿真跟驰后车和实测跟驰前车的机动车比功率VSP,作为排放评价指标,相关研究表明,VSP和排放存在显著的物理意义,并计算仿真和实测均方误差MSE,对比仿真和实测的差异;Use the simulation to output the speed and acceleration of the car following the car, make time-speed curves and time-acceleration curves, and compare the vehicle specific power VSP of the simulated car following the car and the measured vehicle following the car in front, as an emission evaluation index. Related research shows , VSP and emission have significant physical meaning, and calculate the mean square error MSE between simulation and actual measurement, and compare the difference between simulation and actual measurement;
所述机动车比功率VSP的计算公式为:The calculation formula of the motor vehicle specific power VSP is:
VSP=v(1.1a+0.132)+0.000302v3 VSP=v(1.1a+0.132)+0.000302v 3
其中,v为速度,a为加速度;Among them, v is the velocity and a is the acceleration;
所述仿真和实测均方误差MSE的计算公式为:The calculation formula of the simulated and measured mean square error MSE is:
其中:Si为第i秒仿真VSP;Ti为第i秒实测VSP。Among them: S i is the simulated VSP at the i-th second; T i is the measured VSP at the i-th second.
S3、利用遗传算法对跟驰模型参数进行优化,得到模型最优参数解;S3. Use the genetic algorithm to optimize the parameters of the car-following model and obtain the optimal parameter solution of the model;
其跟驰模型参数校准流程图如图2所示。在基于遗传算法中,需要对遗传算法的一些关键参数进行设置,遗传算法具体参数及描述如下表1所示:The parameter calibration flow chart of the following model is shown in Figure 2. In the genetic algorithm, some key parameters of the genetic algorithm need to be set. The specific parameters and description of the genetic algorithm are shown in Table 1 below:
表1基于遗传算法跟驰模型优化参数设置Table 1 Optimization parameter settings based on genetic algorithm following model
利用遗传算法对跟驰模型参数进行优化具体包括:Using genetic algorithms to optimize the parameters of the car-following model specifically includes:
S31、参数选择和阈值设定:即选定在跟驰模型中需要优化的参数和取值范围;S31. Parameter selection and threshold setting: that is, selecting the parameters and value ranges that need to be optimized in the car-following model;
S32、种群二进制编码:个体编码方式一般选择二进制,即将所优化的参数值转换为二进制编码,方便后续的交叉变异操作;S32. Population binary coding: Binary is generally selected as the individual coding method, that is, the optimized parameter values are converted into binary coding to facilitate subsequent cross-mutation operations;
S33、确定初始种群的数量:即所选择的优化参数在参数范围内随机组成的个体数目;种群数量多少没有一个明确的数值,一般选取在200以内,但随着模型越复杂,所优化的参数多,初始种群数量就多。S33. Determine the number of initial populations: that is, the number of individuals randomly formed by the selected optimization parameters within the parameter range; there is no clear value for the number of populations, and it is generally selected within 200. However, as the model becomes more complex, the parameters to be optimized will change. If there are more, the initial population will be larger.
S34、计算种群适应度函数:即优化目标的评价函数,在本发明中,计算的是实测后车和跟驰后车VSP的MSE;S34. Calculate the population fitness function: that is, the evaluation function of the optimization target. In the present invention, the MSE of the measured VSP of the vehicle behind and the vehicle behind is calculated;
S35、选择操作:根据“物竞天择,适者生存”的原理,选择部分最优个体为下一代种群,对应上面的适应度函数,即MSE值越小,代表仿真后车和实测后车VSP分布越接近,在下一代中MSE值较小对应的跟驰模型参数被保留的概率越大;S35. Selection operation: According to the principle of "natural selection, survival of the fittest", select some of the best individuals as the next generation population, corresponding to the fitness function above, that is, the smaller the MSE value, the better the simulated and the measured ones. The closer the VSP distribution is, the greater the probability that the following model parameters corresponding to smaller MSE values will be retained in the next generation;
S36、交叉、变异操作:优化参数为二进制编码,如同一条染色体,我们对染色体进行交叉、变异操作相当于增加了下一代个体的随机性;S36. Crossover and mutation operations: The optimization parameters are binary codes, just like a chromosome. Our crossover and mutation operations on the chromosome are equivalent to increasing the randomness of the next generation of individuals;
S37、最大迭代次数:即模型在迭代到设定的终止次数时,自动停止,输出模型的最优解(最小MSE);S37. Maximum number of iterations: that is, when the model iterates to the set termination number, it will automatically stop and output the optimal solution (minimum MSE) of the model;
S38、收敛容许误差:即当模型在子代和父代输出的最优解误差小于设定值时,模型自行终止,输出模型最优参数解。S38. Convergence tolerance: that is, when the error of the optimal solution output by the model between the offspring and the parent is less than the set value, the model terminates itself and outputs the optimal parameter solution of the model.
S4、基于车辆速度、加速度和VSP模型效果评价:利用所述S3中得到模型最优参数解,代入所述S2中,获取参数优化后的时间-速度、时间-加速度轨迹图和VSP分布图;S4. Evaluation of model effects based on vehicle speed, acceleration and VSP: Use the optimal parameter solution of the model obtained in S3, substitute it into S2, and obtain the time-speed, time-acceleration trajectory diagram and VSP distribution diagram after parameter optimization;
S5、基于速度-VSP排放模型效果评价,计算实际车辆排放量、参数优化前后跟驰模型车辆排放量,进行对比分析验证。S5. Based on the speed-VSP emission model effect evaluation, calculate the actual vehicle emissions and the vehicle emissions of the car-following model before and after parameter optimization, and perform comparative analysis and verification.
参照图2-8,本发明遗传算法对跟驰模型进行参数优化适用于Wiedemann74,Wiedemann99,Fritzsche和FVDM等多种跟驰模型,下面以Wiedemann74和Fritzsche跟驰模型做以举例介绍。Referring to Figures 2-8, the genetic algorithm of the present invention is suitable for parameter optimization of car-following models such as Wiedemann74, Wiedemann99, Fritzsche and FVDM. The Wiedemann74 and Fritzsche car-following models are used as examples below.
步骤1:实测数据采集Step 1: Measured data collection
本文分别选取西安市二环路、子午大道全段(快速路)、长安路的航天城到钟楼路段(主干路)、自强路全段(次干路)、东七路全段(支路)进行跟车试验,测试车辆选取一辆轻型汽油车,车型为福特福克斯,驾驶员驾龄为3年。数据收集采用Hi-drive跟驰数据采集仪器,该仪器由前置激光、雷达和内置GPS组成,可获取前后车间距、前后车速度差、本车速度、加速度等数据。This article respectively selects the Second Ring Road in Xi'an, the entire section of Ziwu Avenue (expressway), the section from Aerospace City to Bell Tower of Chang'an Road (trunk road), the entire section of Ziqiang Road (secondary trunk road), and the entire section of Dongqi Road (branch road). Carry out a car-following test. The test vehicle is a light gasoline vehicle, a Ford Focus, and the driver has three years of driving experience. Data collection uses a Hi-drive car-following data collection instrument, which consists of a front-mounted laser, radar and built-in GPS. It can obtain data such as the distance between the front and rear cars, the speed difference between the front and rear cars, the speed of the own car, and acceleration.
跟车测试车辆装配Hi-drive设备,在不同等级城市道路上正常行驶,跟驰前车为行驶路线上随机车辆。因Hi-drive设备在遇到隧道或立交受信号干扰可能会导致本车速度缺失,因此本文对数据丢失在5s以内的速度和加速度采用线性插法进行补全。而大于5s的数据丢失,则将其作为前后两段数据的分界点;Hi-drive在弯道行驶过程中,容易出现前车数据丢失,因此本次试验数据只选取直线路段,剔除转弯对数据造成的影响;此外,由于车辆油耗,排放受道路坡度影响较大,对少数道路坡度较大的路段数据予以剔除,最终获取不同等级测试线路上逐秒跟驰驾驶行为数据。The car-following test vehicle is equipped with Hi-drive equipment and can drive normally on urban roads of different grades. The car in front of it is a random vehicle on the driving route. Because Hi-drive equipment may suffer signal interference when encountering tunnels or overpasses, which may cause the vehicle's speed to be lost. Therefore, this article uses linear interpolation to complete the speed and acceleration where the data is lost within 5 seconds. If the data is lost for more than 5 seconds, it will be used as the dividing point between the front and rear sections of data; Hi-drive is prone to data loss of the vehicle ahead when driving on curves, so this test data only selects straight road sections and excludes turning pairs of data. In addition, due to vehicle fuel consumption and emissions, which are greatly affected by road gradient, the data on a few road sections with large road gradients were eliminated, and finally the second-by-second driving behavior data on different levels of test lines were obtained.
步骤2:参数优化前效果评价Step 2: Effect evaluation before parameter optimization
为了更加直观地对比两种跟驰模型对车辆跟驰后车仿真的效果,本发明选取了连续2500秒的实测行驶数据作为示例。在这段时间内,实测后车不仅有加速到限速行驶的接近自由流的状态,而且有紧急制动减速停止的行为,大部分时间,车辆的行驶工况比较稳定,同时也包括了车辆停车等待时间,此段时间速度曲线包含了全部的道路工况。在此基础上,本发明分别用Wiedemann74跟驰模型和Fritzsche跟驰模型两个生理-心理模型,用本发明所设计的数值仿真的方法,仿真虚拟后车的跟驰行为。In order to more intuitively compare the effects of the two car-following models on vehicle following car simulation, the present invention selects 2500 seconds of continuous measured driving data as an example. During this period of time, the vehicle behind the measured vehicle not only accelerated to a near-free-flow state of driving at the speed limit, but also performed emergency braking, decelerating and stopping. Most of the time, the driving conditions of the vehicle were relatively stable, and the driving conditions of the vehicle also included Stop waiting time, the speed curve during this time includes all road conditions. On this basis, the present invention uses two physiological-psychological models, the Wiedemann74 car-following model and the Fritzsche car-following model, and uses the numerical simulation method designed by the present invention to simulate the car-following behavior of the virtual vehicle behind.
步骤3:利用遗传算法对跟驰模型参数进行优化Step 3: Use genetic algorithm to optimize the parameters of the car-following model
(1)、优化参数选择及参数取值范围设置,如下表2和表3所示(1) Optimize parameter selection and parameter value range settings, as shown in Table 2 and Table 3 below
表2 Wiedemann74跟驰模型优化参数选择Table 2 Wiedemann74 car-following model optimization parameter selection
表3 Fritzsche跟驰模型优化参数选择Table 3 Fritzsche car-following model optimization parameter selection
(2)、对遗传算法本身参数设置如下表4所示(2). Set the parameters of the genetic algorithm itself as shown in Table 4 below.
表4基于遗传算法跟驰模型优化参数设置Table 4 Optimization parameter settings based on genetic algorithm following model
(3)、输出模型参数最优解如下表5和表6所示:(3). The optimal solution of output model parameters is shown in Table 5 and Table 6 below:
表5 Wiedemann74跟驰模型参数优化结果Table 5 Wiedemann74 car-following model parameter optimization results
注:()里面为参数优化前VSP均方误差Note: () inside is the mean square error of VSP before parameter optimization
表6 Fritzsche跟驰模型参数优化结果Table 6 Parameter optimization results of Fritzsche car-following model
注:()里面为参数优化前VSP均方误差Note: () inside is the mean square error of VSP before parameter optimization
步骤4:V、a和VSP模型效果评价Step 4: Evaluation of V, a and VSP model effects
在表5和表6中可以看到参数优化后,VSP的均方误差有了明显的降低,为了更加直观的对比参数优化效果,本发明分别做出参数优化前后Wiedemann74跟驰模型和Fritzsche跟驰模型时间-速度、时间加速度和VSP分布图进行评价,It can be seen in Table 5 and Table 6 that after parameter optimization, the mean square error of VSP has been significantly reduced. In order to compare the parameter optimization effect more intuitively, the present invention makes the Wiedemann74 car-following model and Fritzsche car-following model before and after parameter optimization. Model time-velocity, time acceleration and VSP distribution plots are evaluated,
步骤5:基于速度和VSP排放计算结果改进效果评价Step 5: Evaluation of improvement effects based on speed and VSP emission calculation results
利用基于速度和VSP的排放算法,对实测后车和仿真车辆进行排放测算。分别计算实测车辆和仿真车辆参数优化前后排放总量。此处,基于速度-VSP区间的排放算法中排放总量计算公式如下所示:The emission algorithm based on speed and VSP is used to calculate the emissions of the measured rear vehicle and simulated vehicle. The total emissions of the measured vehicle and the simulated vehicle before and after parameter optimization were calculated respectively. Here, the total emission calculation formula in the emission algorithm based on the speed-VSP interval is as follows:
式中:Qi为各分区下对应的排放率,time_Qi为在各分区持续时间。以一辆机动车为例,通过车载排放测试收集实测排放数据,可以得出不同速度-VSP区间对应的排放率表,如下表7所示:In the formula: Q i is the corresponding emission rate in each partition, and time_Qi is the duration in each partition. Taking a motor vehicle as an example, by collecting actual emission data through on-board emission testing, the emission rate table corresponding to different speed-VSP intervals can be obtained, as shown in Table 7 below:
表7排放率和V-VSPTable 7 Emission rates and V-VSP
参照图9,为实测车辆和跟驰模型参数优化前后各速度区间排放总量Referring to Figure 9, the total emissions in each speed range before and after the parameters of the measured vehicle and car-following model are optimized.
本发明通过对比仿真和实测的整体排放总量进行了整体误差验证公式如下所示:跟驰模型参数优化前后与实测相比的整体误差图如图10所示:The present invention conducts an overall error verification formula by comparing the simulated and measured overall emission totals, as shown below: The overall error diagram before and after the optimization of the car-following model parameters compared with the actual measurement is shown in Figure 10:
式中:X为(CO2、CO、NOx、HC)预测整体排放总量;Y为实际整体排放总量。In the formula: X is the predicted total emissions of (CO 2 , CO, NOx, HC); Y is the actual total emissions.
综上所述,本发明优化跟驰模型的全部参数,保证模型参数优化的全面性,利用遗传算法对所有参数进行交叉配对,既保证模型可以得到最优解,又可以利用遗传算法的特性减少模型参数的组合数,提高模型优化效率;同时由于本发明是利用遗传算法提出的一种优化方法,所以适用于众多跟驰模型,另外本发明利用遗传算法对跟驰模型参数进行优化后,与实测相比,模型仿真输出跟驰后车的时间-速度、加速度曲线有明显的改善,模型仿真输出跟驰后车的VSP分布曲线有明显的改善,VSP均方误差明显减小。To sum up, the present invention optimizes all parameters of the car-following model to ensure the comprehensiveness of model parameter optimization. It uses a genetic algorithm to cross-match all parameters, which not only ensures that the model can obtain the optimal solution, but also uses the characteristics of the genetic algorithm to reduce The number of combinations of model parameters improves the efficiency of model optimization; at the same time, because the present invention is an optimization method proposed by using a genetic algorithm, it is suitable for many car-following models. In addition, after the present invention uses a genetic algorithm to optimize the parameters of the car-following model, it is compared with Compared with the actual measurement, the time-velocity and acceleration curves of the model simulation output following the car behind have been significantly improved, the VSP distribution curve of the model simulation output following the car behind has been significantly improved, and the VSP mean square error has been significantly reduced.
以上公开的仅为本发明的一个具体实施例,但是,本发明实施例并非局限于此,任何本领域的技术人员能思之的变化都应落入本发明的保护范围。What is disclosed above is only a specific embodiment of the present invention. However, the embodiment of the present invention is not limited thereto. Any changes that can be thought of by those skilled in the art should fall within the protection scope of the present invention.
Claims (2)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910925530.XA CN111125862B (en) | 2019-09-27 | 2019-09-27 | Following model emission measuring and calculating method based on genetic algorithm and specific power |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910925530.XA CN111125862B (en) | 2019-09-27 | 2019-09-27 | Following model emission measuring and calculating method based on genetic algorithm and specific power |
Publications (2)
Publication Number | Publication Date |
---|---|
CN111125862A CN111125862A (en) | 2020-05-08 |
CN111125862B true CN111125862B (en) | 2023-12-26 |
Family
ID=70495357
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910925530.XA Active CN111125862B (en) | 2019-09-27 | 2019-09-27 | Following model emission measuring and calculating method based on genetic algorithm and specific power |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN111125862B (en) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113111502B (en) * | 2021-04-01 | 2022-07-05 | 同济大学 | Modeling Method of Driver Perceived Distance Based on Car Following Model and Driver Characteristics |
CN115620423A (en) * | 2022-10-08 | 2023-01-17 | 广州市城市规划勘测设计研究院 | Estimation method, device, medium and equipment for vehicle fleet energy consumption and emissions at intersections |
Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2003288579A (en) * | 2001-07-27 | 2003-10-10 | National Institute Of Advanced Industrial & Technology | Optimal fitting parameter determining method and apparatus, and optimal fitting parameter determining program |
CN103077275A (en) * | 2013-01-06 | 2013-05-01 | 东南大学 | Parameter calibration method of highway ramp simulation model |
CN104464293A (en) * | 2014-12-15 | 2015-03-25 | 大连理工大学 | A method for determining the number of berths at bus stops on bus-only lanes |
CN105930565A (en) * | 2016-04-13 | 2016-09-07 | 中山大学 | Method for calibrating traffic simulation model parameters based on cross entropy algorithm of linear strategy |
WO2016169290A1 (en) * | 2015-04-21 | 2016-10-27 | 华南理工大学 | Decision-making supporting system and method oriented towards emergency disposal of road traffic accidents |
CN109376331A (en) * | 2018-08-22 | 2019-02-22 | 东南大学 | An urban bus emission rate estimation method based on gradient boosting regression tree |
CN109712398A (en) * | 2019-01-22 | 2019-05-03 | 江苏智通交通科技有限公司 | Motorway journeys time Estimate Model Parameter Optimization method |
CN110070222A (en) * | 2019-04-18 | 2019-07-30 | 安徽中科龙安科技股份有限公司 | A kind of evolution regulation method and system of traffic low emission |
EP3540403A1 (en) * | 2018-03-15 | 2019-09-18 | AVL List GmbH | Method for carrying out a test of a device under test |
-
2019
- 2019-09-27 CN CN201910925530.XA patent/CN111125862B/en active Active
Patent Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2003288579A (en) * | 2001-07-27 | 2003-10-10 | National Institute Of Advanced Industrial & Technology | Optimal fitting parameter determining method and apparatus, and optimal fitting parameter determining program |
CN103077275A (en) * | 2013-01-06 | 2013-05-01 | 东南大学 | Parameter calibration method of highway ramp simulation model |
CN104464293A (en) * | 2014-12-15 | 2015-03-25 | 大连理工大学 | A method for determining the number of berths at bus stops on bus-only lanes |
WO2016169290A1 (en) * | 2015-04-21 | 2016-10-27 | 华南理工大学 | Decision-making supporting system and method oriented towards emergency disposal of road traffic accidents |
CN105930565A (en) * | 2016-04-13 | 2016-09-07 | 中山大学 | Method for calibrating traffic simulation model parameters based on cross entropy algorithm of linear strategy |
EP3540403A1 (en) * | 2018-03-15 | 2019-09-18 | AVL List GmbH | Method for carrying out a test of a device under test |
CN109376331A (en) * | 2018-08-22 | 2019-02-22 | 东南大学 | An urban bus emission rate estimation method based on gradient boosting regression tree |
CN109712398A (en) * | 2019-01-22 | 2019-05-03 | 江苏智通交通科技有限公司 | Motorway journeys time Estimate Model Parameter Optimization method |
CN110070222A (en) * | 2019-04-18 | 2019-07-30 | 安徽中科龙安科技股份有限公司 | A kind of evolution regulation method and system of traffic low emission |
Non-Patent Citations (2)
Title |
---|
基于VSP分布的车辆跟驰模型的油耗测算对比研究;徐龙;宋国华;于雷;刘莹;;公路交通科技(06);全文 * |
基于自然驾驶数据的中国驾驶人城市快速路跟驰模型标定与验证;王雪松;朱美新;;中国公路学报(09);全文 * |
Also Published As
Publication number | Publication date |
---|---|
CN111125862A (en) | 2020-05-08 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
Pourabdollah et al. | Calibration and evaluation of car following models using real-world driving data | |
Shankar et al. | Method for estimating the energy consumption of electric vehicles and plug‐in hybrid electric vehicles under real‐world driving conditions | |
US11661067B2 (en) | Method for ascertaining driving profiles | |
CN112686453B (en) | Method and system for intelligent prediction of locomotive energy consumption | |
CN115063184B (en) | Electric vehicle charging demand modeling method, system, medium, equipment and terminal | |
CN110182217B (en) | A complex quantitative evaluation method for driving tasks for complex overtaking scenarios | |
CN103593986B (en) | A kind of main line green wave coordination control signal time method optimizing exhaust emissions | |
CN111125862B (en) | Following model emission measuring and calculating method based on genetic algorithm and specific power | |
CN109190839B (en) | An intelligent rolling prediction method of wind speed along railway line integrating wind direction | |
CN104102776B (en) | A kind of model automatic identification method of urban railway transit train | |
CN109376331A (en) | An urban bus emission rate estimation method based on gradient boosting regression tree | |
CN111339638B (en) | Automobile driving condition construction method based on existing data | |
CN108320516A (en) | Road passage capability evaluation method based on Cusp Catastrophe and quantum telepotation | |
JP2020175885A (en) | Method for determining travel curve | |
CN113268709B (en) | Urban electric vehicle charging demand prediction method and system based on intelligent agent simulation | |
CN115422747A (en) | Calculation method and calculation device for motor vehicle exhaust pollutant emission | |
CN107145991A (en) | A Dynamic Path Search Method for Time-varying Stochastic Networks Considering Link Correlation | |
CN117668413A (en) | Comprehensive decision-making evaluation method and device for autonomous driving considering multiple driving factors | |
CN105138729B (en) | Based on PSO GRNN wind power plant wind turbine defect air speed value fill methods | |
CN118672931A (en) | Automatic driving simulation test scene generation method, system and medium | |
Joubert | Multi-agent model of route choice when vehicles are sensitive to road grade | |
Yew et al. | Optimization of Multi-Junction Traffic Light Control Using the Classic Genetic Algorithm | |
CN118470965A (en) | Variable speed limit and lane control system for carbon emission driven by track data | |
CN109711593B (en) | Instantaneous calculation decision-oriented high-speed railway line wind speed prediction method | |
CN111832599A (en) | A Gas Station Prediction Method Based on Machine Learning Random Forest |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |