Data Science And Analytics For Operations
November 19, 2026
SUPPLY CHAIN SIMULATION FOR TRAINING ARTIFICIAL INTELLIGENCE ALGORITHMS
Leandro Murback Pereira; Mayara Rohenkohl Ricci
DOI: 10.22167/2675-6528-202603838
Article derived from a Final Course Work (TCC), with content based on the student’s original work and adapted to the editorial format of the E&S Magazine with the support of the ResumeAI tool, an artificial intelligence solution developed by Instituto Pecege for textual synthesis and organization.
Summary
Supply chain management faces inefficiencies, such as the Bullwhip Effect, and cost trade-offs that require environments to train and compare inventory control algorithms with multi-objective performance. To meet this need, the study aimed to develop a stochastic, discrete-event simulation environment, based on graph theory and faithful to the Beer Game dynamics. In it, a genetic algorithm, focused on optimizing inventory policies (s, S), was compared with multi-agent reinforcement learning, which assigned each node an agent with a graph neural network and proximal policy optimization, evaluated by the SCOR model and the Bullwhip Effect ratio. The experiments were conducted with ten paired seeds of identical demand, managed costing, and freight market for the agents of each pair, using a single-product anchor replicated in six scenarios and a multi-objective optimization of cost and delivery time. The genetic algorithm proved to be simultaneously dominant in cost and service level in all scenarios. Multi-agent learning achieved only the lowest Bullwhip Effect ratio, a result of order under-sizing, not effective coordination, dissipating when meeting a relevant portion of the demand. It was concluded that the central contribution lies in the simulation artifact, whose first application revealed a negative honest discovery, indicating that the bottleneck of multi-agent learning lies in the method and not in the environmental conditions.
Keywords: Genetic algorithm; Multi-agent reinforcement learning; Supply chain; Bullwhip effect; Discrete-event simulation.
1. Introduction
Contemporary supply chains exhibit increasing complexity, with their performance being evaluated across multiple dimensions, including reliability, responsiveness, cost, and asset efficiency (Reddy et al., 2019). In this dynamic scenario, effective management and process optimization become fundamental strategic challenges.
One of the most documented inefficiencies in this context is the Bullwhip Effect, a phenomenon where order oscillations amplify as they move upstream in the chain, in response to variations in customer demand. The causes of this effect include demand signaling, rationing, order batching, and price changes (Lee et al., 1997). Lead time for information and materials has a significant impact on the amplification of this effect (Nienhaus et al., 2006). Furthermore, logistics decisions often involve cost trade-offs, where reducing one component may increase another, making total cost the relevant evaluation metric (Amaral and Guerreiro, 2014).
For the study of these dynamics, the Beer Game is a traditional model characterized by a chain in successive levels, where the orders of one link are decided by participants without full network visibility and are subject to delays. The human behavior of anchoring, which leads to underestimating in-transit stock, amplifies the variance of orders and system instability (Guimarans et al., 2010; Sterman, 1989). Thus, the Beer Game has become a safe and reproducible laboratory for examining stock dynamics and training replenishment policies. Simulation environments, especially discrete-event ones, are crucial for representing operational inventory and replenishment problems, allowing for scenario analysis and strategy improvement without exposing the real operation to losses (Tako and Robinson, 2012; Afridi et al., 2020).
Intelligent supply chain management requires algorithms capable of reacting to environmental volatility. At this point, two classes of control agents stand out. The first are Genetic Algorithms, which statically and offline optimize the inventory parameters of each node, such as (s, S) policies, evolving a population of solutions over generations through selection, crossover, and mutation operators (Kumar et al., 2012; Deb et al., 2002). The second is Multi-Agent Reinforcement Learning, in which each node is controlled by an agent that observes its local state and learns a dynamic replenishment policy. This approach frequently incorporates graph neural networks, allowing the agent to aggregate the characteristics of neighboring nodes and capture network topology dependencies, rather than just isolated local information (Kotecha and Chanona, 2025; Ziegner et al., 2025).
Despite the potential of these artificial intelligence approaches, there is a gap in the fair and symmetric comparison of their performance in an environment that faithfully replicates the dynamics of a complex supply chain. The absence of a standardized and robust environment for training and evaluating these algorithms prevents a clear understanding of their capabilities and limitations in varied scenarios. The need for a simulation environment that allows the exploration of trade-offs between cost, service level, and the Bullwhip Effect, under an evaluation aligned with recognized models such as SCOR (Reddy et al., 2019; Wulandari et al., 2024), justifies the construction and use of such a tool to advance knowledge on the application of AI in supply chain management.
Given this scenario, the objective of this work is to develop a discrete-event stochastic simulation environment, based on graph theory and faithful to the dynamics of the Beer Game, and in it fairly compare the Genetic Algorithm and Multi-Agent Reinforcement Learning, mapping the trade-off between cost, service level, and the Bullwhip Effect under an evaluation aligned with the SCOR model.
2. Material and Methods
The present research was characterized as experimental and quantitative, conducted *in silico* through a discrete event simulation computational environment. The experiments were executed under controlled seeds, ensuring the reproducibility of the trajectories. This environment did not constitute a digital twin, but a synthetic system based on the Beer Game, intended for the training and comparison of artificial intelligence agents, serving to evaluate control policies before exposing the real operation to losses (Tako and Robinson, 2012, p. 22).
The simulation environment was modeled as a directed graph G = (V, E), where the vertices represented the facilities of the supply chain, including suppliers, manufacturers, transshipment terminals, distribution centers, wholesalers, and retailers. The edges represented the multimodal transport connections, with orientation in the direction of material flow, similar to architectures that process the supply chain as a graph of directed edges by neural networks (Ziegner et al., 2025, p. 11). The network was organized in layers, with each layer arranged in a column and the port and airport terminals inserted as transshipment nodes.
Each node maintained a state composed of inventory on hand, accumulated shortage quantity, and in-transit quantity. The supply chain links decided their orders without full network visibility and under delays. The demand received by a node in a period corresponded to the order placed by the downstream node in the previous period (Guimarans et al., 2010, p. 134). In each period, the simulation engine executed a fixed event schedule for each node, which included receiving shipments, fulfilling the *backlog* and new demand, consulting the agent for order decision, shipping new shipments with modal delay, and calculating costs.
The cost determined each period was broken down into inventory maintenance, shortage, order issuance, and waste. Maintenance was charged on the stock on hand plus material in transit, and shortage on the quantity not met, at unit rates of one and two monetary units (Guimarans et al., 2010, p. 135). The fixed issuance cost was charged when there was an order, and the waste cost applied to the discarded quantity. The transportation cost was not included in the objective optimized by the agents, being determined proportionally to the distance traveled and the mode used (Okyere et al., 2022, p. 7), weighted by the prevailing freight rate.
The end-customer demand was generated by a stochastic process that combined a base level, a seasonal component, and Gaussian shocks, while remaining reproducible by seed. Freight rates were modeled as first-order autoregressive processes correlated across modes, preserving the empirical co-movement of rates (Shackman et al., 2021, p. 260). Both the demand generator and the autoregressive form constituted modeling decisions of this work.
Three classes of agents operated on the environment: static heuristic policies, genetic algorithm, and multi-agent reinforcement learning. The genetic algorithm (GA) statically and *offline* optimized the inventory parameters (s, S) of each node, encoded in a chromosome. Population evolution occurred through tournament selection operators, two-point crossover, and Gaussian mutation (rate of 0.05, scale of 8.0), with one-individual elitism, over two hundred generations for a population of one hundred individuals (Kumar et al., 2012, p. 655). The fitness of each chromosome was evaluated by the managed cost obtained in the simulation.
Multi-agent reinforcement learning (MARL) assigned each node an agent that observed its local state, composed of on-hand inventory, shortage, in-transit material, and recent demand and order windows. The agent decided a continuous action, subsequently mapped to the (s, S) parameters of the policy (Kotecha and Chanona, 2025, pp. 17-18, 20). The policy was parameterized by a two-layer graph neural network (GNN GraphSAGE) and trained by proximal policy optimization (PPO) with clipped objective (Schulman et al., 2017). Generalized advantage estimation (GAE) was used for temporal difference calculation (Schulman et al., 2016, p. 5), with the value of the last state of the truncated episode estimated by bootstrap (Pardo et al., 2018, p. 6). Each agent’s reward corresponded to the symmetric of the managed cost, ensuring the symmetry of the comparison with the genetic algorithm.
The hyperparameters for multi-agent reinforcement learning included the PPO algorithm (CTDE and IPPO variants), a two-layer GraphSAGE graph neural network, a hidden dimension of sixty-four, a learning rate of 5 x 10^-4, a discount factor (γ) of 0.99, a clip parameter (ε) of 0.20, GAE (λ) of 0.95, a value coefficient of 0.50, and an entropy coefficient of 0.01. The optimizer used was Adam, with a training budget of sixty iterations, eight episodes, and ten epochs, and a training horizon of fifty periods.
The performance was evaluated by indicators aligned with the SCOR model (Reddy et al., 2019, p. 43), which organized the measurement of the chain into the dimensions of reliability, responsiveness, flexibility, cost, and assets. Order fulfillment rate, cycle time, inventory days, and total cost were adopted as raw indicators. To make them comparable, De Boer’s Snorm normalization was applied, which rescaled each indicator between the worst and best value achieved in the set of compared agents (Wulandari et al., 2024, p. 744).
The intensity of the Bullwhip Effect was quantified by the ratio between the variance of the issued orders and the variance of the final customer demand, calculated per layer (Chen et al., 2000, p. 437). The difference between the agents was evaluated through the Student’s t-test, performed on the seed-paired variant, with ten repetitions (n = 10). This procedure calculated the difference between the outcome of the evaluated agent and the genetic one in each repetition, with the p-value expressing the bilateral probability of observing such an extreme statistic under the null hypothesis of zero difference (Nienhaus et al., 2006, p. 554).
The experiments were conducted in six scenarios, varying a single dimension from a frozen *baseline*. The scenarios included: *Baseline* (C1), Volatile Demand (C2), Average Capacity (C3), Deep BoM (C4), Network Scale (C5), and Multimodal (C6). Each scenario was motivated by literature references to stress variation, instantiate dilemmas, or amplify decision units. Additionally, a multi-objective optimization was performed, where the transportation mode was a learned decision, aiming to trace the Pareto frontier between cost and *lead-time* (Peng et al., 2023, p. 1757).
In the single-objective comparison, the single-product scenario with one manufacturer, two suppliers, two distributors, and three customers was evaluated over ten independent seeds across forty test periods. The heuristic and genetic policies were compared with four variants of multi-agent reinforcement learning (marl-ctde, marl-ippo, marl-dyn-ctde, and marl-dyn-ippo), under the same managed cost and the same seed for all agents in each pair. In multi-objective optimization, the choice of modal became a learned decision, incorporating transportation into the objective, and the genetic algorithm migrated to the NSGA-II multi-objective formulation (Deb et al., 2002, pp. 184, 185).
3. Results and Discussion
The research results revealed a clear distinction in the performance of the inventory control algorithms evaluated in the discrete-event stochastic simulation environment. The comparative analysis, conducted in two main stages – a mono-objective evaluation in single-product anchor scenarios and a multi-objective optimization with transportation mode selection –, allowed mapping the trade-off between cost, service level, and the Bullwhip Effect. The experiments were conducted under symmetric conditions, with ten paired seeds of identical demand, managed costing, and consistent freight market for all agents in each pair, ensuring that the observed differences were attributable to the control policies and not to environmental variations.
The first phase of the evaluation focused on the single-product anchor, where the genetic algorithm demonstrated notable superiority over multi-agent reinforcement learning variants and the heuristic policy. The genetic algorithm recorded an average managed cost of $40,218, significantly lower than the $129,841 of the best multi-agent variant in cost, marl-ippo. In terms of service level, the genetic algorithm achieved an order fulfillment rate of 96.6%, surpassing the 50.2% of the best multi-agent variant in service, marl-ctde. These results indicate that the static and offline optimization of the (s, S) policy parameters by the genetic algorithm was consistently more effective in inventory management and demand fulfillment.
Despite the dominance of the genetic algorithm in cost and service level, the Bullwhip Effect analysis presented a peculiar finding. The marl-ippo variant of multi-agent learning obtained the lowest Bullwhip Effect ratio, with a value of 9.8, in contrast to the value of 1,145 recorded by the genetic algorithm. However, a deeper investigation revealed that this low ratio was not an indicator of effective coordination or chain stability, but rather an artifact of extreme order undersizing. The marl-ippo achieved this low order variance precisely because it barely issued any orders, resulting in a fill rate of only 11.1%.
This interpretation is crucial, as it demystifies the apparent advantage of multi-agent learning in mitigating the Bullwhip Effect. The Bullwhip Effect ratio, defined by the relationship between the variance of issued orders and the variance of final customer demand (Chen et al., 2000), tends to increase with the volume effectively ordered. When an agent practically does not place any orders, the variance of its orders is naturally low, which artificially reduces the Bullwhip Effect ratio, without this representing a deliberate smoothing of the flow or intelligent coordination of the chain. The genetic algorithm, by meeting most of the demand, incurred a higher Bullwhip Effect, but in a way consistent with its high service rate.
Paired t-tests confirmed the statistical significance of these differences, with t-values for cost (132.8), service (-155.8), and Bullwhip Effect (-14.9) all having p < 0.001. The robustness of the failure of multi-agent simultaneous training learning against an optimized base-stock policy had already been observed in previous studies (Ziegner et al., 2025), which corroborates the intrinsic difficulty of this approach in complex scenarios. The symmetric and fair comparison in the developed simulation environment was fundamental to isolate the impact of control policies, eliminating demand variance as a differentiation factor.
Robustness across scenarios and multi-agent learning variants
To evaluate the robustness of the findings, the experiment was replicated in six distinct scenarios, each varying a specific dimension of the supply chain from the uni-product anchor. The manipulated dimensions included demand volatility, capacity slack, bill of materials depth, network scale, and the presence of multiple transportation modes. The four variants of multi-agent reinforcement learning (marl-ctde, marl-ippo, marl-dyn-ctde, and marl-dyn-ippo), parameterized by a graph neural network with proximal policy optimization, were compared under these conditions, differing in their training scheme (centralized with critic or independent policy) and the nature of the policy (frozen or re-decided each period).
In all six scenarios, the genetic algorithm maintained its dominance in terms of lower managed cost and higher service rate. The genetic algorithm’s margin of superiority, instead of decreasing with increasing scenario complexity, widened, reaching cost t values of 384.1 in the deep bill of materials scenario and 613.4 in the multimodal scenario. This suggests that the effectiveness of statically optimized (s, S) policies is highly resilient to diverse supply chain operational and structural conditions, from volatile demand to network and transportation modal complexity.
The multimodal scenario provided the most compelling evidence that the apparent advantage of multi-agent learning in the Whiplash Effect ratio was an artifact of order undersizing. In this scenario, marl-ippo managed to increase its fulfillment rate to 41.4%, a still modest value, but significantly higher than in previous scenarios. With this increase in fulfillment, its Whiplash Effect ratio soared to 11.953, surpassing that of the genetic algorithm and losing the only axis on which it had excelled. This result demonstrates that, by attempting to meet a more relevant portion of the demand, multi-agent learning revealed its inability to effectively coordinate the chain, amplifying order oscillations.
The adaptability and lower variance attributed to the method by Kotecha and Chanona (2025) were not reproduced in this study, suggesting that the gains reported by these authors may be conditioned to specific regimes and scales. Ablations performed to dismiss the hypothesis of undertraining, testing interventions such as imposing a service floor, adjusting exploration, adopting a shared central critic, and iterative training schemes, failed to close the performance gap with respect to the genetic algorithm. Even when service was significantly increased to 66.1% with a service floor, this occurred at the cost of triggering cost and the Whiplash Effect.
These robust findings indicate that the negative outcome of multi-agent learning is not attributable to insufficient training, but rather to an inherent bottleneck in learning and credit assignment difficulty in more complex scenarios (Ziegner et al., 2025). The simulation environment, however, did not prove intractable, as a structured heuristic policy, combining dependent demand forecasting and proximity-based routing, managed to recover a service level close to 99% under the same engine. This reinforces the conclusion that the observed limit for multi-agent learning stems from the employed method rather than the simulation’s environmental conditions.
Multiobjective optimization: the Pareto frontier
In the multi-objective optimization phase, where the choice of transport modal became a learned decision and the objective was expanded to include delivery cost and time, the genetic algorithm maintained its primacy in the pure cost operating point. Comparing with marl-ippo, the genetic algorithm registered a total cost of $24,790 against $36,210 from the multi-agent. Furthermore, the genetic lead-time was 1.5 periods, while marl-ippo presented 2.79 periods, and the genetic service rate was 98.2% against 21.3% from the multi-agent. All these differences were statistically significant, with p less than 0.001.
The analysis of the Pareto frontier revealed that neither paradigm dominated the entire curve, indicating the existence of trade-offs. The genetic algorithm dominated the entire portion of the curve that prioritized cost, evidencing its superior efficiency on this axis. However, at the extreme of service preference, marl-ippo achieved a point of higher service and lower cost than the corresponding genetic point, albeit with a higher lead-time. This configuration represents a compromise, not complete dominance, suggesting that in situations where service level is the maximum priority and a higher lead-time is acceptable, multi-agent learning may offer an alternative, even if with overall inferior performance.
It is important to note that, due to hardware limitations, the multi-agent training budget in this phase was reduced to four update epochs per iteration, in contrast to the ten epochs used in the single-objective comparison. This restriction may have impacted the multi-agent learning performance, making the favorable verdict for the genetic algorithm a conservative finding. However, even with this caveat, the consistency of the results in favor of the genetic algorithm across multiple scenarios and objectives reinforces its robustness and effectiveness in optimizing inventory policies in complex supply chains.
In summary, the research demonstrated that the genetic algorithm, by optimizing inventory policies (s, S), consistently outperformed multi-agent reinforcement learning in terms of managed cost and service level across all tested scenarios, including multi-objective optimization. The apparent advantage of multi-agent learning in reducing the Bullwhip Effect was identified as an artifact of order undersizing, rather than effective coordination, dissipating as the agent attempted to meet demand. The central contribution of the work lies in the developed simulation artifact, which allowed for a fair and symmetric comparison, revealing an honest negative finding that situates the bottleneck of multi-agent learning in the learning and credit assignment method, rather than in the environmental conditions of the simulated supply chain, directly addressing the objective of comparing the performance of these algorithms.
4. Conclusion
The present study aimed to develop a discrete-event stochastic simulation environment, based on graph theory and faithful to the dynamics of the Beer Game, and in it compare the Genetic Algorithm and Multi-Agent Reinforcement Learning, mapping the trade-off between cost, service level, and the Bullwhip Effect under an evaluation aligned with the SCOR model. It was found that the genetic algorithm, by optimizing inventory policies (s, S), demonstrated consistent superiority in terms of managed cost and service level across all evaluated scenarios, from the single-product anchor to multi-objective optimization. In contrast, multi-agent reinforcement learning achieved the lowest Bullwhip Effect ratio, but this apparent advantage was identified as an artifact of order undersizing, rather than effective supply chain coordination. This low order variance dissipated as the multi-agent agent attempted to meet a more relevant portion of the demand, revealing its inability to sustainably manage oscillations. The robustness of these findings was confirmed in six distinct scenarios and through ablations, indicating that the limited performance of multi-agent learning stems from an inherent bottleneck in its learning and credit assignment method, rather than the environmental conditions of the simulation.
The central contribution of this work lies in the developed simulation artifact, which provided a fair and symmetric environment for the training and comparison of artificial intelligence algorithms in supply chain management. Its first application resulted in a negative honest discovery, showing that multi-agent learning, in the examined simultaneous training scheme, does not reach a well-adjusted evolutionary benchmark. The study’s limitations include the use of ten paired seeds, the post-hoc selection of the best-performing multi-agent variant, the single training budget in the mono-objective comparison and reduced in the multi-objective phase due to hardware constraints, and the variation of a single dimension per scenario, which prevented the analysis of factor interactions. As suggestions for future studies, it is proposed to investigate the service floor under the canonical protocol and explore iterative training schemes, in order to examine the conditions under which the method’s promise of adaptivity may finally be realized.
Bibliographic References
Lee, H.L.; Padmanabhan, V.; Whang, S. 1997. Information distortion in a supply chain: the bullwhip effect. Management Science 43(4): 546-558. Disponível em: <https://doi.org/10.1287/mnsc.43.4.546>. Acesso em: 14 fev. 2026.
Nienhaus, J.; Ziegenbein, A.; Schoensleben, P. 2006. How human behaviour amplifies the bullwhip effect: a study based on the beer distribution game online. Production Planning & Control 17(6): 547-557. Disponível em: <https://doi.org/10.1080/09537280600866587>. Acesso em: 14 fev. 2026.
Reddy, K.J.M.; Rao, A.N.; Krishnanand, L. 2019. A review on supply chain performance measurement systems. Procedia Manufacturing 30: 40-47. Disponível em: <https://doi.org/10.1016/j.promfg.2019.02.007>. Acesso em: 14 fev. 2026.
Article originating from the Final Course Work of the Specialization in Data Science and Analytics for Operations of POLI USP PRO
To learn more about the course, click here.