Sample usecase: Multi Depot Planning
Posted: Mon Aug 02, 2021 9:25 am
Cheers,
as you might have seenthe xTour2 API offers a specific planning case which is base on the order types
com.ptvgroup.xserver.xtour.OrderWithAlternativeDeliveryDepots and com.ptvgroup.xserver.xtour.OrderWithAlternativePickupDepots. Just want to show you the potential of these approaches based on a client I wrote for a potential project. The locations (depots and orders) are ficticious.
The most important feature in this example is that the engine decides about the assignment of vehicles (depots) to the orders.
Here's the setup: The story takes place on a single day planning horizon. I also deal with quantities and some constraints such as maximum driving time but there are no explizit time windows given. Skills/equipment aren't used in this example but they are available through the API.
And here are some results - depending on some settings that are parametrized through the test client:
Long story short: from scratch each order can be handeled by each vehicle and from each depot.
In both of the samples above the tours ended at the last customer (determined by the engine). The user story is also based on "at the end of the day a vehicle should join the nearest depot whih is not necessarily it's start depot". I simply determined the "closest final destination" based on airline. Attention: this is business logic and not part of the optimum!
Now the next screenshots deal with closed tours (rountrips): The next two scenarios compare the pre-assignment of each orders closest depot which reduces the optimization potential and increases the overall distance. Best regards,
Bernd
PS: the distance calculation was based on airline - of course we can also handle this via routing / distance matrix.
as you might have seenthe xTour2 API offers a specific planning case which is base on the order types
com.ptvgroup.xserver.xtour.OrderWithAlternativeDeliveryDepots and com.ptvgroup.xserver.xtour.OrderWithAlternativePickupDepots. Just want to show you the potential of these approaches based on a client I wrote for a potential project. The locations (depots and orders) are ficticious.
The most important feature in this example is that the engine decides about the assignment of vehicles (depots) to the orders.
Here's the setup: The story takes place on a single day planning horizon. I also deal with quantities and some constraints such as maximum driving time but there are no explizit time windows given. Skills/equipment aren't used in this example but they are available through the API.
And here are some results - depending on some settings that are parametrized through the test client:
Long story short: from scratch each order can be handeled by each vehicle and from each depot.
In both of the samples above the tours ended at the last customer (determined by the engine). The user story is also based on "at the end of the day a vehicle should join the nearest depot whih is not necessarily it's start depot". I simply determined the "closest final destination" based on airline. Attention: this is business logic and not part of the optimum!
Now the next screenshots deal with closed tours (rountrips): The next two scenarios compare the pre-assignment of each orders closest depot which reduces the optimization potential and increases the overall distance. Best regards,
Bernd
PS: the distance calculation was based on airline - of course we can also handle this via routing / distance matrix.