Skip to main content
Question

Travelling salesman with multiple vehicles


magnus
Participant
Forum|alt.badge.img+2

Hi

I have a travelling salesman use case, where a fleet of perhaps 2-4 vehicles need to reach a set of locations in a municipality. I have used the shortestpathfinder before, but not with multiple agents/vehicles. Is that possible (finding the optimal plan for, say, 3 vehicles for an address list)? I found https://engage.safe.com/blog/2016/11/fmeevangelist158/, but it doesn´t mention more than one vehicle.

6 replies

DanAtSafe
Safer
Forum|alt.badge.img+17
  • Safer
  • June 16, 2023

Hi @magnus​ You'll need 1 From-To line for every vehicle, which in your case should result in 2-4 paths. Each From-To line will be a line with at least two vertices, but will contain all locations. You might want to use the FromToBuilder to create your From-To lines. The ShortestPathFinder has the option of reordering the vertices in the From-To line to optimize the output path.


magnus
Participant
Forum|alt.badge.img+2
  • Author
  • Participant
  • June 19, 2023

Thank you for the reply, Dan. I´ll add a few more details:

 

The locations are patients that are to be visited during the day by one of the vehicles. The list of locations (patients) is shared between the vehicles and only one of the vehicles needs to visit each patient. Also, all of the vehicles always start and end the day at the same location (the health clinic). Is it possible to calculate the shortest paths for a shared set of locations for a few vehicles?


DanAtSafe
Safer
Forum|alt.badge.img+17
  • Safer
  • June 19, 2023
magnus wrote:

Thank you for the reply, Dan. I´ll add a few more details:

 

The locations are patients that are to be visited during the day by one of the vehicles. The list of locations (patients) is shared between the vehicles and only one of the vehicles needs to visit each patient. Also, all of the vehicles always start and end the day at the same location (the health clinic). Is it possible to calculate the shortest paths for a shared set of locations for a few vehicles?

Hi @magnus​ Dividing a set of points into multiple optimal routes isn't possible. But it's a great idea! Please suggest this at https://community.safe.com/s/bridea/acideasULT__brIdea__c/00B4Q00000AWlEVUA1


magnus
Participant
Forum|alt.badge.img+2
  • Author
  • Participant
  • June 20, 2023

Forum|alt.badge.img
DanAtSafe wrote:

Hi @magnus​ Dividing a set of points into multiple optimal routes isn't possible. But it's a great idea! Please suggest this at https://community.safe.com/s/bridea/acideasULT__brIdea__c/00B4Q00000AWlEVUA1

 

Thank you for the suggestion!


DanAtSafe wrote:

Hi @magnus​ Dividing a set of points into multiple optimal routes isn't possible. But it's a great idea! Please suggest this at https://community.safe.com/s/bridea/acideasULT__brIdea__c/00B4Q00000AWlEVUA1

Thanks for the link.


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings