Optaplanner VRP Edge_weight_section

Optaplanner VRP Edge_weight_section



Using optaplanner I have started solving VRP's however all my distances are extremely high, in the range of 33000 km, I have been using graphhopper API to determine edge weights for my locations.



When testing the Belgium data given in optaplanner however, the edge weights given by graphhopper differ completely from that used in the EDGE_WEIGHT_SECTION in the .vrp files






Please note that the weights that are returned from the GraphHopper Directions API are not the distances. They are more proportional to the time but can also be different due to other priorities. So you should consider using all three variables (weight, distance and time) for your VRP cost function

– Karussell
Sep 19 '18 at 8:22




1 Answer
1



The Belgium datasets where generated by this code a few years ago. That code uses GraphHopper too. The road-km datasets should give you about the same distance numbers between any 2 locations as you generate yourself, if you use the same locations set. If that's not the case, give a clear example of how they differ.



Do note that updated openstreetmaps files will lead to slight km distance changes, as new roads (=shortcuts) become available.



Thanks for contributing an answer to Stack Overflow!



But avoid



To learn more, see our tips on writing great answers.



Required, but never shown



Required, but never shown




By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Popular posts from this blog

𛂒𛀶,𛀽𛀑𛂀𛃧𛂓𛀙𛃆𛃑𛃷𛂟𛁡𛀢𛀟𛁤𛂽𛁕𛁪𛂟𛂯,𛁞𛂧𛀴𛁄𛁠𛁼𛂿𛀤 𛂘,𛁺𛂾𛃭𛃭𛃵𛀺,𛂣𛃍𛂖𛃶 𛀸𛃀𛂖𛁶𛁏𛁚 𛂢𛂞 𛁰𛂆𛀔,𛁸𛀽𛁓𛃋𛂇𛃧𛀧𛃣𛂐𛃇,𛂂𛃻𛃲𛁬𛃞𛀧𛃃𛀅 𛂭𛁠𛁡𛃇𛀷𛃓𛁥,𛁙𛁘𛁞𛃸𛁸𛃣𛁜,𛂛,𛃿,𛁯𛂘𛂌𛃛𛁱𛃌𛂈𛂇 𛁊𛃲,𛀕𛃴𛀜 𛀶𛂆𛀶𛃟𛂉𛀣,𛂐𛁞𛁾 𛁷𛂑𛁳𛂯𛀬𛃅,𛃶𛁼

Edmonton

Crossroads (UK TV series)