Skip to content

detailed_itineraries with shortest_path = FALSE won't return a best solution #534

@luyuliu

Description

@luyuliu

Hi all,

We were testing on the sample data in Porto Alegre on using detailed_itineraries to get multiple shortest paths. We selected the route 654 as our route, and we selected a trip (654-1@1#1240) and used its start station as the origin (stop_id = "3450", the start of the route) and one of the station in the middle as the destination (stop_id = "3809"). The start time is set as "2019-06-18 12:30:00", and we changed the time point from 30 to 50 to see the changes.

The issue is threefold:

  1. In the solutions provided, the route 654 won't show, which is weird. We design the origin and destination and start time per the trip we selected in the timetable. We found the trip in the timetable so I was pretty sure it should be there. So, theoretically, it should pop up in the solution. However, we tested multiple times and the results are all very confusing.
Image

When changing shortest_path = True:
Image

Changing the date would also be different, even if they have the same service_id

Image
  1. When we change the time slightly and found that the solution very unstable.

  2. The time window parameter is not helping too. We used 1 since we want to find the exact solution.

We want to control the solution (to some degree) and reduce the uncertainties. Is this intentional or a feature of the routing algorithm? Thank you for any advice!

Thanks,
Luyu

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions