LinkCost | R Documentation |
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.
LinkCost(x, Alpha, Beta, pow = 4)
x |
Traffic volume on link |
Alpha |
Free flow travel time parameter |
Beta |
Link capacity parameter |
pow |
Polynomial order of cost function. Defaults to 4. |
Vector of link costs
x <- 1:25
costs <- LinkCost(x,Alpha=5,Beta=20)
plot(x,costs)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.