Abstract
This study presents a comparative analysis of three near-optimal optimization techniques, namely, Genetic Algorithm (GA), Particle Swarm Optimization (PSO), and Bayesian Optimization (BO), for determining optimal order quantities in a multi-echelon multi-product manufacturing supply chain. An inventory optimization model was developed and solved using the optimization algorithms implemented in Python (v3.14.6) and evaluated using identical product datasets and operating conditions to ensure a fair comparison. The results indicated that all three near-optimal algorithms produced high-profit order quantities. Even though the BO required fewer objective function evaluations to produce the highest mean optimal profit value of ₦1,792,128, only 0.17% higher than that of the GA, it required the longest mean optimization duration of about 197.65 s. Moreover, the PSO gave the lowest mean optimal profit value of ₦1,767,185, significantly lower than those of the GA and BO, with the second-best mean run time of 51.45 s, and it showed a tendency toward premature convergence. The GA was the least time-consuming algorithm, requiring the least mean time of 47 s to complete an optimization run, while it also provided the second-highest optimal profit of ₦1,789,137. Therefore, in the context of this research, the GA provided the best balance of mean optimal profit obtained and mean optimization duration when compared to the other algorithms. The findings highlight the strengths and limitations of each optimization technique and provide valuable insights for manufacturing managers and researchers seeking appropriate optimization tools for inventory decision-making. These results contribute to the growing body of knowledge on intelligent optimization methods for manufacturing supply chain management and offer practical guidance for enhancing inventory performance and profitability. Further research can evaluate the effectiveness of other optimization techniques for optimal order quantity estimation and profit maximization within multi-echelon multi-product supply chains.
1. Introduction
The increasing complexity of manufacturing supply chains, driven by demand uncertainty, globalization, shortened product life cycles, and the need for cost efficiency, has intensified the importance of inventory optimization. Among inventory decisions, determining optimal order quantities remains one of the most critical because it directly influences inventory holding costs, ordering costs, service levels, and overall profitability. Traditional analytical models such as the Economic Order Quantity (EOQ) and deterministic lot-sizing approaches often rely on simplifying assumptions that fail to capture the stochastic and nonlinear characteristics of modern manufacturing systems. Consequently, researchers and practitioners are increasingly employing artificial intelligence and metaheuristic optimization techniques to address complex inventory management problems and improve supply chain performance [1,2,3]. Recent advances in supply chain analytics have demonstrated that intelligent optimization algorithms provide robust mechanisms for handling multi-dimensional decision spaces, uncertain demand patterns, and conflicting objectives in manufacturing environments. Optimization models are also used to translate price forecasts into constrained procurement decisions that account for execution costs and capacity limits, and procurement is increasingly recognized as a strategic lever for building sustainable supply networks [4,5]. The growing adoption of Industry 4.0 technologies, big data analytics, and digital supply chain systems has further accelerated the application of optimization algorithms for inventory planning and replenishment decisions [6,7].
Among these approaches, the Genetic Algorithm (GA) has emerged as one of the most extensively applied evolutionary optimization techniques. Based on the principles of natural selection and genetics, GA iteratively evolves populations of candidate solutions through selection, crossover, and mutation operators. Its ability to effectively explore large and complex search spaces has made it suitable for solving inventory optimization and supply chain network design problems. Recent studies have demonstrated the effectiveness of GA in dynamic lot-sizing and inventory replenishment applications. Leuveano et al. [8] developed a novel dynamic lot-sizing model for perishable product manufacturing and showed that GA significantly reduced operational costs while improving inventory balancing. Similarly, Yan et al. [9] proposed a hybrid Simulated Annealing–Genetic Algorithm approach for inventory replenishment optimization in physical internet environments and reported substantial improvements in solution quality and adaptability. Furthermore, Eroglu and Pamukcu [10] employed a GA-based optimization model for designing sustainable supply chain networks under disruption risks and demonstrated its capability to achieve a balance between cost efficiency and sustainability objectives. Reviews of sustainable supply chain optimization also indicate that GA remains one of the most preferred algorithms for solving complex combinatorial supply chain problems because of its robustness and flexibility [11,12].
Particle Swarm Optimization (PSO) has also attracted considerable attention in manufacturing inventory optimization. Inspired by the collective behavior of bird flocks and fish schools, PSO updates candidate solutions by considering both individual and collective experiences, thereby enabling rapid convergence toward optimal solutions. Compared with evolutionary algorithms, PSO requires fewer control parameters and generally exhibits lower computational complexity. Deng et al. [13] proposed a PSO-based inventory management model that significantly reduced total inventory costs and improved convergence performance compared with traditional methods. Zhang et al. [14] presented a comprehensive survey of the PSO algorithm, its variants, and its applications. Several recent reviews have further emphasized the growing application of swarm intelligence algorithms, particularly PSO, in addressing inventory, production planning, transportation, and supply chain resilience problems [15,16,17]. Simulation-based and framework-based approaches have also been proposed for optimizing warehouses and multi-echelon multi-product supply chains [18,19].
Bayesian Optimization (BO) has recently emerged as an attractive alternative for solving expensive black-box optimization problems. Unlike population-based metaheuristics, BO constructs a probabilistic surrogate model of the objective function and employs acquisition functions to determine promising search regions. The method has gained increasing recognition because it requires relatively few objective function evaluations while maintaining competitive optimization performance. Recent studies in supply chain analytics and data-driven optimization have highlighted the potential of Bayesian and surrogate-based optimization approaches in inventory management, particularly in situations where simulation-based evaluations are computationally expensive and decision environments are highly uncertain [20].
The application of intelligent optimization techniques in supply chain management has expanded considerably in recent years. Systematic reviews indicate that artificial intelligence techniques, including evolutionary algorithms, swarm intelligence, machine learning, and hybrid optimization methods, have become indispensable tools for improving supply chain efficiency, resilience, and sustainability [21,22,23]. Machine learning and forecasting applications in supply chain management have similarly demonstrated the increasing reliance on intelligent computational methods for demand forecasting, inventory optimization, and logistics planning [24,25,26]. Moreover, recent research has highlighted the effectiveness of optimization methods under uncertainty, emphasizing the need for robust inventory models capable of adapting to disruptions and dynamic operating conditions [27,28].
Although numerous studies have investigated GA, PSO, and, more recently, Bayesian and surrogate-based optimization methods individually, direct comparisons of these algorithms for manufacturing order quantity optimization remain limited. Most existing studies focus on a single algorithm or evaluate optimization methods under different datasets and problem formulations, making it difficult to establish their relative strengths and weaknesses in inventory decision-making [29,30,31]. Therefore, the aim of this study is to analyze and compare the performance of Genetic Algorithm, Particle Swarm Optimization, and Bayesian Optimization for maximizing profit and optimizing order quantities in a manufacturing supply chain. This study develops a profit-maximization inventory model that incorporates demand, ordering costs, holding costs, procurement costs, and service-level considerations. By evaluating the three optimization techniques under identical operating conditions, this study provides insights into their suitability for manufacturing inventory optimization and offers practical guidance for selecting appropriate optimization tools for supply chain decision-making.
The following sections present the methodology utilized, the results, and the conclusions of our research. Section 2 describes the order quantity optimization model, GA optimization procedure, PSO procedure, and BO procedure. Moreover, convergence plots of the GA, PSO, and BO are shown in Section 3 to show how the algorithms performed during optimization. Finally, Section 4 of this paper describes the main takeaway from the research and suggests future research directions.
2. Methodology
This research compares the results of applying the Genetic Algorithm (GA), Particle Swarm Optimization (PSO) Algorithm, and Bayesian Optimization (BO) Algorithm, which are approximate or near-optimal optimization algorithms, to the optimal order quantity evaluation and profit maximization problem. The algorithms were run on a Hewlett-Packard (HP) Omen computer with an Intel (R) Core (TM) i5-8300H processor at 2.30 GHz, 8 GB of RAM, a 4 GB NVIDIA graphics card, and a 64-bit Windows 10 Pro operating system. The objective of the optimization is to find the optimal order quantity that maximizes the profit accrued from the operations of a multi-echelon, multi-product manufacturing supply chain consisting of suppliers, a factory, and a warehouse. The objective function is given by
where P is the set of products, Rp is the revenue from product p, Hp is the holding cost, Op is the ordering cost, and Pp is the production cost of product p.
The revenue, Rp, from sales of the product, p, can be expressed as
where Sp is the selling price per unit, Qp is the order quantity, and Dp is the average monthly demand of product p at the factory warehouse.
Assuming that the average inventory level is , the holding cost, Hp, of product p can be expressed as
where Qp is the order quantity of product p.
Assuming the total number of orders placed is , the ordering cost, Op, of product p, including variable and fixed order costs, and can be expressed as
where Dp is the average monthly demand of product p at the factory warehouse, and Qp is the order quantity of product p.
The production cost of product p, Pp, can be expressed as
where Qp is the order quantity of product p, and Cp is the production cost per unit of product p.
If, by make-or-buy decisions, the factory warehouse decides to use its supply chain manufacturing plant to make the stored finished products, then Pp is referred to as the production cost of product p. However, if the factory warehouse decides to buy the stored finished products from a different manufacturer or factory, then Pp is the purchasing cost.
From the foregoing, by substituting Equations (2)–(5) into Equation (1), the total profit across all products can be expressed as
subject to the following constraints.
- Production/Purchasing Budget Constraint
This constraint demands that the total production cost of all products should not exceed the available production budget, B, and it can be expressed as
- 2.
- Storage Capacity Constraint
This constraint demands that the total inventory units across all products should not exceed the storage capacity, SC, and it can be expressed as
- 3.
- Reorder Point Condition
The reorder point (ROP) is the inventory level at which an order should be placed to avoid stockouts. In this study, a product is replenished only if its order quantity, Qp, is greater than or equal to its ROP. If the order quantity is below the ROP, the product is not replenished and contributes no profit to Equation (6), although its order quantity is still counted in the budget and storage capacity constraints. This replenishment condition can be expressed as
The reorder point for a particular product (ROPp) can be expressed as follows [32]:
where is the average daily demand for product p at the factory warehouse, Lp is the lead time (days) for product p, z is the safety factor corresponding to the desired service level, and σp is the standard deviation of daily demand for product p at the factory warehouse. The constraint handling mechanism utilized by the algorithms is as follows. A candidate solution that violates budget constraint (7) or storage capacity constraint (8) receives a fitness value of zero (in the PSO, which minimizes the negative profit, an equivalent large penalty is used). Reorder point condition (9) is handled as described above: If the order quantity of product p is below its ROP, product p contributes no profit to the objective function. In all algorithms, the order quantity of each product was bounded between 25 units and its average monthly demand.
The nonlinear profit maximization model was solved directly without linearization using three near-optimal algorithms implemented in Python (v3.14.6) libraries to obtain the optimal values of the product order quantities. The optimum parameters from each of the near-optimal algorithms (GA, BO, and PSO) were compared to determine the specific algorithm that provides the maximum profit.
2.1. Genetic Algorithm (GA)
Genetic Algorithm (GA) is an optimization and search technique inspired by the process of natural evolution. GA was utilized in determining the optimal order quantity in the manufacturing supply chain to evaluate its performance against other near-optimal algorithms. The GA in this study utilizes tournament selection with 2-point crossover. The GA was implemented using version 1.4.4 of the Distributed Evolutionary Algorithms in Python (DEAP) library. Figure 1 shows the flowchart of the GA.
Figure 1.
Flowchart of the Genetic Algorithm (GA) logic for optimizing order quantities.
2.2. Particle Swarm Optimization (PSO) Algorithm
Particle Swarm Optimization (PSO) is a population-based metaheuristic optimization algorithm inspired by the social behavior of birds flocking or fish schooling. It is widely used for solving nonlinear, complex, and multidimensional optimization problems. In PSO, a group of candidate solutions called particles moves through the search space to find the optimal solution. Each particle adjusts its position based on its own best position found so far (personal best) and the best position found by the entire swarm (global best). The PSO was implemented using version 1.3.0 of the PySwarms Python library. The velocity update equation for the PSO is given by the following [33]:
where t represents the time; vi(t) is the particle velocity at time t; vi(t + 1) is the particle velocity at time t + 1; xi(t) is the particle position at time t; is the particle’s individual best objective value solution as of time t; r1 and r2 are random numbers uniformly distributed in the interval (0,1); gbest(t) is the swarm’s global best objective value solution as of time t; c1 is the coefficient parameter of personal learning; c2 illustrates the coefficient parameter of global learning; and w illustrates the inertia weight coefficient parameter.
Also, the particle position in the next time step t + 1 is calculated using the following equation [33]:
xi(t + 1) = xi(t) + vi(t + 1)
Figure 2 shows the flowchart of the PSO algorithm.
Figure 2.
Flowchart of the Particle Swarm Optimization (PSO) logic for optimizing order quantities.
2.3. Bayesian Optimization Algorithm
Bayesian Optimization (BO) is a sequential, model-based optimization technique used to find the optimum of an expensive, black-box objective function using as few function evaluations as possible. The BO was implemented using version 3.3.0 of the Bayesian-optimization Python library. The expected improvement of the BO algorithm is as follows [34]:
where EI(x) is the expected improvement at point x, y∗ is the current best objective value observed so far (maximum for a maximization problem), y is the possible objective function value at x, p(y∣x, M) is the predictive probability distribution of y at x given the surrogate model M, and dy is the integration variable.
Figure 3 shows the flowchart of the Bayesian Optimization Algorithm.
Figure 3.
Flowchart of the Bayesian Optimization (BO) logic for optimizing order quantities.
2.4. Statistical Analyses of Independent Runs
In statistically analyzing the independent runs, measures such as the mean, median, and standard deviation were calculated over 20 runs for the product optimal order quantities, overall profit, and run times. The equation for the mean, , was obtained from Johnson [35] as
where xi is the observation, and n is the number of observations.
The standard deviation was calculated from Johnson [35] as
where xi is the observation, is the mean, and n is the number of observations.
In One-Way Analysis of Variance (ANOVA), the F ratio for treatments was obtained from Johnson [35] as
where ni is the sample size, is the mean of the measurements obtained from the ith treatment, is the grand mean, k is the number of treatments, Yij is a measurement (the jth measurement from the ith treatment), and N is the number of observations. One-way ANOVA was conducted using Minitab version 18.1 with a significance level of α = 0.05. A large F ratio implies that there is strong evidence that at least one group mean is different from the others, whereas an F ratio near 1 suggests that the differences between group means are no larger than random noise. Also, a p-value ≤ 0.05 implies that at least one group mean differs significantly from the others. A p-value ≥ 0.05 implies that there is not enough evidence to conclude that the group means differ.
Tukey’s Honest Significant Difference method (Tukey HSD), implemented in Minitab version 18.1, was used to determine which specific pair of algorithms produced results that were significantly different from each other. The equation for Tukey HSD simultaneous confidence intervals was obtained from Johnson [35] as
where is the mean of the results from group i (or algorithm i), is the mean of the results from group l (or algorithm l), qα is the critical value from the Studentized Range Distribution, MSE is the Mean Square Error, and n is the sample size per group.
Because the Tukey HSD method assumes equal group variances, Levene’s test was used to check this assumption, and the Games–Howell method, which does not assume equal variances, was used as a complementary pairwise comparison method (α = 0.05).
3. Results and Discussion
The Genetic Algorithm (GA), Particle Swarm Optimization (PSO) algorithm, and Bayesian Optimization (BO) algorithm were applied to the profit maximization problem for a manufacturing supply chain that produces four products, and several results were obtained. The optimization algorithms were applied to a small water bottling company which produces four bottled water products, namely, Product A (33 cL), Product B (50 cL), Product C (75 cL), and Product D (150 cL). The data from the water bottling company are shown in Table 1.
Table 1.
Data from water bottling company.
From Table 1, the average monthly demand for the 33 cL, 50 cL, 75 cL, and 150 cL bottled water products is 300, 600, 150, and 100 packs, respectively. Also, the costs of ordering raw materials for the 33 cL, 50 cL, 75 cL, and 150 cL bottled water products are ₦500, ₦400, ₦600, and ₦600, respectively. Moreover, the cost of storing the bottled water product is ₦ 100 for each category of bottled water product. Again, the selling prices of the 33 cL, 50 cL, 75 cL, and 150 cL bottled water products are ₦1500, ₦1800, ₦2000, and ₦3000 per pack, respectively. The production cost per unit of the 33 cL, 50 cL, 75 cL, and 150 cL bottled water products is ₦20, ₦30, ₦40, and ₦40, respectively. The daily standard deviation and lead time for the 33 cL, 50 cL, 75 cL, and 150 cL bottled water products are five packs and 21 days, respectively. Finally, the budget, storage capacity, and service level of the water bottling company are ₦100,000, 1000 packs, and 0.9, respectively. The service level represents the ability of the warehouse to completely meet customer demand on time. In this study, the service level ranges from 0, which is low, to 1, which is high. The justification for selecting a service level of 0.9 is that the optimal order quantities predicted at that service level will still be the best if the service level drops. Figure 4 shows the GA convergence plot of profit versus generation for the problem, using a seed of 1.
Figure 4.
GA convergence plot of profit versus generation.
From Figure 4, at Generation 41, the optimal profit of ₦1,784,821 is achieved. This profit has optimal order quantities of 272 units, 486 units, 142 units, and 100 units for Product A, Product B, Product C, and Product D, respectively. The parameters for the GA include a population size of 300, which is the number of candidate solutions in each generation, tournament selection size of 3, number of generations (iterations) of 500, crossover probability of 0.8, and mutation probability of 0.2. Table 2 shows the optimal order quantities, profit, and duration of 20 independent runs of the GA using these parameters.
Table 2.
Details of independent GA runs.
From Table 2, the mean optimal order quantities of products A, B, C, and D are 256 units, 498 units, 146 units, and 100 units, respectively. The mean profit and mean duration obtained from the GA are ₦1,789,137 and 47 s, respectively. The median optimal order quantities of products A, B, C, and D are 246 units, 508 units, 146 units, and 100 units, respectively. The median profit and median duration obtained from the GA are ₦1,790,274 and 45 s, respectively. The standard deviations of optimal order quantities of products A, B, C, and D are 18 units, 19 units, 4 units, and 0 units, respectively. The standard deviations of profit and duration obtained from the GA are ₦4537 and 4.15 s, respectively. Figure 5 shows the PSO convergence plot of profit versus iteration for the problem, using a seed of 1.
Figure 5.
PSO convergence plot of profit versus iteration.
From Figure 5, at Iteration 423, the optimal profit of ₦1,769,578 occurs. This profit has optimal order quantities of 240 units, 506 units, 140 units, and 100 units for Product A, Product B, Product C, and Product D, respectively. The parameters for the PSO include a swarm size of 300, number of iterations of 500, cognitive parameter of 1.5, social parameter of 1.5, and inertia weight of 0.7. Table 3 shows the optimal order quantities, profit, and duration of 20 independent runs of the PSO using these parameters.
Table 3.
Details of independent PSO runs.
In run 12 of Table 3, the order quantity of Product C (37 units) is below its ROP of 135 units; therefore, as described in Section 2, Product C is not replenished and contributes no profit in this run, which reflects the premature convergence of the PSO. From Table 3, the mean optimal order quantities of products A, B, C, and D are 258 units, 496 units, 136 units, and 100 units, respectively. The mean profit and mean duration obtained from the PSO are ₦1,767,185 and 51.45 s, respectively. The median optimal order quantities of products A, B, C, and D are 256 units, 497 units, 140 units, and 100 units, respectively. The median profit and median duration obtained from the PSO are ₦1,779,358 and 51 s, respectively. The standard deviations of optimal order quantities of products A, B, C, and D are 14 units, 25 units, 24 units, and 0 units, respectively. The standard deviations of profit and duration obtained from the PSO are ₦31,702 and 1.15 s, respectively. Figure 6 shows the BO convergence plot of profit versus iteration for the problem, using a seed of 1.
Figure 6.
BO convergence plot of profit versus iteration.
From Figure 6, at Iteration 377, the optimal profit of ₦1,786,980 occurs. This profit has optimal order quantities of 252 units, 495 units, 150 units, and 100 units for Product A, Product B, Product C, and Product D, respectively. The parameters for the BO include the number of initial random evaluations performed, init_points, set to 300, and the number of BO iterations after the random initialization, n_iter, set to 200. Therefore, the BO used 500 objective function evaluations per run, whereas the GA and PSO used up to 150,000 evaluations per run (300 candidate solutions over 500 generations or iterations); the comparisons of profits and run times should be interpreted with this difference in mind. Table 4 shows the optimal order quantities, profit, and duration of 20 independent runs of the BO using these parameters.
Table 4.
Details of independent BO runs.
From Table 4, the mean optimal order quantities of products A, B, C, and D are 245 units, 508 units, 147 units, and 100 units, respectively. The mean profit and mean duration obtained from the BO are ₦1,792,128 and 198 s, respectively. The median optimal order quantities of products A, B, C, and D are 241 units, 509 units, 149 units, and 100 units, respectively. The median profit and median duration obtained from the BO are ₦1,792,163 and 197 s, respectively. The standard deviations of optimal order quantities of products A, B, C, and D are 7 units, 9 units, 5 units, and 0 units, respectively. The standard deviations of profit and duration obtained from the BO are ₦2329 and 13 s, respectively.
From the foregoing, the GA reached its best profit in fewer generations than the iterations needed by the PSO, and its mean profit is only slightly lower (by 0.17%) than that of the BO. However, because a GA generation and a PSO iteration each evaluate 300 candidate solutions, whereas a BO iteration evaluates only one, the BO reached its best profit with the fewest objective function evaluations. Figure 7 shows the comparison of the demand of the various products with the optimal order quantities from the GA, PSO, and BO algorithms.
Figure 7.
Comparison of demand with the optimal order quantities from the optimization algorithms.
From Figure 7, all optimal order quantities from the optimization algorithms are consistently lower than or equal to the actual demand for the products. This result is largely imposed by the model, because each order quantity was bounded above by its monthly demand, and according to Equation (2), ordering more than the demand adds costs without adding revenue. Figure 8 shows the comparison of the mean profits from the GA, PSO, and BO algorithms.
Figure 8.
Comparison of profits from the optimization algorithms.
From Figure 8, among the near-optimal methods, the BO method provides the highest mean optimal profit, although it is only 0.17% higher than that of the GA. Moreover, the GA provides the second-highest mean optimal profit amongst the near-optimal algorithms being compared, while the PSO provides the lowest mean optimal profit. Figure 9 shows the run time of the optimization algorithms.
Figure 9.
Run time of the optimization algorithms.
From Figure 9, the mean run time for the BO method is the highest; therefore, it is the most computationally expensive and time-consuming method. In contrast, the GA is the least time-consuming method. The high run time of the BO is due to the fitting of its surrogate model, since the BO used far fewer objective function evaluations than the GA and PSO. As the BO algorithm tends to be more computationally intensive and time-consuming in performing each run of the optimization, perhaps by running the BO on a more powerful computer, the optimization runs can be completed faster. Figure 10 shows the Tukey simultaneous 95% confidence interval plot for the optimal profits of all three near-optimal algorithms being compared.
Figure 10.
Tukey simultaneous 95% confidence intervals for profit.
Using the one-way ANOVA to compare the profits from the algorithms, an F-value of 10.79 and a p-value below 0.001 were obtained, which means that at least one group’s mean differs significantly from the others. The Tukey HSD intervals in Figure 10 show that the mean profit of the PSO is significantly lower than those of the GA and BO, whereas the interval for the BO–GA difference contains zero. However, the variances of the profits differ strongly between the algorithms (standard deviations of ₦4537, ₦31,702, and ₦2329 for the GA, PSO, and BO, respectively; Levene’s test p-value = 0.001), which violates the equal-variance assumption of the Tukey HSD method. The Games–Howell method, which does not assume equal variances, confirmed that the mean profit of the PSO is significantly lower than those of the GA (p = 0.016) and the BO (p = 0.006) and showed that the BO–GA difference is statistically significant (p = 0.036). Nevertheless, this difference (₦2992, or 0.17% of the mean profit) is negligible in practical terms.
In terms of run time, the GA was the fastest algorithm, whereas the BO was the slowest because it refits a Gaussian process surrogate model at every iteration. Comparative studies have shown that the relative performance of the GA and PSO depends on the problem and on the parameter settings [36]. The model in this study uses a deterministic average demand; as shown by Xu [37], inventory optimization problems become more complex when demand follows a multimodal distribution, and the relative performance of the algorithms may then differ. In this study, the lower mean profit and larger variability of the PSO results may be explained by premature convergence of the particles [38], while the population diversity and genetic operators of the GA helped it explore the search space more broadly.
Moreover, GA tends to be suitable for problems with large search spaces or extremely large feasible regions, as crossover can combine good partial solutions from different individuals and mutation maintains exploration [39]. The processes involved in crossover and mutation and how they foster diversity and exploration in the search space have been explained in El-Shorbagy [40]. On the other hand, PSO may become trapped around promising regions, while BO can become computationally expensive as model updates scale poorly with the number of evaluations. Therefore, GA’s exploitation ability is moderate when compared to PSO and BO, which have higher exploitation abilities. Again, as the number of decision variables increases, BO suffers from computational challenges that arise when analyzing and organizing data in high-dimensional spaces. This is because the Gaussian process model becomes computationally expensive and less accurate as the high-dimensional spaces are optimized. On the other hand, PSO may require many particles to explore the enlarged search space [41], while GA will most likely maintain better performance through recombination of promising solutions. However, Shami et al. [42] have explained that a small number of particles negatively affects the swarm’s ability to explore more areas in the search space and produces poor solutions, while an extremely large number of particles may improve the quality of the solution but has the disadvantage of increased computational complexity. Therefore, in terms of computational cost per iteration, the GA has low cost, and the PSO has moderate cost, while the computational cost of the BO is high due to surrogate model fitting. This is evident in comparing the results from Table 2, Table 3 and Table 4.
Sensitivity analysis was performed by varying the input parameters of the objective function by ±20% and determining the resultant profit using the GA. Figure 11 shows the sensitivity plot obtained from the analyses.
Figure 11.
Sensitivity analyses.
Figure 11 indicates that the objective function is very sensitive to the monthly demand and selling price parameters, with a 20% increase in monthly demand resulting in a 3.3% increase in profit and a 20% decrease in monthly demand resulting in a 21.8% decrease in profit. Also, a 20% increase or decrease in selling price increases or decreases the profit by about 20.9%, respectively. This is because the additional revenue from more sales balances out the cost incurred in ordering products, holding inventory, and purchasing/producing products, thereby increasing the profit accrued from product sales. A 20% increase in storage capacity led to a 14.1% increase in profit, while a 20% decrease in storage capacity led to a 17.3% decrease in profit. A 20% increase in lead time led to an 18.2% decrease in profit, while a 20% decrease in lead time led to a 0.95% increase in profit. The large decreases in profit for a 20% increase in lead time and a 20% decrease in monthly demand are caused by the reorder point condition (9): A 20% increase in lead time raises the ROPs of Products C and D to about 158 and 116 units, above their monthly demands of 150 and 100 units, and a 20% decrease in monthly demand raises the ROP of Product D (about 85 units) above its demand (80 units). In these cases, the affected products cannot be replenished and contribute no profit. All other input parameters analyzed had negligible effect on the overall profit.
4. Conclusions
This research has shown how Genetic Algorithm (GA) through the Distributed Evolutionary Algorithms in Python (DEAP) library, Particle Swarm Optimization (PSO) through the PySwarms Python library, and Bayesian Optimization (BO) through the Bayesian-optimization Python library can be compared in determining the optimal order quantities and optimal profit in a multi-echelon multi-product manufacturing supply chain. The comparison of the optimal order quantities from all optimization algorithms with actual demand for the products showed that the algorithms generated optimal order quantities that were consistently below or equal to the actual demand, which is largely a consequence of the model’s formulation. Moreover, the comparison of the mean optimal profit from the GA, PSO, and BO showed that the BO and the GA achieved almost identical mean profits (a difference of 0.17%), both significantly higher than that of the PSO. However, in terms of run time, the GA is the fastest algorithm. With the shortest run time and a mean profit close to that of the BO, the GA offered the best balance between profit and run time in this study.
Perhaps by tuning the parameters of the GA, PSO, and BO, better optimal order quantities and optimal profits can be obtained. For example, the inertia weight in the PSO, which controls the balance between exploration and exploitation, can be adjusted, which will present benefits, such as higher initial exploration and strong exploitation near convergence. Again, the swarm size can be increased to cover a larger area of the search space; however, this can increase computation time. This is also applicable to BO, where increasing the initial sampling points can produce a better initial surrogate model and possibly improve its ability to converge at the optimal values. However, the drawback of this approach is the consequent high computational time incurred.
This research has shown how several optimization algorithms (Genetic Algorithm, Particle Swarm Optimization, and Bayesian Optimization) can be used for optimal order quantity estimation and profit maximization. The research is significant to production management in general and multi-product supply chains in particular because it proposes an order quantity estimation and profit maximization model, as well as a comparison of various methods for solving the model. This study has some limitations. First, the reorder point is used as a minimum order quantity, which is a simplification, since, in inventory theory, the reorder point is the stock level that triggers a new order. Second, the BO used far fewer objective function evaluations than the GA and PSO. Third, because the model has only four decision variables, it can also be solved exactly by enumeration; the near-optimal algorithms are compared here to study their behavior, and their advantages are expected to be greater for larger problems. Further research can investigate how the premature convergence experienced in PSO can be prevented, possibly by randomly reinitializing stagnant particles, using chaotic initialization, and introducing mutation operators. Further research can also compare and combine other evolutionary algorithms and swarm intelligence algorithms to determine their effectiveness in optimizing order quantities in manufacturing supply chains. For example, PSO can be combined with GA, Simulated Annealing (SA), Differential Evolution (DE), or local search methods. Moreover, the methods investigated in this research utilized a deterministic average demand value. Further research can utilize a probability distribution for demand to better capture the randomness in empirical demand data.
Author Contributions
Conceptualization, O.K.W.-N., D.O.A. and S.S.; methodology, O.K.W.-N. and D.O.A.; software, O.K.W.-N. and D.O.A.; validation, O.K.W.-N. and D.O.A.; formal analysis, O.K.W.-N. and D.O.A.; investigation, O.K.W.-N. and D.O.A.; resources, O.K.W.-N. and D.O.A.; data curation, O.K.W.-N. and D.O.A.; writing—original draft preparation, O.K.W.-N. and D.O.A.; writing—review and editing, O.K.W.-N., D.O.A. and S.S.; visualization, O.K.W.-N., D.O.A. and S.S.; supervision, O.K.W.-N., D.O.A. and S.S.; project administration, O.K.W.-N., D.O.A. and S.S. All authors have read and agreed to the published version of the manuscript.
Funding
This research received no external funding.
Data Availability Statement
Datasets generated during the current study are available from the corresponding author upon reasonable request.
Acknowledgments
The authors declare that they have used artificial intelligence tools ChatGPT (GPT-6) and Claude (Opus 5.5) for writing and editorial assistance and for developing the Python (v3.14.6) code.
Conflicts of Interest
The authors declare no conflicts of interest.
References
- Xu, J.; Bo, L. Optimizing supply chain resilience using advanced analytics and computational intelligence techniques. IEEE Access 2024, 13, 18063–18078. [Google Scholar] [CrossRef] [Scilit]
- Soni, G.; Jain, V.; Chan, F.T.; Niu, B.; Prakash, S. Swarm intelligence approaches in supply chain management: Potentials, challenges and future research directions. Supply Chain Manag. Int. J. 2019, 24, 107–123. [Google Scholar] [CrossRef] [Scilit]
- Grover, N. AI-enabled supply chain optimization. Int. J. Adv. Res. Sci. Commun. Technol. 2025, 5, 28–44. [Google Scholar] [CrossRef] [Scilit]
- Chen, M.; Huang, D.; Wang, S.; Xia, X. Do Carbon Price Forecasts Improve Compliance Procurement? Evidence from European Union Allowances. arXiv 2026, arXiv:2607.23426. [Google Scholar]
- Villena, V.H. The missing link? The strategic role of procurement in building sustainable supply networks. Prod. Oper. Manag. 2019, 28, 1149–1172. [Google Scholar] [CrossRef] [Scilit]
- Tan, Y.; Gu, L.; Xu, S.; Li, M. Supply chain inventory management from the perspective of “cloud supply chain”—A data driven approach. Mathematics 2024, 12, 573. [Google Scholar] [CrossRef] [Scilit]
- Jampani, S.; Avancha, S.; Mangal, A.; Singh, S.; Jain, S.; Agarwal, R. Machine learning algorithms for supply chain optimisation. Int. J. Res. Mod. Eng. Emerg. Technol. (IJRMEET) 2023, 11, 1–14. [Google Scholar] [CrossRef] [Scilit]
- Leuveano, R.A.C.; Asih, H.M.; Ridho, M.I.; Darmawan, D.A. Balancing inventory management: Genetic algorithm optimization for a novel dynamic lot sizing model in perishable product manufacturing. J. Robot. Control (JRC) 2023, 4, 878–895. [Google Scholar] [CrossRef] [Scilit]
- Yan, W.; Li, N.; Zhang, X. Enhancing supply chain management in the physical internet: A hybrid SAGA approach. Sci. Rep. 2023, 13, 21470. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- Eroglu, D.I.; Pamukcu, D. An Evolutionary AI Approach for Hub-Location Decisions: Leveraging Genetic Algorithms for Sustainable Supply Chains. In Proceedings of the 31st Americas Conference on Information Systems (AMCIS 2025), Montreal, QC, Canada, 14–16 August 2025. [Google Scholar]
- Faramarzi-Oghani, S.; Dolati Neghabadi, P.; Talbi, E.-G.; Tavakkoli-Moghaddam, R. Meta-heuristics for sustainable supply chain management: A review. Int. J. Prod. Res. 2023, 61, 1979–2009. [Google Scholar] [CrossRef] [Scilit]
- Abualigah, L.; Hanandeh, E.S.; Zitar, R.A.; Thanh, C.-L.; Khatir, S.; Gandomi, A.H. Revolutionizing sustainable supply chain management: A review of metaheuristics. Eng. Appl. Artif. Intell. 2023, 126, 106839. [Google Scholar] [CrossRef] [Scilit]
- Deng, H.; Shi, Q.; Wang, Y. A Joint Optimization Model of (s, S) Inventory and Supply Strategy Using an Improved PSO-Based Algorithm. Wirel. Commun. Mob. Comput. 2021, 2021, 7621692. [Google Scholar] [CrossRef] [Scilit]
- Zhang, Y.; Wang, S.; Ji, G. A comprehensive survey on particle swarm optimization algorithm and its applications. Math. Probl. Eng. 2015, 2015, 931256. [Google Scholar] [CrossRef] [Scilit]
- Priyadarshi, R.; Kumar, R.R. Evolution of swarm intelligence: A systematic review of particle swarm and ant colony optimization approaches in modern research. Arch. Comput. Methods Eng. 2025, 32, 3609–3650. [Google Scholar] [CrossRef] [Scilit]
- Salgotra, R.; Chaudhary, R.; Verma, P.; Mirjalili, S. The Rise of Particle Swarm Optimization: A Systematic Bibliometric & Thematic Review (1995–2025). Arch. Comput. Methods Eng. 2026, 33, 12375–12445. [Google Scholar] [CrossRef] [Scilit]
- Bo, L.; Xu, J. Enhancing supply chain efficiency resilience using predictive analytics and computational intelligence techniques. IEEE Access 2024, 12, 183451–183465. [Google Scholar] [CrossRef] [Scilit]
- Wofuru-Nyenke, O.K. The Optimising Known Warehouses Framework for Supply Chain Optimisation. Niger. J. Oil Gas Technol. 2025, 5, 143–171. [Google Scholar]
- Wofuru-Nyenke, O.; Aikhuele, D.O. Optimization of multi-echelon multi-product supply chains using discrete event simulation. Future Digit. Technol. Artif. Intell. 2026, 2, 9–28. [Google Scholar] [CrossRef] [Scilit]
- Bárkányi, Á.; Chován, T.; Németh, S.; Abonyi, J. Modelling for digital twins—Potential role of surrogate models. Processes 2021, 9, 476. [Google Scholar] [CrossRef] [Scilit]
- Naz, F.; Agrawal, R.; Kumar, A.; Gunasekaran, A.; Majumdar, A.; Luthra, S. Reviewing the applications of artificial intelligence in sustainable supply chains: Exploring research propositions for future directions. Bus. Strategy Environ. 2022, 31, 2400–2423. [Google Scholar] [CrossRef] [Scilit]
- Ferreira, A.C.A.; Francisco, M.B.; De Pinho, A.F. The use of artificial intelligence in supply chain management: Systematic literature review and future research directions. IEEE Access 2025, 13, 157828–157841. [Google Scholar] [CrossRef] [Scilit]
- Wofuru-Nyenke, O.K.; Briggs, T.A.; Aikhuele, D.O. Advancements in sustainable manufacturing supply chain modelling: A review. Process Integr. Optim. Sustain. 2023, 7, 3–27. [Google Scholar] [CrossRef] [Scilit]
- Wofuru-Nyenke, O.; Briggs, T. Predicting demand in a bottled water supply chain using classical time series forecasting models. J. Future Sustain. 2022, 2, 65–80. [Google Scholar] [CrossRef] [Scilit]
- Thakur, M.; Patel, P.; Gupta, L.K.; Kumar, M.; Kumar, A. Applications of artificial intelligence and machine learning in supply chain management: A comprehensive review. Eur. Chem. Bull. 2023, 8, 2838–2851. [Google Scholar]
- Kaul, D.; Khurana, R. Ai-driven optimization models for e-commerce supply chain operations: Demand prediction, inventory management, and delivery time reduction with cost efficiency considerations. Int. J. Soc. Anal. 2022, 7, 59–77. [Google Scholar]
- Pasupuleti, V.; Thuraka, B.; Kodete, C.S.; Malisetty, S. Enhancing supply chain agility and sustainability through machine learning: Optimization techniques for logistics and inventory management. Logistics 2024, 8, 73. [Google Scholar] [CrossRef] [Scilit]
- Zhang, D.; Turan, H.H.; Sarker, R.; Essam, D. Robust optimization approaches in inventory management: Part A—The survey. IISE Trans. 2025, 57, 818–844. [Google Scholar] [CrossRef] [Scilit]
- Sanni, S.; Jovanoski, Z.; Sidhu, H.S. An economic order quantity model with reverse logistics program. Oper. Res. Perspect. 2020, 7, 100133. [Google Scholar] [CrossRef] [Scilit]
- Wang, L.; Zhang, N.; Wang, S.; Wang, X.; Yuan, Z. Bi-Objective optimisation for synchronising replenishment and storage assignment: Achieving energy efficiency and blocking avoidance in forward-reserve warehousing. Int. J. Prod. Res. 2026, 64, 4635–4668. [Google Scholar] [CrossRef] [Scilit]
- Valipour, M.; Mafakheri, F.; Wang, C. An adaptive simulation-based inventory optimisation approach to enhancing biomass supply chain resilience: A case study of remote communities. Int. J. Prod. Res. 2026, 64, 3352–3384. [Google Scholar] [CrossRef] [Scilit]
- Chopra, S.; Meindl, P. Supply Chain Management: Strategy, Planning, and Operation, 6th ed.; Pearson Education Ltd.: London, UK, 2016. [Google Scholar]
- Kouziokas, G. Swarm Intelligence and Evolutionary Computation: Theory, Advances and Applications in Machine Learning and Deep Learning; CRC Press: Boca Raton, FL, USA, 2023. [Google Scholar]
- Agrawal, T. Hyperparameter optimization in machine learning. In Make Your Machine Learning and Deep Learning Models More Efficient; Apress Berkeley, CA: New York, NY, USA, 2021; pp. 109–129. [Google Scholar]
- Johnson, R.A. Miller & Freund’s Probability and Statistics for Engineers; Pearson Education Limited: England, UK, 2018. [Google Scholar]
- Kachitvichyanukul, V. Comparison of three evolutionary algorithms: GA, PSO, and DE. Ind. Eng. Manag. Syst. 2012, 11, 215–223. [Google Scholar] [CrossRef] [Scilit]
- Xu, L. An assessment of randomized inventory policy in supply chains under multimodal demand distribution. J. Model. Manag. 2026, 21, 1352–1376. [Google Scholar] [CrossRef] [Scilit]
- Franklin, S.B.; Jayaraj, K.J.; Monisha, A.; Balasubramaniam, V.; Kala, S.; Kavitha, N. Nature-Inspired Intelligence for Complex Problems; John Wiley & Sons: Hoboken, NJ, USA, 2026. [Google Scholar]
- Rajwar, K.; Deep, K.; Das, S. An exhaustive review of the metaheuristic algorithms for search and optimization: Taxonomy, applications, and open challenges. Artif. Intell. Rev. 2023, 56, 13187–13257. [Google Scholar] [CrossRef] [Scilit] [PubMed]
- El-Shorbagy, M.A. A Review of Genetic Algorithms: Principles, Procedures, and Applications in Optimization. Comput. Model. Eng. Sci. 2026, 147, 6. [Google Scholar] [CrossRef] [Scilit]
- Li, J.; Han, B.; Chen, J.; Wu, Z. An improved optimization method combining particle swarm optimization and dimension reduction kriging surrogate model for high-dimensional optimization problems. Eng. Optim. 2024, 56, 2307–2328. [Google Scholar] [CrossRef] [Scilit]
- Shami, T.M.; El-Saleh, A.A.; Alswaitti, M.; Al-Tashi, Q.; Summakieh, M.A.; Mirjalili, S. Particle swarm optimization: A comprehensive survey. IEEE Access 2022, 10, 10031–10061. [Google Scholar] [CrossRef] [Scilit]
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content. |
© 2026 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license.










