Garg’s Principle Testing Tool
Find projected shortages and see how replenishment choices affect inventory and service.
Testing dashboard · Explore published examplesSection VII, Scenarios 1–6. Replay uses the published pseudocode. Deltas are calculated minus published. A dash indicates no separate published Garg adjustment in the fixture.
Scenario 1
First shortage: None · Minimum DNA: 20.0 in period 1 · Horizon stock target: 0.0 · Unapplied target: 0.0 · Residual shortage: 0.0
● Baseline · ● Adjusted
Below zero means projected demand exceeds available inventory. Check the lead-time flags before using any proposed receipt date.
View period-by-period numbers
| Period | Demand | Supply | Baseline DNA | Injection | Adjusted DNA | Inside lead time | Published baseline | Baseline Δ | Published injection | Injection Δ |
|---|---|---|---|---|---|---|---|---|---|---|
| 1 | 10.0 | 10.0 | 20.0 | 0.0 | 20.0 | No | 20 | 0.0 | — | — |
| 2 | 10.0 | 10.0 | 20.0 | 0.0 | 20.0 | No | 20 | 0.0 | — | — |
| 3 | 10.0 | 10.0 | 20.0 | 0.0 | 20.0 | No | 20 | 0.0 | — | — |
| 4 | 10.0 | 10.0 | 20.0 | 0.0 | 20.0 | No | 20 | 0.0 | — | — |
| 5 | 10.0 | 10.0 | 20.0 | 0.0 | 20.0 | No | 20 | 0.0 | — | — |
| 6 | 10.0 | 10.0 | 20.0 | 0.0 | 20.0 | No | 20 | 0.0 | — | — |
Scenario 2
First shortage: None · Minimum DNA: 2.0 in period 6 · Horizon stock target: 0.0 · Unapplied target: 0.0 · Residual shortage: 0.0
● Baseline · ● Adjusted
Below zero means projected demand exceeds available inventory. Check the lead-time flags before using any proposed receipt date.
View period-by-period numbers
| Period | Demand | Supply | Baseline DNA | Injection | Adjusted DNA | Inside lead time | Published baseline | Baseline Δ | Published injection | Injection Δ |
|---|---|---|---|---|---|---|---|---|---|---|
| 1 | 8.0 | 10.0 | 22.0 | 0.0 | 22.0 | No | 22 | 0.0 | — | — |
| 2 | 10.0 | 10.0 | 22.0 | 0.0 | 22.0 | No | 22 | 0.0 | — | — |
| 3 | 12.0 | 10.0 | 20.0 | 0.0 | 20.0 | No | 20 | 0.0 | — | — |
| 4 | 14.0 | 10.0 | 16.0 | 0.0 | 16.0 | No | 16 | 0.0 | — | — |
| 5 | 16.0 | 10.0 | 10.0 | 0.0 | 10.0 | No | 10 | 0.0 | — | — |
| 6 | 18.0 | 10.0 | 2.0 | 0.0 | 2.0 | No | 2 | 0.0 | — | — |
Scenario 3
First shortage: None · Minimum DNA: 0.0 in period 4 · Horizon stock target: 0.0 · Unapplied target: 0.0 · Residual shortage: 0.0
● Baseline · ● Adjusted
Below zero means projected demand exceeds available inventory. Check the lead-time flags before using any proposed receipt date.
View period-by-period numbers
| Period | Demand | Supply | Baseline DNA | Injection | Adjusted DNA | Inside lead time | Published baseline | Baseline Δ | Published injection | Injection Δ |
|---|---|---|---|---|---|---|---|---|---|---|
| 1 | 18.0 | 10.0 | 12.0 | 0.0 | 12.0 | No | 12 | 0.0 | — | — |
| 2 | 16.0 | 10.0 | 6.0 | 0.0 | 6.0 | No | 6 | 0.0 | — | — |
| 3 | 14.0 | 10.0 | 2.0 | 0.0 | 2.0 | No | 2 | 0.0 | — | — |
| 4 | 12.0 | 10.0 | 0.0 | 0.0 | 0.0 | No | 0 | 0.0 | — | — |
| 5 | 10.0 | 10.0 | 0.0 | 0.0 | 0.0 | No | 0 | 0.0 | — | — |
| 6 | 8.0 | 10.0 | 2.0 | 0.0 | 2.0 | No | 2 | 0.0 | — | — |
Scenario 4
First shortage: 5 · Minimum DNA: -6.0 in period 5 · Horizon stock target: 6.0 · Unapplied target: 0.0 · Residual shortage: 0.0
● Baseline · ● Adjusted
Below zero means projected demand exceeds available inventory. Check the lead-time flags before using any proposed receipt date.
View period-by-period numbers
| Period | Demand | Supply | Baseline DNA | Injection | Adjusted DNA | Inside lead time | Published baseline | Baseline Δ | Published injection | Injection Δ |
|---|---|---|---|---|---|---|---|---|---|---|
| 1 | 8.0 | 10.0 | 22.0 | 2.0 | 24.0 | Yes | 22 | 0.0 | 2 | 0.0 |
| 2 | 20.0 | 10.0 | 12.0 | 2.0 | 16.0 | Yes | 12 | 0.0 | 2 | 0.0 |
| 3 | 6.0 | 10.0 | 16.0 | 2.0 | 22.0 | No | 16 | 0.0 | 2 | 0.0 |
| 4 | 24.0 | 10.0 | 2.0 | 0.0 | 8.0 | No | 2 | 0.0 | 0 | 0.0 |
| 5 | 18.0 | 10.0 | -6.0 | 0.0 | 0.0 | No | -6 | 0.0 | 0 | 0.0 |
| 6 | 10.0 | 10.0 | -6.0 | 0.0 | 0.0 | No | -6 | 0.0 | 0 | 0.0 |
Scenario 5
First shortage: 6 · Minimum DNA: -4.0 in period 6 · Horizon stock target: 4.0 · Unapplied target: 0.0 · Residual shortage: 0.0
● Baseline · ● Adjusted
Below zero means projected demand exceeds available inventory. Check the lead-time flags before using any proposed receipt date.
View period-by-period numbers
| Period | Demand | Supply | Baseline DNA | Injection | Adjusted DNA | Inside lead time | Published baseline | Baseline Δ | Published injection | Injection Δ |
|---|---|---|---|---|---|---|---|---|---|---|
| 1 | 10.0 | 10.0 | 20.0 | 1.0 | 21.0 | Yes | 20 | 0.0 | 1 | 0.0 |
| 2 | 12.0 | 10.0 | 18.0 | 1.0 | 20.0 | Yes | 18 | 0.0 | 1 | 0.0 |
| 3 | 14.0 | 10.0 | 14.0 | 1.0 | 17.0 | No | 14 | 0.0 | 1 | 0.0 |
| 4 | 16.0 | 10.0 | 8.0 | 1.0 | 12.0 | No | 8 | 0.0 | 1 | 0.0 |
| 5 | 18.0 | 10.0 | 0.0 | 0.0 | 4.0 | No | 0 | 0.0 | 0 | 0.0 |
| 6 | 14.0 | 10.0 | -4.0 | 0.0 | 0.0 | No | -4 | 0.0 | 0 | 0.0 |
Scenario 6
First shortage: 6 · Minimum DNA: -6.0 in period 6 · Horizon stock target: 6.0 · Unapplied target: 0.0 · Residual shortage: 0.0
● Baseline · ● Adjusted
Below zero means projected demand exceeds available inventory. Check the lead-time flags before using any proposed receipt date.
View period-by-period numbers
| Period | Demand | Supply | Baseline DNA | Injection | Adjusted DNA | Inside lead time | Published baseline | Baseline Δ | Published injection | Injection Δ |
|---|---|---|---|---|---|---|---|---|---|---|
| 1 | 6.0 | 10.0 | 24.0 | 1.5 | 25.5 | Yes | 24 | 0.0 | 1.5 | 0.0 |
| 2 | 18.0 | 10.0 | 16.0 | 1.5 | 19.0 | Yes | 16 | 0.0 | 1.5 | 0.0 |
| 3 | 5.0 | 10.0 | 21.0 | 1.5 | 25.5 | No | 21 | 0.0 | 1.5 | 0.0 |
| 4 | 31.0 | 10.0 | 0.0 | 1.5 | 6.0 | No | 0 | 0.0 | 1.5 | 0.0 |
| 5 | 9.0 | 10.0 | 1.0 | 0.0 | 7.0 | No | 1 | 0.0 | 0 | 0.0 |
| 6 | 17.0 | 10.0 | -6.0 | 0.0 | 0.0 | No | -6 | 0.0 | 0 | 0.0 |