Skip to main content

Order prioritization

When to use

In situations where there is a choice between orders and their priorities conflict:

  • Choosing whom to deliver to first: a VIP client or a regular one.
  • Estimating the scope of work: cancel deliveries if their cost is higher than the reward

How to implement

Add the reward for completing an order to the calculation via the reward_per_event parameter. Then, during planning, whenever there is a choice of which order to complete, the one with the highest reward is selected, all other things being equal. Works only with the optimize_money configuration.

Example 1

The vehicle has time to complete only one of the two orders, because they fall at the same time. During planning, the order with the highest reward gets into the trip.

Example 2

The driver receives 3000 for going on a trip, and the reward for completing an order is 1000. No order will be planned (profit cannot be negative). So, for the trip to take place, more such orders are needed.