A method and system for calibrating parameters of urban road traffic flow simulation
Through the nonlinear least squares model and genetic algorithm, combined with the VISSIM platform, the problem of insufficient accuracy of the existing simulation model when considering vehicle following and lane changing behaviors has been solved, and the accuracy of urban road traffic flow simulation has been significantly improved.
Patent Information
- Application Number
- CN202410702932.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-03
- Publication Date
- 2024-09-27
- Estimated Expiration
- 2044-06-03
AI Technical Summary
Existing urban road traffic flow simulation models are difficult to accurately reflect actual traffic conditions when considering vehicle following and lane-changing behaviors, resulting in insufficient simulation accuracy.
Using a nonlinear least squares model combined with a genetic algorithm, by obtaining historical traffic flow data and road network structure information, we construct decision variables and constraints, select average vehicle speed and average headway distance as calibration targets, establish a simulation parameter calibration model, and use the VISSIM platform Solve.
It improves the accuracy of urban road traffic flow simulation and is better than other comparison algorithms. The calibration effect on average vehicle speed and average distance between vehicles is significantly improved.
Smart Images

Figure CN118313272B
Abstract
Description
Technical Field
[0001] The invention relates to the field of simulation parameter calibration, and in particular to a method and system for calibrating simulation parameters of urban road traffic flow. Background Art
[0002] With the development of intelligent transportation systems, micro-simulation software VISSIM has been widely used. By simulating the operation rules of traffic flow through traffic simulation, a large amount of simulation data can be obtained at a low labor cost, thus providing a scientific and effective way to further control, optimize and predict traffic. The parameter calibration of the micro-simulation model is the premise of the application of simulation technology. The parameter value will have a great influence on the simulation effect. Therefore, for different simulation objects, the simulation parameters can be calibrated to obtain a traffic system close to the actual one.
[0003] The calibration of the simulation model is a process of checking the degree of consistency between the simulation effect and the actual traffic operation status by observing the target, and adjusting the simulation parameters to make the simulation target value closer to the measured data. Therefore, the difficulty of the problem lies in selecting the key factors that affect the simulation effect and the observation targets that best represent the actual traffic conditions and the calibration methods. In the actual traffic operation conditions, since the vehicle's following behavior and lane changing behavior exist at the same time, it is necessary to comprehensively consider the parameter calibration of these two types of models; and in the construction of the calibration objective function, it is necessary to consider not only the difficulty of obtaining the measured data and the measurement accuracy, but also whether the selected target can fully reflect the traffic conditions. Summary of the invention
[0004] The technical problem to be solved by the present invention is how to take into account the two parameters of the vehicle's following behavior and lane changing behavior in the existing simulation model so as to ensure that the simulation model is more accurate and closer to reality, and to further improve the accuracy of urban road traffic flow simulation.
[0005] The present invention adopts the following technical solution: a method for calibrating parameters of urban road traffic flow simulation, characterized in that it comprises the following steps:
[0006] (1) Obtain historical traffic data and road network structure information in the simulation area;
[0007] (2) Constructing decision variables and constraints of the traffic flow simulation calibration model;
[0008] (3) constructing a simulation calibration objective function based on the decision variables and constraints constructed in step (2), thereby establishing an urban road traffic flow simulation calibration model based on a nonlinear least squares model;
[0009] (4) constructing the input and output of the traffic flow simulation calibration model based on the historical traffic flow data and road network structure information of the simulation area obtained in step (1);
[0010] (5) Using the input and output in step (4), the model is solved using a genetic algorithm to obtain calibrated simulation parameters;
[0011] (6) Obtain calibrated simulation parameters according to the solution described in step (5), select the characteristics under the working conditions and combine them with the simulation parameters to input the model, and output the simulation results.
[0012] Preferably, the historical traffic flow data in step (1) includes the historical traffic flow of vehicles entering the external entrance of the simulation area. , Traffic light timing scheme , Average speed of each entrance lane and average headway ; The road network structure information includes the number of intersections in the simulation area , Number of external entrance lanes and the number of entrance lanes at each intersection .
[0013] Preferably, the decision variables and constraints for constructing the traffic flow simulation calibration model in step (2) include:
[0014] The vehicle's driving process is divided into two aspects: longitudinal and lateral. The longitudinal aspect is the vehicle's following behavior, while the lateral aspect is the vehicle's lane-changing behavior.
[0015] Based on the following behavior, select the average parking distance , Additional distance for safety distance and multiples of the safety distance As decision variables, The constraints are 1-4, the default value is 2, The constraint is 1-5, the default value is 3, The constraints are 1-6, and the default value is 3;
[0016] According to the lane-changing behavior, select the deceleration rate of the vehicle to be changed and the deceleration rate of the vehicle behind the target lane As decision variables, The constraint is 50-250, the default value is 100, where The constraint is 50-250 and the default value is 100.
[0017] Preferably, the step (3) of establishing a simulation calibration model for urban road traffic flow based on a nonlinear least squares model comprises the following steps: , , , , As an unknown parameter, set the number of samples The objective function of the simulation calibration model is established based on the nonlinear least squares model. The average vehicle speed of each entrance lane is selected according to the decision variables and constraints. and average headway As the simulation calibration target, the VISSIM platform outputs implicit simulation results, so the expressions of average vehicle speed and simulation parameters are shown in formula (1):
[0018] (1)
[0019] The expression of average headway distance and simulation parameters is shown in formula (2):
[0020] (2)
[0021] The simulation calibration objective function is constructed by taking the average relative error of the average vehicle speed and the average headway of each entrance lane in each period as the square sum of the average relative error of the average vehicle speed and the average headway of each entrance lane in each period as the simulation calibration objective function. , as shown in formula (3):
[0022] (3)
[0023] in, and is an implicit expression of the VISSIM platform, is the sample number of the simulation calibration target, is the number of samples for the simulation calibration target, is the number of entrance lanes, Number the entry lane, For the The entrance lane corresponding to the data point The measured value of the average vehicle speed, For the The entrance lane corresponding to the data point The simulated value of the average vehicle speed, For the The entrance lane corresponding to the data point The measured value of the average headway between vehicles, For the The entrance lane corresponding to the data point Simulated value of the average headway between vehicles.
[0024] Preferably, the input and output of constructing the traffic flow simulation calibration model in step (4) includes the following steps: , Traffic light timing plan , Average speed of each entrance lane and average headway Combine road network information as input to the model:
[0025]
[0026] in Indicates the intersection number. The historical lane number indicating the exterior entrance, Indicates the external entrance lane number, Indicates time, Indicates the time interval; according to the input of the model, the output of the model is clearly defined as the calibrated simulation parameter ;
[0027] in represents the number of calibrated simulation parameters, Indicates the calibration parameter number.
[0028] Indicates the simulation area No. Historical inbound traffic for each exterior entrance lane, Indicates the simulation area No. The signal timing plan for each intersection; Indicates the simulation area No. Average speed of vehicles in the exterior entrance lanes; Indicates the simulation area No. Average head clearance for each exterior entrance lane.
[0029] Preferably, the step (5) of solving the model using a genetic algorithm to obtain calibrated simulation parameters comprises the following steps: based on the decision variables in step (2), the constraints of the decision variables are standardized using a min-max standardization method to eliminate the influence caused by different dependent variable ranges and measurement units. The conversion function is shown in formula (4):
[0030] (4)
[0031] in, After conversion The value of the parameter, Before conversion The value of the parameter, For the The minimum value that a parameter can obtain. For the The maximum value that a parameter can obtain;
[0032] The simulation parameters are encoded in binary. Each individual contains 5 parameters, expressed as ,in arrive They represent the average parking distance, the additional safety distance, the multiple of the safety distance, the deceleration rate of the current vehicle and the deceleration rate of the rear vehicle respectively; the value range of each parameter is , through the chromosome encoding process, the value space of each parameter is discretized into Each copy corresponds to a set of binary strings; let the population size be , the randomly generated A binary string and a set of default values for parameters are used as the initial population;
[0033] According to the objective function , establish the fitness function in the genetic algorithm , then (5)
[0034] The greater the fitness, the greater the probability of an individual being selected; and the smaller the fitness, the smaller the probability of an individual being selected; the crossover operation selects a single-point crossover method, and crosses each individual in the population with a certain probability. When the random number is less than the crossover probability, When the random number is greater than the crossover probability, the offspring obtains the parent gene located after the crossover point; when the random number is greater than the crossover probability When no crossover is performed, the mutation operation is performed at the probability When a mutation occurs, when the probability of a random number is less than When the value of the gene is changed by inverting the binary of the mutation point, the calibrated simulation parameters are obtained by inverting the binary of the mutation point.
[0035] Preferably, in step (6), the characteristics under the working condition are selected and combined with the simulation parameters to input the model, and the simulation results are output, which includes the following steps: selecting the historical traffic flow of the external entrance of the simulation area under the working condition , Traffic light timing scheme and calibrated simulation parameters as input for simulation application under working conditions:
[0036]
[0037]
[0038]
[0039] The simulation model outputs the simulation results of the average speed of each entrance lane Simulation results of average headway It is expressed as:
[0040]
[0041]
[0042] in, Indicates the application under working conditions, Expressed as The simulation parameters are calibrated.
[0043] A system for calibrating parameters of urban road traffic flow simulation, comprising:
[0044] The data acquisition unit is used to acquire the historical traffic flow data and road network structure information of the simulation area and build a simulation environment. The historical traffic flow data includes the historical traffic flow of the external entrance of the simulation area. , Traffic light timing scheme , Average speed of each entrance lane and average headway ; The road network structure information includes the number of intersections in the simulation area , Number of external entrance lanes and the number of entrance lanes at each intersection ;
[0045] A model building unit is used to build a traffic flow simulation calibration model, which specifically includes decision variables, constraints and objective functions. The decision variables include the average parking distance. , Additional distance for safety distance , multiples of the safety distance , deceleration rate of lane-changing vehicles and the deceleration rate of the vehicle behind the target lane ; According to the decision variables and constraints, select the average speed of each entrance lane and average headway For simulation calibration, the square sum of the average relative error of the average vehicle speed and the average headway of each entrance lane in each period is constructed as the simulation calibration objective function. ;
[0046] Input and output unit, used to construct the input and output of the traffic flow simulation calibration model, the input of the model includes the historical traffic flow of the external entrance of the simulation area , Traffic light timing scheme , Average speed of each entrance lane and average headway ; The output of the model is the calibrated simulation parameters ;
[0047] The model solving unit is used to solve the constructed traffic flow simulation calibration model to obtain the calibrated simulation parameters; the simulation parameters are solved by genetic algorithm using the steps of data standardization, chromosome encoding, initial population design, fitness function establishment and selection, crossover and mutation;
[0048] The model application unit applies the simulation parameters obtained after the solution to the working condition data and selects the historical traffic flow of the external entrance of the simulation area under the working condition. , Traffic light timing scheme The calibrated simulation parameters are used as the input of the simulation application under working conditions, and the simulation results of the average vehicle speed of each entrance lane are output through the simulation model. Simulation results of average headway , thus simulating the urban road traffic flow.
[0049] The present invention has the following beneficial effects: the present invention is able to address the problems of incomplete influencing factors and calibration targets of traffic flow simulation, poor simulation accuracy, etc., and proposes a method for calibrating parameters of urban road traffic flow simulation based on a nonlinear least squares model, selecting a following parameter and a lane changing parameter as decision variables; selecting an average vehicle speed and an average headway as calibration targets, and establishing an objective function for simulation parameter calibration based on a nonlinear least squares model; combining a genetic algorithm and a VISSIM platform to solve the model, and the calibration effect on the average vehicle speed and the average headway is better than that of other comparison algorithms, effectively improving the accuracy of urban road traffic flow simulation. BRIEF DESCRIPTION OF THE DRAWINGS
[0050] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required for use in the embodiments will be briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present invention and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.
[0051] Figure 1 A schematic diagram of a flow chart of a method for calibrating parameters of urban road traffic flow simulation provided by the first embodiment of the present invention;
[0052] Figure 2 It is a schematic diagram of the solution process of the simulation parameter calibration model based on genetic algorithm;
[0053] Figure 3 This is a model prediction diagram for the parameter calibration problem of urban road traffic flow simulation;
[0054] Figure 4 This is a schematic diagram of the timing plan for the target intersection from 7:45 to 8:30;
[0055] Figure 5 Schematic diagram of the convergence process of genetic algorithm under different population sizes;
[0056] Figure 6 It is a structural schematic diagram of a system for calibrating parameters of urban road traffic flow simulation according to the second embodiment of the present invention. DETAILED DESCRIPTION
[0057] In order to make the purpose, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative work belong to the scope of protection of the present invention. Therefore, the following detailed description of the embodiments of the present invention provided in the drawings is not intended to limit the scope of the invention claimed for protection, but merely represents the selected embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative work belong to the scope of protection of the present invention.
[0058] In the description of the present invention, it should be understood that the terms "center", "longitudinal", "lateral", "length", "width", "thickness", "up", "down", "front", "back", "left", "right", "vertical", "horizontal", "top", "bottom", "inside", "outside", "clockwise", "counterclockwise" and the like indicate orientations or positional relationships based on the orientations or positional relationships shown in the accompanying drawings, and are only for the convenience of describing the present invention and simplifying the description, and do not indicate or imply that the referred device or element must have a specific orientation, be constructed and operated in a specific orientation, and therefore should not be understood as a limitation on the present invention.
[0059] In addition, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Therefore, the features defined as "first" and "second" may explicitly or implicitly include one or more of the features. In the description of the present invention, the meaning of "plurality" is two or more, unless otherwise clearly and specifically defined.
[0060] In the present invention, unless otherwise clearly specified and limited, the terms "installed", "connected", "connected", "fixed" and the like should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection or an indirect connection through an intermediate medium, it can be the internal connection of two elements or the interaction relationship between two elements. For ordinary technicians in this field, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.
[0061] In the present invention, unless otherwise clearly specified and limited, a first feature being "above" or "below" a second feature may include that the first and second features are in direct contact, or may include that the first and second features are not in direct contact but are in contact through another feature between them. Moreover, a first feature being "above", "above" and "above" a second feature includes that the first feature is directly above and obliquely above the second feature, or simply indicates that the first feature is higher in level than the second feature. A first feature being "below", "below" and "below" a second feature includes that the first feature is directly below and obliquely below the second feature, or simply indicates that the first feature is lower in level than the second feature.
[0062] Example
[0063] The following are only preferred implementations of the present invention. The protection scope of the present invention is not limited to the following embodiments. All technical solutions under the concept of the present invention belong to the protection scope of the present invention.
[0064] Reference Manual Attached Figure 1 The present invention provides a method for calibrating parameters of urban road traffic flow simulation, which can be performed by a device for calibrating parameters of urban road traffic flow simulation (hereinafter referred to as calibration device), and in particular, by one or more processors in the calibration device to implement the following steps:
[0065] S101, obtaining historical traffic flow data and road network structure information of the simulation area, and constructing a simulation environment; the calibration device may be a computing device with data computing and processing capabilities such as a computer, a workstation, and a server, and the present invention does not specifically limit this. The historical traffic flow data and road network structure information data set of the simulation area can be obtained from various traffic platforms.
[0066] Historical traffic data includes historical traffic flow at the external entrances of the simulation area , Traffic light timing plan , Average speed of each entrance lane and average headway ; The road network structure information includes the number of intersections in the simulation area , Number of external entrance lanes and the number of entrance lanes at each intersection ;
[0067] S102, constructing decision variables and constraints of a traffic flow simulation calibration model;
[0068] In this embodiment, the driving process of the vehicle is divided into two aspects: longitudinal and lateral. The longitudinal aspect is the following behavior of the vehicle, and the lateral aspect is the lane changing behavior of the vehicle.
[0069] Based on the following behavior, select the average parking distance , Additional distance for safety distance and multiples of the safety distance As decision variables, The constraints are 1-4, the default value is 2, The constraint is 1-5, the default value is 3, The constraints are 1-6, and the default value is 3;
[0070] According to the lane-changing behavior, select the deceleration rate of the vehicle to be changed and the deceleration rate of the vehicle behind the target lane As decision variables, The constraint is 50-250, the default value is 100, where The constraint is 50-250, and the default value is 100;
[0071] S103, constructing a simulation calibration objective function according to the decision variables and constraint conditions, and establishing a simulation calibration model for urban road traffic flow based on a nonlinear least squares model;
[0072] In this embodiment, according to the number of decision variables divided in S102, it can be known that the unknown parameters are , , , , , when the number of equations is greater than the number of unknowns, there is a least squares solution; when the number of samples is satisfied When , there is a least squares solution, so the objective function of the simulation calibration model is established based on the nonlinear least squares model; since the calibration target is multi-target, the relative error index is selected to convert the average speed of each entrance lane and average headway The two calibration targets are converted into a single target;
[0073] According to the decision variables and constraints, select the average speed of each entrance lane and average headway As the simulation calibration target, the function expression of the simulation model parameters and the simulation target value is relatively complex and cannot be explicitly listed. We can only use the VISSIM platform to output implicit simulation results. Therefore, the expression of the average vehicle speed and simulation parameters is shown in formula (1), and the expression of the average headway and simulation parameters is shown in formula (2). The square sum of the average relative error of the average vehicle speed and the average headway of each entrance lane in each period is constructed as the simulation calibration target function. , as described in formula (3):
[0074] (1)
[0075] (2)
[0076] (3)
[0077] in, and is an implicit expression of the VISSIM platform, is the sample number of the simulation calibration target, is the number of samples for the simulation calibration target, is the number of entrance lanes, Number the entry lane, For the The entrance lane corresponding to the data point The measured value of the average vehicle speed, For the The entrance lane corresponding to the data point The simulated value of the average vehicle speed, For the The entrance lane corresponding to the data point The measured value of the average headway between vehicles, For the The entrance lane corresponding to the data point Simulation value of the average headway between vehicles;
[0078] S104, constructing the input and output of the traffic flow simulation calibration model based on the historical traffic flow data and the road network structure information; converting the historical traffic flow of the external entrance of the simulation area into , Traffic light timing plan , Average speed of each entrance lane and average headway Combined with road network information as the input of the model, namely:
[0079]
[0080] in Indicates the intersection number. The historical lane number indicating the exterior entrance, Indicates the external entrance lane number, Indicates time, Indicates a time interval;
[0081] Based on the input of the model, the output of the model is clearly defined as the calibrated simulation parameters ;
[0082] in represents the number of calibrated simulation parameters, Indicates the calibration parameter number, which can be known from S102 ;
[0083] S105, inputting the model according to the input features of the constructed traffic flow simulation calibration model, solving the model using a genetic algorithm, and obtaining calibrated simulation parameters;
[0084] According to the decision variables divided by S102, the constraints of the decision variables are standardized using the min-max standardization method to eliminate the influence caused by the different ranges and measurement units of the dependent variables. The conversion function is shown in formula (4):
[0085] (4)
[0086] in, After conversion The value of the parameter, Before conversion The value of the parameter, For the The minimum value that a parameter can obtain. For the The maximum value that a parameter can obtain;
[0087] As the instruction manual Figure 2 As shown, using binary coding, let the first Each individual contains 5 parameters, expressed as ,in arrive They represent the average parking distance, the additional safety distance, the multiple of the safety distance, the deceleration rate of the current vehicle and the deceleration rate of the rear vehicle respectively; the value range of each parameter is , through the chromosome encoding process, the value space of each parameter is discretized into Each copy corresponds to a set of binary strings; let the population size be , the randomly generated A binary string and a set of default values for parameters are used as the initial population;
[0088] According to the objective function described in S103 , establish the fitness function in the genetic algorithm , as shown in formula (5):
[0089] (5)
[0090] Using the roulette algorithm, the greater the fitness, the greater the probability of an individual being selected; and the smaller the fitness, the smaller the probability of an individual being selected; the crossover operation selects a single-point crossover method, and crosses each individual in the population with a certain probability. When the random number is less than the crossover probability, When the random number is greater than the crossover probability, the offspring obtains the parent gene located after the crossover point; when the random number is greater than the crossover probability When no crossover is performed, the mutation operation is performed at the probability When a mutation occurs, when the probability of a random number is less than When , the value of the gene is changed by reversing the binary of the mutation point, and the simulation parameters after calibration are obtained by reversing the binary of the mutation point;
[0091] S106, according to the solution to obtain the calibrated simulation parameters, select the characteristics under the working condition and combine them with the simulation parameters to input the model, and output the simulation results;
[0092] Reference Manual Attached Figure 3 As shown, according to the calibration simulation model solved in S105, it can be applied to the simulation under working conditions, and the historical traffic flow of the external entrance of the simulation area under working conditions is selected. , Traffic light timing scheme and calibrated simulation parameters as input for simulation application under working conditions:
[0093]
[0094]
[0095]
[0096] The simulation model outputs the simulation results of the average speed of each entrance lane Simulation results of average headway It is expressed as:
[0097]
[0098]
[0099] in, Indicates the application under working conditions, Expressed as The simulation parameters are calibrated.
[0100] In order to verify the effectiveness of the model and model solution proposed in the present invention, a practical example will be used below to illustrate the application of the present invention.
[0101] An intersection in the city was selected as the experimental object. Based on the actual road conditions at the intersection, the VISSIM simulation software was used to construct a road network structure with 6 lanes in the east-west direction and 4 lanes in the north-south direction. The data used were the traffic flow, signal light timing, and measured road data during the morning rush hour from 7:30 to 8:45 on five working days (August 1, August 2, and August 5-August 7), including traffic flow, average speed, and headway between vehicles in each time period. This embodiment only calculates traffic flow data for the 7:45-8:30 time period. Because there is already some traffic in the actual road network before the simulation period, in order to simulate as realistically as possible, this embodiment simulates stranded vehicles in the road network by adding traffic in the 7:30-7:45 and 8:30-8:45 time periods. Minutes, each working day has 9 sample data, and the number of calibrated parameters is 5, so the model has a least squares solution. The signal light timing plan for the 7:45-8:30 period is as attached to the manual. Figure 4 In order to analyze and compare the calibration results of each experiment, this embodiment selects three working days for calibration experiments, and the other two working days are used to verify the calibration results. The average relative error is used , mean absolute error As an evaluation index, the average vehicle speed before and after evaluation calibration and average headway The simulation error changes. The calculation formula is as follows:
[0102]
[0103]
[0104]
[0105]
[0106] in, is the number of entrance lanes at the intersection, Number your entry lanes; Indicates lane The average speed measured on Indicates lane Average vehicle speed simulation value on ; Indicates lane The average headway distance measured on Indicates lane Simulated value of average headway distance on .
[0107] The genetic algorithm parameter is set to the crossover probability , mutation probability Based on the above parameter settings, this embodiment compares three population sizes. Figure 5 It can be seen that the population size The average relative error is the smallest when the number of iterations is ɡ=50, and it tends to be stable. Therefore, in this embodiment, the population size of the genetic algorithm is set to 30, the number of iterations is 50, and the value space is discrete. .
[0108] This embodiment uses the default parameter method DP, the simulation parameter calibration method CFC that only calibrates the car-following parameters, the simulation parameter calibration method MC based on the Monte Carlo method (simultaneously calibrating the car-following parameters and the lane-changing parameters), and the simulation parameter calibration method OM based on the optimization model (simultaneously calibrating the car-following parameters and the lane-changing parameters) to conduct comparative experiments. The number of Monte Carlo experiments is 1000.
[0109] The calibrated simulation parameters and average relative error results are shown in Table 1. The calibrated parameters are verified on different working days, and the average relative error means of the average vehicle speed and average headway are compared, as shown in Table 2.
[0110]
[0111] Table 1 Comparison of parameter calibration results and relative error results of different methods
[0112]
[0113] Table 2 Calibration results verification table of this method
[0114] It can be found from Table 1 that the simulation parameters and simulation errors before and after calibration have great changes, indicating that the calibration of the simulation model is necessary. This method reduces the average relative error of the average vehicle speed and the average headway from 14.49% to 9.44%, from 20.21% to 10.51%, and from 31.83% to 19.12%, respectively, reducing the simulation error by 9.15% on average, proving the effectiveness of this method.
[0115] Compared with the simulation calibration method OM based on the optimization model, this method reduces the error by 0.92% on average compared with the OM method; compared with the Monte Carlo method MC, the method in this chapter reduces the error by 2.84% compared with the MC method. Therefore, the nonlinear least squares model is selected to establish the simulation parameter calibration model, and the genetic algorithm is used to solve the model.
[0116] It can be seen from Table 2 that in the verification on different working days, the average relative error of the average vehicle speed and average headway distance after calibration of this method is still smaller than the error under the default parameters. In the verification on August 6, the simulation error was reduced by an average of 8.93%, and in the verification on August 7, the simulation error was reduced by an average of 7.24%, indicating that this method can effectively reduce the simulation error and has universal applicability.
[0117] The reasons why errors still exist after calibration are analyzed: since the construction of the simulation model is not only related to the traffic flow input, but also to the setting of the road environment, the simulation environment cannot be exactly the same as the actual traffic scene, such as the location of road monitors, vehicle types, etc.; this method only considers the impact of motor vehicles on traffic flow, and does not simulate other situations such as pedestrians and non-motor vehicles, which may affect the simulation effect; there are errors in the measurement of traffic flow data; there are errors in the simulation of stranded vehicles in the middle of the road; the number of samples is insufficient or unrepresentative.
[0118] In summary, the embodiment of the present invention proposes a method for calibrating parameters of urban road traffic flow simulation based on a nonlinear least squares model, analyzes the influencing factors of the simulation model from different angles, selects the following parameters and lane change parameters as decision variables; selects the average vehicle speed and the average headway as calibration targets, and establishes the objective function of simulation parameter calibration based on the nonlinear least squares model; and solves the model by combining the genetic algorithm and the VISSIM platform. The simulation results show that the calibration effect of this method on the average vehicle speed and the average headway is better than other comparison algorithms, and effectively improves the accuracy of urban road traffic flow simulation.
[0119] The present invention also provides a system for calibrating parameters of urban road traffic flow simulation, which comprises:
[0120] The data acquisition unit 210 is used to acquire the historical traffic flow data and road network structure information of the simulation area and construct a simulation environment. The historical traffic flow data includes the historical traffic flow of the external entrance of the simulation area. , Traffic light timing scheme , Average speed of each entrance lane and average headway ; The road network structure information includes the number of intersections in the simulation area , Number of external entrance lanes and the number of entrance lanes at each intersection ;
[0121] The model building unit 220 is used to build a traffic flow simulation calibration model, which specifically includes decision variables, constraints and objective functions. The decision variables include the average parking distance. , Additional distance for safety distance , multiples of the safety distance , deceleration rate of lane-changing vehicles and the deceleration rate of the vehicle behind the target lane ; According to the decision variables and constraints, select the average speed of each entrance lane and average headway For simulation calibration, the square sum of the average relative error of the average vehicle speed and the average headway of each entrance lane in each period is constructed as the simulation calibration objective function. ;
[0122] The input and output unit 230 is used to construct the input and output of the traffic flow simulation calibration model. The input of the model includes the historical traffic flow of the external entrance of the simulation area. , Traffic light timing scheme , Average speed of each entrance lane and average headway ; The output of the model is the calibrated simulation parameters ;
[0123] The model solving unit 240 is used to solve the constructed traffic flow simulation calibration model to obtain the calibrated simulation parameters; the solving method is a genetic algorithm, and the solving steps include data standardization, chromosome encoding and initial population design, fitness function establishment, selection, crossover and mutation;
[0124] The model application unit 250 is used to apply the simulation parameters obtained after the solution to the working condition data, and select the historical traffic flow of the external entrance of the simulation area under the working condition. , Traffic light timing scheme The calibrated simulation parameters are used as the input of the simulation application under working conditions, and the simulation results of the average vehicle speed of each entrance lane are output through the simulation model. Simulation results of average headway , thus simulating the urban road traffic flow.
[0125] In several embodiments provided in the embodiments of the present invention, it should be understood that the disclosed system and method can also be implemented in other ways. The system and method embodiments described above are merely schematic. For example, the flowcharts and block diagrams in the accompanying drawings show the possible architecture, functions and operations of the systems, methods and computer program products according to multiple embodiments of the present invention. In this regard, each box in the flowchart or block diagram can represent a module, a program segment or a part of a code, and the module, a program segment or a part of a code contains one or more executable instructions for implementing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two consecutive boxes can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram and / or flowchart, and the combination of boxes in the block diagram and / or flowchart can be implemented with a dedicated hardware-based system that performs a specified function or action, or can be implemented with a combination of dedicated hardware and computer instructions.
[0126] In addition, the functional modules in the various embodiments of the present invention may be integrated together to form an independent part, or each module may exist independently, or two or more modules may be integrated to form an independent part.
[0127] If the function is implemented in the form of a software function module and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention is essentially or the part that contributes to the prior art or the part of the technical solution can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions to enable a computer device (which can be a personal computer, electronic device or network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk and other media that can store program code. It should be noted that in this article, the term "include", "include" or any other variant thereof is intended to cover non-exclusive inclusion, so that the process, method, article or device including a series of elements includes not only those elements, but also includes other elements that are not explicitly listed, or also includes elements inherent to such process, method, article or device. Without more constraints, an element defined by the phrase "comprising a..." does not exclude the existence of other identical elements in the process, method, article or apparatus comprising the element.
[0128] The above embodiments are only for illustrating the technical concept and features of the present invention, and their purpose is to enable people familiar with the technology to understand the content of the present invention and implement it accordingly, and they cannot be used to limit the protection scope of the present invention. Any equivalent changes or modifications made according to the spirit of the present invention should be included in the protection scope of the present invention.
Claims
1. A method for calibrating parameters of urban road traffic flow simulation, characterized in that: The steps include: (1) Obtain historical traffic data and road network structure information in the simulation area; (2) Constructing decision variables and constraints of the traffic flow simulation calibration model; The decision variables and constraints for constructing the traffic flow simulation calibration model in step (2) include: The vehicle's driving process is divided into two aspects: longitudinal and lateral. The longitudinal aspect is the vehicle's following behavior, while the lateral aspect is the vehicle's lane-changing behavior. Based on the following behavior, select the average parking distance , Additional distance for safety distance and multiples of the safety distance As decision variables, The constraints are 1-4, the default value is 2, The constraint is 1-5, the default value is 3, The constraints are 1-6, and the default value is 3; According to the lane-changing behavior, select the deceleration rate of the vehicle to be changed and the deceleration rate of the vehicle behind the target lane As decision variables, The constraint is 50-250, the default value is 100, where The constraint is 50-250, and the default value is 100; (3) constructing a simulation calibration objective function based on the decision variables and constraints constructed in step (2), thereby establishing an urban road traffic flow simulation calibration model based on a nonlinear least squares model; The step (3) of establishing a simulation calibration model for urban road traffic flow based on a nonlinear least squares model comprises the following steps: , , , , As an unknown parameter, set the number of samples The objective function of the simulation calibration model is established based on the nonlinear least squares model. The average vehicle speed of each entrance lane is selected according to the decision variables and constraints. and average headway As the simulation calibration target, the VISSIM platform outputs implicit simulation results, so the expressions of average vehicle speed and simulation parameters are shown in formula (1): (1) The expression of average headway distance and simulation parameters is shown in formula (2): (2) The simulation calibration objective function is constructed by taking the average relative error of the average vehicle speed and the average headway of each entrance lane in each period as the square sum of the average relative error of the average vehicle speed and the average headway of each entrance lane in each period as the simulation calibration objective function. , as shown in formula (3): (3) in, and is an implicit expression of the VISSIM platform, is the sample number of the simulation calibration target, is the number of samples for the simulation calibration target, is the number of entrance lanes, Number the entry lane, For the The measured value of the average speed of the entrance lane corresponding to the data point, For the The simulated value of the average vehicle speed in the entrance lane corresponding to the data point, For the The measured value of the average headway of the entrance lane corresponding to the data point, For the The simulated value of the average headway of the entrance lane corresponding to the data point; (4) constructing the input and output of the traffic flow simulation calibration model based on the historical traffic flow data and road network structure information of the simulation area obtained in step (1); (5) Using the input and output in step (4), the model is solved using a genetic algorithm to obtain calibrated simulation parameters; (6) Obtain calibrated simulation parameters according to the solution described in step (5), select the characteristics under the working conditions and combine them with the simulation parameters to input the model, and output the simulation results.
2. The method for calibrating parameters of urban road traffic flow simulation according to claim 1, characterized in that: The historical traffic flow data in step (1) includes the historical traffic flow of vehicles entering the external entrance of the simulation area. , Traffic light timing scheme , Average speed of each entrance lane and average headway ; The road network structure information includes the number of intersections in the simulation area , Number of external entrance lanes and the number of entrance lanes at each intersection .
3. The method for calibrating parameters of urban road traffic flow simulation according to claim 1, characterized in that: The input and output of the traffic flow simulation calibration model constructed in step (4) includes the following steps: , Traffic light timing scheme , Average speed of each entrance lane and average headway Combine road network information as input to the model: in Indicates the intersection number. The historical lane number indicating the exterior entrance, Indicates the external entrance lane number, Indicates time, Indicates the time interval; according to the input of the model, the output of the model is clearly defined as the calibrated simulation parameter ; in represents the number of calibrated simulation parameters, Indicates the parameter number of the calibration; Indicates the simulation area No. Historical inbound traffic for each exterior entrance lane, Indicates the simulation area No. The signal timing plan for each intersection; Indicates the simulation area No. Average speed of vehicles in the exterior entrance lanes; Indicates the simulation area No. Average head clearance for each exterior entrance lane.
4. The method for calibrating parameters of urban road traffic flow simulation according to claim 3, characterized in that: In step (5), the model is solved by using a genetic algorithm to obtain calibrated simulation parameters, which includes the following steps: according to the decision variables in step (2), the constraint conditions of the decision variables are standardized using a min-max standardization method to eliminate the influence caused by different dependent variable ranges and measurement units. The conversion function is shown in formula (4): (4) in, After conversion The value of the parameter, Before conversion The value of the parameter, For the The minimum value that a parameter can obtain. For the The maximum value that a parameter can obtain; The simulation parameters are encoded in binary. Each individual contains 5 parameters, expressed as ,in arrive They represent the average parking distance, the additional safety distance, the multiple of the safety distance, the deceleration rate of the current vehicle and the deceleration rate of the rear vehicle respectively; the value range corresponding to each individual is , through the chromosome encoding process, the value space of each parameter is discretized into Each copy corresponds to a set of binary strings; let the population size be , the randomly generated A binary string and a set of default values for parameters are used as the initial population; According to the objective function , establish the fitness function in the genetic algorithm , then (5) The greater the fitness, the greater the probability of an individual being selected; and the smaller the fitness, the smaller the probability of an individual being selected; the crossover operation selects a single-point crossover method, and crosses each individual in the population with a certain probability. When the random number is less than the crossover probability, When the random number is greater than the crossover probability, the offspring obtains the parent gene located after the crossover point; when the random number is greater than the crossover probability When no crossover is performed, the mutation operation is performed at the probability When a mutation occurs, when the probability of a random number is less than When the value of the gene is changed by inverting the binary of the mutation point, the calibrated simulation parameters are obtained by inverting the binary of the mutation point.
5. The method for calibrating parameters of urban road traffic flow simulation according to claim 4, characterized in that: In step (6), the characteristics under the working condition are selected and combined with the simulation parameters to input the model. The output simulation results include the following steps: selecting the historical traffic flow of the external entrance of the simulation area under the working condition , Traffic light timing scheme and calibrated simulation parameters as input for simulation application under working conditions: The simulation model outputs the simulation results of the average speed of each entrance lane Simulation results of average headway It is expressed as: in, Indicates the application under working conditions, Expressed as The simulation parameters are calibrated.
