
After studying this material, the student should be able to:
Core Question: How does a company like Amazon fulfill hundreds of millions of orders daily?
Think of Amazon's fulfillment network as a massive logistics puzzle:
Customer Order
↓
Which warehouse ships it? ← Assignment Problem
↓
Which truck carries it? ← Routing Problem
↓
How many trucks/workers? ← Capacity Planning Problem
↓
Will it arrive on time? ← Forecasting Problem
Key Insight: No human can manually solve this puzzle at scale. This requires automated optimization and machine learning systems.
Optimization means finding the best solution from a set of possible solutions, subject to constraints.
General Form:
Minimize (or Maximize): Objective Function f(x)
Subject to: Constraints g(x) ≤ b
Variables x ∈ feasible set
Fulfillment Example:
Minimize: Total shipping cost + penalty for late deliveries
Subject to: Each order assigned to exactly one warehouse
Warehouse capacity not exceeded
Delivery promise met
| Type | What It Means | Fulfillment Example |
|---|---|---|
| LP (Linear Programming) | Optimize linear objective with linear constraints | Allocate truck capacity |
| MIP (Mixed Integer Programming) | LP + some variables must be integers | Assign orders (yes/no decisions) |
| Combinatorial Optimization | Find best combination from discrete choices | Assign orders to warehouses |
| Network Flow | Optimize flow through a network of nodes/edges | Route packages through hubs |
| Decomposition Methods | Break large problems into smaller solvable pieces | Handle millions of orders simultaneously |
Real problems rarely have one goal. Amazon must balance:
COST ←————————————→ SPEED
↑ ↑
Minimize shipping Maximize delivery
expenses promise fulfillment
This creates a Pareto Frontier — a curve showing optimal tradeoffs:
Speed
| *
| *
| *
| *
|__________*_____ Cost
Each point = a valid optimal solution
No point can improve both objectives simultaneously
Key Concept: Decision-makers choose WHERE on this frontier to operate based on business priorities.
Before you can optimize, you need to predict:
Without accurate forecasts → wrong capacity planning → late deliveries or wasted resources.
A time series is data collected over time:
Orders per day:
Mon: 1.2M
Tue: 1.1M
Wed: 1.3M
Thu: 1.5M ← predict this from past data
Key Forecasting Concepts:
| Concept | Explanation |
|---|---|
| Trend | Long-term increase or decrease |
| Seasonality | Repeating patterns (e.g., holiday spikes) |
| Contextual Features | External signals: weather, promotions, events |
| Probabilistic Forecasting | Predict a range, not just one number |
| Uncertainty Quantification | How confident are we in the forecast? |
Instead of predicting "1.3M orders tomorrow," a good system predicts:
Expected: 1.3M orders
90% range: [1.1M — 1.6M]
This allows planners to:
Sometimes correlation isn't enough. We need to know why demand changes:
Observed: Orders spike when it rains
Question: Does rain CAUSE more orders, or is there a confounding factor?
Causal modeling helps distinguish:
These two pillars work together in a pipeline:
┌─────────────────────────────────────────────────────┐
│ PLANNING PIPELINE │
│ │
│ Historical Data │
│ ↓ │
│ [FORECASTING MODEL] → Predicted Demand + Uncertainty│
│ ↓ │
│ [OPTIMIZATION MODEL] → Order Assignments + Routes │
│ ↓ │
│ Execution: Trucks dispatched, warehouses activated │
│ ↓ │
│ Actual Outcomes → Feed back into models │
└─────────────────────────────────────────────────────┘
# Example: Simple assignment optimization in Python
from scipy.optimize import linprog
# Minimize cost of assigning orders to warehouses
# c = cost vector, A = constraint matrix, b = capacity limits
result = linprog(c, A_ub=A, b_ub=b, method='highs')
Tools commonly used:
Whiteboard Problem Formulation
↓
Python Prototype with Real Data
↓
Experiment & Validate at Scale
↓
Present Results to Stakeholders
↓
Collaborate with Engineers
↓
Deploy to Production System
↓
Monitor & Iterate
Key Skill: Applied scientists must bridge academic rigor and engineering practicality.
| Decision | Scale | Impact |
|---|---|---|
| Order-to-warehouse assignment | Millions/hour | Cost & speed |
| Capacity allocation | Network-wide | Prevents site overload |
| Demand forecasting | Daily/weekly | Labor & truck planning |
| Route optimization | Per shipment | CO₂ reduction |
Bottom Line: These systems influence billions of euros in operational spend and directly affect whether customers receive packages on time.
FULFILLMENT OPTIMIZATION
│
├── LARGE-SCALE OPTIMIZATION
│ ├── Linear Programming (LP)
│ ├── Mixed Integer Programming (MIP)
│ ├── Combinatorial Optimization
│ ├── Network Flow
│ ├── Decomposition Methods
│ └── Multi-Objective / Pareto Tradeoffs
│
├── DEMAND FORECASTING & ML
│ ├── Time-Series Forecasting
│ ├── Contextual Features (weather, events)
│ ├── Probabilistic Forecasting
│ ├── Uncertainty Quantification
│ └── Causal Inference
│
└── INTEGRATION
├── Forecast → Optimization Pipeline
├── Python Prototyping
├── Production Deployment
└── Stakeholder Communication