rrtrials: 'rrtrials' produces 't-x' trajectories for lead and following...

Description Usage Arguments Value Examples

Description

rrtrials produces t-x trajectories for lead and following vehicles on a ring road

Usage

1
rrtrials(umn, usd, k0, N, T, leff, nveh, xlim, ylim)

Arguments

umn

lead vehicle speed (mph), a number

usd

standard deviation of lead vehicle speed (mph), a number

k0

traffic density (vehicles per mile, vpm), a number

N

number of time-steps, a number

T

upper time range (seconds), a number

leff

effective vehicle length (feet), a number

nveh

number of following vehicles, a number

xlim

plot range along the t axis, a vector

ylim

plot range along the x axis, a vector

Value

The rrtrials function returns t-x trajectories. for the lead and following vehicles on a single-lane road. This is a strict car-following model. Crossing trajectories are disallowed. In addition, a following vehicle driver maintains a safe headway while attempting to minimize travel time. In other words, the following vehicle's movement is constrained. Output from The rrtrials is an output matrix called LF.

Examples

1
2
3
rrtrials(41, 11, 50, 120, 120, 14, 9,   c(0, 120), c(-1000, 7500))
rrtrials(2,  2, 55, 60, 60, 14,    9,   c(0, 60), c(-2000, 600))
rrtrials(18.8, 3.8, 55, 120, 120, 14, 9, c(0, 120), c(-1000, 2000))

cartools documentation built on May 1, 2019, 10:40 p.m.