Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

set_suboptimal_minutes

Set suboptimal minutes


Description

Set suboptimalMinutes parameter in R5.

Usage

set_suboptimal_minutes(r5r_core, suboptimal_minutes)

Arguments

r5r_core

rJava object to connect with R5 routing engine

suboptimal_minutes

numeric. The number of suboptimal minutes in a public transport point-to-point query. From R5's documentation: This parameter compensates for the fact that GTFS does not contain information about schedule deviation (lateness). The min-max travel time range for some trains is zero, since the trips are reported to always have the same timings in the schedule. Such an option does not overlap (temporally) its alternatives, and is too easily eliminated by an alternative that is only marginally better. We want to effectively push the max travel time of alternatives out a bit to account for the fact that they don't always run on schedule.

Value

No return value, called for side effects.

See Also


r5r

Rapid Realistic Routing with 'R5'

v0.4.0
MIT + file LICENSE
Authors
Marcus Saraiva [aut] (<https://orcid.org/0000-0001-6218-2338>), Rafael H. M. Pereira [aut, cre] (<https://orcid.org/0000-0003-2125-7465>), Daniel Herszenhut [aut] (<https://orcid.org/0000-0001-8066-1105>), Carlos Kaue Vieira Braga [aut] (<https://orcid.org/0000-0002-6104-7297>), Matthew Wigginton Conway [aut] (<https://orcid.org/0000-0002-1210-2982>), Ipea - Institue for Applied Economic Research [cph, fnd]
Initial release
2021-04-15

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.