Volume–mix ingredient buffers for recipe-based production: code, open data and results
Description
This dataset accompanies an article on ingredient safety stocks for recipe-based production, where a product can be made only if every ingredient of its recipe is available. It contains the Python code, the open input data and the complete outputs of the experiments that use public data: a rolling weekly backtest on the SupplyGraph sales orders of a consumer-goods manufacturer (30 products, 19 test weeks), a rolling weekly backtest on the point-of-sale records of a French bakery with 40 products and 22 ingredients (40 test weeks), and a scale experiment on generated bills of materials with 10 to 300 products. The policies compared are common item-level practice, quantile rules calibrated to recipe-level service, an exact sample-average MILP and the proposed volume–mix policies (VM, VM-p and their distributionally robust versions). Results are given per week, policy and service target, with the availability of every product, so that all tables of the article can be recomputed. The SupplyGraph files are included under their LGPL-2.1 licence; the bakery sales file must be downloaded from Kaggle (instructions included). The confidential company data of the article's first case are not included.
Files
Steps to reproduce
Install the packages in requirements.txt, place the Kaggle file "Bakery sales.csv" in data/bakery, and run run_all.sh (about three hours on a two-core machine). summary_tables.py and pert_summary.py print the tables of the article from the files in results/.
Institutions
- Istanbul Health and Technology UniversityIstanbul, Istanbul