Next Article in Journal
Robust Object Positioning for Visual Robotics in Automatic Assembly Line under Data-Scarce Environments
Previous Article in Journal
A New 2D Displacement Measurement Method Based on an Eddy Current Sensor and Absolute Encoding
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Research on an Adaptive Real-Time Scheduling Method of Dynamic Job-Shop Based on Reinforcement Learning

College of Mechanical and Electrical Engineering, Nanjing University of Aeronautics and Astronautics, Nanjing 210016, China
*
Author to whom correspondence should be addressed.
Machines 2022, 10(11), 1078; https://doi.org/10.3390/machines10111078
Submission received: 13 October 2022 / Revised: 10 November 2022 / Accepted: 14 November 2022 / Published: 15 November 2022
(This article belongs to the Section Industrial Systems)

Abstract

:
With the rapid development of modern industrialization in our country and the continuous improvement of people’s living standards, the changing market has put forward new requirements for traditional manufacturing enterprises. The order product demand of many manufacturing enterprises is changing from a single variety, large batch to multiple varieties, small batch. In view of this change, the traditional job-shop scheduling method is far from enough, which greatly affects the efficiency of the production job-shop. In order to solve the above problems, this paper proposes a real-time scheduling method based on reinforcement learning applied in the dynamic job-shop and a new type of neural network is designed at the same time. The neural network is designed with the high-dimensional data in the above problem as input, and a policy-based reinforcement learning algorithm is proposed based on this network. In the process of research, it was found that the reinforcement learning method not only enables the agent to use historical data for learning, but also enables it to explore and learn other possible high-reward actions within a certain range, so as to realize the optimization of production goals under real-time scheduling. The effectiveness of the proposed real-time scheduling method is verified by comparing with other common rule-based scheduling methods in the manufacturing environment.

1. Introduction

With the continuous advancement of the industrialization process and the improvement of people’s living standards, people have begun to pursue the uniqueness of products under the premise of quality assurance of product. The traditional production mode of single variety and large scale is gradually changing to multiple types and small batch production to meet the customization requirements [1]. However, this transition has also brought many unavoidable phenomena, such as the increase in product types, the decrease in production volume and unstable demand. These uncertain factors are reflected in the changes in the processing links of products, the increase in mechanical equipment in the job-shop and the changes in the types of orders of enterprises, which seriously affect the production efficiency [2]. Therefore, it is urgent to deal with these changes in dynamic job-shop in real time and improve the efficiency of job-shop production scheduling [3].
As an important technical means to improve the utilization of manufacturing resources and realize efficient production operation, production scheduling is the core of production process control. The optimized scheduling scheme can greatly improve the performance of manufacturing system, reduce costs and improve productivity [4]. In the literature, there are a variety of methods for production scheduling. Mathematical programming approaches achieve global optimal schedules by obtaining critical solutions of programming functions under constraints. Metaheuristic algorithms, such as genetic algorithm (GA) [5] and ant colony algorithm [6], are introduced to simulate manufacturing systems with simple and natural rules. The advantage of the above methods is that they can get obtain optimal or near-optimal solution. However, they are traditionally implemented offline in a centralized manner with static and deterministic assumptions and have poor real-time performance in the dynamic manufacturing environment [7]. Dynamic scheduling is aimed at dealing with real-time changes, but its rules are man-made, which are fixed and limit the action selections [8]. Hence, in order to meet current manufacturing systems’ requirement, it is in an urgent need to propose a new intelligent scheduling method.
With the rapid development of emerging technologies, especially new computer technologies such as Internet of things and artificial intelligence (AI), it offers the possibility of increasing information visibility about real-time statuses of manufacturing resources. More and more real-time manufacturing data can be acquired automatically [9]. Large amounts of data are readily available in the manufacturing system, which provides an unprecedented opportunity to improve the performance of the manufacturing system. Recently, AI fuels an increasing interest to solve dynamic scheduling problems by continuously improving the scheduling performance of schedulers [10]. AI methods provide attractive features such as dynamic adjustment, online learning, and real-time decision making. This provides an unprecedented opportunity to handle unexpected events in real time and improves the decision-making abilities of schedulers in the manufacturing processes. Reinforcement learning (RL) is a rapid, efficient and irreplaceable learning algorithm, which belongs to a branch of AI. In recent years, it has been studied and applied in the process of job-shop production scheduling by more and more people, which has a good effect in improving the production efficiency of the job-shop [11,12]. Although most RL-based studies improve scheduling efficiency at different levels, the essence of them was to let agents learn historical data and experience, instead of interactive learning and rescheduling according to the real-time information change in dynamic job-shop.
According to the above, in order to improve the real-time interactive learning and dynamic adjustable ability in the process of job-shop production scheduling, a real-time scheduling method of dynamic flexible job-shop based on reinforcement learning was proposed. Based on the study of Markov Decision Process (MDP), a model of MDP for Flexible Job-shop Scheduling Problem(FJSP) is established by using the similarities and relationships between the MDP and the shop scheduling model [13]. Then, a learning neural network based on the state-action value of production scheduling is designed. In the end, a policy-based deep reinforcement learning algorithm is proposed to achieve the optimization of objectives. The rest of the paper is organized as follows. Section 2 contains some related research status of static or dynamic job-shop production scheduling methods. Section 3 introduces the main research methodology. Experiment and results are given in Section 4. Finally, conclusions are shown in Section 5.

2. Research Background

In order to solve the real-time scheduling problem of dynamic job-shop, this paper studies the technology and algorithm of job-shop scheduling and focuses on the static production scheduling and intelligent production scheduling methods of job-shop.

2.1. Static Production Scheduling Methods

Shop scheduling problem is a classic NP-hard problem, which is extremely challenging and has attracted the attention of many scholars. At present, most of the existing solutions to the flexible job-shop scheduling problem assume that the production environment is static. Wu [14] used the improved particle swarm optimization algorithm as the solution method to solve the flexible job-shop scheduling problem. Tian et al. [15] proposed an improved Gray Wolf algorithm based on the classical Gray Wolf algorithm to optimize the maximum completion time to solve the flexible job-shop scheduling problem. Dong [16] proposed a hybrid genetic and ant colony algorithm for flexible job-shop scheduling problem. Sha [17] modified some Settings in PSO to enable multi-objective optimization. Zhou [18] studied the artificial bee colony algorithm for flexible job-shop scheduling problem. Li [19] designed a flexible job-shop batch scheduling algorithm by using the framework of genetic algorithm and a flexible batch coding method based on “cursors”. Cheng [20,21] et al. proposed an improved hybrid genetic algorithm to solve the flexible job-shop scheduling problem.
However, the above research aims at solving the static scheduling problem, which is obtained under the premise that all factors do not change. But in the actual production environment, real-time scheduling is often required according to the current situation of the job-shop [22], so an intelligent scheduling method is needed to solve this problem.

2.2. Intelligent Production Scheduling Methods

In order to solve the dynamic job-shop scheduling problem, many intelligent scheduling methods are used, such as rule-based scheduling method, simulation scheduling method, artificial intelligence scheduling method and so on. Lv [23,24] proposed the MAS interaction mechanism of combined auction and achieved good results in agile production scheduling. This kind of method has low computation cost and global properties, but it cannot realize knowledge learning and acquisition. Cai et al. [25] developed a large-scale and dynamic job-shop simulation platform. Zhang et al. [26] proposed a multi-intelligence architecture system integrating self-organizing negotiation and self-learning strategies.
Although all the above methods have high solution quality, they may take a long time and are not suitable for real-time scheduling of dynamic job-shop. In recent years, reinforcement learning (RL) in the field of artificial intelligence has become an effective method to solve this problem. Many research methods based on RL have been applied to dynamic scheduling of different kinds of job-shops. Chang et al. [27] proposed deep reinforcement learning (DRL) to solve the dynamic FJSP (DFJSP) with random job arrival, with the goal of minimizing penalties for earliness and tardiness. Johnson [28] proposed a Multi-Agent Reinforcement Learning (MARL) system for scheduling dynamically arriving assembly jobs in a robot assembly cell. Zhou et al. [13] presented new cyber-physical integration in smart factories for online scheduling of low-volume-high-mix orders and the design of new reward functions to improve the decision-making abilities of multiple AI schedulers based on reinforcement learning (RL). Waschneck et al. [29] designed some cooperative Deep Q-Network(DQN)-based agents for a job-shop, where each agent optimizes the dispatching rules at one work center while monitoring the actions of other agents and optimizing a global reward. Khalil et al. [30] proposed a fitted Q-learning based on a deep learning architecture over graphs to learn greedy policies for a diverse range of combinatorial optimization problems. Han et al. [31] proposed an end-to-end deep reinforcement learning (DRL) framework based on 3D disjunctive graph dispatching. Aldarmi, SA et al. [32] proposed value-based scheduling algorithms to improve the performance under normal load in the scheduling system and to reduce the performance degradation of the system under overload to a certain extent. Tseng, SM et al. [33] present an adaptive real-time scheduling policy for scheduling value-based transactions in a multiprocessor real-time database system. Prasad, D [34] proposed a valued-based scheduling method to select the optimal service operation autonomously. Compared with the traditional neural network, the strategy network of the new manufacturing neural network proposed in this paper is composed of several assignment action policy networks and an execution action policy network. Each action assignment will be completed by a policy network and cooperate with the execution action policy network to make the action performed more reasonable.
In this paper, the reinforcement learning model of flexible job-shop scheduling is established with a manufacturing neural network, and the training method of the scheduling agent is studied based on this model.

3. Research Methodology

At present, in most production job-shops, jobs are transported from the warehouse to the production job-shop by an AGV (Automatic Guided Vehicle) trolley and other transportation equipment, and then the robotic arm and transportation equipment cooperate with each other to move these jobs to the designated processing machine for processing according to the instructions. The overall completion process of the job order and corresponding process of the proposed adaptive real-time scheduling method is shown in Figure 1.
Firstly, the orders for personalized products are submitted by customers on the cloud platform, and then the information of these orders are sent to the database on the production floor. Then job-shop production system decomposes the order data into a series of manufacturing operation information, and the working state of the machine and the corresponding operation information of jobs are obtained in real time by advanced sensors [14]. Next, the scheduling problems will be described by the mathematical model and the designed corresponding neural network is used to generate a scheduling policy. The policy-based algorithm is applied to the neural network for training, so that the objective optimization is achieved to realize the scheduling of the production job-shop [28].

3.1. Mathematical Model

3.1.1. The Mathematical Model of FJSP

In a FJSP, there exist several machines and several jobs. NC represents the total number of jobs; NM represents the total number of machines; A machine is denoted by Mm, m = 1,…, NM; a job is denoted by Ji, i = 1,…, NC; each job consists of a series of operations with sequence constraints. The jth operation of a job Ji is denoted by Oij, j = 1,…, Ji; when an operation is completed, the next operation of the same job will be initialized and appended to the scheduling list. If there is no available machine for the current operation, it will wait for the next scheduling moment. If two or more operations are initialized at the same time, the scheduler will prioritize the one with more rewards.
For the convenience of describing, here are some assumptions: First, each machine can only process one specific type of operation (e.g., turning, milling, or drilling), and each job can only be processed on one machine at one time; each operation can be completed in one machine; machines cannot be interrupted when processing a job; transporting time of job-shops is ignored, i.e., every operation can immediately be processed whenever its previous one has been carried out; machines’ setup time is ignored; machines of the same specifications are totally the same; and for the convenience of designing the objective function, we focus on a system’s makespan rather than a jobs’ constraints of delivery.

3.1.2. The Principle of Applying RL to Model FJSP

Reinforcement learning based on the Markov decision process is a way of on-line learning which can be applied to a single agent environment. MDP is a serialized model. In each trail, an agent repeatedly reads current state and chooses and implements an action. Meanwhile, the environment repeatedly transfers from one state to another and returns a reward until to the end state. The process of MDPs is shown in Figure 2.
The job-shop production scheduling problem is also a serialized decision problem in nature and can also be described in the framework described above. In the production job-shop scheduling system, when a certain operation of one job is completed, the next operation of this job will be added to the list waiting for scheduled. Then the scheduling system will make a decision to choose the next scheduling action according to the information feedback of the current job-shop environment and the job-shop production environment will be transformed to the next state. The corresponding relationships between MDP and FJSP are listed in Table 1.

3.2. Manufacturing Neural Network

When there are some tasks to be scheduled, the features of the job-shop need to be fed to the manufacturing neural network to generate scheduling policies. The features of the job-shop environment (i.e., the input of the neural network model) consist of the process information of the jobs to be scheduled and the working state information of the machine tool. Specifically, the process information of the jobs to be scheduled includes the number of operations of every job, the arrival time of the jobs, and the working state information of the machine tool which includes the process time of every operation, etc. this information shows complexity and diversification, leading to the high dimension of the input of the neural network model.
To address the high dimensionality of jobs and machines, a manufacturing neural network is proposed to optimize dispatching rules. The neural network is divided into two parts: production behavior network and scheduling policy network. According to the job type, the scheduling policy network is also divided into multiples, in keeping with the number of job types. By inputting the specified type of job information and machine information, the scheduling policy network can decide whether the task should be assigned under the current environment characteristics and output the probability distribution of different alternative production actions. By inputting all the job information and machine information, the production behavior network can decide whether to continue processing under the current environmental characteristics. In summary, this type of neural network can determine whether the job-shop should process or schedule in the current environment based on the input feature information.
The detailed setup of network inputs, neural network, action and the reward are described as below:
(1) Scheduling moment
The moment when the scheduling system performs the scheduled action again after performing the previous action and being rewarded.
(2) Inputs of neural network
The current state of the job-shop s n is represented by some typical characteristic quantities of the environment. The scheduling information is made up of two types, as shown in Figure 3.
The first type is the information of jobs to be scheduled, which includes the operation attributes of the job and the workload of available machines. It is denoted by s 1 i , in this notation, where 1 indicates that the scheduling information belonging to the first type of state, and i indicates the local index of the job to be scheduled in the state space. In addition, ind i is used to represent the global index of the job.
The second type is the information of all machines in the job-shop, which contains the remaining processing time and the operations processing schedule of each machine. It is denoted by s 2 , in this notation, where 2 indicates that the scheduling information belongs to the second kind of state.
By combining the above two kinds of scheduling information, the state space of job-shop can be obtained as S n = s 11 , s 12 , s 1 P , s 2 .
(3) Framework of neural network
The role of the policy-based network is to generate a determined policy scheme by learning knowledge depending on a specific input. The overall structure of the neural network model is shown in Figure 4, which includes NT task allocation strategy networks and one machining strategy network.
The input of the task allocation strategy network of job i is the job attributes and machine state information of the corresponding category. The output is the evaluation value of all optional allocation behavior of processing type i, and the size is N M i × N C i . The input of the machining strategy network is the information of the job to be scheduled and the state information of all machines, the output value is the evaluation value of machining behavior, and the size of the data matrix is 1 × 1 . Finally, all the outputs of the policy network are combined to obtain a behavior vector with the size of 1 × ( N C i · N M i + 1 ) .
(4) Set of available actions
There are two kinds of action spaces in the set of available actions. The first category is assigning action, denoted by a 1 i j . In this notation, 1 stands for the first class, i stands for the number of the selected job and j stands for the number of the selected machine. The second class is called manufacturing action, which indicates finishing the operations over time. It is denoted by a 2 ; 2 stands for the second kind.
The scheduling agent’s available action space depends on the state where the environment is, denoted by A S n . In this notation, S n stands for the current state at the n t h scheduling node. To determine whether an action is available, the formulas are listed as follows.
For a scheduling action a 1 i j :
a 1 i j A s n a 1 i j A s n           j M i n d i j M i n d i
M i n d i stands for a set of machines that have the ability to process the job M ind i .
For a processing action a 1 i j :
a 2 A s n a 2 A s n           M b u s y = Ø M b u s y Ø
M b u s y   stands for a set of machines that have jobs to process, Ø means an empty set.
(5) State transition
Two kinds of state transition will occur in this environment. The first class is the state transition of the job to be scheduled as shown in Figure 5. When an assigning action is executed, the assigned job will be removed from the jobs sequence to be scheduled; when a manufacturing action is executed, the next operation of the job will be added into the jobs sequence to be scheduled.
The second kind is the state transition of the machine as shown in Figure 6. When an assigning action is executed, an operation will be assigned to a specified machine; when a processing action is executed, the state transition of the machine means that some operations have been finished.
(6) Reward
In order to optimize the agent to achieve the goal, the reward is set to judge the positive and negative feedback of the executed action. Because the target in this article is to minimize the system’s idle time, the reward is designed as follows.
r n + 1 = 0 F n           a n A 1           a n A 2
In the equation, r t + 1 represents the reward; A 1 stands for the first kind of action, A 2 stands for the second kind; F n means the idle time between node n and node n + 1 .

3.3. The Learning Algorithm

After comparing the value-based algorithm and the policy-based algorithm, the latter is selected in this paper for the following reasons:
(1). The policy-based algorithm has a smoother exploring rule than the value-based algorithm.
(2). The policy-based algorithm has a better convergence property.
(3). The policy-based algorithm is effective in high-dimension problems and can learn stochastic policies.

3.3.1. Policy Representation

In the policy-based algorithm, probability distribution is used to represent the agent’s policy. π ( a | s , θ ) is the notation of the probability that the agent chooses action a in state s ; θ stands for the parameters of the approximator.
At any node, a priority p r e f e r a | s , θ is computed by NN for each action a . In the computation of priority, Gibbs distribution is used.
π ( a | s , θ ) = e p r e f e r a | s , θ x A s e p r e f e r x | s , θ 0                         a A s a A s
In this notation, A s stands for the available action space in state s .

3.3.2. Priority Representation in FJSP

For the convenience of explaining, several symbols are defined:
K means the number of processing types.
S n = s 11 , s 12 , , s 1 N , s 2 means the scheduling state at node n .
f θ ( ) means the function that the NN represents, θ stands for the parameters of NN. In this article’s method, there are K + 1 NNs, which are represented as f θ 11 , f θ 12 , , f θ 1 K , f θ 2 .
For the first kind of action, the priority is computed as follows:
prefer a 1 ij 1 | s , θ , prefer a 1 ij 2 | s , θ , prefer a 1 ij m | s , θ = f θ 1 i s
For the second kind of action, the priority is computed as follows:
p r e f e r a 2 | s , θ = f θ 2 s  

3.3.3. Objective Function

In the field of RL, objective function J θ is the quantity to measure the agent’s performance and direct the agent to learn. Customarily, the objective function is the larger the better. For an episodic problem, the value function of the initial state is used to be the objective function. So, J θ = v π θ s 0 E π θ k = 0 N γ k r k + 1 .
When γ = 1 , for the reward is setup as r n + 1 = { 0 F n   a n A 1                         a n A 2 , the objective function is J θ = E π θ k = 0 N r k + 1 = E π θ Σ F n = E π θ F . Thus, the target in MDP is max ( E π θ F ) , which is consistent with the target min(F) in FJSP.
When 0 < γ < 1 , the target can be viewed as the negative idle time of the system.

3.3.4. Update the Policy

In machine learning problems, the gradient-based idea is often used to update parameters. In this idea, parameters move towards their gradients in each step until reaching the convergence. For example, gradient ascent is θ θ   + θ v π θ s 0 . In this notation, means the learning rate. θ v π θ s 0 represents the gradient of v π θ s 0 at θ .
Concretely, in the policy-based algorithm, the gradient of the objective function is calculated as follows: θ v π θ s 0 = ( G n b s n θ ln ( π ( a n | s n , θ ) ) , in which G n = k = n N γ k n r k + 1 means the discounted reward and b s n represents a baseline to decrease the variance.
If the problem is episodic, the policy is only updated after a trial is finished. The whole computation procedure is as follows Algorithm 1:
Algorithm 1: The policy gradient with baseline.
Input: A differentiable policy π ( a | s , θ ) π ( a | s , θ )
Input: A differentiable value function v ^ s , w v ^ s , w
Hyper parameters: learning rate θ > 0 , w > 0
Initialize policy parameter θ and value function parameter w
Loop (for each episode):     
         Run an episode according to   π ( · | · , θ ) ,   get s 0 , a 0 , r 1 , s N 1 , a N 1 , r N ,
                  Loop (for each step in the episode) n = 0 , 1 , , N 1 :
G k = n + 1 N γ k n 1 r k δ G v ^ s n , w w w + w γ n δ w v ^ s n , w θ θ + θ γ t δ θ ln ( π ( a n | s n , θ ) )

3.3.5. Modes of Choosing Action

There are two different stages: the training stage and the evaluating stage, which have different modes of choosing action.
In the training stage, the main responsibility of the agent is to learn and adjust the policy. So, the agent chooses action in the random mode, a n π ( a   |   s n , θ ) .
The training procedure of the scheduling agent is shown in Figure 7.
Step 1: Set the total execution segment as NL and the segment count t = 0 to control when the training ends.
Step 2: Increased the learning count by 1, t = t + 1.
Step 3: Generated a scheduling test.
Step 4: The scheduling agent executed a scheduling action, specifically a dispatching action or a processing action. The action mode followed by the agent during training is a n π ( a   |   s n , θ ) .
Step 5: The scheduling agent reached the next state, obtained the reward value r, and stored data (s, a, r, s_) to experience base.
Step 6: Updated the state value function v ^ s , w and policy function π a | s , θ of the agent.
Step 7: Determined whether the current scheduling test was completed, if completed, continue. Otherwise, go to step 4.
Step 8: Judged whether the training ends according to whether it was greater than, and if it ends, output the scheduling agent; Otherwise, go to step 2.
In the evaluating stage, the responsibility of the agent is to obtain as large as reward as possible. So, the agent chooses action in the fixed mode; that is, a n = argmax a   π ( a   |   s n , θ ) .

4. Simulation and Experiment

4.1. Simulation Environment

The simulation environment is an intelligent job-shop and there are two milling machines, two lathes, two carving machines, and warehouse in it. The layout of the intelligent job-shop is shown in Figure 8. The information type of these machines is shown in Table 2. For the development of the RL algorithm based on the MDP model, we choose Python 3.6 and tensorflow-gpu 1.2.0, which are a free development platform.

4.2. Experiment Results and Analysis

The experiment is mainly to verify the feasibility and effectiveness of the proposed real-time scheduling algorithm. A batch of 10 jobs is selected as the experimental example (details are shown in Table 3). The number in the table is the processing time, and “-” means that the process cannot be processed on this machine.
The adaptive real-time scheduling method first learns 600 epochs and makespan per epoch is shown in Figure 9. It can be observed that by continuous learning, makespan is gradually reduced and finally stabilized between 45. The Gantt chart of the scheduling results by using the proposed adaptive scheduling method are shown in Figure 10. They meet the routing and machining constraints and prove the effectiveness of the proposed algorithm.
Some common heuristic scheduling rules can be divided into two categories: machine selection rules and buffer job sequencing rules. The machine selection rules are: Shortest Queue (SQ), Less Queued Element (LQE) and Shortest Processing Time (SPT). Buffer job sequencing rules are: First In, First Out (FIFO), Shortest Job First (SJF) and Last In, First Out (LIFO). Therefore, these six single rules can be combined into nine different rule sets to select machine and job: SQ + FIFO, SQ + SJF, LQE + FIFO, LQE + SJF. LQE + LIFO, SPT + FIFO, SPT + SJF, SPT + LIFO. Compared with the single traditional scheduling rule proposed above, the adaptive real-time scheduling method proposed in this paper can select the current optimal scheduling rule at each time by training agents to adapt to the environment. Therefore, in order to illustrate the effectiveness of the method in this paper, it is compared with the single rule method mentioned above, and the makespan of each method is obtained under the same other conditions. The results show that our method can achieve a better solution than the single dispatch rule method, as shown in Figure 11. The result of the proposed method has more than 10% improvement, even compared to the best rule SPT + FIFO of the 9 single dispatching rules on this simulation experiment.

5. Conclusions

Aiming at the transformation of product information from single variety and large batch to multi-variety and small batch in enterprise job-shop, this paper proposes a real-time production scheduling method based on reinforcement learning to solve DFJSP effectively. After reviewing the traditional job-shop scheduling methods and the dynamic and static scheduling methods of flexible job-shop, a flexible job-shop scheduling model based on reinforcement learning is established.
Considering the low efficiency of the traditional job-shop scheduling method, this paper first studies the principles of RL and finds the relationship between the MDP and flexible job-shop scheduling process. A manufacturing neural network that can input high-dimensional information of jobs and machines is proposed in this paper. Then, a policy-based reinforcement learning algorithm is proposed to achieve the optimum objective. Finally, the proposed methodology is evaluated and validated with experiments in a smart manufacturing setting. Future research will focus on solving the problem of uncertain delivery time, because it is a common phenomenon that the lead time of productions changes due to various factors. This paper makes an attempt to improve the AI for production scheduling. We hope this work will help catalyze more in-depth investigations and multi-disciplinary research efforts to advance the AI for smart manufacturing.

Author Contributions

Conceptualization, H.Z.; methodology, H.Z.; software, H.Z.; validation, S.T. and Y.G.; formal analysis, Q.C.; investigation, S.T.; writing—original draft preparation, H.Z.; writing—review and editing, S.T. and Y.G.; visualization, Q.C.; funding ac-quisition, H.Z. All authors have read and agreed to the published version of the manuscript.

Funding

This work was supported by National Key Research and Development Program of China No. 2018YFE0177000, and the Fundamental Research Funds for the Central Universities [No. NT2021021].

Data Availability Statement

Not applicable.

Conflicts of Interest

The authors declare no conflict of interest.

References

  1. Conway, R.W.; Maxwell, W.L.; Miller, L.W. Theory of Scheduling; Addison-Wesley: Reading, MA, USA, 1967. [Google Scholar]
  2. Pinedo, M.; Hadavi, K. Scheduling: Theory, algorithms and systems development. In Operations Research Proceedings; Springer: Berlin, Germany, 2012. [Google Scholar]
  3. Ławrynowicz, A. Integration of production planning and scheduling using an expert system and a genetic algorithm. J. Oper. Res. Soc. 2008, 59, 455–463. [Google Scholar] [CrossRef]
  4. Yang, H.; Kumara, S.; Bukkapatnam, S.T.S.; Tsung, F. The Internet of Things for smart manufacturing: A review. IISE Trans. 2019, 51, 1190–1216. [Google Scholar] [CrossRef]
  5. Bagheri, A.; Zandieh, M.; Mahdavi, I.; Yazdani, M. An artificial immune algorithm for the flexible job-shop scheduling problem. Future Gener. Comput. Syst. 2010, 26, 533–541. [Google Scholar] [CrossRef]
  6. De Giovanni, L.; Pezzella, F. An Improved Genetic Algorithm for the Distributed and Flexible Job-shop Scheduling problem. Eur. J. Oper. Res. 2010, 200, 395–408. [Google Scholar] [CrossRef]
  7. Chong, C.S.; Iyer, S.A.; Gay, R. Simulation-based scheduling for dynamic discrete manufacturing. In Proceedings of the 2003 Winter Simulation Conference New Orleans, LA, USA, 7–10 December 2003; pp. 1465–1473. [Google Scholar]
  8. Shen, W.; Norrie, D.H. Agent-based systems for intelligent manufacturing: A state-of-the-art survey. Knowl. Inf. Syst. 1999, 1, 129–156. [Google Scholar] [CrossRef]
  9. Masin, M.; Pasaogullari, M.O.; Joshi, S. Dynamic scheduling of production-assembly networks in a distributed environment. IIE Trans. 2007, 39, 395–409. [Google Scholar] [CrossRef]
  10. Jennings, N.R.; Wooldridge, M. Applications of intelligent agents. In Agent Technology; Springer: Berlin, Germany, 1998; pp. 3–28. [Google Scholar]
  11. Stecke, K.E.; Solberg, J.J. Loading and control policies for a flexible manufacturing system. Int. J. Prod. Res. 1981, 19, 481–490. [Google Scholar] [CrossRef]
  12. Wang, J.M. Survey on Industrial Big Data. Big Data Res. 2017, 3, 3–14. [Google Scholar] [CrossRef]
  13. Zhou, T.; Tang, D.; Zhu, H.; Zhang, Z. Multi-agent reinforcement learning for online scheduling in smart factories. Robot. Comput. Integr. Manuf. 2021, 72, 102202. [Google Scholar] [CrossRef]
  14. Giudici, P.; Figini, S. Applied Data Mining for Business and Industry; Wiley Publishing: Hoboken, JE, USA, 2009. [Google Scholar]
  15. Yin, S.; Kaynak, O. Big Data for Modern Industry: Challenges and Trends. Proc. IEEE 2015, 103, 143–146. [Google Scholar] [CrossRef]
  16. Wu, X.; Zheng, Q. Optimization of flexible Job-shop Scheduling Problem based on improved particle swarm Optimization. J. Hubei Univ. 2021, 44, 501–507. [Google Scholar]
  17. Tian, Y.; Tian, Y.; Liu, X.; Zhao, Y. An Improved Gray Wolf Algorithm for Solving Flexible Job-shop Scheduling Problem. Comput. Mod. 2022, 8, 78–85. [Google Scholar]
  18. Dong, R.; He, W. Hybrid Genetic Ant Colony Algorithm for Solving FJSP. Comput. Integr. Manuf. Syst. 2012, 11, 2492–2501. [Google Scholar]
  19. Sha, D.Y.; Lin, H.H. A multi-objective PSO for job-shop scheduling problems. Expert Syst. Appl. 2010, 37, 1065–1070. [Google Scholar] [CrossRef]
  20. Zhou, G. Research on Flexible Scheduling Problem Based on Artificial Bee Colony Algorithm; Tsinghua University: Haidian, Beijing, 2012. [Google Scholar]
  21. Li, Y.; Wang, A.; Zhang, S. A Batch Scheduling Technique of Flexible Job-Shop Based on Improved Genetic Algorithm. In Proceedings of the 2022 IEEE International Conference on Mechatronics and Automation (ICMA), Guilin, China, 7–10 August 2022; pp. 1463–1467. [Google Scholar] [CrossRef]
  22. Cheng, Z.; Wang, L.; Tang, B.; Li, H. A Hybrid Genetic Algorithm for Flexible Job Shop Scheduling Problems. In Proceedings of the 2021 Chinese Intelligent Systems Conference., Fuzhou, China, 16–17 October 2021; Jia, Y., Zhang, W., Fu, Y., Yu, Z., Zheng, S., Eds.; Lecture Notes in Electrical Engineering. Springer: Singapore, 2022; Volume 805. [Google Scholar] [CrossRef]
  23. Lv, C.; Zhu, Y.; Yin, C. Negotiation Strategy in Agile Production Scheduling Based on Multi-Agent. Comput. Integr. Manuf. Syst. 2006, 4, 579–584. [Google Scholar]
  24. Lv, C.; Zhu, Y.; Yin, C. Research on hybrid negotiation strategy of production scheduling based on Agent. Comput. Integr. Manuf. Syst. 2006, 12, 2074–2081. [Google Scholar]
  25. Cai, L.; Li, W.; Luo, Y.; He, L. Real-time scheduling simulation optimisation of job shop in a production-logistics collaborative environment. Int. J. Prod. Res. 2022, 1–21. [Google Scholar] [CrossRef]
  26. Zhang, Y.; Zhu, H.; Tang, D.; Zhou, T.; Gui, Y. Dynamic job shop scheduling based on deep reinforcement learning for multi-agent manufacturing systems. Robot. Comput. Integr. Manuf. 2022, 78, 102412. [Google Scholar] [CrossRef]
  27. Chang, J.; Yu, D.; Hu, Y.; He, W.; Yu, H. Deep Reinforcement Learning for Dynamic Flexible Job Shop Scheduling with Random Job Arrival. Processes 2022, 10, 760. [Google Scholar] [CrossRef]
  28. Johnson, D.; Chen, G.; Lu, Y. Multi-Agent Reinforcement Learning for Real-Time Dynamic Production Scheduling in a Robot Assembly Cell. IEEE Robot. Autom. Letters. 2022, 7, 7684–7691. [Google Scholar] [CrossRef]
  29. Waschneck, B.; Reichstaller, A.; Belzner, L.; Altenmüller, T.; Bauernhansl, T.; Knapp, A.; Kyek, A. Optimization of global production scheduling with deep reinforcement learning. Proc. CIRP 2018, 72, 1264–1269. [Google Scholar] [CrossRef]
  30. Khalil, E.; Dai, H.; Zhang, Y.; Dilkina, B.; Song, L. Learning combinatorial optimization algorithms over graphs. Adv. Neural Inf. Process. Syst. 2017, 30, 6348–6358. [Google Scholar]
  31. Han, B.; Yang, J. A Deep Reinforcement Learning Based Solution for Flexible Job Shop Scheduling Problem. Int. J. Simul. Modelling. 2021, 20, 375–386. [Google Scholar] [CrossRef]
  32. Aldarmi, S.A.; Burns, A. Dynamic value-density for scheduling real-time systems. In Proceedings of the 11th Euromicro Conference on Real-Time Systems, York, UK, 9–11 June 1999; pp. 270–277. [Google Scholar] [CrossRef]
  33. Tseng, S.M.; Chin, Y.H.; Yang, W.P. An adaptive value-based scheduling policy for multiprocessor real-time database systems, In Proceedings of the Database and Expert Systems Applications 8th International Conference, Toulouse, France, 1–5 September 1997. pp. 254–259.
  34. Burns, A.; Prasad, D.; Bondavalli, A.; Di Giandomenico, F.; Ramamritham, K.; Stankovic, J.; Strigini, L. The meaning and role of value in scheduling flexible real-time systems. J. Syst. Archit. 2000, 46, 305–325. [Google Scholar] [CrossRef]
Figure 1. Flowchart of the proposed methodology.
Figure 1. Flowchart of the proposed methodology.
Machines 10 01078 g001
Figure 2. The process of MDPs.
Figure 2. The process of MDPs.
Machines 10 01078 g002
Figure 3. The information in the state.
Figure 3. The information in the state.
Machines 10 01078 g003
Figure 4. The structure of proposed neural network.
Figure 4. The structure of proposed neural network.
Machines 10 01078 g004
Figure 5. The state transition of the job.
Figure 5. The state transition of the job.
Machines 10 01078 g005
Figure 6. The state transition of the machine.
Figure 6. The state transition of the machine.
Machines 10 01078 g006
Figure 7. The training procedure of scheduling agent.
Figure 7. The training procedure of scheduling agent.
Machines 10 01078 g007
Figure 8. The layout of the simulated environment.
Figure 8. The layout of the simulated environment.
Machines 10 01078 g008
Figure 9. Makespan of each epoch.
Figure 9. Makespan of each epoch.
Machines 10 01078 g009
Figure 10. The Gantt chart of the scheduling results.
Figure 10. The Gantt chart of the scheduling results.
Machines 10 01078 g010
Figure 11. Comparison between various methods.
Figure 11. Comparison between various methods.
Machines 10 01078 g011
Table 1. The connection between MDP and FJSP.
Table 1. The connection between MDP and FJSP.
MDPFJSP
AgentScheduler
EnvironmentProduction job-shop system
TrailScheduling route of single order
Action nodeScheduling moment
StateDynamic properties of the job-shop environment
ActionAssigning the operation to the corresponding machine
State transition RewardCompletion time or other goals
Table 2. The processing equipment information.
Table 2. The processing equipment information.
Equipment NumberEquipment Type
M1Lathe
M2Lathe
M3Milling machine
M4Milling machine
M5Carving machine
M6Carving machine
Table 3. Job information.
Table 3. Job information.
JobsOperationsProcessing Time/s
M1M2M3M4M5M6
J 1 O 11 97
O 12 119
O 13 45
J 2 O 21 810
O 22 53
J 3 O 31 1210
O 32 86
O 33 57
J 4 O 41 58
O 42 79
O 43 79
J 5 O 51 68
O 52 95
O 53 23
J 6 O 61 64
O 62 1012
O 63 75
J 7 O 71 108
O 72 68
O 73 57
J 8 O 81 1311
O 82 35
O 83 68
J 9 O 91 96
O 92 87
O 93 87
J 10 O 101 38
O 102 95
O 103 58
Publisher’s Note: MDPI stays neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Share and Cite

MDPI and ACS Style

Zhu, H.; Tao, S.; Gui, Y.; Cai, Q. Research on an Adaptive Real-Time Scheduling Method of Dynamic Job-Shop Based on Reinforcement Learning. Machines 2022, 10, 1078. https://doi.org/10.3390/machines10111078

AMA Style

Zhu H, Tao S, Gui Y, Cai Q. Research on an Adaptive Real-Time Scheduling Method of Dynamic Job-Shop Based on Reinforcement Learning. Machines. 2022; 10(11):1078. https://doi.org/10.3390/machines10111078

Chicago/Turabian Style

Zhu, Haihua, Shuai Tao, Yong Gui, and Qixiang Cai. 2022. "Research on an Adaptive Real-Time Scheduling Method of Dynamic Job-Shop Based on Reinforcement Learning" Machines 10, no. 11: 1078. https://doi.org/10.3390/machines10111078

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop