The Sequence Optimization service aims at finding a good route for the given transports. In order to determine what "good" means here, the following question needs to be answered:
What makes one route better than another?
The default objective comprises two criteria in the following order.
- The first criterion is to have a route where every transport is planned. This means a route with all transports planned is always considered as better than a route with unplanned transports, no matter what the other KPIs are. But sometimes, there are just too many transports and not all of them can be planned. In this case, we distinguish the standard case from the priorities case:
- Standard case: A route with the least unplanned transports is considered as best.
- Priorities case: This is the case when the query parameter
considerTransportPriorities
is set to true and all transports are ranked bypriority
. When comparing two routes, the route with less unplanned transports of priority x is best, where x is the highest priority in which the number of unplanned transports differs between the two routes. See transport priorities concept page for more details.
- The second criterion is to minimize distance, driving time and travel time of the route. To be precise, a linear combination of these values is minimized.