Reproduction code for "From the shop floor to the household: a hierarchical Bayesian quality scheduling index for adaptive planning of recurrent robot tasks under uncertainty"

Published: 8 September 2026| Version 2 | DOI: 10.17632/hs4jdm3drk.2
Contributor:

Description

Python code that exactly reproduces every quantitative result, table and figure in the associated manuscript, submitted to the International Journal of Production Research (special issue "Innovations in Production Planning: Emerging Problems and Modern Solution Paradigms"). The manuscript extends the Quality Scheduling Index (QSI), a managerial tool from production scheduling, into a Bayesian Quality Scheduling Index (BQSI) for planning recurrent tasks of a household service robot under uncertainty. The code has four parts. Part 1: household-level net present value Monte Carlo of robot acquisition across three price tiers (Table 1). Part 2: value of Bayesian learning, comparing a Thompson-sampling BQSI scheduler against a static allocator over 90 days (Section 3.3). Part 3: sensitivity analysis — Spearman rank correlations, prior-perturbation scenarios and a one-at-a-time tornado analysis (Table 3, Figure 1). Part 4, new in version 2: hierarchical empirical-Bayes fleet-level prior, forgetting factor for drifting task environments, and the trial period valued as expected value of sample information (Table 2, Figure 2). Two identical implementations are provided: bqsi_sim.py (plain Python script) and bqsi_sim.ipynb (Jupyter/Google Colab notebook). All random draws use fixed seeds, so outputs are deterministic. No empirical data are used or included; all results are simulation outputs under the priors documented in the manuscript. Requirements: Python 3 with NumPy; matplotlib only for the two optional figure blocks.

Files

Steps to reproduce

Colab: File → Upload notebook → bqsi_sim.ipynb → Runtime → Run all. Local: python bqsi_sim.py. Runtime is a few minutes (part 4 runs 20,000 replications of several 90-day bandit experiments). Console headers map each block to its manuscript section; the optional final blocks write Figure_1.png and Figure_2.png.

Institutions

Categories

Operations Research, Robotics, Production Planning, Bayesian Analysis, Applied Statistics, Applied Economics

Licence