Scoring and risk
OTIF = dateOk × stockCertainty × fillReliability
Modes change weights only (balanced, cheapest, greenest, nutrition, safest). Diet and spend rules always win.
Fallback ladder: switch → earlier → split → buffer → defer → substitute → escalate.
Mode
OTIF bar from the slip: 0.95
| Candidate | dateOk | stock | fill | OTIF | cost | fit | carbon | nutrition | total |
|---|---|---|---|---|---|---|---|---|---|
| Usual cream, stocked pick €58.20 · 21.6 kg CO₂e · stock confirmed | 1.00 | 0.99 | 0.97 | 0.96 | 0.86 | 1.00 | 0.29 | 0.76 | 0.853 |
| Cheaper cream, supplier €49.90 · 22.1 kg CO₂e · stock unconfirmed | 1.00 | 0.85 | 0.93 | 0.79 below bar → exceptions, then OTIF check | 1.00 | 0.50 | 0.29 | 0.73 | 0.724 |
| Oat cream, plant-based €61.50 · 6.3 kg CO₂e · stock confirmed | 1.00 | 0.95 | 0.95 | 0.90 below bar → exceptions, then OTIF check | 0.81 | 0.50 | 1.00 | 1.00 | 0.794 |