sample_local_destinations: Sample destinations for trips in local truck tours

Description Usage Arguments Details Examples

Description

Sample destinations for trips in local truck tours

Usage

1
2
3
sample_local_destinations(truck_origins, skim_distances,
  trip_length_targets, max_distance = 120, allow_intrazonals = TRUE,
  debug_tracing = FALSE)

Arguments

truck_origins

Data frame containing discrete trip records with origin zones annotated

skim_distances

Data frame containing distances between each IDSTM_TAZ combination

trip_length_targets

Data frame containing observed or asserted trip length frequencies or probabilities by distance for each truck type in the simulation

max_distance

The maximum distance that a local trip will travel to reach a discrete destination (default = 120 miles)

allow_intrazonals

A flag to indicate whether intrazonal trips will be included in the data (default = TRUE)

debug_tracing

A flag to indicate whether tracing statements for each origin and truck type combination are printed (default = FALSE)

Details

This function carries out a singly-constrained destination choice, where the utility of each destination can be varied between distance and size term. The resulting tibble mirrors the input trip list with the addition of the destination.

Examples

1
2
add_destinations <- sample_local_destinations(trip_records, skim_matrix,
  trip_length_targets)

rickdonnelly/pcvmodr documentation built on May 14, 2019, 8:17 a.m.