Figures
Abstract
The scheduling of a job shop production system occurs using models to plan operations for a given period while minimizing the makespan. However, since the resulting mathematical models are computationally demanding, their implementation in the work environment is impractical, a difficulty that increases as the scale problem grows. An alternative approach is to address the problem in a decentralized manner, such that real-time product flow information feeds the control system to minimize the makespan dynamically. Under the decentralized approach, we use a holonic and multiagent systems to represent a product-driven job shop system that allows us to simulate real-world scenarios. However, the computational performance of such systems to control the process in real-time and for different problem scales is unclear. This paper presents a product-driven job shop system model that includes an evolutionary algorithm to minimize the makespan. A multiagent system simulates the model and produces comparative results for different problem scales with classical models. One hundred two job shop problem instances classified as small, medium, and large scale are evaluated. The results suggest that a product-driven system produces near-optimal solutions in short periods and improves its performance as the scale of the problem increases. Furthermore, the computational performance observed during the experimentation suggests that such a system can be embedded in a real-time control process.
Citation: Sáez P, Herrera C, Booth C, Belmokhtar-Berraf S, Parada V (2023) A product-driven system with an evolutionary algorithm to increase flexibility in planning a job shop. PLoS ONE 18(2): e0281807. https://doi.org/10.1371/journal.pone.0281807
Editor: Praveen Kumar Donta, TU Wien: Technische Universitat Wien, AUSTRIA
Received: December 13, 2022; Accepted: February 1, 2023; Published: February 16, 2023
Copyright: © 2023 Sáez et al. This is an open access article distributed under the terms of the Creative Commons Attribution License, which permits unrestricted use, distribution, and reproduction in any medium, provided the original author and source are credited.
Data Availability: All relevant data are within the paper and its Supporting Information files.
Funding: V. Parada gratefully acknowledge financial support from ANID PIA/PUENTE AFB220003 and DICYT-USACH 061919PD. The funders had no role in study design, data collection and analysis, decision to publish, or preparation of the manuscript.
Competing interests: The authors have declared that no competing interests exist.
Introduction
Industry 4.0 requires manufacturing systems to be flexible, dynamic, and able to react immediately to disruptions. These are critical aspects in the design stage, for which it is necessary to resort to modeling that integrates the advantages of traditional modeling [1]. Such models are the basis of the manufacturing process control system [2], and should consider the integration of historical data with data from the system in real-time. Thus, dynamic decision-making should occur to reach a steady state of optimality. However, the control system must provide dynamic and near-optimal solutions in a reduced computational time.
The design of production systems has benefited from information and communication technologies, allowing the emergence of models with the capacity for self-learning, self-diagnosis, self-adaptation, and self-optimization [3]. Although there is a wide variety of production systems, job shop systems constitute a significant part, and their scheduling to optimize resources is a computational challenge [4]. The job shop scheduling problem (JSSP) emerges from that situation as a problem belonging to the NP-hard class [5]. Consequently, the computational requirement precludes its practical use in large-size situations. JSSP has been widely studied, visualizing a centralized and static approach. However, the integration of current technologies broadens the conception of production systems, giving rise to more sophisticated organizational ideas [1]. Thus, the JSSP can be approached in a decentralized and dynamic way, achieving that the flow of products during the operation contributes with real-time information that supports the decision-making of the production control system.
The development of intelligent systems makes it possible to meet the computational challenge offered by production systems dynamically. Such systems occur in different sizes, making it difficult to use a single method for production scheduling [6, 7]. Exact methods for JSSP cannot always be used in practice due to their computational cost; thus, it is necessary to resort to heuristic methods that produce a solution sacrificing optimality [8]. Product-driven systems (PDS) face such difficulties for JSSP. They are systems that consider the information coming from the product cycle to support decision-making in the control system. Then, the products are equivalent to agents actively participating in the control system [9, 10].
The advantage of using a PDS lies in the increased agility and reactivity of the production system. A PDS can react to disturbances related to itself or other parts of the manufacturing system [11]. Furthermore, the PDS considers product intelligent artificial entities to implement and coordinate the control process. Such products allow the reconfiguration of resources to provide agility in the face of production changes [12]. The PDS implementation occurs by applying concepts of a holonic manufacturing system (HMS) with a multiagent system (MAS). An HMS has a fundamental unit called a holon, which describes an entity in its physical and virtual forms. HMSs are not simple automated physical structures but entities capable of autonomous self-organization, mixing the physical and virtual worlds to avoid waste and inefficiencies [13]. In turn, a MAS constitutes a form of development based on the distribution, autonomy, and cooperation of virtual entities called agents [14]. Consequently, a PDS dynamically addresses the optimization of the JSSP [15].
Several studies demonstrate the benefits and difficulties of using a PDS when decision-making is decentralized. Mihoubi et al. [16], found good performance in minimizing production system execution times. In turn, Bouazza et al. [17], considered a PDS as a decision strategy for efficient scheduling rule changes using a hyperheuristic and found good performance in minimizing execution times. Shen and Norrie [18], used agents as negotiating entities, emphasizing flexibility by combining a MAS with a genetic algorithm. Likewise, Wang and Choi [19] presented a proposed holonic decomposition to minimize the makespan of a flexible JSSP. The proposed method uses autonomous and cooperative holons to construct solutions. In turn, the decentralized decision-making process generates difficulty due to the number of possible combinations of products and rules. The best combination in each event can be determined heuristically with a genetic algorithm but with an increased computational cost.
A PDS that integrates an HMS with a SAM, and contemplates the local optimization of decisions, gives rise to a large job shop production model. Its computational tractability must be considered for real life industrial applications. That is, the system must run in real-time with low computational times providing near-optimal solutions at every instant of the production process. Such efficiency considerations have received little attention in the literature; consequently, there is no clarity on its computational performance against problems of different sizes.
This manuscript proposes a PDS model that considers parameters associated with the HMS and MAS to increase flexibility in planning a Job Shop production system. The model produces a fast response with a near-optimal solution for problems of different sizes. In addition, the model considers intelligent products to support decision-making by considering a function based on evolutionary algorithms. The use of evolutionary algorithms brings more efficiency to the search process by modifying the representation of the modeled system. The model’s performance was tested with JSSP instances studied in the literature and compared with an integer programming model, a heuristic method, and dispatching rules. A comparison with this method allows us to analyze the robustness of the proposed model. Dispatch rules offer a fast alternative solution, although with lower accuracy. In turn, heuristics that are more elaborate methods obtain better solutions. Exact models guarantee the determination of the optimal solution but with a high computational cost.
The main contributions of this manuscript are as follows:
- It proposes a new model for the production planning of a job shop system. The model includes an evolutionary algorithm to search for better solutions applied through intelligent products.
- The proposed model uses the holonic-multiagent paradigm with intelligent products for decision-making in a highly distributed architecture. The product agents can apply evolutionary algorithms to optimize perturbed outcomes.
- Experimentation is performed on JSSP instances used in the literature.
- The model is adaptive in solving JSSP of different sizes and obtains near-optimal results in short execution times.
Proposed model
This section describes the model proposed to solve the JSSP and the algorithm used to determine the optimal solution. This model is a product-driven system with an evolutionary algorithm (PDS-EA) that represents a productive job shop system in which machines and products interact through production jobs or operations. The process corresponds to an MAS that considers machines and products as agents of the system. In the holonic model, the machine agent and the product agent correspond to a virtual representation of their physical entities. The JSSP solution search occurs with an evolutionary algorithm operated by the product type agents. This process is generic and useful for representing several real industry situations.
Operating agents that possess the characteristics of an intelligent product, defined in the work of C. Wong et al. [20], represent the system’s mobile entities. That means they have a unique identification, can communicate with machines around them and other operation agents, and make operational decisions on a machine. In addition, machine agents are considered static entities that only provide information about the processing time of their tasks. Fig 1 depicts a scheme of the general model that follows an example selected from the literature [21]. The example considers the scheduling of three products on three machines, as shown in Table 1. Fig 1 show, in the first stage, the model configured through the product and operation agents, configuring the processing sequence of each of them. In the second stage, the operation agents generate feasible production sequences and calculate the associated makespan. In this stage, the operation agents learn the sequences that generate the best results. The best results from the second stage improve through an evolutionary process in the third stage.
The PDS-EA model can be represented schematically by separating the physical and virtual stages. Both stages are represented horizontally in the diagram in Fig 2; the columns represent the elements of the model that, in the physical part, correspond to acquisition, entities, and visualization. In turn, the virtual part represents the information inputs, architecture, intelligence function, representation of the entities, agent’s response to the problem, interaction, and results.
The information flow of the PDS-EA model starts at the acquisition modules that represent physical sensors. Such modules capture information and transform it into data for each virtual entity. The entities represented virtually by agents follow a distribution given by the highly distributed architecture. In this architecture, all the entities associated with the products guide the decisions of their process. Such decisions are generated based on an intelligence function embedded in each agent to evaluate individual and collective performance. This evaluation occurs through three stages: data collection and reading, solution learning and improvement, and scheduling generation. In the data collection and reading stage, product and machine agents collect sequence data and operation times required to complete jobs. In the learning and improvement stage, the operation agents calculate the makespan of the problem through the intelligence function.
The PDS-EA model uses an intelligence function that is an evolutionary algorithm with an elitist selection strategy for makespan minimization. The advantage of using an elitist strategy instead of a probabilistic reproduction is that the best solution improves monotonically. The potential disadvantage is the convergence of the population to a local minimum. The balance between the two aspects occurs by regulating the mutation rate. Thus, a mutation evolved on a single chromosome is proposed instead of a gene-by-gene mutation. This process avoids the violation of the production sequence of each product in the JSSP.
The development of the actions of the PDS-EA model is represented through an UML-type sequence diagram. Fig 3 depicts the order of actions performed by the operation agents. The first decision occurs with the sequencing of operations generated by all product agents. Then, the operation agents evaluate the sequence’s feasibility, verifying the assignment of jobs to the machines according to the JSSP. If the generated sequence is not feasible, mutations are performed to make the sequence feasible. The makespan is then evaluated. If this improves with subsequent iterations, the product agents store the position in the generated sequence in memory and use it to minimize the makespan. Suppose there is no change in the best makespan after generations. In that case, a second stage begins in which the operation agents evaluate new sequences through an evolutionary swapping mechanism between the operation agents’ positions. If the operation agent generates an unfeasible sequence, they mutate their positions until feasible. The procedure ends when no improvement occurs after a certain number of iterations. This whole procedure is represented by a flowchart, as shown in Fig 4.
The model simulation was performed with NetLogo Version 6.2 [22]. The proposed approach uses parallelism in MAS, where each instruction is executed by agents simultaneously. In addition, the platform provides a suitable environment for testing and monitoring the model’s performance.
We compare the results obtained by the PDS-EA model with three heuristics and an exact model. The heuristics used are the bottleneck heuristic (SBH) proposed by Adams et al. [23], sequencing by shortest processing time (SPT), and sequencing by longest processing time (LPT). The exact model is an integer programming problem (IP) [2]. The problem instances were classified according to their scale as small (SS), medium (MS), and large (LS). This classification results from the number of operations, products, and machines. One hundred-two instances from the literature are used (Table 2). The first column of Table 2 shows the authors proposing the test instances. The following columns contain the name of the problem instances and the number of jobs and machines. The last column presents the ranking by the scale of each group of instances. SS contains instances with fewer than 100 operations, MS with more than 100 and fewer than 400 operations, and LS with more than 400 operations. The results of the PDS-EA model with SBH, SPT, LPT, and IP obtained for all test instances are compared, measuring the makespan at different execution times.
The proposed algorithm is compared with three types of standard approaches to the problem. The first approach decomposes the problem into subproblems of less complexity, known as the shifting bottleneck heuristic (SBH) [24]. The second approach considers dispatching rules that are computationally easy to implement because they assign jobs according to the processing time. Specifically, the short processing time (SPT) assigns jobs from shortest to longest, and conversely, the long processing time (LPT) assigns jobs from longest to shortest. In turn, the integer programming (IP)-based method determines the optimal solution of the problem when it is possible according to the available computational resources.
The makespan evaluates the PDS-EA performance by a deviation ratio. Let mp be the makespan obtained by the PDS-EA and mi be the makespan obtained by the IP algorithm. The deviation ratio R for a runtime of 10 minutes is defined according to Eq 1. In addition, the gap between mp and the lower bound value known for each instance problem is evaluated.
Results
The PDS-EA, on average, matches the results of exact methodologies at medium and low scales and performs better with large-scale instances. Such performance is presented in Table 2, whose first column presents the scales under study, followed by the average, minimum and maximum results for the different execution times. For SS instances, PDS-EA obtains values close to those obtained by the exact method (R≈1). The average for MS instances is 23.8% higher, obtaining the best result with one hour of execution (6% higher than the value of the exact methodology). For LS instances, PDS-ES outperforms IP on average with R = 0.523. In addition, with LS instances, all run times obtain R<1, and the best result occurs at 2 min of execution.
The performance comparison of PDS-EA with IP, SBH, SPT, and LPT is performed with the gap calculated for each instance’s optimal or lower bound value. With small-size instances, IP outperforms the other algorithms. In turn, PDS-EA outperforms all heuristics after 2 minutes of execution. Fig 5A shows the gap for the five methods during one hour of computational time for SS instances. During such a period, PDS-EA evolves gradually, decreasing the makespan difference related to the best-known makespan. After an hour, the exact method is still in process to determine the static optimal solution. Straight lines in the figure represent the heuristic-determined value found immediately at the beginning of the period. The PDS-EA obtains the best result when one hour of computational time is reached. This result differs from the best result found with IP by 3% but improves by 9.08% the best heuristic value obtained with SBH.
a. GAP values each minute of simulation Average GAP for SS instances; b. GAP values for each minute of simulation Average GAP for MS instances; c. GAP values each minute of simulation Average GAP for LS instances.
With MS instances, the PDS-EA model performs better than the heuristics from minute 10 onward. The best results occur with IP, which outperforms PDS-EA by 4.97% on average. Fig 5B shows the gap for the five methods during one hour of computational time for MS instances. The PDS-EA outperforms the heuristics by 7.58% on average. With the LS instances, the SBH maintains its performance and achieves a gap of less than 20%. This behavior is observed in Fig 5C. Although PDS-EA performs better than the exact method after one hour of computational time, the gaps are larger than for smaller instances. At the end of the period, PDS-EA and IP continue with a decreasing trend, suggesting that convergence is slower for larger instances.
PDS-EA obtains good solutions for the three problem sizes studied. Its main advantage is that the method dynamically optimizes the makespan as time progresses. Fig 5A–5C show that the gradual algorithm produces a better makespan than the heuristic algorithm and the dispatch rules.
Although the inclusion of the evolutionary algorithm in the PDS-EA involves an increase in computational time, its performance is maintained for large instances. Fig 5C shows a gradual decrease in the gap to values close to 30% after 1 hour of computational time. Compared to the other sizes, the algorithm requires more time to enter a phase of lower gaps. Even so, it is observed that the process continues to move toward lower gap values, suggesting that a longer simulation time could further reduce the gap. Fig 6 shows the gap obtained in all instances for PDS-EA and IP. A similar behavior is observed when the number of operations is approximately 100. However, for higher numbers, both algorithms have a clear difference. For problems of approximately 300 operations, the difference seems to stabilize.
Computational experiments suggest that the proposed PDS-EA offers competitive results compared to exact and heuristic methods. The PDS-EA architecture generates a stable system capable of reacting to changes without human intervention in short periods. Therefore, PDS-EA can solve sequencing processes in job shop environments at different scales, adapting to the complications of each instance. Thus, PDS-EA positions distributed decision-making as a competitive alternative for job scheduling problems in production systems.
Conclusion
This paper presents a decentralized decision-making model to minimize the makespan of a job shop problem. The model contemplates a genetic algorithm selecting the best decision at each instant resorting to an agent-based system to simulate the operations. From the flow of products in the different machines, real-time information feeds the model to correct the course of the operations, keeping in mind the minimization of the makespan. The evaluation occurs with a simulation of one hour of computational time, providing the gap concerning the best-known solution for each approach’s small, medium and large-size instances. Data from the literature allow comparison with four standard approaches: an integer programming algorithm and three approximate methods.
The proposed model’s comparative result varies with the number of instances it faces. With small instances, the proposed model underperforms during the whole simulation hour against the exact method, which can find the best solution quickly. With medium-sized instances, a balance is observed between the proposed method and the exact method approaching the hour of simulation time. With large instance sizes, the proposed method outperforms the exact method during that period; however, the SBH rule produces a better solution than all the solutions generated by the proposed method during the hour of simulation time. In turn, despite being very fast in finding the solution, the approximate methods do not present good performance, with small and medium-sized instances being surpassed by the proposed and exact methods.
The proposed model produces near-optimal solutions in a reduced computational time and constitutes an alternative to be computationally implemented to control a manufacturing system. The model uses the holonic-multiagent paradigm for a highly distributed job shop production system. In addition, the model considers dynamic decisions to maintain the system at a production level close to operational optimality.
The proposed model considers the makespan as a performance measure. Several variants of the job shop problem consider other metrics, such as machine utilization rate or task completion delay. The model can be easily modified for such variants, and future studies can explore this field. Also, the model considers decentralized decision-making, and the computational monitoring of the system occurs centrally. It seems natural to consider a parallel computational architecture to perform this task. However, computational parallelism does not always mean better performance. This topic can be explored in future work by identifying the appropriate level of parallelism to improve the model results.
References
- 1. Oborski P. and Wysocki P., “Intelligent Visual Quality Control System Based on Convolutional Neural Networks for Holonic Shop Floor Control of Industry 4.0 Manufacturing Systems,” Adv. Sci. Technol. Res. J., vol. 16, no. 2, pp. 89–98, 2022,
- 2. Zhang J., Wang L., and Xing L., “Large-scale medical examination scheduling technology based on intelligent optimization,” J. Comb. Optim., vol. 37, no. 1, pp. 385–404, 2019,
- 3. Buckhorst A. F., Grahn L., and Schmitt R. H., “Decentralized Holonic Control System Model for Line-less Mobile Assembly Systems,” Robot. Comput. Integr. Manuf., vol. 75, p. 102301, 2022,
- 4. Utomo D. S., Onggo B. S., and Eldridge S., “Applications of agent-based modelling and simulation in the agri-food supply chains,” Eur. J. Oper. Res., vol. 269, no. 3, pp. 794–805, 2018,
- 5. Asadzadeh L., “A local search genetic algorithm for the job shop scheduling problem with intelligent agents,” Comput. Ind. Eng., vol. 85, pp. 376–383, 2015,
- 6. Nowicki E. and Smutnicki C., “An advanced tabu search algorithm for the job shop problem,” J. Sched., vol. 8, no. 2, pp. 145–159, 2005,
- 7. Bożek A. and Werner F., “Flexible job shop scheduling with lot streaming and sublot size optimisation,” Int. J. Prod. Res., vol. 56, no. 19, pp. 6391–6411, 2018,
- 8. Kim J. G., Jun H. B., Bang J. Y., Shin J. H., and Choi S. H., “Minimizing tardiness penalty costs in job shop scheduling under maximum allowable tardiness,” Processes, vol. 8, no. 11, pp. 1–15, 2020,
- 9. Sallez Y., “Proposition of an Analysis Framework to Describe the ‘Activeness’ of a Product during Its Life Cycle,” in Serv. Orientat. Holonic Multi-Agent Manuf. Robot, 2014, pp. 257–270.
- 10. Herrera C., Belmokhtar-berraf S., Thomas A., and Parada V., “A reactive decision-making approach to reduce instability in a master production schedule,” Int. J. Prod. Res., vol. 7543, p. 0, 2016,
- 11. Pannequin R. and Thomas A., “Another interpretation of stigmergy for product-driven systems architecture,” J. Intell. Manuf., vol. 23, no. 6, pp. 2587–2599, 2012,
- 12. Oltean E., Borangiu T., and Răileanu S., “Holonic Hybrid Supervised Control of a Radiopharmaceutical Production Plant,” IFAC-PapersOnLine, vol. 51, no. 11, pp. 1249–1254, 2018,
- 13. Mcfarlane D., Sarma S., Chirn J. L., Wong C. Y., and Ashton K., “the intelligent product in manufacturing control and management,” IFAC Proc. Vol., vol. 35, no. 1, pp. 49–54, 2002,
- 14. Leitão P., Rodrigues N., Barbosa J., Turrin C., and Pagani A., “Intelligent products: The grace experience,” Control Eng. Pract., vol. 42, pp. 95–105, 2015,
- 15. Peng C., Wu G., Warren Liao T., and Wang H., “Research on multi-agent genetic algorithm based on tabu search for the job shop scheduling problem,” PLoS One, vol. 14, no. 9, pp. 1–19, 2019, pmid:31560722
- 16. Mihoubi B., Bouzouia B., Tebani K., and Gaham M., “Hardware in the loop simulation for product driven control of a cyber-physical manufacturing system,” Prod. Eng., vol. 14, no. 3, pp. 329–343, 2020,
- 17. Bouazza W., Sallez Y., and Trentesaux D., “Dynamic scheduling of manufacturing systems: a product-driven approach using hyper-heuristics,” Int. J. Comput. Integr. Manuf., vol. 34, no. 6, pp. 641–665, 2021,
- 18. Shen W. and Norrie D. H., “Agent-Based Systems for Intelligent Manufacturing : A State-of-the-Art Survey,” vol. 1, no. 2, pp. 129–156, 1999.
- 19. Wang K. and Choi S. H., “A holonic approach to flexible flow shop scheduling under stochastic processing times,” Comput. Oper. Res., vol. 43, no. 1, pp. 157–168, 2014,
- 20. Wong C. Y., Mcfarlane D., Zaharudin A. A., and Agarwal V., “The intelligent product driven supply chain,” no. November 2002, 2014,
- 21. Shahzad A. and Mebarki N., “Learning Dispatching Rules for Scheduling: A Synergistic View Comprising Decision Trees, Tabu Search and Simulation,” Computers, vol. 5, no. 3, p. 16, 2016,
- 22. Wilensky U., “NetLogo. http://ccl.northwestern.edu/netlogo/. Center for Connected Learning and Computer-Based Modeling Northwestern University Evanston,” 1999.
- 23. Adams J., Balas E., and Zawack D., “The shifting bottleneck procedure for job shop scheduling,” intitute Manag. Sci., vol. 34, no. 3, pp. 391–400, 1988, doi: 0025-1909/88/3403/0391
- 24. Mönch L. and Zimmermann J., “A computational study of a shifting bottleneck heuristic for multi-product complex job shops,” Prod. Plan. Control, vol. 22, no. 1, pp. 25–40, 2011,