Next Article in Journal
Optimization of Macroalgal Density and Salinity for Nutrient Removal by Caulerpa lentillifera from Aquaculture Effluent
Next Article in Special Issue
Reactive Power Optimization of Large-Scale Power Systems: A Transfer Bees Optimizer Application
Previous Article in Journal
Predicting Host Immune Cell Dynamics and Key Disease-Associated Genes Using Tissue Transcriptional Profiles
Previous Article in Special Issue
Daytime/Nighttime Event-Based PI Control for the pH of a Microalgae Raceway Reactor
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

An Improved Compact Genetic Algorithm for Scheduling Problems in a Flexible Flow Shop with a Multi-Queue Buffer

1
Department of Digital Factory, Shenyang Institute of Automation, the Chinese Academy of Sciences (CAS), Shenyang 110016, China
2
Faculty of Information and Control Engineering, Shenyang Jianzhu University, Shenyang 110168, China
3
Key Laboratory of Network Control System, Chinese Academy of Sciences, Shenyang 110016, China
4
Institutes for Robotics and Intelligent Manufacturing, Chinese Academy of Sciences, Shenyang 110016, China
*
Author to whom correspondence should be addressed.
Submission received: 3 April 2019 / Revised: 14 May 2019 / Accepted: 15 May 2019 / Published: 21 May 2019

Abstract

:
Flow shop scheduling optimization is one important topic of applying artificial intelligence to modern bus manufacture. The scheduling method is essential for the production efficiency and thus the economic profit. In this paper, we investigate the scheduling problems in a flexible flow shop with setup times. Particularly, the practical constraints of the multi-queue limited buffer are considered in the proposed model. To solve the complex optimization problem, we propose an improved compact genetic algorithm (ICGA) with local dispatching rules. The global optimization adopts the ICGA, and the capability of the algorithm evaluation is improved by mapping the probability model of the compact genetic algorithm to a new one through the probability density function of the Gaussian distribution. In addition, multiple heuristic rules are used to guide the assignment process. Specifically, the rules include max queue buffer capacity remaining (MQBCR) and shortest setup time (SST), which can improve the local dispatching process for the multi-queue limited buffer. We evaluate our method through the real data from a bus manufacture production line. The results show that the proposed ICGA with local dispatching rules and is very efficient and outperforms other existing methods.

1. Introduction

The body shop and paint shop for the bus manufacturers are flexible flow shops. The processing flow is divided into multiple stages, and there are multiple parallel machines to process jobs in each stage. Due to the large volume of the buses and the long production cycle, only buffers with a limited number of spaces can be deployed in the production line. At the same time, the bus is not equipped with a chassis for starting the engine in the installation workshop, and they can only be carried on the skids. Therefore, there is usually a buffer between the body shop and paint shop, and the buffer is usually divided into multiple lanes for the ease of scheduling and operation. Each lane has an equal number of spaces for the bus bodies. The bus enters the lane from one side and exits the lane from the other side. The bus body which is waiting for processing will form a waiting queue in each lane. Thus, for multiple lanes, there could exist multiple waiting queues. These waiting queues together are called a multi-queue limited buffer in this paper. When the bus completes the processing in the body shop, it needs to select one of the lanes in the multi-queue limited buffer and enter the corresponding waiting queue, and the bus is carried by an electric flat carriage to move in the queue. When there is an idle machine in the paint shop, one bus in the multiple waiting queues can be moved out of the buffer to the paint shop for processing. In the actual production line, if the properties such as the model and color are different from those of the previous bus processed by the machine, the cleaning and adjustment of the equipment also have to be done on the machine before proceeding to the next, which results in an extra setup time in addition to the standard processing time. Therefore, these scheduling problems in a bus manufacturer can be characterized as the multi-queue limited buffer scheduling problems in a flexible flow shop with setup times.
The research status of the limited buffers scheduling problem and the research status of the scheduling problem considering the setup times are described below. The scheduling problem with limited buffers is of significant value for practical production scenarios, but is also very challenging in theory. In recent years, the scheduling problem with limited buffers has gained the immense attention of researchers. Zhao et al. [1] designed an improved particle swarm optimization (LDPSO) with a linearly decreasing disturbance term for flow shop scheduling with limited buffers. Ventura and Yoon [2] studied the lot-streaming flow shop scheduling problem with limited capacity buffers and proposed a new genetic algorithm (NGA) to solve the problem. Han et al. [3] studied the hybrid flow shop scheduling problem with limited buffers and used a novel self-adaptive differential evolution algorithm to effectively improve the production efficiency of the hybrid flow shop. Zeng et al. [4] proposed an adaptive cellular automata variation particles warm optimization algorithm with better optimization and robustness to solve the problems of flexible flow shop batch scheduling. Zhang et al. [5] presented a hybrid artificial bee colony algorithm combined with the weighted profile fitting based on Nawaz–Enscore–Ham (WPFE) heuristic algorithm which effectively solved the flow shop scheduling problem with limited buffers.
In recent years, due to the awareness of both the importance of production preparation and the necessity of separating the setup time and processing time, the scheduling problem considering the setup time has gained a lot of attention from the academic and industrial circles. Zhang et al. [6] employed an enhanced version of ant colony optimization (E-ACO) algorithm to solve flow shop scheduling problems with setup times. Shen et al. [7] presented a Tabu search algorithm with specific neighborhood functions and a diversification structure to solve the job shop scheduling problem with limited buffers. Tran et al. [8] studied the unrelated parallel machine scheduling problem with setup times and proposed a branch-and-check hybrid algorithm. Vallada and Ruiz [9] studied the unrelated parallel machine scheduling problem with sequence dependent setup times and proposed a genetic algorithm to solve the problem. Benkalai et al. [10] studied the problem of scheduling a set of jobs with setup times on a set of machines in a permutation flow shop environment, proposing an improved migrating bird optimization algorithm to solve the problem. An et al. [11] studied the two-machine scheduling problem with setup times and proposed a branch and bound algorithm to solve this problem.
The related work in recent years showed that the current research on the limited buffers scheduling problem mainly addressed the shop scheduling problems under a given buffer capacity and mainly highlighted global optimization algorithms. By improving algorithms or combining different algorithms, researchers proposed algorithms with more accuracy in terms of optimization. However, few scholars systematically studied one specific type of limited buffer. At present, the research on scheduling problems with setup times mainly focus on the impact of setup times under the single condition on the processing time. The current studies mainly focus on the improvement in traditional algorithms, while few scholars study the scheduling problems with setup times under the conditions of a dynamic combination of multiple properties (in actual production, setup times are affected by quite a few factors and the combination of multiple factors will produce multiple setup times). Thus, there is no further exploration of the scheduling problem with setup times under the production constraints. The multi-queue limited buffers scheduling problem studied in this paper is more complex than the general limited buffers scheduling problem. This problem requires not only the consideration of the capacity for limited buffers but also the investigation of (1) the distribution problem when the job enters the lane in the multi-queue limited buffers and (2) the problem of selecting a job from multiple lanes in the multi-queue limited buffers to enter the next stage. On this basis, the research in this paper also considers the influence of setup times on the scheduling process under the dynamic combination of multiple properties, which can greatly increase the complexity of scheduling problems and the uncertainty of scheduling results. The scheduling problems in a flexible flow shop have long proved to be a non-deterministic polynomial hard (NP-hard) problem [12], and thus the multi-queue limited buffers scheduling problem in a flexible flow shop with setup times studied in this paper is also of the NP-hard nature.
As the situations become complicated, more efficient optimization methods needed to be further explored. The compact genetic algorithm (CGA) is a distribution estimation algorithm proposed by Harik [13]. It has great advantages in regard to computational complexity and evolutionary speed, but still the search range is smaller, and it is easy to fall into the local extremum. The scholars overcame its deficiencies mainly by using multiple population and probability distributions [14]. These two approaches, however, could not significantly improve the algorithm’s optimization and might lose the advantage of the CGA in the fast search. The probabilistic model and the process of generating new individuals in a probabilistic model are explored to prevent the CGA from being premature and improve the quality and diversity of new individuals. This study proposes an improved compact genetic algorithm (ICGA) that maps the original probabilistic model to a new one through the probability density function of the Gaussian distribution to enhance the algorithm’s evolutionary vigor and its ability to jump out of the local extremum, which can better solve the multi-queue limited buffers scheduling problems in a flexible flow shop with setup times.

2. Mathematical Model

2.1. Problem Description

Figure 1 illustrates the scheduling problem in which n jobs are required to be processed in m stages [15]. At least one stage in the m stages includes multiple parallel machines. Each job is needed to be assigned one machine at each stage. Also, buffers with given capacity exist between stages. The completed job enters the buffer and waits for the availability of the next stage. If the buffer is full, the completed job of the previous stage will stay on its current machine. In this situation, the machine is unavailable and cannot process other jobs until the buffer has available spaces. The buffers contains multiple lanes, and each lane has a limited number of spaces. The job enters the lane from one side and exits the lane from the other side. The jobs that wait for processing form a waiting queue in each lane. When the job enters this buffer, it needs to select one of the lanes and enter its waiting queue. When there is an idle machine in the next stage, it is necessary to select one bus in multiple waiting queues to move out of the buffer for processing. When all the lanes of this buffer reach the upper limit of the capacity, there will also be cases where the job is blocked at the machine of the previous stage. When the job is assigned to the machine, the setup time should also be added besides the standard processing time if the property of the job did not match that of the previous job. The standard processing time of the job at each stage, the online sequence of the job in the production process and the job’s setup times, start time, and completion time at each stage can be obtained through the scheduling, so as to achieve better scheduling results.

2.2. Parameters in the Model

The parameters used in this paper are as follows:
  • n : number of jobs to be scheduled;
  • m : number of stages;
  • J i : job i , i { 1 , , n } ;
  • O p e r j : stage j , j { 1 , , m } ;
  • M j : number of machines in each stage, j { 1 , , m } ;
  • W S j , l : machine l of stage O p e r j , j { 1 , , m } , l { 1 , , M j } ;
  • B u j : the buffer of stage O p e r j , j { 2 , , m } ;
  • A j : number of waiting queue in the buffer of stage O p e r j , j { 2 , , m } ;
  • B s j , a : the a t h lane of buffer B u j at stage O p e r j , j { 2 , , m } , a { 1 , , A j } ;
  • K j , a : number of spaces in lane B s j , a of buffer B u j at stage O p e r j , j { 2 , , m } , a { 1 , , A j } ;
  • b j , a , k : space k in lane B s j , a of buffer B u j , j { 2 , , m } , a { 1 , , A j } , k { 1 , , K j , a } ;
  • W A j , a ( t ) : at time t , the waiting queue in the a t h lane B s j , a of buffer B u j , j { 2 , , m } , a { 1 , , A j } ;
  • S i , j : the start time to process job J i at stage O p e r j ;
  • C i , j : the completion time to process job J i at stage O p e r j ;
  • T b i , j : the standard processing time of job J i at stage O p e r j , j { 1 , , m } ;
  • T e i , j : the entry time of job J i into buffer B u j , j { 2 , , m } ;
  • T l i , j : the departure time of job J i out of buffer B u j , j { 2 , , m } ;
  • T o i , j : the departure time of job J i on its machine after job J i is processed at stage O p e r j , j { 1 , , m } ;
  • T w i , j : the waiting time of job J i in buffer B u j , j { 2 , , m } ;
  • T s i , j , l : the setup time of machine W S j , l when job J i is processed on machine W S j , l , j { 2 , , m } ;
  • N s r v x , i , i l : the relationship between properties of job continuously processed on machine W S j , l , i , i { 1 , n } and i i .

2.3. Constraints

2.3.1. Assumptions

The variables used in this paper are as follows:
A t i , j , l = { 1 , Job   J i   is   assigned   to   be   processed on   machine   W S j , l   at   stage   O p e r j 0 , Job   J i   isn t   assigned   to   be   processed on   machine   W S j , l   at   stage   O p e r j
O A i , j , a ( t ) = { 1 , At   time   t ,   job   J i   is   in   waiting processing   queue   W A j , a ( t )   at   stage   O p e r j 0 , At   time   t ,   job   J i   isn t   in   waiting processing   queue   W A j , a ( t )   at   stage   O p e r j
Q B C j , a ( t ) = { 1 , At   time   t ,   the   number   of   jobs   in   lane   B s j , a   at   stage O p e r j   is   greater   than   zero ,   namely ,   c a r d ( W A j , a ( t ) ) > 0 0 , At   time   t ,   the   number   of   jobs   in   lane   B s j , a   at   stage O p e r j   is   equal   to   zero ,   namely ,   c a r d ( W A j , a ( t ) ) = 0

2.3.2. General Constraint of Flexible Flow Shops Scheduling

The general constraint of flexible flow shops scheduling are as follows:
l = 1 M j A t i , j , l = 1
C i , j = S i , j + T b i , j , i { 1 , 2 , , n } , j { 1 , 2 , , m }
C i , j 1 S i , j , i { 1 , 2 , , n } , j { 1 , 2 , , m }
Equation (4) indicates job J i at stage O p e r j can only be processed on one machine. Equation (5) constrains the relationship between the start time and completion time for job J i at stage O p e r j . Equation (6) represents that job J i needs to complete the current stage before proceeding to the next stage. The general constraints of flexible flow shops are still valid for the multi-queue limited buffers scheduling problem in a flexible flow shop with setup times.

2.3.3. Constraints of Limited Buffers

The constraints of limited buffers are as follows:
T o i , j = { T e i , j + 1 j = { 1 , , m 1 } C i , j j = m .
In Equation (7), when the job is at stage O p e r j ( i = { 1 , , m 1 } ), the departure time of the job on the machine is equal to the entry time of the job into the buffer. When the job is at stage O p e r m , the departure time of the job on the machine equals the completion time.
T e i , j C i , j 1 , j { 2 , , m } .
Equation (8) indicates that the entry time of the job into the buffer is greater than or equal to the completion time of the job in the previous stage. If the limited buffers are blocked, the job will be retained on the machine after completing the previous stage.
W A j , a ( t ) = { J i | O A i , j , a ( t ) = 1 } .
Equation (9) shows all jobs contained in the waiting queue of limited buffers at time t .
c a r d ( W A j , a ( t ) ) K j , a .
Equation (10) denotes that at any time, the number of jobs in the waiting queue W A j , a is less than or equal to the maximum number of spaces ( K j , a ) in the lane where W A j , a is located.

2.3.4. Constraints of Multi-Queue Limited Buffers

Two new constraints of Equations (11) and (12) are added based on the constraints of Equations (8) and (10).
a = 1 A j i = 1 n O A i , j , a ( t ) n .
In Equation (11), when A j > 1 , at any time, the number of jobs to be processed in the waiting queue of multi-queue limited buffers is less than or equal to the number of jobs n .
a = 1 A j Q B C j , a ( t ) n .
In Equation (12), when A j > 1 , at any time, the number of jobs, which can proceed to the machine of stage O p e r j , in the waiting queue of multi-queue limited buffers is less than or equal to the number of jobs n .
If i , i { i | O A i , j , a ( t ) = 1 } , T e i , j T e i , j , T l i , j and T l i , j will satisfy the following relationship
T l i , j T l i , j .
In Equation (13), when A j > 1 , the job of the a t h lane must meet the requirement that the job entering the queue first should depart from the queue first.

2.3.5. Constraints of Setup Times

The constraints of setup times are as follows:
l = 1 M j ( T s i , j , l · A t i , j , l ) + C i , j 1 S i , j ,   i { 1 , , n } ,   l { 1 , , M j } ,   j { 2 , , m } .
Equation (14) extends the basic constraint of Equation (6) of a flexible flow shop to obtain the relationship between setup times and start time as well as completion time. Equation (14) indicates that the start time of the current stage is greater than or equal to the completion time of the previous stage plus setup times.
X denotes the number of job’s properties. p r o p x , i represents the property of job J i . P r o p i = { p r o p x , i } represents the collection of properties of job J i , and x { 1 , , X } .
N s r v x , i , i l = { 1 p r o p x , i p r o p x , i 0 p r o p x , i = p r o p x , i .
J i and J i ( i , i { 1 , , n } ) are jobs continuously processed on machine W S j , l . When N s r v x , i , i l = 0 , it means that when property p r o p x , i of job J i and property p r o p x , i of job J i are the same, no setup time is required to process the latter job on the machine. When N s r v x , i , i l = 1 , it represents that when property p r o p x , i of job J i and property p r o p x , i of job J i are different, the setup time is required to process the latter job on the machine.
T s i , j , l = x = 1 X T s p j , x · N s r v x , i , i l ,   i , i { 1 , , n } ,   j { 2 , , m } ,   l { 1 , , M j } .
In Equation (16), at stage O p e r j , T s p j , x represents the required setup times when there is a change in one property p r o p x , i of two consecutively processed jobs. T S P j = { T s p j , x } denotes the collection of setup times when there is a change in the property of two consecutively processed jobs at stage O p e r j , and x { 1 , , X } . T s i , j , l is the required setup time when several properties of job J i processed on machine W S j , l at stage O p e r j are different from those of the previous job processed on the same machine.
Other constraints are as follows. Uninterruptible constraint: if the job has been started on the machine, it cannot be interrupted until the production process on the machine is completed. Machine availability constraint: all machines in the scheduling are available at production time. Time simplification constraint: not to consider the time of jobs transferred among spaces in the multi-queue limited buffers, and the time of jobs transferred between machines in front and back stages, that is to say, only consider the processing time of the job processed in each stage and setup times when the property of jobs processed successively on the machine is changed.

2.4. Evaluation Index of the Scheduling Result

• Makespan
C m a x = max { C i , m } ,   i { 1 , 2 , , n } .
In Equation (17), C m a x indicates the maximum completion time of all jobs processed at the last stage, which is also the time for all jobs to complete the process.
• Waiting processing time for total job
T W I P = j = 2 m i = 1 n ( S i j C i , j 1 ) .
In Equation (18), the waiting time of the job is from the completion moment C i , j 1 of job J i at stage O p e r j 1 to the start moment S i j at the next stage O p e r j . T W I P represents the sum of the waiting times of all jobs processed in the entire production. In the production shop of limited buffers, the waiting time of each job between stages is equal to the sum of time for the job staying on the buffer ( T l i , j T e i , j ), blocking time of the job on the machine ( T e i , j C i , j 1 ), and setup times ( l = 1 M j ( T s i , j , l · A t i , j , l ) ).
• Idle time for total machine
T W T = j = 1 m l = 1 M j ( ( max { T o i , j A t i , j , l } min { S i , j A t i , j , l } ) i = 1 n ( T b i , j A t i , j , l ) ) .
The idle time for the machine in Equation (19) represents the time between the start time of the first job and completion time of the last job on each machine. T W T is the sum of idle time for all machines.
• Total device availability
F U R = j = 1 m i = 1 n ( T b i , j ) j = 1 m l = 1 M j ( max { T o i , j A t i , j , l } min { S i , j A t i , j , l } ) .
In Equation (20), F U R represents the total device availability of all machines in a flexible flow shop, which is the ratio of the effective processing time of all machines to the occupied time span of the machine. This time span starts from the first job processed on the machine to the last job that is finished and has left the machine.
• Total machine setup times
T S = i = 1 n j = 1 m l = 1 M j ( T s i , j , l · A t i , j , l ) .
In Equation (21), T S is the sum of all stages’ setup times in a flexible flow shop.
• Total job blocking time
T P B = i = 1 n j = 2 m ( T e i , j C i , j 1 ) .
In Equation (22), T P B is the sum of blocking time of all jobs stuck on the machine due to the buffers being full after all jobs finish the processing in a flexible flow shop.

3. Improved Compact Genetic Algorithm

In the evolution of standard CGA, new individuals are generated based on probability distribution of the probabilistic model, and individuals conforming to the evolutionary trend are selected to update the distribution probability. The elements in the model, namely the probability values, represent the distribution of feasible solutions. The continuously accumulated optimization information in the evolution is reflected in the probability values of the probabilistic model. The CGA adopts the single individual to update the probabilistic model in each generation, and the new individual of each generation is also generated in the model. After several generations, if one of the probability values on the model’s column (or row), which controlled the generation of individual gene fragments, is extremely large, it leads to similar genes appearing in the same position of new individuals generated in later evolutions, decreasing the diversity of new individuals. As the individuals generated from the probabilistic model will update the model conversely, the probability values will further increase. When elements (probability values) in the probabilistic model all become 0 or 1, the CGA will terminate the evolution process. Therefore, it is difficult for the CGA to jump out of the local extremum once it falls into this situation. Afterward, the overall trend for evolution is irreversible, leading to a premature convergence of the algorithm. As such, if only an expanding the number of new individuals generated by the model is considered, the optimization effect of the algorithm cannot be significantly improved, and the advantage of the CGA in the fast search will be lost. The probabilistic model and the process of generating new individuals from the model were explored to prevent the prematurity of the CGA and improve the quality and diversity of new individuals. First, the distribution of probability values in a column (or a row) that were related to gene fragments of new individuals in the probabilistic model were determined, and then the probability density function of the Gaussian distribution was introduced to map the probabilistic model from the original one to the new one. Under the premise of keeping the probability values’ distribution of the original probabilistic model unchanged, the search ability of feasible solutions could be expanded, thereby developing the diversity of new individuals.

3.1. Establishing and Initializing the Probabilistic Model

The probabilistic model was responsible for counting and recording the distribution of genes in the individual after the evolution of the algorithm. According to the individual coding information, namely online sequence and machine assignment, the n × n matrix P L was established as the online-sequence probabilistic model of the CGA to optimize the scheduling online sequence. In the probabilistic model, the 1st to nth rows corresponded to jobs J 1 to J i , and the 1st to nth columns corresponded to individuals 1 to n. P i , s 1 indicated the probability of job J i appearing at position s of the online processing queue.
The probabilistic model was initialized by a uniform assignment. This method directly set the equal probability of each job appearing at each position, providing a more balanced optimization starting point for the algorithm. It used the uniform assignment to initialize the probabilistic model P , namely ( i , s ) ,   P i , s 1 = 1 / n , which could expand the search range of the algorithm’s feasible solution. In addition, it was restricted by the constraint that ( s ) ,   i = 1 n P i , s 1 = 1 .

3.2. Mapping the Original Probabilistic Model to the New Probabilistic Model

Some scholars used information entropy to evaluate the distribution of probability values in the probabilistic model [16]. This approach is not quite sensitive to the distribution of probability values. This study adopted the method of calculating the standard deviation of probability values in the probabilistic model to assess the probability distribution in the original probabilistic model so as to judge and evaluate the ability of the current model to search for feasible solutions.
The ICGA consisted of two models: the original probabilistic model P L and the new probabilistic model F L . The element P i , s L in the probabilistic model referred to the probability of job J i appearing at position s in online processing queue.
The probability value distribution in P L was judged by calculating each column of standard deviation σ s L in the original probability model P L . Meanwhile, the standard deviation-based threshold value σ T which started the mapping operation was set to judge whether the probability density function of the Gaussian distribution can be started to map P L to the new probability model F L . When σ s L > σ T , mapping the P L to the F L using the probability density function of the Gaussian distribution shown in Equation (23). Then, a new feasible solution I L (new individual) of the problem was generated in accordance with the F L . The original probability model P L was updated through this new feasible solution. After that, this new feasible solution was applied to update the P L . The scope of searching a feasible solution was magnified through expanding the ability of the P L to select new feasible solutions.
f ( x | μ s L , σ s L ) = 1 σ s L 2 π e ( x μ s L ) 2 2 σ s L 2 .
Equation (23) is the probability density function of the Gaussian distribution, where μ s L is the expectation value of the s t h column in the probabilistic model P L , and the calculation formula is shown in Equation (24). σ s L is the standard deviation of the s t h column in the probabilistic model P L , and the calculation formula is shown in Equation (25). The size of the standard deviation determines the degree of steepness or flatness of the Gaussian distribution curve. The smaller the σ , the steeper the curve; and the larger the σ , the flatter the curve. With the evolution of the CGA, the distribution of probability values in the probabilistic model decreases, and the value of σ becomes larger (a probability value is dominant, while others are small and far from the average value). Further, the selection range after the mapping will become larger.
μ s L = i = 1 n P i , s L · i
σ s L = 1 n · s = 1 n ( P i , s L 1 n ) 2 .
At the beginning of evolution P i , s L = 1 / n , and the initial value of σ s L is 0. If the value of σ s L is too small, the Gaussian distribution curve is too steep, the probability value after mapping is smaller. As such, the standard deviation adjustment parameter ξ is added to Equation (25) to obtain the standard deviation σ s ξ L after adjustment in Equation (26).
σ s ξ L = ξ · 1 n · s = 1 n ( P i , s L 1 n ) 2
ξ = n · m a x { P i , s L } i = 1 n P i , s L m a x { P i , s L } .
In Equation (27), the standard deviation adjustment parameter ξ satisfies the constraints: when m a x { P i , s L } = 1 or i = 1 n P i , s L m a x { P i , s L } = 0 , ξ = n .
After determining the probability density function of the Gaussian distribution corresponding to each column element in the P L , this function was used to obtain the corresponding probability value G P i , s L of each probability value P i , s L in this column in the new probabilistic model F L . The specific operations were: first, determine the range [ X 1 , X 2 ] for each probability value P i , s L on the X axis, where X 1 = h = 1 i 1 P h , s L , X 2 = h = 1 i P h , s L . Then, determine the position of expectation value μ s L on the X axis. Finally, the corresponding probability value G P i , s L of probability value P i , s L in the F L is obtained by using Equation (28)
G P i , s L = { | f ( X 1 ) f ( X 2 ) | μ s L [ X 1 , X 2 ] 2 · f ( μ s L ) f ( X 1 ) f ( X 2 ) μ s L [ X 1 , X 2 ] .
After all the columns in the P L have been mapped, the probability values in each column of the new probabilistic model F L were normalized to ensure that the sum of the probability values in each column was 1. Then, the roulette was used to choose the positions of jobs which were arranged in the processing queue based on the F L , so as to generate new individuals in more diversities. The superior individual among new individuals was chosen to update the original probabilistic model P L through Equation (29).
P i , s L + 1 = ( 1 β n ) · P i , s L + β n · S t ,   S t = { 1 G e n e s = i 0 G e n e s i
where S t is the learning coefficient; n is the number of jobs to be processed; and β is the adjustment override of the learning rate. In each generation, the superior individual is selected to update the probabilistic model. The genetic value G e n e s in the individual represents the sequential position of job J i in online processing queue. Equation (29) shows that when the value of G e n e s is i, the probability value P i , s 1 in the s t h column of the model which combines with learning coefficient S t further increases the probability of job J i being chosen on the position s in the online processing queue. In addition, other probability values of this column subtract β n · P i , s L .

3.3. Encoding and Decoding of New Individuals

Based on the probabilistic model, N P new individuals were generated. The process of generating each new individual was: in the probabilistic model P L , based on the probability P i , s , the genetic value of individual from the 1st to nth referred to the probability P i , s of the job J i which appeared on the s t h position. The job numbers were chosen on the basis of roulette in turn, that is, the job online order. In the process of individual decoding, the individual genetic value was decoded into the online processing sequence of n jobs in the first stage.

3.4. Procedure of the ICGA

Step 1: Initialize probabilistic model P L . According to the principle of the maximum entropy, the probabilistic model P L is initialized, where ( i , s ) P i , s L = 1 / n . Meanwhile, the evolutionary generation is set as L = 0 .
Step 2: Map the probability value P i , s L in the original probabilistic model P L to the new probabilistic model F L . Calculate the standard deviation σ s L of the probability value of the s t h column in the original probabilistic model P L , and judge whether σ s L is larger than the threshold value σ T for initiating the mapping operation. If σ s L σ T , the probability value of the s t h column in the P L is taken as the s t h column probability value in the new probabilistic model F L . If σ s L > σ T , execute Step 3.
Step 3: Calculate the expectation value μ s L of the probability value of the s t h column in the original probabilistic model P L . Determine its corresponding probability density function of the Gaussian distribution, and calculate the probability value G P i , s L in the new probabilistic model F L corresponding to each probability value P i , s L in the s t h column.
Step 4: Repeat Step 2 until all the columns in the original probabilistic model P L are all mapped into the new probabilistic model F L .
Step 5: Generate new individuals based on the new probabilistic model F L . Through the roulette, the individual genetic sampling values are selected in turn according to the probability values of each column in the F L , and these genetic values represent the positions of the jobs to be machined in the online queue. Once a job is selected, it no longer participates in the subsequent selection, while the unselected jobs go on to take part in the selection process until all jobs are arranged so as to generate a new individual. After that, N P new individuals I 1 , I 2 , , I N P are generated.
Step 6: N P new individuals are decoded and the fitness function value for each new individual can be calculated.
Step 7: Compare the fitness function values of N P new individuals, and select the optimal individual I b e t t e r among them, and its fitness function value is f b e t t e r .
Step 8: Judge whether f b e t t e r is better than the fitness function value f b e s t of the historically optimal individual I b e s t . If f b e t t e r is better than f b e s t , replace I b e s t with I b e t t e r and replace f b e s t with f b e t t e r .
Step 9: The historically optimal individual I b e s t is used to update the probabilistic model P L , and the update operation is performed according to Equation (29). At the same time, evolutionary generation L is processed as L = L + 1 .
Step 10: Judge whether the updated original probabilistic model P L converges, that is, whether all probability values of model P L are 1 or 0. If the convergence is met, the historically optimal individual I b e s t is output and the evolution process ends. Otherwise, execute Step 11.
Step 11: Judge whether the evolutionary generation L reaches the set maximum evolutionary generation L max . If L = L max , the historically optimal individual I b e s t is output and the evolution process ends. Otherwise, Step 2 is performed again.
The flowchart of the ICGA is shown in Figure 2.

4. Local Scheduling Rules for Multi-Queue Limited Buffers

In order to reduce the setup times and reduce the impact of setup times on the scheduling process, this paper has developed a variety of local scheduling rules to guide the distribution of jobs for the process of entering and exiting multi-queue limited buffers. When the job enters the multi-queue limited buffer, the local scheduling rules employ the remaining capacity of max queue buffer (RCMQB) rule. When the job leaves the multi-queue limited buffer, the local scheduling rules use the shortest setup time (SST) rule, the first available machine (FAM) rule, and the first-come first-served (FCFS) rule, of which the SST rule is a priority [17].

4.1. Rules for Jobs Entering Multi-Queue Limited Buffers

• Max queue buffer capacity remaining rule
When C i , j 1 and t = C i , j 1 ,
M c a i , j ( t ) = { B s j , a | m a x { K j , a c a r d ( W A j , a ( t ) ) | ( K j , a c a r d ( W A j , a ( t ) ) > 0 ) } } j { 2 , , m }
where M c a i , j ( t ) is the set of lane B s j , a that the job in the previous stage O p e r j 1 can access. The difference between the maximum number of spaces ( K j , a ) of each lane B s j , a and the number of jobs in the waiting queue W A j , a in this lane is the remaining capacity (available space) of lane B s j , a at the current stage. When the job finishes the previous stage, namely when t = C i , j 1 , the job enters the lane with the largest remaining capacity. When c a r d ( M c a j ( t ) ) = 0 , it indicates there is no remaining space in the current lane. When c a r d ( M c a j ( t ) ) > 1 , it illustrates that multiple lanes can be entered.

4.2. Rules for Jobs Leaving Multi-Queue Limited Buffers

When the job exits the buffer and is assigned to the machine, in the case of an available machine W S j , l and several jobs are waiting in the buffer, that is, the number of the selectable jobs to be processed in the multi-queue limited buffers is greater than 1 ( a = 1 A j Q B C j , a ( t ) > 1 ). In the course of assigning jobs, the job with the minimum setup time ( { J i | m i n ( T s i , j , l ) } ) is processed according to the SST rule. If the number of jobs with the minimum setup time is greater than 2, the job with the longest waiting time in the buffer ( { J i | m a x { ( t T e i , j ) | { i | O A i , j , a ( t ) = 1 } } } ) is selected for processing in accordance with the first in first out (FIFO) rule. In the case of available machines and only one job waiting to be processed, that is, the number of selectable jobs to be processed in the multi-queue limited buffers is equal to 1 ( a = 1 A j Q B C j , a ( t ) = 1 ), the SST rule is used to select the machine with the minimum setup time in the course of assigning machines. If the number of selectable machines is greater than 2, the job is machined on the basis of the FAM rule. The multimachine-and-multi-job case is a combination of the aforementioned conditions.

5. Simulation Experiment

The ICGA was implemented using MATLAB 2016a simulation software, running on the PC with Windows 10 operating system, Core i5 processor, 2.30 GHz Central Processing Unit (CPU), and 6 GB memory. The multi-queue limited buffers scheduling problems in a flexible flow shop with setup times originate from the production practice of bus manufacturers. It is a complex scheduling problem. As standard examples are not available at present, the standard data of a flexible flow shop scheduling problem (FFSP) was employed to discuss and analyze the parameters in the improved compact genetic algorithm, so as to determine the optimal parameter [18]. In addition, multiple groups of large-scale and small-scale data were used to test the effect of the improved method on the optimization ability of the standard CGA. Furthermore, the instance data of multi-queue limited buffers scheduling in a flexible flow shop with setup times were used to verify the optimal performance of the ICGA for solving such problems.

5.1. Analysis of Algorithm Parameters

The parameter values of the algorithm had a significant effect on the algorithm’s optimization performance. The ICGA has three key parameters: threshold value σ T that started the mapping operation, adjustment override of the learning rate β , and thr number of new individuals generated in each generation N P . The FFSP standard examples of a d-class problem with five stages and 15 jobs in the 98 standard examples proposed by Carlier and Neron were applied to test each parameter. The example j15c5d3 was used to illustrate the orthogonal experiment. Three parameters, each with four levels (see Table 1), were taken for orthogonal experiments with the scale of L16 (43) [19]. The algorithm ran 20 times in each group of experiments. The average time of makespan ( C m a x ¯ ) was used as an evaluation index.
Through experiments, we can see that the influence of the change of each parameter on the performance of the algorithm is shown in Figure 3. From the figure we can see that β and N P had a greater impact on the performance of the algorithm, and σ T had the least impact on the performance of the algorithm. The best combination of parameters was: σ T = 10, β = 1.5, N P = 4.

5.2. Optimization Performance Testing on the ICGA

In order to study the impact of the improved method (which is based on the probability density function of the Gaussian distribution mapping) on the optimization performance of the CGA, the ICGA was compared with CGA, bat algorithm (BA) [20] and whale optimization algorithm (WOA) [21]. These algorithms are the currently emerging intelligent optimization algorithms and are widely used in the field of optimization and scheduling [22,23,24]. In the BA, the number of individuals in the population N P = 30, pulse rate γ = 0.9, search pulse frequency range [Fmin, Fmax] = [0, 2]. In the WOA, the number of individuals in the population N P = 30. Each algorithm ran 30 times on each group of data. The maximum evolutionary generation of four algorithms was set to 500 generations. The average makespan C m a x ¯ and the average running time T c p u ¯ were used as the evaluation metrics.

5.2.1. Small-Scale Data Testing

The test data are from the 98 standard examples proposed by Carlier and Neron based on the standard FFSP. The set of examples was divided into five classes. According to the difficulty of solving the examples, the set of examples was divided into two categories by Neron et al. [25]: easy to solve and difficult to solve. Four groups of easy examples (j15c5a1, j15c5a2, j15c5b1, and j15c5b2) and four groups of difficult examples (j15c10c3, j15c10c4, j15c5d4, and j15c5d5) were chosen to test the ICGA so as to better evaluate the optimization performance of the ICGA for small-scale data. The test results are shown in Table 2.
In the table, LB represents the lower bound of makespan for the examples, whose optimal value was given by Santos and Neron [25,26]. It can be seen from Table 2 that even if the data size was small, the average running time of the CGA and ICGA under each group of data was significantly shorter than that of the BA and WOA. This indicates that CGA and ICGA have the advantages of the convergence speed of optimization. In terms of the optimization performance of small-scale data, the four algorithms did not have significant differences. But overall, the optimization effect of the ICGA on small-scale data was still the best among the four algorithms. The ICGA has achieved better solutions than the other three algorithms when solving all four groups of difficult examples (the four algorithms all reached the lower bound of makespan when solving the easy examples). Especially, compared with the CGA, when solving two groups of examples of the j15c5d class, the average relative error obtained by the ICGA was reduced by 5.64% and 4.37%, respectively. This shows that the optimization effect of the ICGA is greatly improved from the CGA when solving small-scale data.

5.2.2. Large-Scale Data Testing

Six groups of data, including 80 jobs with four stages, 80 jobs with eight stages, and 120 jobs with four stages, were used to test the optimization performance of the ICGA in solving large-scale complex problems. The test results are shown in Table 3.
As can be seen from the table, when solving the problem of large-scale data, the advantages of the CGA and ICGA in the speed of optimization were more obvious. Especially when solving two groups of examples of j80c8d class, the average running time of CGA and ICGA was significantly smaller than the BA and WOA. It can be seen from the test results of the first four groups of examples that when the number of processes was increased from four to eight, the average running time of the BA and the WOA was greatly increased. On the other hand, although the average running time of the CGA and the ICGA was also increased, the rate of increase was small. This indicates that CGA and ICGA are suitable for solving the problem of scheduling optimization with large data scale with many processes. In general, when solving the problem of large-scale data, the optimization performance of the BA and ICGA was better than that of the WOA and CGA. As for the aspect of optimization speed, the average running time of the BA was much larger than the other three algorithms under every group of data.
It can also be seen from the table that although the CGA had the fastest optimization speed under each group of large-scale data, its optimization performance was also the worst among the four algorithms. And as the size of the data increased, the gap between the CGA and the other three algorithms was getting larger. This is mainly because the CGA uses roulette to select gene fragments in the probabilistic model when generating new individuals. In the initial stage of the probabilistic model, the probability of each gene fragment being selected is 1 / n . When the size of the data is large (n = 80 and n = 120), the initial probability value of each gene fragment in the probability matrix becomes small (1/8 and 1/120). Further, in the process of evolution, the probability value of the unselected gene fragment will be reduced again, and the probability value of the selected gene fragment will be increased. This will lead to the probability values of certain gene fragments that are much larger than the probability values at other locations after several generations of evolution. Although this will make the evolution speed of the algorithm faster, it will also lead to a decline in the diversity of new individuals generated by the probabilistic model, which means the premature convergence of the algorithm. Compared with the CGA, when solving the problems of each group of large-scale data, the optimization effect of the ICGA was greatly improved. This indicates that the ICGA, to some extent, overcame the problem that the CGA was easy to prematurely converge.
By testing the four algorithms using large-scale and small-scale data, we can conclude that compared with the CGA, the ICGA has stronger capability to continuously evolve and jump out of the local extremum while maintaining the characteristic of fast convergence of the CGA. The ICGA, to some extent, overcomes the problem that the CGA is easy to prematurely converge. At the same time, compared with the BA and the WOA, for either small-scale data or large-scale data, the ICGA has an obvious advantage in optimization speed. Thus, the ICGA is suitable for solving the complicated problem of scheduling optimization with many processes.

5.3. Instance Test on Multi-Queue Limited Buffers in Flexible Flow Shops with Setup Times

5.3.1. Establishing Simulation Data

The simulation data of the production operations in the body shop and paint shop of the bus manufacturer were established as follows.
1. Parameters in the shop model
The body shop of the bus manufacturer is a rigid flow shop with multiple production lines, which can be simplified into one production stage. The production of the paint shop is simplified to three stages [27]. The simulation data for scheduling include four stages, namely { O p e r 1 , O p e r 2 , O p e r 3 , O p e r 4 } , whose parallel machine { M j } is { 3 , 2 , 3 , 2 } . The buffer between the body shop and the paint shop is a multi-queue limited buffer. As such, the buffer of stage O p e r 2 in the scheduling simulation data is set to the multi-queue limited buffer. The number of lanes in buffer B u 2 of stage O p e r 2 is equal to 2, namely A 2 = 2. The number of spaces in lane B s 2 , 1 is 2, namely K 2 , 1 = 2, and that of buffer B s 2 , 2 is 2, namely K 2 , 2 = 2. That is to say, the multi-queue limited buffers have two lanes and each lane has two spaces.
In the production of the paint shop, it is necessary to clean the machine and adjust production equipment if the model and color of the buses that are successively processed on the machine are different. Therefore, the simulation process uses the changes in the model and color as the basis for calculating setup times. Table 4 shows that the setup times parameters are set when the model and color of the buses that are processed successively on the machine changed. When the bus is assigned to the machine of the next stage from the buffer, the setup times of the machine is calculated using Equation (16).
2. Parameters of processing the object
The information of the bus model and color properties is shown in Table 5. The sum of bus properties is 2, namely X = 2 . P r o p 1 represented the model property of the bus, while P r o p 2 denoted the color property of the bus. The value of model property ( P r o p V a l u e 1 ) is { B u s T y p e 1 , B u s T y p e 2 , B u s T y p e 3 } , and the value of color property ( P r o p V a l u e 2 ) is { B u s C o l o r 1 , B u s C o l o r 2 , B u s C o l o r 3 } . It is assumed that two successively processed buses on machine of stage W S 2 , 1 are buses J 1 and J 5 . If model properties were as follows: p r o p 1 , 1 = B u s T y p e 1 and p r o p 1 , 5 = B u s T y p e 1 , and color properties are as follows: p r o p 2 , 1 = B u s C o l o r 1 and p r o p 2 , 5 = B u s C o l o r 3 , then p r o p 1 , 1 = p r o p 1 , 5 , p r o p 2 , 1 p r o p 2 , 5 . Hence, N s r v 2 , 1 , 5 2 = 1 . Using Equation (16), the setup time can be obtained as follows: T s 5 , 2 , 2 = T s p 2 , 2 = 4. And the Table 6 shows the standard processing time for bus production.

5.3.2. Simulation Scheme

The scheduling problem of the bus manufacturer was investigated by using the ICGA, BA, WOA, and standard CGA as the global optimization algorithm, combined with local dispatching rules in the multi-queue limited buffers. This study further analyzed the optimization performance of the ICGA combined with local dispatching rules in solving the multi-queue limited buffers scheduling problems in a flexible flow shop with setup times. A total of eight groups of simulation schemes were designed, in which schemes 1–4 employed the FIFO rule as their local dispatching rules, and schemes 5–8 adopted the RCMQB rule when entering the buffer and used the SST rule, FAM rule, and FCFS rule as local dispatching rules when leaving the buffer. Among them, the SST rule was the priority. The information of the eight sets of simulation schemes is shown in Table 7.

5.3.3. Simulation Results and Analysis

1. Evaluation index of scheduling results
In the optimization process, makespan C m a x was used as the fitness function value of the global optimization algorithm. Meanwhile, a number of evaluation indexes related to the actual production line were established, including T c p u , T W I P , T W T , F U R , T S and T P B . Except F U R , the smaller the values, the better the remaining evaluation indexes.
Eight sets of simulation schemes were run 30 times. The average of 30 simulation results is presented in Table 8. As shown in the table, under the principle of adopting the same global optimization algorithm, compared with schemes 1–4, each metric of schemes 5–8 has been improved to some extent, except the T c p u . Among the metrics, the optimization improvement of T W I P , T S and T P B is obvious. This is mainly because schemes 5–8 adopted RCMQB rules when entering multi-queue limited buffers, which can allocate resources of multi-queue limited buffers more reasonably and reduce the occurrence of blocking. The SST rule, the FAM rule and the FCFS rule were adopted when leaving the buffer, which can more effectively control the jobs to select the machine with the least change of properties among multiple machines for processing. This was beneficial to reduce the setup times. Further, T W I P is equal to the sum of the time for the job staying on the buffer, the blocking time of the job and setup times, so these three evaluation indexes were significantly improved. The reduction in blocking time and setup times will lead to the reduction in the makespan of the whole process and the reduction of the idle time for machines. Therefore, C m a x , T W T and F U R of schemes 5–8 were also optimized to some extent. From the table we can also see that compared with the schemes 1–4, although the T c p u of the schemes 5–8 had all increased, the rate of increase was small. This indicates that the complicated local rules adopted in schemes 5–8 can made full use of the capacity of the multi-queue limited buffers and effectively reduced the blocking time and setup times. At the same time, the running time costs were small and did not have much impact on the speed of the algorithm.
The comparison among schemes 1–4 or schemes 5–8 show that the running speed of the CGA and ICGA was significantly faster than that of the BA and WOA. The average running time of the BA reached 555.56 s, which is obviously not suitable for solving practical problems. In terms of optimization performance, under two different local dispatching rules, the optimization effect of ICGA for C m a x was the best among the four algorithms. Specially, compared with the CGA, the optimization effect of the ICGA was significantly improved. The above results show that the ICGA, to some extent, overcame the problem that the CGA was easy to prematurely converge while maintaining the fast running speed of the CGA. This is mainly because in the early stage of evolution, there is no large probability value in the probabilistic model. Thus, the ICGA was still evolving as the procedure of the CGA. In this way, the ICGA maintained the advantage that the CGA can converge quickly in the early stage of evolution. In the later stage of evolution, when falling into the local extremum, the ICGA mapped the original probabilistic model to the new probabilistic model through the probability density function of the Gaussian distribution. In this way, while keeping probability values’ distribution of the original probabilistic model unchanged, ICGA’s searching ability of feasible solutions was expanded, and the diversity of population individuals was improved. Therefore, the algorithm could jump out of the local extremum and continued to evolve.
Through the above analysis, it can be concluded that compared with the other seven schemes, the combination of the ICGA and local dispatching rules adopted in scheme 8 was the best for reducing setup times of the machine, and it effectively decreased the blocking effect of the limited buffers, more reasonably arranged the jobs in and out of the multi-queue limited buffer, and orderly assigned the processing tasks. Various evaluation metrics were improved, and the problem of multi-queue limited buffers scheduling problems in a flexible flow shop with setup times was more effectively solved.
2. Gantt chart analysis of scheduling result
Figure 4 is the Gantt chart of the scheduling result of scheme 8, with time axis as the abscissa and machine of each stage as the ordinate. The green part indicates the residence time of the bus in the buffer. The red part indicates the setup times when the successively-processed buses are with different properties. The blue part denotes the blocking time of the bus on the machine after the completion of the process. The processing route of J 3 was { W S 1 , 1 , b 2 , 2 , 1 , b 2 , 2 , 2 , W S 2 , 2 , b 3 , 1 , 1 , W S 3 , 1 , b 4 , 1 , 1 , W S 4 , 1 } . In Figure 4, we can see that at time t = 44, J 3 completed the processing on machine W S 1 , 1 of stage O p e r 1 (the competition time of J 3 was 44, namely C 3 , 1 = 44). At this time, the first lane B s 2 , 1 of buffer B u 2 had two jobs waiting to be processed ( J 8 and J 4 ), that is to say, W A 2 , 1 ( t ) = { J 8 , J 4 } , c a r d ( W A 2 , 1 ( t ) ) = 2. The second lane B s 2 , 2 of buffer B u 2 had one job waiting to be processed ( J 9 ), that is to say, W A 2 , 2 ( t ) = { J 9 } , c a r d ( W A 2 , 2 ( t ) ) = 1. The capacity of lane B s 2 , 1 was 2 ( K 2 , 1 = 2), c a r d ( W A 2 , 1 ( t ) ) K 2 , 1 . And the capacity of lane B s 2 , 2 was 2 ( K 2 , 2 = 2), c a r d ( W A 2 , 2 ( t ) ) K 2 , 2 . Both of them satisfy the constraint of Equation (10) of the limited buffers. At this time, based on the RCMQB rule which regulates the job’s access to the buffer, we can obtain M c a 3 , 2 ( t ) = { B s 2 , 2 } from Equation (26). The J 3 was assigned to space b 2 , 2 , 1 in lane B s 2 , 2 of stage O p e r 2 , waiting to be processed at stage O p e r 2 . The entry time of the bus into the buffer ( T e 3 , 2 ) was equal to C 3 , 1 , which satisfied the constraint of Equation (8) of limited buffers.
At time t = 68, J 9 left the space b 2 , 2 , 2 in lane B s 2 , 2 , and the departure time out of the buffer ( T l 9 , 2 ) was 68. At the same time, J 3 was assigned to the space b 2 , 2 , 2 , waiting to be processed on the machine of stage O p e r 2 . At time t = 98, T l 3 , 2 = 98, J 3 also departed from the buffer, and T l 9 , 2 < T l 3 , 2 , satisfying the constraint of Equation (13). From the Gantt chart drawn from scheduling results, it can be seen that the constraint of Equation (12) was always met during the use of multi-queue limited buffers.
Further analysis of the process that J 3 left the buffer is as follows. When t = 98, machine W S 2 , 2 completed the processing of J 9 , so that machine W S 2 , 2 was available. At this time, J 12 on space b 2 , 1 , 2 in lane B s 2 , 2 was waiting for processing, and J 3 on space b 2 , 2 , 2 was also waiting for processing. According to the bus’s property information in Table 3, in regard to machine W S 2 , 2 , if we choose to process J 12 , the setup time ( T s 12 , 2 , 2 ) will be equal to T s p 2 , 2 , namely T s 12 , 2 , 2 = T s p 2 , 2 = 4; if we choose to process J 3 , the setup time ( T s 3 , 2 , 2 ) will be 0, namely T s 3 , 2 , 2 = 0. In accordance with the SST rule that controls the job leaving the buffer, J 3 was chosen to process.
3. Analysis of scheduling evolution
Figure 5 shows the relationship between fitness value and training iterations of schemes 5–8. As can be seen, the BA and WOA converged quickly at the initial stage of the evolution. This is mainly due to the fact that the initial numbers of population of the BA and WOAs ( N P = 30) were much larger than that of the CGA and ICGAs ( N P = 4). This means a relatively strong ability for searching the solution space. However, with the increase in evolutional iterations, the search ability of the BA and the WOA gradually deterioratesdand they fell into the local extremum in the 135th and 139th generations, respectively. Although the CGA should be good at fast search, the distribution of probability values in the probabilistic model all decreased with evolution, and thus and the search performance on the solution space decreased. The algorithm stopped evolving at the 87th generation, falling into the local extremum. On the other hand, the ICGA had the similar fast search performance as the CGA during the initial stage and encountered evolutionary stagnation at the 94th generation. But as evolution continues, the ICGA started the mapping operation to reactivate the algorithm’s evolutionary ability and found for the optimal solution in the 263th generation.
Figure 6 shows the relationship between fitness value and running time of schemes 5–8. As can be seen from the figure, the running speed of CGA and ICGA was very fast, but the CGA fell into the local extremum at 4 s. The optimization speed of the BA was the slowest among the four algorithms, and its optimal solution was 299 during the 35 s running time. From the figure, we can also see that the fitness value of the ICGA was the best among the four algorithms at the same CPU time. And the time used by the ICGA to get the same fitness value was the least among the four algorithms. The ICGA maintained the advantage that the CGA can converge quickly in the early stage of evolution. In the later stage of evolution, when falling into the local extremum, the ICGA improved the diversity of individuals in the population by mapping the original probabilistic model to a new probabilistic model, so that the algorithm could jump out of the local extremum and continue to evolve.
4. Statistical analysis of scheduling results
Figure 7 shows the makespan C m a x of schemes 5–8 running 10 times separately. For scheme 7, the average value of makespan C m a x in 10 tests was 298.1, which was the worst among the four schemes. Although scheme 5 could sometimes obtain better results, the results obtained in 10 tests were not stable enough and were with large fluctuations, easily falling into the local extremum sometimes. Its average value of 10 tests was 295.2. Compared with the other three schemes, the results obtained by the scheme 6 were relatively stable. However, its average result was poor, at 296.3. The average value of the test results of scheme 8 was 292.3, which was the best of all the schemes. The fluctuations of the curve indicate that the magnitude of the change in the results of scheme 8 in 10 tests is small. This shows that when solving multi-queue limited buffers scheduling problems in a flexible flow shop with setup times, compared with the CGA, the ICGA has not only greatly improved the optimization performance, but also improved the stability of the optimization results.

6. Conclusions

This study explored the multi-queue limited buffers scheduling problems in a flexible flow shop with setup times in a bus manufacturer. The study proposed an ICGA for global optimization to better improve the global optimization results, aiming at the shortcomings of the CGA that it is easy to fall into the local extremum and rapidly stops evolving. This algorithm employed the probability density function of the Gaussian distribution to map the original probabilistic model to a new probabilistic model so as to enhance the evolutionary vigor of the CGA. The job was processed on the specified online sequence in accordance with the individual decoding. Considering the impact of multi-queue limited buffers, the problems of the job into and out of the buffer during the subsequent scheduling were emphasized. When the job enters the buffer, the remaining capacity of buffers should be taken into account to reduce machining blocking and stagnation. When the job leaves the buffer and is assigned to the machine at the next stage, it is influenced by the setup times. In this study, the setup time of the machine was calculated based on the change in the properties of successively processed jobs. The SST rule was used to reduce the setup times. Finally, the findings of simulation experiments proved that combining the ICGA with local dispatching rules could better solve the multi-queue limited buffers scheduling problems in a flexible flow shop with setup times.

Author Contributions

Z.H. conceived and designed the research; Q.Z. performed the experiment and wrote the manuscript; H.S. and J.Z. checked the results of the whole manuscript.

Funding

This research was funded by the Liaoning Provincial Science Foundation, China (grant number: 2018106008), the Natural Science Foundation of China (grant number: 61873174), Project of Liaoning Province Education Department, China (grant number: LJZ2017015) and Shenyang Municipal Science and Technology Project, China (grant number: Z18-5-102).

Conflicts of Interest

The authors declare no conflict of interest.

References

  1. Zhao, F.Q.; Tang, J.X.; Wang, J.B.; Jonrinaldi, J. An improved particle swarm optimization with a linearly decreasing disturbance term for flow shop scheduling with limited buffers. Int. J. Comput. Integr. Manuf. 2014, 27, 488–499. [Google Scholar] [CrossRef]
  2. Ventura, J.A.; Yoon, S.H. A new genetic algorithm for lot-streaming flow shop scheduling with limited capacity buffers. J. Intell. Manuf. 2013, 24, 1185–1196. [Google Scholar]
  3. Han, Z.H.; Sun, Y.; Ma, X.F.; Lv, Z. Hybrid flow shop scheduling with finite buffers. Int. J. Simul. Process Model. 2018, 13, 156–166. [Google Scholar]
  4. Zeng, M.; Long, Q.Y.; Liu, Q.M. Cellular automata variation particles warm optimization algorithm for batch scheduling. In Proceedings of the 2012 Second International Conference on Intelligent System Design and Engineering Application, Sanya, Hainan, China, 6–7 January 2012; IEEE: New York, NY, USA, 2012. [Google Scholar]
  5. Zhang, P.W.; Pan, Q.K.; Liu, J.Q.; Duan, J.H. Hybrid artificial bee colony algorithms for flowshop scheduling problem with limited buffers. Comput. Integr. Manuf. Syst. 2013, 19, 2510–2511. [Google Scholar]
  6. Zhang, S.C.; Wong, T.N. Studying the impact of sequence-dependent set-up times in integrated process planning and scheduling with E-ACO heuristic. Int. J. Prod. Res. 2016, 54, 4815–4838. [Google Scholar] [CrossRef]
  7. Shen, L.; Dsuzere, P.; Neufeld, J.S. Solving the flexible job shop scheduling problem with sequence-dependent setup times. Eur. J. Oper. Res. 2018, 265, 503–516. [Google Scholar] [CrossRef]
  8. Tran, T.T.; Araujo, A.; Bech, J.C. Decomposition methods for the parallel machine scheduling problem with setups. INFORMS J. Comput. 2016, 28, 83–95. [Google Scholar] [CrossRef]
  9. Vallada, E.; Ruiz, R. A genetic algorithm for the unrelated parallel machine scheduling problem with sequence dependent setup times. Eur. J. Oper. Res. 2011, 211, 612–622. [Google Scholar] [CrossRef] [Green Version]
  10. Benkalai, I.; Rebaine, D.; Gagné, C.; Baptiste, P. Improving the migrating birds optimization metaheuristic for the permutation flow shop with sequence-dependent set-up times. Int. J. Prod. Res. 2017, 55, 6145–6157. [Google Scholar] [CrossRef]
  11. An, Y.J.; Kim, Y.D.; Choi, S.W. Minimizing makespan in a two-machine flowshop with a limited waiting time constraint and sequence-dependent setup times. Comput. Oper. Res. 2016, 71, 127–136. [Google Scholar]
  12. Lenstra, J.K.; Kan, A.; Brucker, P. Complexity of machine scheduling problems. Stud. Integer Program. 1977, 1, 343–362. [Google Scholar]
  13. Harik, G.R.; Lobo, F.G.; Goldberg, D.E. The compact genetic algorithm. IEEE Trans. Evol. Comput. 1999, 3, 287–297. [Google Scholar] [CrossRef] [Green Version]
  14. Rafael, D.S.; Carlos, E.L.; Heitor, L. Template matching in digital images using a compact genetic algorithm with elitism and mutation. J. Circuits Syst. Comput. 2010, 19, 91–106. [Google Scholar]
  15. Sharifi, R.; Anvari-Moghaddam, A. A Flexible Responsive Load Economic Model for Industrial Demands. Processes 2019, 7, 147. [Google Scholar] [CrossRef]
  16. Tran, V.; Ramkrishna, D. Simulating Stochastic Populations. Direct Averaging Methods. Processes 2019, 7, 132. [Google Scholar] [CrossRef]
  17. Gao, Z.W.; Saxen, H.; Gao, C.H. Data-Driven Approaches for Complex Industrial Systems. IEEE Trans. Ind. Inform. 2013, 9, 2210–2212. [Google Scholar] [CrossRef]
  18. Gao, Z.W.; Ding, S.X.; Cecati, C. Real-time Fault Diagnosis and Fault Tolerant. IEEE Trans. Ind. Electron. 2015, 62, 3752–3756. [Google Scholar] [CrossRef]
  19. Han, Z.H.; Zhu, Y.H.; Ma, X.F.; Chen, Z.L. Multiple rules with game theoretic analysis for flexible flow shop scheduling problem with component altering times. Int. J. Model. Identif. Control 2016, 26, 1–18. [Google Scholar] [CrossRef]
  20. Yang, X.S. A new metaheuristic bat-inspired algorithm. In Nature Inspired Cooperative Strategies for Optimization; Springer: Berlin, Germany, 2010; pp. 65–74. [Google Scholar]
  21. Mirjalili, S.; Lewis, A. The whale optimization algorithm. Adv. Eng. Softw. 2016, 95, 51–67. [Google Scholar] [CrossRef]
  22. Luo, Q.F.; Zhou, Y.Q.; Xie, J.; Ma, M.; Li, L.L. Discrete bat algorithm for optimal problem of permutation flow shop scheduling. Sci. World J. 2014, 2014. [Google Scholar] [CrossRef]
  23. Zhang, J.J.; Li, Y.G. An improved bat algorithm and its application in permutation flow shop scheduling problem. Adv. Mater. Res. 2014, 1049, 1359–1362. [Google Scholar] [CrossRef]
  24. Jiang, T.H.; Zhang, C.; Zhu, H.Q.; Gu, J.C.; Deng, G.L. Energy-efficient scheduling for a job shop using an improved whale optimization algorithm. Mathematics 2018, 6, 220. [Google Scholar] [CrossRef]
  25. Neron, E.; Baptiste, P.; Gupta, J. Solving hybrid flow shop problem using energetic reasoning and global operations. Omega 2001, 29, 501–511. [Google Scholar] [CrossRef]
  26. Santos, D.L.; Hunsucker, J.L.; Deal, D.E. Global lower bounds for flow shop with multiple processors. Eur. J. Oper. Res. 1995, 80, 112–120. [Google Scholar] [CrossRef]
  27. Kim, M.K.; Narasimhan, R. Designing Supply Networks in Automobile and Electronics Manufacturing Industries: A Multiplex Analysis. Processes 2019, 7, 176. [Google Scholar] [CrossRef]
Figure 1. Model for the multi-queue limited buffers scheduling problems in a flexible flow shop.
Figure 1. Model for the multi-queue limited buffers scheduling problems in a flexible flow shop.
Processes 07 00302 g001
Figure 2. The flowchart of ICGA.
Figure 2. The flowchart of ICGA.
Processes 07 00302 g002
Figure 3. Trend chart of the algorithm’s performance impacted by each parameter.
Figure 3. Trend chart of the algorithm’s performance impacted by each parameter.
Processes 07 00302 g003
Figure 4. Gantt chart of the scheduling result of the ICGA.
Figure 4. Gantt chart of the scheduling result of the ICGA.
Processes 07 00302 g004
Figure 5. Relationship between fitness value and training iterations of schemes 5–8.
Figure 5. Relationship between fitness value and training iterations of schemes 5–8.
Processes 07 00302 g005
Figure 6. Relationship between fitness value and Running time of schemes 5–8.
Figure 6. Relationship between fitness value and Running time of schemes 5–8.
Processes 07 00302 g006
Figure 7. Results of 10 instance tests.
Figure 7. Results of 10 instance tests.
Processes 07 00302 g007
Table 1. Level of each parameter.
Table 1. Level of each parameter.
ParameterLevel
1234
σ T 5101520
β 1.01.52.02.5
N P 2345
Table 2. Small-scale data test results.
Table 2. Small-scale data test results.
Standard ExampleLBBAWOACGAICGA
C m a x ¯ T c p u ¯ ( s ) C m a x ¯ T c p u ¯ ( s ) C m a x ¯ T c p u ¯ ( s ) C m a x ¯ T c p u ¯ ( s )
j15c5a117817816.3241784.0181780.6521780.671
j15c5a216516516.4741654.0291650.7381650.754
j15c5b117017015.5851703.8871700.6691700.682
j15c5b215215215.7671523.8631520.6361520.710
j15c10c3141148.1431.722148.778.008150.300.768147.561.007
j15c10c4124132.8648.289133.288.056135.650.764132.261.121
j15c5d46187.1617.67987.024.26789.570.47186.130.758
j15c5d56782.0317.36882.284.29684.650.43581.720.756
Table 3. Large-scale data test results.
Table 3. Large-scale data test results.
Instance NumberBAWOACGAICGA
C m a x ¯ T c p u ¯ ( s ) C m a x ¯ T c p u ¯ ( s ) C m a x ¯ T c p u ¯ ( s ) C m a x ¯ T c p u ¯ ( s )
j80c4d11459.8449.3511465.1217.4851477.5611.7221455.4413.731
j80c4d21367.4449.7351372.4018.5491385.1612.595 1364.4814.717
j80c8d11811.68106.1871813.8851.9671842.5616.1741814.2819.078
j80c8d21822.56104.9541830.4851.4851851.9216.079 1828.9619.767
j120c4d12132.0878.7792138.0438.1712196.9223.8592139.8828.942
j120c4d22243.5279.8212250.4139.2752306.5224.221 2246.0429.642
Table 4. Model parameters.
Table 4. Model parameters.
ParameterDescriptionValue
Parameters of limited buffers A 2 Number of lanes in buffer B u 2 of stage O p e r 2 2
K 2 , 1 Capacity of lane B s 2 , 1 2
K 2 , 2 Capacity of lane B s 2 , 2 2
K 3 , 1 Capacity of limited buffer B u 3 of stage O p e r 3 1
K 4 , 1 Capacity of limited buffer B u 4 of stage O p e r 4 1
Parameters of setups times T s p 2 , 1 Setup times when the model of buses processed successively on a parallel machine of stage O p e r 2 changes4
T s p 2 , 2 Setup times when the color of buses processed successively on a parallel machine of stage O p e r 2 changes4
T s p 3 , 1 Setup times when the model of buses processed successively on a parallel machine of stage O p e r 3 changes5
T s p 3 , 2 Setup times when the color of buses processed successively on a parallel machine of stage O p e r 3 changes5
T s p 4 , 1 Setup times when the model of buses processed successively on a parallel machine of stage O p e r 4 changes3
T s p 4 , 2 Setup times when the color of buses processed successively on a parallel machine of stage O p e r 4 changes3
Table 5. Information of bus model and color properties.
Table 5. Information of bus model and color properties.
Bus Property J 1 J 2 J 3 J 4 J 5 J 6 J 7 J 8 J 9 J 10 J 11 J 12
Model P r o p 1 T y p e 1 T y p e 2 T y p e 3 T y p e 2 T y p e 1 T y p e 3 T y p e 1 T y p e 2 T y p e 3 T y p e 1 T y p e 2 T y p e 3
Color P r o p 2 C o l o r 1 C o l o r 1 C o l o r 2 C o l o r 2 C o l o r 3 C o l o r 3 C o l o r 1 C o l o r 1 C o l o r 2 C o l o r 3 C o l o r 2 C o l o r 3
Table 6. Standard processing time for bus production.
Table 6. Standard processing time for bus production.
J 1 J 2 J 3 J 4 J 5 J 6 J 7 J 8 J 9 J 10 J 11 J 12
O p e r 1 81115191016122122132014
O p e r 2 303828252636202422323534
O p e r 3 343844425240464835364550
O p e r 4 423626243430283238404422
Table 7. The eight groups of the simulation program.
Table 7. The eight groups of the simulation program.
Simulation SchemeGlobal Optimization AlgorithmLocal Dispatching Rules
Scheme 1BAFIFO
Scheme 2WOAFIFO
Scheme 3CGAFIFO
Scheme 4ICGAFIFO
Scheme 5BARCMQB; SST, FAM, FCFS
Scheme 6WOARCMQB; SST, FAM, FCFS
Scheme 7CGARCMQB; SST, FAM, FCFS
Scheme 8ICGARCMQB; SST, FAM, FCFS
Table 8. Evaluation index comparison of scheduling results of eight schemes.
Table 8. Evaluation index comparison of scheduling results of eight schemes.
Evaluation IndexScheme 1Scheme 2Scheme 3Scheme 4Scheme 5Scheme 6Scheme 7Scheme 8
C m a x Optimum296295297295288288290286
Worst307305309304303300302300
Average301.12303.16305.76300.56293.56295.60299.84292.32
variance18.568.9611.749.0612.485.078.696.86
T c p u Optimum529.15103.3514.3015.29503.83113.2714.26415.64
Worst587.99144.6115.2316.24600.83149.7315.3916.77
Average551.61122.5714.3215.08559.48134.3514.6215.32
variance325.24339.500.0410.06425.5781.530.050.18
T W I P Optimum630642623623625605613611
Worst768730745750734707718713
Average691.52689.72698.32681.96660.88656.48672.64647.44
variance824.88550.12958.45764.27781.56421.86795.19635.52
T W T Optimum229253250251202202204203
Worst358321347343282278309302
Average282.81282.96287.56285.60240.36235.48255.40248.04
variance673.44428.41514.16564543.59276.83493.68517.95
F U R Optimum86.26%85.03%85.18%85.43%87.67%87.62%87.56%87.59%
Worst80.36%80.17%80.54%80.25%83.59%83.79%82.91%83.16%
Average83.58%83.41%83.14%83.34%85.68%85.93%84.94%85.88%
variance0.05%0.01%0.02%0.02%0.02%0.00%0.01%0.01%
T S Optimum11012112611510510810898
Worst153164167160141137151144
Average137.64139.12148.52138.43121.36119.76125.60120.76
variance123.31103.59130.24114.4066.1545.8691.0873.62
T P B Optimum7373777470727572
Worst12210911811311899110104
Average94.4293.0494.8893.2887.885.1687.6495.21
variance165.1271.5597.8299.16129.4448.2169.5974.36

Share and Cite

MDPI and ACS Style

Han, Z.; Zhang, Q.; Shi, H.; Zhang, J. An Improved Compact Genetic Algorithm for Scheduling Problems in a Flexible Flow Shop with a Multi-Queue Buffer. Processes 2019, 7, 302. https://0-doi-org.brum.beds.ac.uk/10.3390/pr7050302

AMA Style

Han Z, Zhang Q, Shi H, Zhang J. An Improved Compact Genetic Algorithm for Scheduling Problems in a Flexible Flow Shop with a Multi-Queue Buffer. Processes. 2019; 7(5):302. https://0-doi-org.brum.beds.ac.uk/10.3390/pr7050302

Chicago/Turabian Style

Han, Zhonghua, Quan Zhang, Haibo Shi, and Jingyuan Zhang. 2019. "An Improved Compact Genetic Algorithm for Scheduling Problems in a Flexible Flow Shop with a Multi-Queue Buffer" Processes 7, no. 5: 302. https://0-doi-org.brum.beds.ac.uk/10.3390/pr7050302

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