rrtrials {cartools} | R Documentation |
rrtrials
produces t-x
trajectories for lead and following vehicles on a ring roadrrtrials
produces t-x
trajectories for lead and following vehicles on a ring road
rrtrials(umn, usd, k0, N, T, leff, nveh, xlim, ylim)
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 |
ylim |
plot range along the |
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
.
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))