Microscopic Traffic Simulation Civil Engineering (CE) Notes | EduRev

Civil Engineering (CE): Microscopic Traffic Simulation Civil Engineering (CE) Notes | EduRev

The document Microscopic Traffic Simulation Civil Engineering (CE) Notes | EduRev is a part of the Civil Engineering (CE) Course Transportation Engineering.
All you need of Civil Engineering (CE) at this link: Civil Engineering (CE)

Traffic Simulation Models 

Simulation modelling is an increasingly popular and effective tool for analyzing a wide variety of dynamical problems those associated with complex processes which cannot readily be described in analytical terms. Usually, these processes are characterized by the interaction of many system components or entities whose interactions are complex in nature. Specifically, simulation models are mathematical/logical representations of real-world systems, which take the form of software executed on a digital computer in an experimental fashion. The most important advantage is that these models are by no means exhaustive.

Need for simulation 

Traffic simulation models have a large variety of applications in the required fields. Now-a-days they become inevitable tools of analysis and interpretation of real world situations especially in Traffic Engineering. The following are some situations where these models can find their scope.

1. When mathematical or analytical treatment of a problem is found infeasible or inadequate due to its complex nature.

2. When there is some doubt in the mathematical formulation or results.

3. When there is a need of an animated view of flow of vehicles to study their behaviour. It is important to note that simulation can only be used as an auxiliary tool for evaluation and extension of results provided by other conceptual or mathematical formulations or models.


Traffic simulations models can meet a wide range of requirements:

1. Evaluation of alternative treatments

2. Testing new designs

3. As an element of the design process

4. Embed in other tools 5. Training personnel

6. Safety Analysis


Traffic simulation models can be classified based on different criteria. Figure 16:1 shows various types of classification. In a broader sense, they can be categorized into continuous and discrete ones according to how the elements describing a system change their states. The latter is again classified into two.

• Discrete time based models

• Discrete event based models


The first, divides time into fixed small intervals and within each interval the simulation model computes the activities which change the states of selected system elements. For some specific applications, considerable savings in computational time can be achieved by the use of event based models where scanning is performed based on some abrupt changes in the state of the system (events). However the discrete time models could be a better choice where the model objectives require more realistic and detailed descriptions.

According to the level of detailing, simulation models can be classified into macroscopic, mesoscopic and microscopic models. A macroscopic model describes entities and their activities and interactions at a low level of detail. Traffic stream is represented in an aggregate measure in terms of characteristics like speed, flow and density. A mesoscopic model generally represents most entities at a high level of detail but describes their activities and interactions at a much lower level of detail. A microscopic model describes both the system entities and their interactions at a high level of detail. Car following models and lane changing models are some significant examples. The choice of a particular type of model depends on the nature of the problem of interest.

Depending on the type of processes represented by the model, there are deterministic and stochastic models. Models without the use of any random variables or in other words, all entity interactions are defined by exact mathematical/logical relationships are called deterministic models. Stochastic models have processes which include probability functions.


Building Traffic Simulator 

The basic steps involved in the development are same irrespective of the type of model. The different activities involved are the following.

1. Define the problem and the model objectives

2. Define the system to be studied - Roadway, Vehicle and Driver characteristics

3. Model development

4. Model calibration

5. Model verification

6. Model validation

7. Documentation

The most significant steps among the above are described with the help of stating the procedure for developing a microscopic model.


 Model development 

The framework of a model consists of mainly three processes as mentioned below.

1. Vehicle generation

2. Vehicle position updation

3. Analysis

The flow diagram of a microscopic traffic simulation model is given in Figure 16.2. The basic structure of a model includes various component models like car following models like car following models, lane changing models etc. which come under the vehicle position updation part. In this chapter, the vehicle generation stage is explained in detail. The vehicles can be generated either according to the distributions of vehicular headways or vehicular arrivals. Headways generally follow one of the following distributions.

1. Negative Exponential Distribution (Low flow rate)

2. Normal Distribution (High flow rate)

3. Erlang Distribution (Intermediate flow rate)

The generation of vehicles using negative exponential distribution is demonstrated here. The probability distribution function is given as follows.

f(x) = λe−λx                                                                   (16.1)

From the above equation, the expression for exponential variate headway X can be derived as:

X = �(− loge R)                                                           (16.2)

where, � is the mean headway, R is the random number between 0 and 1 Random number

generation is an essential part in any stochastic simulation model, especially in vehicle generation module. Numerous methods in terms of computer programs have been devised to generate random numbers which appear to be random. This is the reason why some call them pseudorandom numbers. Therefore headways can be generated using the above expression by giving a random number and the mean headway as the input variables.

In a similar way, the vehicular arrival pattern can be modeled using Poisson’s distribution. The probability mass function is given as:

where, p(x) is the probability of x vehicle arrivals in an interval t, λ is the mean arrival rate of vehicles If the probability of no vehicle in the interval t is given as p(0), then this probability is same as the probability that the headway greater than or equal to t.


Numerical example 

Given flow rate is 900 veh/hr. Simulate the vehicle arrivals for 1 min using negative exponential distribution.

Solution Step 1: Calculate the mean headway  = 4sec. Step 2: Generate the random numbers between 0 and 1. Step 3: Calculate the headways and then estimate the cumulative headways. The calculations are given in Table 16:1

X = �(−logeR)


Numerical example

The hourly flow rate in a road section is 900 veh/hr. Use Poisson distribution to model this vehicle arrival for 10 min.

Solution Step 1: Calculate the no. of vehicles arriving per min. λ = 900/60 = 15 veh/min.

Step 2: Calculate the probability of 0, 1, 2, ... vehicles per minute using Poisson distribution formula. Also calculate the cumulative probability as shown below.

Step 3: Generate random numbers from 0 to 1. Using the calculated cumulative probability values, estimate the no. of vehicles arriving in that interval as shown in Table below. Here the total number of vehicles arrived in 10 min is 143 which is almost same as the vehicle arrival rate obtained using negative exponential distribution.

Table 16:1: Vehicle arrivals using Negative exponential distribution


Table 16:2: Calculation of probabilities using Poisson distribution


Table 16:3: Vehicle arrivals using Poisson distribution


Model calibration

The activity of specifying data to the model that describes traffic operations and other features which are site specific is called calibration of the model. In other words, calibration is the process of quantifying model parameters using real-world data. This data may take the form of scalar elements and of statistical distributions. Calibration is a major challenge during the implementation stage of any model. The commonly used methods of calibration are regression, optimization, error determination, trajectory analysis etc. A brief description about various errors and their significance is presented in this section. The optimization method of calibration is also explained using the following example problem.

Numerical example 

The parameters obtained in GM car-following model simulation are given in Table below. Field observed values of acceleration of follower is also given. Calibrate the model by finding the value of α. Assume l=1 and m=0. Use optimization method to solve the problem.


Solution Step 1: Formulate the objective function (z).


Step 2: Express a cal i in terms of α. As per GM model (since l=1 and m=0)

Step 3: Therefore the objective function can be expressed as:

z = (0.23 − 0.05α)2 + (0.46 − 0.06α)2 + (0.67 − 0.04α)2 + (0.82 − 0.01α)2


Step 4: Since the above function is convex, differentiating and then equating to zero will give the solution (as stationary point is the global minimum). Differentiating with respect to and equating to zero,

Then, value of α is obtained as 9.74.


Determination of Errors

Most of the available commercial traffic simulation software provides advanced user-friendly graphic user interfaces with flexible and powerful graphic editors to assist analysts in the modelbuilding process. This reduces the number of errors. There are a number of manual ways to quantify the error associated with every parameter while calibrating them. Some of the common measures of error and their expressions are discussed below.

1. Root mean square error

2. Root mean squared normalized error

3. Mean error

4. Mean normalized error

where, xi is the ith measured or simulated value, yi is the ith observed value The above error measures are useful when applied separately to measurements at each location instead of to all measurements jointly. They indicate the existence of systematic bias in terms of under or over prediction by the simulation model. Taking into account that the series of measurements and simulated values can be collected at regular time intervals, it becomes obvious that they can be interpreted as time series and, therefore, used to determine how close the simulated and the observed values are. Thus it can be determined that how similar both time series are. On the other hand, the use of aggregated values to validate a simulation seems contradictory if one takes into account that it is dynamic in nature, and thus time dependent. Theil defined a set of indices aimed at this goal and these indices have been widely used for that purpose. The first index is Theil’s indicator, U (also called Theil’s inequality coefficient), which provides a normalized measure of the relative error that reduces the impact of large errors:


The global index U is bounded, 0 ≤ U ≤ 1, with U = 0 for a perfect fit and xi = yi for i = 1 to N, between observed and simulated values. For U ≤ 0.2, the simulated series can be accepted as replicating the observed series acceptably well. The closer the values are to 0, the better will be the model. For values greater than 0.2, the simulated series is rejected.


Numerical example 

The observed and simulated values obtained using Model 1 and Model 2 are given in Table below.

1. Comment on the performance of both the models based on the following error measures - RMSE, RMSNE, ME and MNE.

2. Using Theil’s indicator, comment on the acceptability of the models


Solution 1. Using the formulas given below (Equations 16.4, 16.5, 16.6, 16.7), all the four errors can be calculated. Here N = 4.

Tabulations required are given below. Comparing Model 1 and Model 2 in terms of RMSE and RMSNE, Model 2 is better. But with respect to ME and MNE, Model 1 is better.

2. Theil’s indicator

The additional tabulations required are as follows: The value of Theil’s indicator is obtained as: For Model 1, U = 0.037 which is ≤ 0.2, and For Model 2, U = 0.027 which is ≤ 0.2. Therefore both models are acceptable.


Model Verification 

Following de-bugging, verification is a structured regimen to provide assurance that the software performs as intended. Since simulation models are primarily logical constructs, rather than computational ones, the analyst must perform detailed logical path analyses. When completed, the model developer should be convinced that the model is performing in accord with expectations over its entire domain of application.


Model Validation

Validation is the process to determine whether the simulation model is an accurate representation of the system under study. This establishes that the model behaviour accurately and reliably represents the real-world system being simulated, over the range of conditions anticipated and it involves the following major steps.

1. Acquiring and formatting real world data

2. Establishing the validation criteria - Hypotheses, Statistical tests etc.

3. Experimental design for validation including a variety of scenarios

4. Perform validation study

5. Identify the causes of failure if any and repair the model accordingly

The methodological scheme for validation is shown in the following Figure 16:3.


 Simulation Packages

Now a days, traffic simulation packages like CORSIM and VISSIM are frequently used as tools for analyzing traffic. VISSIM is a microscopic, time step and behaviour based simulation model developed to analyze the full range of functionally classified roadways and public transportation operations. Since all these are commercial software packages, it is not possible to make sufficient changes in the internal parameters used in these models according to the specific requirements. Common applications of these packages include freeway and arterial corridor studies, sub-area planning studies, evacuation planning, freeway management strategy development, environmental impact studies, Intelligent Transportation Systems (ITS) assessments, current and future traffic management schemes etc.

Results of simulation can be interpreted in different ways. Animation displays of extracting the sought information and insights from the mass of the traffic environment (if available) are a most powerful tool for analyzing simulation results. If the selected traffic simulation lacks an animation feature or if questions remain after viewing the animation, then the following procedures may be adopted:


1. Execute the model to replicate existing real-world conditions and compare its results with observed behaviour. This ”face validation” can be done to identify model or implementation deficiencies.

2. Perform ”sensitivity” tests on the study network by varying key variables and observing model responses in a carefully designed succession of model executions.

3. Plot these results. A review will probably uncover the perceived anomalies

Statistical analysis of the simulation results are also conducted to present point estimates of effectiveness and to form the confidence intervals. Through these processes, one can establish that which simulation system is the best among the different alternatives.



It can be observed from the study that using different microscopic simulation models, large scale real-world situations can be simulated in great detail. New applications of traffic simulation can contribute significantly to various programs in ITS. Calibration and validation are the

The document Microscopic Traffic Simulation Civil Engineering (CE) Notes | EduRev is a part of the Civil Engineering (CE) Course Transportation Engineering.
All you need of Civil Engineering (CE) at this link: Civil Engineering (CE)
23 videos|66 docs|39 tests

Download free EduRev App

Track your progress, build streaks, highlight & save important lessons and more!

Related Searches





past year papers


Extra Questions


shortcuts and tricks


Microscopic Traffic Simulation Civil Engineering (CE) Notes | EduRev


Microscopic Traffic Simulation Civil Engineering (CE) Notes | EduRev


Previous Year Questions with Solutions






video lectures


Semester Notes


mock tests for examination


Objective type Questions




Sample Paper


study material


practice quizzes


Important questions




Microscopic Traffic Simulation Civil Engineering (CE) Notes | EduRev


Viva Questions