Soft compatibility - Zones
When to use
When delivery has to be planned with performers — drivers and vehicles — tied to specific zones: for example, the neighbourhoods they know well. Minor violations of this rule are allowed to make delivery more efficient.
Diagram
How to implement
In the planning settings, add the penalties block as described in the documentation and list in the compatibilities array which penalty applies to which tag.
Important: this feature works only with the optimize_money configuration.
Examples
There are two orders with the transport requirement centr. They have to be completed at the same time. There are two vehicles: one with the centr feature, the other with the petr feature.
With ordinary planning, only one of the orders makes it into a trip.
Let's see what happens to the second one:
- If soft compatibility is used, the second order is delivered by the vehicle with the petr feature, because the penalty for violating the zone is much lower than the revenue from completing this order.
- If soft compatibility is not used, the vehicle with the petr feature does not carry the second order, because the penalty for violating the zone is much higher than the revenue from completing this order.