solve_ue: FW Equilibrium assignment

Description Usage Arguments Value Examples

View source: R/solve_ue.R

Description

Solve the traffic flow assignment model (user equilibrium) by Frank-Wolfe algorithm (all the necessary data must be properly input into the model in advance).

Usage

1
solve_ue(graph, demand, col, max_iterations = 200)

Arguments

graph

Graph object created with configure_graph() function

demand

Demand object created with configure_demand() function

col

Column from demand file selected for assignment

max_iterations

Maximum number of iterations for Frank-Wolfe algorithm

Value

Graph object with assignment on 'flow' column

Examples

1
2
3
4
5
flist <- configure_graph(sioux_network,sioux_zones,use_cost_col=TRUE)
graph <- flist[[1]]
zones <- flist[[2]]
demand <- configure_demand(sioux_demand,zones)
graph <- solve_ue(graph,demand,col = 'demand')

douglascm/trafficr documentation built on March 13, 2020, 11:44 a.m.