LinkCost: BPR link cost function

View source: R/LinkCost.r

LinkCostR Documentation

BPR link cost function

Description

This function calculates the travel costs as a function of link flow using the classic separable BPR cost function. Specifically, c(x) = Alpha*(1+0.15 (x/Beta)^pow) for pow > 0; c(x) = Alpha for pow = 0.

Usage

LinkCost(x, Alpha, Beta, pow = 4)

Arguments

x

Traffic volume on link

Alpha

Free flow travel time parameter

Beta

Link capacity parameter

pow

Polynomial order of cost function. Defaults to 4.

Value

Vector of link costs

Examples

x <- 1:25
costs <- LinkCost(x,Alpha=5,Beta=20)
plot(x,costs)

MartinLHazelton/transportation documentation built on Aug. 5, 2023, 10:28 a.m.