Tutorial Control Delay

Main Page > Tutorials > Tutorial: Performance Measures

Control Delay Control Delay is the portion of the total delay attributed to a traffic control device (e.g., traffic signal). The total delay values output in the LinkMeasures.csv file can be verified with the following process.

'''Removing vehicles that entered subject link during warm-up time and did not depart within simulation duration. These instruction are based on using MS Excel.''' 1. The TSD output file for subject link is needed from a simulation run. 2. Remove/Delete vehicles that entered the subject link before expiration of warm-up time. 3. Remove/Delete vehicles that entered the subject link before expiration of the warm-up time. 4. Save cleaned file as TSD_1_0_1_input.csv.
 * Filter Column A (SimTime) with to include only time less than the warm-up time.
 * Identify the vehicle ID in Column B.
 * Clear the filtering for Column A, then filter Column B with these ID and Remove/Delete them.
 * Filter column A with 'simulation duration' + 'warm-up time' (the last time step of simulation).
 * Identify the vehicle ID in Column B.
 * Clear the filtering for Column A, then filter Column B with these ID and Remove/Delete them.

Note: Simulation duration time and warm-up time, as specified in the simulation control panel, are saved in the SwashSim project file (*.ssim).

Delay calculation using RStudio 5. Open RStudio and run total_delay.R.
 * This script calculates total delay by following process:
 * Input TSD_1_0_1_input.csv file. #script line 2
 * Input link length at prompt. #script line 11
 * Link Travel Time is calculated as = Link Exit Time - Link Entrance Time using time in column A. #script line 14-40
 * Vehicle Desired Speed = LinkFreeFlowSpeed* × Driver Type Desired Speed Multiplier*. #script line 14-40
 * Vehicle Desired Travel Time = Link Length* / Vehicle Desired Speed. #script line 14-40
 * Individual Vehicle Delay = Link Travel Time - Vehicle Desired Travel Time. #script line 14-40
 * Total delay = Summation of individual vehicle delay. #script line 14-40
 * Output total delay.csv from R. #script line 44-45

6. Check the results in total delay.csv.
 * Total vehicle: Count the number of ID in column B.
 * Total delay: summation of delay in Column F.(Filter out the negative values)

Note: This script is set up just for the through movement of the links. The vehicle desired speeds may be different for both left- and right-turning vehicles because the link free-flow speeds may be different for links with those movements than the links for the through movement.