Publication and citation
Garg, D. K., & Bansal, D. K. (2026). Garg’s Principle: A Predictive Framework for Safety Stock Optimization and Over-Stock Reduction Across Forecast Horizons. Journal of Computational Analysis and Applications, 35(3), 303–318.
DOI 10.48047/jocaaa.2026.35.03.23
Scenario inputs
Use Table 2 for the shared inputs, Sections IV.D and IV.E for the replay conventions, and Section VII for the reference weekly series. The scenario input CSV repeats the horizon's initial opening balance on every row. Initialize it once per scenario. The input standard deviation is inferred from each reported threshold and the fixed two-week lead time.
Download scenario inputs (CSV)Reproducing Garg’s Principle
Dinesh Kumar Garg originated the methodology and led its development. The published paper was co-authored with Dheeraj Kumar Bansal, who contributed supporting research. See the research origin and development timeline.
Calculate unadjusted availability
For each week, calculate unadjusted closing DNA as the prior closing DNA plus scheduled receipts minus demand. Carry negative balances forward.
Replay the traditional benchmark
With the traditional threshold from Section IV.E, add only the positive gap between the threshold and that week's pre-addition closing DNA. Carry the resulting adjusted balance into the next week. This is a same-week mathematical benchmark.
Replay Garg’s Principle
For Garg's replay, take the magnitude of the minimum unadjusted DNA when negative. If the first negative week is after lead time, spread the buffer uniformly across the first-negative week number minus lead time, starting in week one. Otherwise, flag an emergency and assume no extra receipts. The six cases have coincident first-shortage and earliest minimum weeks whenever DNA goes negative.
Calculate the five metrics
Calculate total additional supply, exposure (sum of positive closing balances), average inventory value (average positive-part closing balance across all weeks times unit cost), ending inventory value (positive part of the final balance times unit cost), and peak shortage (maximum magnitude of negative closing DNA, or zero).
Compare against the published results
Compare both weekly extra receipts and closing DNA against the published tables. Compare each metric against validation.csv. Reductions use the traditional metric as denominator. Zero denominators leave the result undefined. The cost of USD 25 per unit is illustrative.
Expected results and limitations
The internal replay matches all six Garg schedules and their five metrics. Traditional receipt timing differs in cases 2, 3, 4, and 6. Check both the calculated and published-table-derived series. These cases do not establish external validity. Record your own implementation version and results with feedback-template.txt.
Review the four traditional benchmark discrepanciesCitation and reuse
Cite the paper, the ASYSIA revision above, and the artifact file name and retrieval date. The publisher lists the source paper under CC BY 4.0 (Creative Commons Attribution 4.0). The CSV inputs and comparison tables adapt the paper's figures as described above.