Batching
Order batching and shopper dispatch optimization for live delivery operations.
Constraints#
A hard constraint must hold or the problem is infeasible; a soft one adds a penalty when broken.
| Constraint | What it requires | Kind | On by default |
|---|---|---|---|
Shopper Capacityshopper_capacity | Limit how many active orders can be assigned to the same shopper at once. | hard | Yes |
Batch Window Capacitywindow_capacity | Keep batched orders inside the configured pickup / dispatch window. | hard | Yes |
Store Cohesionstore_cohesion | Prefer batches built from the same store or very tight origin clusters. | hard | Yes |
Order In One Batchorder_in_one_batch | An order is picked once: it may occupy at most one batch. Without this rule nothing bounded occupancy, and the improvement pass shipped 11 of the 100 demo orders in two batches while dropping 11 others. | hard | Yes |
Priority Protectionpriority_protection | Protect urgent orders from being delayed by lower-priority batch additions. | soft | Yes |
Regulatory Complianceregulatory_compliance | Disallow assignments that violate ZIP-level or region-level operating rules. | hard | Yes |