rrtrials {cartools} R Documentation

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

### Description

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

### Usage

```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

```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))
```

[Package cartools version 0.1.0 Index]