Skip to main content

Do not allow circular trips

When to use

When the way the warehouse works forbids returning to it more than once a day. Each vehicle can therefore make only one trip per day.

Diagram

image

How to implement

Through the priority of the tasks in the trip. Use the precedence_in_trip field to set the order in which the demand items are performed in the trip.

Demand items in a trip are performed in ascending order. The planner decides the order itself only when the precedence_in_trip values are equal.

Example

There are 2 orders. Each of them has a pickup at the warehouse with precedence_in_trip equal to 1 and a drop at the delivery point with precedence_in_trip equal to 2. The vehicle can carry only one cargo at a time. Time-wise, one vehicle could complete both orders one after another.

Once a trip has been built for one order, the lowest precedence_in_trip after the drop is 2. The second order needs precedence_in_trip equal to 1 to start, so a second vehicle is required for it.