Skip to main content

Do not carry "salmon" and "flowers" in the same compartment

When to use?

When goods need to be transported by different vehicles or in different compartments of the same vehicle, since they cannot be nearby for objective reasons. For example, paint and food cannot be transported in the same body when delivered.

Scheme

Schema for case

How to implement the script?

Specify the incompatibility of the goods with each other:

  • via order_restrictions, if there is no difference which machine can fulfill this or that order;
  • via box_restrictions, if it is important which car will carry this or that cargo.

Examples

Example 1

  • Through box_restrictions for car #1, it is indicated that loads with the rule_1 tag can be placed in its body.
  • Loads with the rule_2 tag can be placed in the body of car #2.
  • The two cargoes have different body requirements — rule_1 and rule_2 tags, respectively.

When planning, the goods will fall into those bodies that are suitable for the requirements of transportation. Thus, two trips are planned.

Download request example

Example 2

  • Through order_restrictions for the first order, a requirement is set for other orders in the trip: they must have the rule_1 tag.
  • The second order can only be carried on the same trip with orders that have the rule_2 tag.

When building routes, these two orders will always be on different trips.

Download request example