Packing Optimization API
The Packing Optimization API calculates optimal 3D packing solutions for SKUs into pallets and containers using a hybrid 3-layer architecture combining rule-based systems, AI prediction, and mathematical optimization.
Overview
The Packing API solves the 3D bin packing problem with support for:
- Multiple pallet types: Mixed pallet sizes and specifications
- Weight constraints: Per-pallet and per-SKU weight limits
- Dangerous goods: Isolation and special handling
- Stacking constraints: Non-stackable item support
- Pre-assigned pallets: Items already packed in specific pallets
- Unavailable pallet filtering: Exclude specific pallet types
- Vehicle loading: Container/truck loading optimization
Architecture
The packing service uses a unique three-layer hybrid architecture:
┌─────────────────────────────────────────────────────────┐
│ Layer 3: OR-Tools Mathematical Solver │
│ - 100% correctness guarantee │
│ - Constraint Programming (CP-SAT │
│ - Optimal or near-optimal solutions │
└─────────────────────────────────────────────────────────┘
↑
┌─────────────────────────────────────────────────────────┐
│ Layer 2: AI Prediction Model │
│ - SKU-pallet compatibility scoring │
│ - Placement sequence optimization │
│ - Pattern recognition from historical data │
└─────────────────────────────────────────────────────────┘
↑
┌─────────────────────────────────────────────────────────┐
│ Layer 1: Rule Engine │