Volume Delay Functions#
Volume Delay Functions (VDFs) are mathematical functions that describe the relationship between link travel time and traffic volume. They are essential components of traffic assignment models, representing how congestion affects travel times as more vehicles use a link.
AequilibraE implements five different VDF formulations, each with distinct characteristics that make them suitable for different modelling traditions.
Available VDF Functions#
AequilibraE currently supports the following VDF functions:
BPR - Bureau of Public Roads (traditional)
BPR2 - Modified BPR with enhanced sensitivity after capacity
Conical - Spiess’ Conical function
INRETS - French INRETS function
Akcelik - Akcelik’s function for signalized intersections
VDF Comparison#
The following chart compares the behaviour of all available VDF functions with their example values:
Key observations:
All functions show increasing travel times as the Volume/Capacity (V/C) ratio increases
Functions differ significantly in their behaviour near and above capacity (V/C = 1)
BPR and Conical are smooth throughout the range
BPR2 and INRETS have distinct behavioural changes at capacity
Akcelik shows moderate growth rates suitable for signalized intersections
Near-Capacity Behavior#
The behaviour of VDFs near capacity is particularly important for congested urban networks:
This zoomed view (V/C from 0.5 to 1.5) highlights the differences in how each function transitions from free-flow to congested conditions.
Detailed VDF Descriptions#
BPR (Bureau of Public Roads)#
Mathematical Formula:
- Where:
\(t\) = congested travel time
\(t_0\) = free-flow travel time
\(v\) = volume (flow) on the link
\(c\) = capacity of the link
\(\alpha\) = calibration parameter
\(\beta\) = calibration parameter (power)
- Standard Parameters:
\(\alpha = 0.15\)
\(\beta = 4.0\)
Origin and Background:
The BPR function was developed by the U.S. Bureau of Public Roads in the 1960s and has become the most widely used VDF in transportation planning. Its simplicity and effectiveness have made it the standard choice for highway assignment models worldwide.
Characteristics:
Continuous and smooth across all volume levels
Monotonically increasing (no discontinuities)
Convex function ensuring convergence in assignment algorithms
Well-suited for highway networks
Standard parameters are based on extensive empirical studies
When to Use:
Highway and freeway networks
Long-distance travel modelling
When computational stability is critical
As a baseline for comparison with other functions
When empirical data supports the standard parameters
Limitations:
May underestimate congestion effects at very high V/C ratios
Less suitable for signalized urban arterials
BPR2 (Modified BPR)#
Mathematical Formula:
Before capacity (\(v \leq c\)):
After capacity (\(v > c\)):
- Standard Parameters:
\(\alpha = 0.15\)
\(\beta = 4.0\)
Origin and Background:
BPR2 is a modification of the traditional BPR function designed to better represent the rapid deterioration of traffic conditions when demand exceeds capacity. The doubling of the exponent after capacity creates a steeper penalty for over-capacity conditions.
Characteristics:
Piecewise function with a transition at V/C = 1
Much steeper increase in travel time after capacity is exceeded
Maintains BPR behaviour below capacity
Non-differentiable at V/C = 1 (but continuous)
More aggressive congestion penalty than standard BPR
When to Use:
Networks with strong capacity constraints
Modeling scenarios where over-capacity conditions should be heavily penalized
Mixed networks with both highways and congested urban roads
When trying to prevent unrealistic over-assignment
Limitations:
Non-differentiable point at capacity may cause convergence issues in some algorithms
The sharp transition may not reflect real-world gradual congestion buildup
Requires careful calibration of the transition behaviour
Conical (Spiess)#
Mathematical Formula:
With \(\beta = \frac{2 \alpha-1}{2 \alpha-2}\)
- Standard Parameters:
\(\alpha = 2.0\) (must be \(\alpha > 1\))
\(\beta = 1.5\), according to the above relation
Origin and Background:
Developed by Heinz Spiess in 1990, the Conical function was designed to overcome some theoretical limitations of the BPR function while maintaining computational tractability. It ensures positive derivatives everywhere and has desirable mathematical properties for convergence.
Characteristics:
Infinitely differentiable (smooth everywhere)
Asymptotic behaviour as V/C approaches infinity
Guaranteed positive marginal costs
Strong theoretical foundation
Good convergence properties in equilibrium algorithms
When to Use:
When theoretical rigor is important
Transit assignment (where it was originally designed)
Networks requiring guaranteed convergence
Academic studies and benchmarking
When smooth derivatives are required throughout
Limitations:
Less intuitive parameterization than BPR
May require specialized calibration
Not as widely validated in practice as BPR
Parameters have different interpretations than BPR
INRETS (French)#
Mathematical Formula:
Before capacity (\(v \leq c\)):
After capacity (\(v > c\)):
- Standard Parameters:
\(\alpha = 1.0\) (must be \(\leq 1.0\))
Origin and Background:
The INRETS function was developed by the French National Institute for Transport and Safety Research (Institut National de Recherche sur les Transports et leur Sécurité). It was designed specifically for French urban networks and reflects European traffic flow characteristics.
Characteristics:
Piecewise function with distinct before/after capacity behaviour
The \(\alpha\) parameter must be less than or equal to 1.0
Hyperbolic behaviour before capacity
Quadratic behaviour after capacity
Designed for urban arterial roads
Reflects observed traffic patterns in French cities
When to Use:
Urban arterial networks
European-style road networks
When modelling contexts similar to French urban environments
Networks with well-defined capacity constraints
Calibrated models for specific urban areas
Limitations:
Restricted parameter range (\(\alpha \leq 1.0\))
Non-differentiable at V/C = 1
Less widely used outside of Europe
May require local calibration
Dramatic change in behaviour at capacity may not suit all networks
Akcelik#
Mathematical Formula in the Literature:
Where \(z = \frac{v}{c} - 1\), \(\mathrm{T}_f\) is the duration of the analysis period, and \(t\) and \(t_0\) are in the units time per distance (inverse of speed), not time. Importantly, the time unit component of \(\mathrm{T}_f\), \(t\), and \(t_0\) must match.
The units in this formulation do not match the units of other VDF functions implemented in AequilibraE. To provide a consistent API and usage semantics, we implement the equivalent formulation below.
Mathematical Formula in the AequilibraE:
Where \(z = \frac{v}{c} - 1\), and \(t\) and \(t_0\) are in time units. This formulation introduces a new parameter \(\alpha\), and absorbs the \(8 / \mathrm{T}_f\) factor into \(\tau\).
- Standard Parameters:
\(\alpha = 0.25 \cdot \mathrm{T}_f\)
\(\tau = 0.1 \cdot 8 / \mathrm{T}_f\) (see note below)
Note
Different than other VDF functions, Akcelik depends on link length and consistency between its parameters and the units for speed and link length. As it is common for models to use distance in meters, speed in kilometers per hour and to assign time periods longer than one hour, the \(\alpha\) and \(\tau\) parameters should be calibrated accordingly.
Origin and Background:
Developed by Rahmi Akcelik, this function was specifically designed for signalized intersections and urban arterials. It incorporates queue theory and reflects the delay characteristics of traffic signals.
Important Note on τ Parameter:
In standard Akcelik formulations, the function includes a factor of \(8 / \mathrm{T}_f\) in the formula. However, in AequilibraE’s implementation, this factor of 8 has been absorbed into the \(\tau\) parameter.
What this means for users:
If academic literature references a \(\tau\) value (e.g., 0.1), you must multiply it by 8 before setting it in AequilibraE, then adjust by the duration of the analysis period.
Example: To use \(\tau = 0.1\), set
tau = 0.8 / T_fin AequilibraE.Example: To use \(\tau = 0.15\), set
tau = 1.2 / T_fin AequilibraE.A value of 0.8 corresponds to a standard \(\tau = 0.1\) for the unit time period.
Characteristics:
Specifically designed for signalized intersections
Includes queue-based delay components
Smooth transition through capacity
More moderate growth than BPR at high V/C ratios
Grounded in traffic signal theory
When to Use:
Urban networks with signalized intersections
Arterial roads with frequent signals
Australian and some Asian modelling contexts (where it’s more common)
Limitations:
Less intuitive than BPR for general highway modelling
Parameter interpretation requires understanding of signal timing
May underestimate delay on uninterrupted flow facilities
Less validated for freeway applications
Parameter Selection Guidelines#
General Recommendations#
For BPR and BPR2:
\(\alpha = 0.15\) and \(\beta = 4.0\) are widely accepted for highways
Urban arterials may benefit from \(\alpha\) values between 0.15 and 0.25
Higher \(\beta\) values (5-8) create sharper congestion curves
Lower \(\beta\) values (2-3) create more gradual curves
For Conical:
Values satisfying \(2.0 \leq \alpha \leq 9.0\) have been recommended by the Hampton Roads Transportation Planning Organization (2020), depending on the types of roads being modelled.
Fine-tuning may require understanding of the specific mathematical properties
For INRETS:
\(\alpha = 1.0\) is standard
Must satisfy \(\alpha \leq 1.0\)
Higher values create steeper curves before capacity
For Akcelik:
\(\alpha = 0.25\) is typical for signalized intersections
\(\tau\) should reflect local traffic signal characteristics
Remember to use \(8 \times \tau\) in AequilibraE
Calibration Considerations#
When calibrating VDF parameters:
Use observed data: Speed-flow or travel time-volume data from your network
Consider facility types: Highways, arterials, and local streets may need different parameters
Validate results: Compare assigned volumes and speeds against counts
Test sensitivity: Understand how parameter changes affect results
Check convergence: Ensure your chosen parameters allow the algorithm to converge
Match local conditions: Standard parameters may not suit all geographic contexts
Setting VDF Parameters in AequilibraE#
In AequilibraE, VDF parameters can be set either as network-wide constants or as link-specific attributes:
Network-wide parameters:
from aequilibrae.traffic import TrafficAssignment, TrafficClass
from aequilibrae.traffic.vdf import bpr
assignment = TrafficAssignment(
network=project.road.build_network(),
classes=[traffic_class],
time_field="free_flow_time",
capacity_field="capacity",
vdf=bpr,
algorithm="bfw",
name_mapping={"alpha": 0.15, "beta": 4.0},
)
Link-specific parameters:
# Parameters can reference field names in your network
assignment = TrafficAssignment(
network=project.road.build_network(),
classes=[traffic_class],
time_field="free_flow_time",
capacity_field="capacity",
vdf=bpr,
algorithm="bfw",
name_mapping={"alpha": "alpha_field", "beta": "beta_field"},
)
This flexibility allows you to:
Use different parameters for different facility types
Implement spatially varying congestion characteristics
Calibrate specific links or corridors independently
Choosing the Right VDF#
Decision Framework#
Use this decision tree to help select an appropriate VDF:
- For Highway Networks:
Start with BPR - it’s well-validated and robust
Consider BPR2 if you need stronger over-capacity penalties
Use Conical for theoretical/academic studies
- For Urban Networks:
Use Akcelik for signalized arterial networks
Consider INRETS for European-style urban contexts
BPR works as a general fallback
- For Mixed Networks:
BPR or BPR2 provide good general performance
Consider using link-specific parameters to vary behaviour by facility type
- For Transit Assignment:
Conical was originally designed for transit applications
Computational Considerations#
BPR and Akcelik: Smooth everywhere, excellent convergence
Conical: Best mathematical properties, guaranteed convergence
BPR2 and INRETS: Non-differentiable at capacity, may need more iterations
All functions are computationally efficient in AequilibraE
Performance Comparison#
While individual network characteristics vary, general patterns include:
BPR: Most widely validated, good general performance
BPR2: Better for preventing unrealistic over-capacity assignment
Conical: Excellent convergence behaviour, less intuitive calibration
INRETS: Good for specific urban contexts, may need local calibration
Akcelik: Best for signalized urban networks
Examples#
Basic Usage#
from aequilibrae.traffic import TrafficAssignment, TrafficClass
from aequilibrae.traffic.vdf import bpr, bpr2, akcelik, builtin_vdfs
# Check available VDF functions
vdfs = builtin_vdfs()
print(vdfs.keys())
# Output: dict_keys(['bpr', 'bpr2', 'conical', 'inrets', 'akcelik'])
# Setup traffic assignment with BPR
assignment = TrafficAssignment(
network=project.road.build_network(),
classes=[traffic_class],
time_field="free_flow_time",
capacity_field="capacity",
vdf=vdfs["bpr"],
algorithm="bfw",
name_mapping={"alpha": 0.15, "beta": 4.0},
)
Using Different VDFs#
# Highway network - standard BPR
highway_assignment = TrafficAssignment(
network=project.road.build_network(),
classes=[traffic_class],
time_field="free_flow_time",
capacity_field="capacity",
vdf=bpr,
algorithm="bfw",
name_mapping={"alpha": 0.15, "beta": 4.0},
)
# Urban network with signals - Akcelik
signal_assignment = TrafficAssignment(
network=project.road.build_network(),
classes=[traffic_class],
time_field="free_flow_time",
capacity_field="capacity",
vdf=akcelik,
algorithm="bfw",
name_mapping={"alpha": 0.25, "tau": 0.8, "length": "distance"},
)
# Network with strong capacity constraints - BPR2
strong_capacity_assignment = TrafficAssignment(
network=project.road.build_network(),
classes=[traffic_class],
time_field="free_flow_time",
capacity_field="capacity",
vdf=bpr2,
algorithm="bfw",
name_mapping={"alpha": 0.15, "beta": 4.0},
)
Link-Specific Parameters#
# Assume your network has fields 'alpha_field' and 'beta_field'
# with values calibrated for each link
variable_assignment = TrafficAssignment(
network=project.road.build_network(),
classes=[traffic_class],
time_field="free_flow_time",
capacity_field="capacity",
vdf=bpr,
algorithm="bfw",
name_mapping={"alpha": "alpha_field", "beta": "beta_field"},
)
Creating Custom VDFs#
For a complete workflow that uses a custom quadratic VDF in a future-year assignment, see Forecasting with a custom VDF.
Custom VDFs can be created in three different ways. When using the python constructor of the VDF object, the VDF function and its derivative can be input as either a Callable, or as a string to be interpreted by NumExpr. Alternatively, the string representation and other data can be placed in a project’s yaml file. In all cases, if the derivative is not supplied, then it will be computed numerically using the central difference scheme.
The VDF callable (func) and its derivative (d_func) write their results to their first argument, which is an output array. The VDF receives that array as congested_time, and the derivative receives it as delta. The exact calls are shown by these methods in the VDF class:
def apply_vdf(self, *, congested_time, link_flows, fftime, capacity, cores: int, **link_attributes):
self.func(congested_time, link_flows, fftime, capacity, cores, **link_attributes)
def apply_derivative(self, *, delta, link_flows, fftime, capacity, cores: int, **link_attributes):
self.d_func(delta, link_flows, fftime, capacity, cores, **link_attributes)
A Python VDF callable must accept congested_time, link_flows, fftime, capacity, cores, followed by any custom link attributes. Its derivative must accept delta, link_flows, fftime, capacity, cores, followed by the same custom link attributes.
The following example defines the SANDAG modified two-part additive formulation [1] as a Python VDF.
# define custom vdf function
def SANDAG_modified_two_part_additive(
congested_time,
link_flows,
fftime,
capacity,
cores,
alpha_1,
beta_1,
alpha_2,
beta_2,
green_to_cycle_ratio,
cycle_time,
intersection_capacity,
):
voc = link_flows / capacity
voc_intersection = link_flows / intersection_capacity
term_1 = fftime * (
1.0 + alpha_1 * voc**beta_1
)
term_2 = (
0.5
* cycle_time
* (1 - green_to_cycle_ratio) ** 2
* (1.0 + alpha_2 * voc_intersection**beta_2)
)
congested_time[:] = term_1 + term_2
# define custom vdf derivative
def derivative_SANDAG_modified_two_part_additive(
delta,
link_flows,
fftime,
capacity,
cores,
alpha_1,
beta_1,
alpha_2,
beta_2,
green_to_cycle_ratio,
cycle_time,
intersection_capacity,
):
voc = link_flows / capacity
voc_intersection = link_flows / intersection_capacity
term_1 = (
fftime
* alpha_1
* beta_1
* voc ** (beta_1 - 1)
/ capacity
)
term_2 = (
0.5
* cycle_time
* (1 - green_to_cycle_ratio) ** 2
* alpha_2
* beta_2
* voc_intersection ** (beta_2 - 1)
/ intersection_capacity
)
delta[:] = term_1 + term_2
# define the specification
SANDAG_spec = {
"alpha_1": {"fill_NA": 0.15, "bounds": (0.0, float("inf"))},
"beta_1": {"fill_NA": 4.0, "bounds": (1.0, float("inf"))},
"alpha_2": {"fill_NA": 0.15, "bounds": (0.0, float("inf"))},
"beta_2": {"fill_NA": 4.0, "bounds": (1.0, float("inf"))},
"green_to_cycle_ratio": {"bounds": (0.0, 1.0)},
"cycle_time": {"bounds": (0.0, float("inf"))},
"intersection_capacity": {"bounds": (0.0, float("inf"))}
}
# uses both the defined function and derivative
sandag_vdf = VDF(
"SANDAG",
SANDAG_modified_two_part_additive,
SANDAG_spec,
derivative_SANDAG_modified_two_part_additive,
)
# only uses the definition of the vdf function
# derivative is calculated numerically using finite difference
sandag_finite_difference_derivative_vdf = VDF(
"SANDAG",
SANDAG_modified_two_part_additive,
SANDAG_spec,
)
The following shows the SANDAG modified two-part additive formulation being created using a string representation to be evaluated by NumExpr.
SANDAG_string_representation = (
"fftime * (1.0 + alpha_1 * (link_flows / capacity)**beta_1) + "
"0.5 * cycle_time * (1 - green_to_cycle_ratio)**2 * "
"(1.0 + alpha_2 * (link_flows / intersection_capacity)**beta_2)"
)
derivative_SANDAG_string_representation = (
"fftime * alpha_1 * beta_1 * (link_flows / capacity) ** (beta_1 - 1) / capacity + "
"0.5 * cycle_time * (1 - green_to_cycle_ratio) ** 2 * "
"alpha_2 * beta_2 * (link_flows / intersection_capacity) ** "
"(beta_2 - 1) / intersection_capacity"
)
# string representations of the function and its derivative will be interpreted by NumExpr
sandag_string_vdf = VDF(
"SANDAG",
SANDAG_string_representation,
SANDAG_spec,
derivative_SANDAG_string_representation
)
This VDF could also be read in from a project’s yaml file. The “vdfs” entry of the parameters file would contain:
vdfs:
SANDAG:
functional_form: >
fftime * (1.0 + alpha_1 * (link_flows/capacity)**beta_1) +
0.5 * cycle_time * (1 - green_to_cycle_ratio)**2 * (1.0 + alpha_2 * (link_flows/intersection_capacity)**beta_2)
derivative_functional_form: >
(fftime * alpha_1 * beta_1 * (link_flows / capacity) ** (beta_1 - 1) / capacity
+ 0.5 * cycle_time * (1 - green_to_cycle_ratio) ** 2
* alpha_2 * beta_2 * (link_flows / intersection_capacity) ** (beta_2 - 1) / intersection_capacity)
spec:
alpha_1:
fill_NA: 0.15
bounds: [0.0, .inf]
beta_1:
fill_NA: 4.0
bounds: [1.0, .inf]
alpha_2:
fill_NA: 0.15
bounds: [0.0, .inf]
beta_2:
fill_NA: 4.0
bounds: [1.0, .inf]
green_to_cycle_ratio:
bounds: [0.0, 1.0]
cycle_time:
bounds: [0.0, .inf]
intersection_capacity:
bounds: [0.0, .inf]
This can then be loaded with:
# includes all built-in preset VDFs and any VDFs defined in the project's parameters
all_vdfs = project.project_parameters.get_vdfs()
# only the VDFs explicitly defined in the parameters file
custom_vdfs = project.project_parameters.get_vdfs(exclude_builtins=True)
sandag_yaml_vdf = custom_vdfs["SANDAG"]
If a name in the “vdfs” entry collides with one of the built in presets (for example “bpr”),
get_vdfs raises a ValueError.
Checking Custom VDFs#
The check_valid function on a VDF object checks whether the VDF satisfies the following criteria for a well-behaved congestion function described by Spiess (1990):
The VDF is strictly increasing - when there is more traffic, the delay increases
(part of) For no volume on the link, the congested time is the free flow travel time
The VDF’s derivative exists and is strictly increasing, to ensure that it is convex
It achieves this by evaluating the VDF and its derivative at a specified number of values of volume between 0 and 3, with a capacity assumed to be 1. It then finds the values of volume / capacity where these conditions were violated, and prints out the result.
For example, the built-in INRETS VDF is non-convex:
from aequilibrae.traffic.vdf import inrets
num_points = 300
link_attributes = {"alpha": np.full(num_points, 0.9, dtype=np.float64)}
# true, true, true, false
valid_0_value, increasing_f_vals, nonnegative_derivative, convex = inrets.check_valid(num_points, link_attributes)
# Prints out:
# The VDF is non-convex due to its derivative decreasing at these values of volume/capacity: [np.float64(1.0033444816053512)]
References and Further Reading#
BPR Function:
Bureau of Public Roads (1964). Traffic Assignment Manual. U.S. Department of Commerce.
Conical Function:
Spiess, H. (1990). “Technical Note—Conical Volume-Delay Functions.” Transportation Science, 24(2): 153-158. https://doi.org/10.1287/trsc.24.2.153
Hampton Roads Transportation Planning Organization (2020). Regional Travel Demand Model V2 Methodology Report. Available: https://www.hrtpo.org/uploads/docs/2020_HamptonRoads_Modelv2_MethodologyReport.pdf (accessed February 2026)
Akcelik Function:
Akcelik, R. (1991). “Travel Time Functions for Transport Planning Purposes: Davidson’s Function, Its Time Dependent Form and an Alternative Travel Time Function.” Australian Road Research, 21(3): 49-59.
Custom VDF example:
General Traffic Assignment:
Sheffi, Y. (1985). Urban Transportation Networks: Equilibrium Analysis with Mathematical Programming Methods. Prentice-Hall, Englewood Cliffs, NJ.
Patriksson, M. (1994). The Traffic Assignment Problem: Models and Methods. VSP, Utrecht.
Multi-class Assignment:
Zill, J., Camargo, P., Veitch, T., Daisy, N. (2019). “Toll Choice and Stochastic User Equilibrium: Ticking All the Boxes.” Transportation Research Record, 2673(4): 930-940. https://doi.org/10.1177/0361198119837496