We first coded the mathematical model given in the paper “A Mathematical Model of The Beer Game” using R (R 2013). The aim of that code was to ease the simulation replications of the model provided in the paper. This code is a different version of that code, which is created for verification purposes. This code is ready to be executed; one needs to simply copy the code from the file and paste it to R console in order to execute it.
R CORE TEAM. (2013). R: A language and environment for statistical computing. R Foundation for Statistical Computing. Vienna, Austria. http://www.R-project.org/
R version 2.12.2 (2011-02-25)