Code and instances for: Predicting delivery risk in mixed-model assembly lines with shared workers and tools: a graph neural network approach
Abstract
This repository accompanies “Predicting delivery risk in mixed-model assembly lines with shared workers and tools: a graph neural network approach”. It provides the Python code and archived results needed to reproduce the synthetic experiments, from shop generation to the reported tables and figures. The industrial aerospace case is excluded because its data are subject to a non-disclosure agreement. The study concerns make-to-order assembly lines where orders compete for workers, tools and stations. For each order, the method predicts the median lead time, the 90th percentile used for delivery quotation, and the average lead time in the worst 10% of cases. It combines four phases: (1) stochastic discrete-event simulation (DES) to generate training and reference observations; (2) a queueing estimate corrected by a heterogeneous graph neural network (GNN) linking orders, operations, stations and resource pools; (3) quote correction informed by conformal prediction and selective simulation of difficult configurations; and (4) evaluation of quotation loss, coverage and management actions through tardiness risk. The synthetic campaign comprises 2,389 configurations derived from 300 base shops, with 96 training runs, 128 evaluation runs and up to 32 benchmark runs per configuration. It tests interpolation (I), unseen worker-pooling topology (T), and unseen shop size (S). Comparators include deterministic and queueing estimates, ridge regression, quantile gradient boosting, a tabular neural network, and low-budget DES. Statistical comparisons use paired resampling of families and multiple-testing adjustment. Package contents: - src/assembly_risk/: simulation, queueing, graph/GNN, training, reliability and decision methods. - scripts/ and configs/: reproducible workflows and full, demo and smoke settings. - tests/: 28 unit tests, including simulation and queueing checks. - results_full/: archived metrics, predictions, trained models, paired comparisons, calibration, decisions, timing manifests, summary tables and plots. - README.md: maps manuscript sections, equations, tables and figures to code and result files. The synthetic data file is not distributed to limit package size; fixed seeds regenerate it deterministically, independently of the number of parallel workers. Results indicate that the GNN matches roughly 10–14 synthetic DES runs at 1.4–1.8 times their speed; a queueing starting estimate is particularly helpful with limited training data. The package supports inspection of archived outputs, a short smoke test, and full reruns on CPU (Python 3.10+; no GPU required). Source code: MIT License; result files: CC BY 4.0.