uxsim.RouteChoice¶
- class uxsim.RouteChoice(W)[source]¶
Class for computing shortest path for all vehicles.
Create route choice computation object.
- Parameters:
W (object) – The world to which this belongs.
- __init__(W)[source]¶
Create route choice computation object.
- Parameters:
W (object) – The world to which this belongs.
Methods
__init__
(W)Create route choice computation object.
Update link preference of all homogeneous travelers based on DUO principle.
route_search_all
([infty, noise])Compute the current shortest path based on instantaneous travel time.
- homogeneous_DUO_update()[source]¶
Update link preference of all homogeneous travelers based on DUO principle. Vectorized by Claude 3.5 Sonnet.
- route_search_all(infty=inf, noise=0)[source]¶
Compute the current shortest path based on instantaneous travel time.
- Parameters:
infty (float) – value representing infinity.
noise (float) – very small noise to slightly randomize route choice. useful to eliminate strange results at an initial stage of simulation where many routes has identical travel time.