Abstract

A hybrid algorithm which combines particle swarm optimization (PSO) and iterated local search (ILS) is proposed for solving the hybrid flowshop scheduling (HFS) problem with preventive maintenance (PM) activities. In the proposed algorithm, different crossover operators and mutation operators are investigated. In addition, an efficient multiple insert mutation operator is developed for enhancing the searching ability of the algorithm. Furthermore, an ILS-based local search procedure is embedded in the algorithm to improve the exploitation ability of the proposed algorithm. The detailed experimental parameter for the canonical PSO is tuning. The proposed algorithm is tested on the variation of 77 Carlier and Néron’s benchmark problems. Detailed comparisons with the present efficient algorithms, including hGA, ILS, PSO, and IG, verify the efficiency and effectiveness of the proposed algorithm.

1. Introduction

The hybrid flowshop scheduling (HFS) problem has been researched by more and more literatures during last decades. HFS is a typical version of the flowshop scheduling problem (FSP), which has been proved to be an NP-hard problem. Therefore, HFS is also an NP-hard problem and has been researched by more and more heuristics or metaheuristics [111]. In the most present literature about HFS, the common situation is assumed that all machines are available in the production horizon. However, for some critical factors, such as machine random breakdown and preventive maintenance (PM) activity, machines are not available during the whole production horizon. Allaoui and Artiba solved the HFS with maintenance constraints by using an integrating simulation and optimization [12]. Xie and Wang discussed the complexity and algorithms for two-stage flexible flowshop scheduling with availability constraints [13]. Allaoui and Artiba again considered the two-stage HFS with maintenance constraints [14]. Ruiz et al. considered scheduling and preventive maintenance in the flowshop sequencing problem [15]. Naderi et al. applied variable neighborhood structure (VNS) algorithm for solving flexible flow line problems with sequence dependent setup times and different preventive maintenance policies [16]. Berrichi et al. presented a biobjective optimization algorithm for joint production and maintenance scheduling in the parallel machine environments [17]. Luo et al. developed a genetic algorithm for solving two-stage HFS with blocking and machine availability [18]. Allaoui and Artiba investigated Johnson's algorithm for solving optimally or approximately flowshop scheduling problems with unavailability periods [19]. Jabbarizadeh et al. developed a hybrid algorithm for solving the hybrid flexible flowshops with sequence-dependent setup times and machine availability constraints [20]. Besbes et al. tackled hybrid flowshop problem with nonfixed availability constraints [21]. Ma et al. gave a survey of scheduling with deterministic machine availability constraints [22]. Luo et al. solved the HFS with batch-discrete processors and machine maintenance in time windows [23]. Safari and Sadjadi tackled the flowshop scheduling problem with condition-based maintenance constraint and machines breakdown through a hybrid method [24]. Wang and Liu solved the two-stage hybrid flowshop scheduling with preventive maintenance using multiobjective tabu search method [25]. Rabiee et al. developed an intelligent hybrid metaheuristic for solving a case of no-wait two-stage flexible flowshop scheduling problem with unrelated parallel machines [26]. Allaoui and Artiba surveyed the maintenance constraints in HFS scheduling problems [27].

In this study, we developed a hybrid algorithm combining particle swarm optimization (PSO) and iterated local search (ILS) algorithms for solving the hybrid flowshop scheduling problems with PM activity. The rest of this paper is organized as follows: Section 2 briefly describes the problem. Next, the related algorithms are presented in Section 3. Section 4 reports the framework of the proposed algorithm. Section 5 illustrates the experimental results and compares them to the present performing algorithms from the literature to demonstrate the superiority of the proposed algorithm. Finally, the last section gives the concluding remarks and future research directions.

2. Problem Definition

In this study, we consider a hybrid flowshop scheduling problem in reality production system. The PM activity is considered in the considered HFS problems. Firstly, we give the following assumptions.(1)Each machine can process only one operation at a time, while each operation can be processed by only one machine at a time.(2)Preemption is not allowable; that is, each operation must be completed without interruption before its completion.(3)At each stage, more than one machine from identical parallel machines can be selected for each operation.(4)The processing time for each operation at each stage is determined.

Under the above assumption, the mathematical model for the problem is given as follows.

2.1. Variables

: job index, ,: stage index, ,: machine index, ,: the processing time of job at stage ,: the starting time of job at stage ,: the completion time of job at stage ,: the starting time of job at stage considering the PM activity,: the completion time of job at stage considering the PM activity,: the starting time point of the PM activity on ,: the completion time point of the PM activity on

2.2. Problem Formula

s.t.

In the mathematical model, the objective is given in formula (2). Constraint (3) guarantees that the PM time should be considered in processing any operation. In Constraint (4), the operation sequence is realized for the same job; that is, the following operation cannot be started until the completion of the predecessor operation of the same job. Constraint (5) shows that, on the same machine, the following operation must wait for the completion of the predecessor operation. Constraint (6) guarantees that each job can select only one available machine at each stage.

In this study, we consider combining PSO and ILS to construct a hybrid algorithm for solving the HFS with PM activity. The following is to illustrate the literature review of the two related algorithms.

3.1. ILS Algorithm

Iterated local search (ILS), firstly proposed by Stützle [28], is a metaheuristic to increase the ability to jump out of the local optima for the canonical local search methods. It has attracted much attention of researchers for its simplicity, effectiveness, and efficiency, and it has been applied successfully to traveling salesman problem, flowshop scheduling problem, job shop scheduling problem, and vehicle scheduling problem, [2831] during recent years. The main frame of the canonical ILS is as follows.

Step 1. Generate an initial solution ; let and .

Step 2. Generate a certain number of neighboring solutions around the given solution , find the best neighboring solution , and update the best solution found so far.

Step 3. Let .

Step 4. If the stop condition is not satisfied, generated , go back to Step 2; otherwise, stop the algorithm.

3.2. Particle Swarm Optimization

In 1995, mimicking the flying behavior of a swarm of birds, a novel optimization algorithm named particle swarm optimization (PSO) was developed by Kennedy and Eberhart, which has been verified efficient for solving both continuous and discrete optimization problems [32]. During recent years, many researchers have applied PSO for solving lots of optimization problems [3343].

The flowchart of the canonical PSO is given as follows.

Step 1. Set the system parameters, such as the initial population size, the possibility () for learning from local best, and the possibility () for learning from the best solution found so far.

Step 2. Generate the initial population of particles.

Step 3. Store each particle into a vector named local best, where each solution corresponds to the local best of the corresponding particle. Memorize the best solution found so far.

Step 4. For each particle, perform the following steps until the stop condition is satisfied.

Step 5. Randomly generate a number between 0 and 1, if is less than , and then perform the learning process from the local best of the current particle.

Step 6. Randomly generate a number between 0 and 1, if is less than , and then perform the learning process from the global best of the current particle.

Step 7. Record the local best for each particle and the global best found so far.

Step 8. Learn by itself.

Step 9. Go back to Step 4.

4. Framework of the Proposed Algorithm

4.1. Solution Representation

For solving the HFS scheduling problems with PM activity, we use the permutation representation mechanism. Give a HFS scheduling problem jobs, stages, and machines; each solution is represented by a vector of integer values, where each integer value represents a job number. Therefore, the length of the solution equals the number of jobs. For example, for a HFS problem with ten jobs and three stages, Figure 1 gives one solution representation, where the scheduling sequence is , and .

The sequence in Figure 1 is only for the first stage; that is, at the first stage, each job is scheduled according to the above sequence, while for the following stages, the decoding mechanism is given as follows.

4.2. Decoding without Disruption

It can be seen from the solution representation that the machine selection is not included in the solution representation. The decoding for the above solution representation is given as follows.

Step 1. For the first stage, each job is scheduled according to their sequence in the solution representation. In Figure 1 the first job to be scheduled is and the last one is . Each job selects the first available machine.

Step 2. In the following stages, each job is to be scheduled just after its completion of the previous stage, and select the first available machine from the candidate machines.

4.3. Decoding with PM Activity

When considering the PM activity, that is, at time , there is a PM activity occurring on a given machine . Then two situations we should consider, that is, the first is that when an operation is just being processed on when the disruption event occurs. The second situation is that the affected machine is idle and no operation is affected by the PM activity.

Situation 1. For the first situation, an operation is affected by the PM activity. Figure 2 gives the example chart for the situation. From Figure 2, we can see that, at time point , the machine shows a PM activity. It will restart its work at time point . However, before the PM activity of the machine, the operation has started its work and cannot complete its work at time point . In this situation, we have to do the following works for different realistic production systems.(i)When an operation is being processed and the processing machine needs to be maintenanced, we have to drop the affected operation and all its following operations. This is appliable for some certain realistic production system, such as steelmaking-casting system. Because of temperature restriction, an operation cannot wait for the restart work of the machine and has to be erased from the system because of its temperature loss. For example, for iron body, when its temperature decreases, its component structure will be destroyed.(ii)In another situation, the affected operation will keep its previous work and wait for the restart of the affected machine. When the affected machine is available, the affected operation can restart its work and continue the following work.

Situation 2. For the second situation, no working operation is affected by the PM activity. In this situation, we should consider whether there is any operation which is allocated to the affected machine during the PM activity. That is, if an operation is scheduled to be processed on the affected machine before its restart, then we should reconsider the assignment rule, which is given as follows.(i)If an operation is scheduled to be processed on the affected machine, then the start time of the operation is located between the start and end time point of the PM activity. At that situation, we should assign a new machine for the affected operation if there is another available machine for the affected operation. For example, in Figure 3, the start time of the job is between the start and end time of the PM event on . When the PM event occurs on the machine, we should assign another machine for ; here, we can select for processing .(ii)Another situation is that we cannot select another machine for the affected operation, because of the instability of the system. At that situation, we can only choose to keep the assignment machine for the affected operation and start its work after the availability of the affected machine.

4.4. Initialization Heuristic

In the initialization phase, we presented two heuristics, which are presented as follows.

The First Initial Heuristic. The first initial heuristic is very simple and easy to implement, which is named INT-I with the following steps.

Step 1. Perform the following step for times.

Step 2. Randomly generate a particle.

Step 3. Evaluate the new-generated particle and insert it into the current population.

The Second Initial Heuristic. The second initial heuristic is named INT-II, which is given as follows.

Step 1. Generate a particle using the NEH approach [44] and insert it into the initial population.

Step 2. Perform the following step for times.

Step 3. Randomly generate a particle and evaluate the new-generated particle.

Step 4. If the new-generated particle is not equal with any individual in the current population, then insert it into the initial population; otherwise, ignore it.

4.5. Discrete PSO Process

Each particle in the current population updates its status through the following three procedures: learning through its history status, learning through its local best, and learning through the global best found so far.

Similar to [34], the discrete version of PSO is realized as follows.(i)For the process of learning through its history status, we embed the mutation operator in the PSO algorithm. The mutation operators include swap, insert, multiple swap [34], and multiple insert. The multiple insert operator is developed firstly in this study. The detailed steps are as follows. Firstly, randomly produce a position range at [], , where represents the length of the solution. Secondly, insert the element in the position () to the position at (). Thirdly, evaluate the new-generated solution and replace the current solution if a better individual is found.(ii)For the process of learning through its local best and learning through the global best, apply the crossover operator between the two selected solutions. The detailed implementation of the crossover operators is discussed in the following section.

4.6. Crossover Operators

In [45], the authors verified many crossover operators for the regular flowshop (PMX or partially mapped crossover, OP or one point order crossover, TP or two-point order crossover, OX or order crossover, UOB or uniform order based, and several others). The results showed that the offspring generated after crossover tended to be worse than their progenitors on many occasions. In this study, we tested the following crossover operators in HFS with PM environments:(i)PMX or partially mapped crossover;(ii)OP or one point order crossover;(iii)TP or two-point order crossover;(iv)PTL crossover [34].

4.7. ILS-Based Local Search

To further improve the searching ability of the proposed algorithm, we apply the ILS-based local search for the best solution found so far in each iteration. That is, after the three learning processes discussed in the above section, the ILS-based local search will be applied for the best solution for enhanced searching. The detailed steps of the ILS-based local search are given as follows.

Step 1. For the best solution, perform the following steps until the stop condition is satisfied.

Step 2. Destruction phase: randomly generate aposition in the current solution. Delete the corresponding element from the current solution.

Step 3. Construction phase: for the deleted element, perform the following steps.

Step 3.1. For each candidate position in the current solution, insert the deleted element and evaluate the partial solution.

Step 3.2. Select the best position for the deleted element and insert it into the best position.

4.8. Framework of the Proposed Algorithm

In this study, we proposed a hybrid algorithm for solving the HFS problem with PM activity. In the decoding procedure, we select the following rules to decode each solution; in Situation 1, we choose to keep the work of the affected operation and continue its work after the affected machine is available. In Situation 2, we choose to assign another machine for the affected operation.

The flowchart of the proposed algorithm is given as follows.

Step 1. Set the system parameters.

Step 2. Produce the initial population of particles.

Step 3. Evaluate each particle and record the best solution found so far.

Step 4. If the stop condition is satisfied, stop the algorithm. Otherwise, perform the following steps.

Step 5. Perform learning phase.

Step 5.1. Perform the procedure of learning by itself.

Step 5.2. Perform the procedure of learning through its local best.

Step 5.3. Perform the procedure of learning through the global best.

Step 6. ILS-based local search phase: for the best solution found so far, perform the ILS-based local search procedure.

Step 7. Go back to Step 4.

5. Numerical Analysis

The proposed algorithm is coded in C++, on DELL i7 CPU with 16 GB memory. For each instance, we conduct 20 independently runs, and the best, worst, and average values are collected for comparisons.

5.1. Experimental Data

The proposed PSO-ILS algorithm was tested using the variation of the benchmark problems provided by Carlier and Néron [46]. There are 77 instances in Carlier and Néron’s benchmark problems, which range from 10 jobs and 5 stages to 15 jobs and 10 stages. Each instance is represented by a three-number file name. The three numbers are number of jobs, number of stages, and problem structure index, which can be referred in [46]. For simplicity, the variations of the 77 benchmark problems are set with the same name. The variation implementation is implemented as follows.(i)For each instance, run the proposed algorithm without considering any PM activity and get the baseline result.(ii)In each baseline result, at each stage, randomly select a time point at which a machine (hereafter called ) is working.(iii)Select the working machine () and generate a random PM activity duration .(iv)Record the PM activity data, including the PM time window [], and the affected machine .

5.2. Parameter Tuning for PSO

In the canonical PSO algorithm, the parameters are as follows:(i)population size: ;(ii)learning probability from the local best: ;(iii)learning probability from the global best: ;(iv)learning probability by itself: ;(v)crossover operator type;(vi)mutation operator type.

For each instance, we memorized the best solution found by all the compared algorithms and calculated the relative percentage deviation over the best solution for each compared algorithm, which is computed as follows: where is the optimal solution found by the compared algorithm, while is the best solution found by all the compared algorithms. In the comparison results, we just calculated the average relative percentage deviation () for each instance.

5.2.1. Crossover Type

To test the impact of different crossover operators, we implemented five kinds of crossover operators, that is, one-point crossover (OP), two-point crossover (TP), partially mapped crossover (PMX), similar job 2-point crossover (SJ2OX), and PTL crossover operator [34]. The description of the given crossover operators is given in Table 1. The comparisons results of different crossover types are given in Table 2. In Table 2, the instance name is given in the first column, while the following five columns report the values for the five compared algorithms. From the results we can see that the algorithm with PTL crossover operator gets better values for 75 out of 77 instances, except for the two instances, that is, Case 13 and Case 22; for solving the given 77 instances with PM activity, in average, the algorithm with PTL crossover operator obtains a relative better result, which is obviously better than the other four compared algorithms. The following algorithms are SJ2OX, TP, PMX, and OP, respectively.

5.2.2. Crossover Probability

The crossover probability for learning from the local best () and the learning probability from the global best () are critical for the algorithm. In order to test different learning probabilities, we test five kinds of probabilities, which are given in Table 3. The comparison results for different learning probability are given in Table 4. It can be seen from Table 4 that CP-I is the best among the five compared algorithms. That is, the two crossover probabilities and are set to 0.2 and 0.2, respectively.

5.2.3. Mutation Type

To test the impact of different mutation operators, we implemented four kinds of mutation operators, that is, the swap, insert, multiple swap, and multiple insert operators, which are given in Table 5. Table 6 gives the comparison results of different mutation types. It can be seen from Table 6 that the proposed multiple insert mutation operator performs the best among the compared algorithms.

5.2.4. Mutation Probability

To test the impact of different mutation probabilities, we implemented five kinds of mutation probabilities, that is, 0.1, 0.2, 0.5, 0.8, and 0.9, which are given in Table 7. Table 8 gives the comparison results of different mutation probabilities. It can be seen from Table 8 that mutation probability with the value 0.9 performs the best among the compared algorithms.

5.2.5. Population Size

To test the impact of different population sizes, we implemented five kinds of population sizes, that is, 10, 20, 30, 50, and 100, which are given in Table 9. Table 10 gives the comparison results of different population sizes. It can be seen from Table 10 that population size with the value 100 performs the best among the compared algorithms.

5.2.6. The Final Parameters

After the comparison results for each kind of parameter, we can conclude the best parameters for the canonical PSO algorithm, which are given in Table 11.

5.3. Comparisons Analysis

To make a pair comparison with the present efficient algorithms, we coded the following algorithms to solve the HFS problem with PM activity. These compared algorithms include hGA by Ruiz and Maroto [47], IG by Ruiz and Stützle [48], ILS by Dong et al. [31], and PSO by Liao et al. [49]. The parameters for the compared algorithms are set to the same values in their literature, except that the stop condition is set to 20 seconds.

The comparison results for the best values are given in Table 12. It can be seen from Table 12 that for solving the HFS with PM activities, the proposed algorithm obtains all optimal results for 77 benchmark instances, which is obviously better than the other compared algorithms; in average, the proposed algorithm is also better than the other compared algorithms; the proposed PSO-ILS algorithm is better than the canonical PSO algorithm, which also verifies the efficiency of the ILS-based local search; the proposed algorithm is better than the canonical IG algorithm, which shows the exploration ability of the proposed algorithm.

Table 13 reports the comparison results for the average values. It can be seen from Table 13 that the proposed algorithm obtains 74 optimal values out of 77 instances; in average, the PSO-ILS algorithm obtains the best average values, which is obviously better than the other algorithms. The following algorithms are PSO, hGA, ILS, and IG, respectively.

6. Conclusions

In this study, we proposed a hybrid algorithm for solving the HFS with PM activities. In the proposed algorithms, different crossover and mutation operators are applied for the learning procedure. The ILS-based local search procedure is embedded in the proposed algorithm to further improve the searching ability of the algorithm. Variation versions of 77 Carlier and Néron’s benchmark problems are presented to adapt to the realistic industrial horizon. Experimental comparisons with four present algorithms show the efficiency and effectiveness of the proposed algorithm. The future work is to apply the proposed algorithm for solving rescheduling problems in hybrid and flexible environments [5052].

Conflict of Interests

The authors declare that there is no conflict of interests regarding the publication of this paper.

Acknowledgments

This research is partially supported by the National Science Foundation of China under Grant nos. 61104179 and 61174187, the Basic Scientific Research Foundation of Northeastern University under Grant no. N110208001, the Starting Foundation of Northeastern University under Grant no. 29321006, the Science Foundation of Liaoning Province in China (2013020016), and the Science Research and Development of Provincial Department of Public Education of Shandong under Grant no. J12LN39.