Skip to main content

Do not allow circular trips

When to use?

When, due to the specifics of the warehouse, repeated visits to the warehouse during the day are prohibited. So, each car can carry out only one trip per day.

Scheme

Schema for case

How to implement the script?

Through the priority of tasks in the trip. Specify in the precedence_in_trip field the order in which demand will be performed on the trip.

Demand in a trip are executed in ascending order of tasks. The scheduler itself determines the execution order only if the values ​​of precedence_in_trip are equal.

Example

There are 2 orders, Each of them has pickup in the warehouse with precedence_in_trip equal to 1 and drop at the outlet with precedence_in_trip equal to 2. The vehicle can carry only one load at a time. On time, orders can be completed by one machine in turn.

When forming a trip for one order, the smallest precedence_in_trip after unloading will be equal to 2. The second order, to start execution, has precedence_in_trip equal to 1, so a second car will be required for it.

Download sample request