Skip to content

Wrong weight for edge-based CH when using AStar #2061

Closed

Description

@easbar

cacd3d7

This caused the build to fail in #2060:

Activity

  1. added this to the 2.0 milestone on Jun 8, 2020
  2. changed the title [-]Distance mismatch between CH and Dijkstra on Moscow test map[/-] [+]Wrong distance for edge-based CH when using AStar[/+] on Jun 10, 2020
  3. easbar commented on Jun 10, 2020

    @easbar
    MemberAuthor

    Unfortunately there seem to be cases where AStar finds a worse path than Dijkstra. Therefore I made Dijkstra the default again (I recently changed it to AStar here: #2054) for now here: f738fdf. We should also revisit why not more of our tests failed because of this.

  4. michaz commented on Jun 19, 2020

    @michaz
    Member

    Not sure if the same thing, but I just looked at today's failing test in the debugger, and it doesn't look very wrong to me.

    The test complains about a wrong distance -- however, we are not optimizing for distance, but for travel time. The travel time difference between the expected route and the actual route is just 1 millisecond. This could be a rounding error. Meaning there are multiple best paths. Meaning no problem.

  5. modified the milestones: 2.0, 3.0 on Sep 29, 2020
  6. changed the title [-]Wrong distance for edge-based CH when using AStar[/-] [+]Wrong weightg for edge-based CH when using AStar[/+] on Dec 13, 2020
  7. changed the title [-]Wrong weightg for edge-based CH when using AStar[/-] [+]Wrong weighting for edge-based CH when using AStar[/+] on Dec 13, 2020
  8. changed the title [-]Wrong weighting for edge-based CH when using AStar[/-] [+]Wrong weight for edge-based CH when using AStar[/+] on Dec 14, 2020
  9. easbar commented on Dec 17, 2020

    @easbar
    MemberAuthor

    The test complains about a wrong distance -- however, we are not optimizing for distance, but for travel time. The travel time difference between the expected route and the actual route is just 1 millisecond. This could be a rounding error. Meaning there are multiple best paths. Meaning no problem.

    This can also happen, but was not the (real) problem here. If there are equal weight paths that have different time/distance/nodes that is only counted as 'soft validation' and the tests will only fail when this happens too many times (normally it does not).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions