You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
seems to fail, because the LMApproximator uses its fallBackApproximator, but the toNode of the fallBackApproximator is never set leading to an overestimation of the minimum distance. This might be easy to fix and we should do first.
your mentioned missing initialization of the fallbackApproximator
separate factor for from and delta
use double instead int for weights for cleaner API and virtual node addition (otherwise unclear which factor applies)
skip infinite weight when selecting maximum weights of all landmarks
set unclear subnetwork for smaller subnetworks (and handle smaller subnetworks first <-> sort list). This avoids that a landmark is created in such a smaller subnetwork leading to many maxed out weights as one direction is not reachable to or from the bigger subnetwork
test performance on bigger instances
try fallbackApproximator if weight is 0 or less
we could explore the graph from the landmarks and use the maximum weight there to call setMaximumWeight, instead of the guess based on the area
Unfortunately some of the raised issues from random tests are not that critical because often just the factor is incorrectly guessed and so increasing prepareLandmarks.setMaximumWeight(1000) to 10000 helped. It seems that also a too small max weight leads to incorrect routes (too much heuristic) not only too small like already documented in the javadocs.
Activity
karussell commentedon Aug 26, 2019
I have fixed some issues in this branch: https://github.com/graphhopper/graphhopper/tree/lm_bug_1687
Unfortunately some of the raised issues from random tests are not that critical because often just the factor is incorrectly guessed and so increasing
prepareLandmarks.setMaximumWeight(1000)to 10000 helped. It seems that also a too small max weight leads to incorrect routes (too much heuristic) not only too small like already documented in the javadocs.easbar commentedon Aug 26, 2019
Hmm yes I can imagine, maybe we need more realistic random graphs for LM...
Fixes landmark issue; fixes #1687