-
Notifications
You must be signed in to change notification settings - Fork 3.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Trip Plugin] Computing round trips with fixed start and end point #1623
Comments
Depending on your heuristic behaviour, setting a cost of 0 from B to A won't necessary be sufficient to ensure that B will be placed just before A in the TSP solution. |
Hey! Is there any plan of implementing this in the future? I think it's an important feature that should exist. |
No plans for the near future; ticket is open to track the feature. |
@ghoshkaj and me drafted an idea to implement this. Here's a write down of our plan as well as a failed attempt to have a formal proof but I think this could count as an unformal proof: Given:
Wanted: A shortest trip that
Claim:
Explanation Any solution to our problem starts at A and ends at B. As we look for a roundtrip, the trip from B to A always exist. Thus, the travel B → A is fixed. |
i have the same interest in this enhancement to trip functionality - the ability to have a fixed start and end location - i am following Trip with Fixed Start and End points(TFSE) #3408 - any news would be helpful |
this will help to have fixed start and fixed end point that is different - i will continue to look for an update thank you |
For the record, this is how I "cheat" on the matrix to use my usual TSP solving approach in the case of an open tour: https://github.com/VROOM-Project/vroom/blob/master/src/structures/tsp.cpp#L32-L62 Rather than creating a new Also the same kind of trick allows to set start only and let the optimization phase decide what should be the preferred ending point, and same way around for fixing only end point. Hope this can help! |
@jcoupey we ended up going with your suggestion as it was easier to manipulate the table that way! It's done and just got merged in! Closing this now. It will be released with the next release :) |
@ghoshkaj thanks for the follow-up, glad this worked for you too! |
It should be possible to set a fixed start and end point when computing roundtrip.
i.e.
A round trip that starts at location A and ends at location B and on the way other locations C, D, E, F, ... should be visited is needed. Currently the trip plugin does not support this. It should.
Implementation detail:
It should work when the distance between A and B is set to zero in the distance table.
This is not planned before osrm v4.8.0
The text was updated successfully, but these errors were encountered: