By default, the optimizer will try to get our drivers to complete their routes in the shortest time possible. However, using constraints we can condition this result. Each restriction will cause the final result to vary.
In cases where we need our vehicles to make a group of stops first, we can define it with time windows. In this way, the optimizer will be forced to assign the stops in the time window that we determine.
Example: If our drivers start their activity at 8 am and we have certain stops that we prefer to be made first, by setting a time window from 8 to 10 we can determine that they are made in that period of time, prioritizing them over the others.
To consider: We can use this process repeatedly and apply it as many times as we need. It will also work to group stops and prioritize their visit under any conditions.