ExpectedPathCost: Expected path costs

View source: R/ExpectedPathCost.r

ExpectedPathCostR Documentation

Expected path costs

Description

This function calculates expected path costs as a function of mean link flows under various probability models. Its primary use is when called by the function GSUE. For the product multinomial model, a normal approximation to higher order moments is applied unless the link path incidencde matrix is diagonal.

Usage

ExpectedPathCost(
  x,
  ODdemand,
  ODpair,
  A = diag(length(x)),
  Alpha,
  Beta,
  pow = 4,
  prob.model = "ProductMN"
)

Arguments

x

Vector of mean link flows

ODdemand

Vector of origin-destination (OD) travel demands

ODpair

Vector indicating the OD pair serviced by each route (ordered by columns of the path-link incidence matrix, A).

A

Path-link incidence matrix

Alpha

Vector of free flow travel time parameters for each link

Beta

Vector of capacity parameters for each link

pow

Polynomial order of cost function for each link. Defaults to 4.

prob.model

Route choice probability model. One of "ProductMN" (product multinomial, the default), or "Poisson".

theta

A dispersion parameter. For the logit model, a single value specifying the logit parameter. For the probit model, a vector of standard deviations for the individual link cost errors. Defaults to 1.

Value

Vector of expected path costs

Examples

ExpectedPathCost()

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