Skip to main content

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

When to use

When cargo has to be carried by different vehicles or in different compartments of the same vehicle because it cannot be placed side by side for objective reasons. For example, paint and food cannot be delivered in the same cargo body.

Diagram

image

How to implement

Specify that the cargo types are incompatible with each other:

  • via order_restrictions, if it does not matter which vehicle performs a particular order;
  • via box_restrictions, if it matters which vehicle carries a particular cargo.

Examples

Example 1

  • Via box_restrictions, vehicle #1 is set to accept only cargo with the rule_1 tag in its body.
  • Vehicle #2 accepts only cargo with the rule_2 tag.
  • The two cargo items have different body requirements — the rule_1 and rule_2 tags respectively.

During planning, each cargo goes into the body that matches its transportation requirements. As a result, two trips are planned.

Example 2

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

When routes are built, these two orders always end up in different trips.