Next Article in Journal
Multivariate Symmetric Interpolating Dual Multiwavelet Frames
Previous Article in Journal
On the Existence of Radial Solutions to a Nonconstant Gradient-Constrained Problem
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Optimal Solution to the Two-Stage Hybrid Flow Shop Scheduling Problem with Removal and Transportation Times

Industrial Engineering Department, College of Engineering, King Saud University, P.O. Box 800, Riyadh 11421, Saudi Arabia
*
Author to whom correspondence should be addressed.
Symmetry 2022, 14(7), 1424; https://doi.org/10.3390/sym14071424
Submission received: 10 June 2022 / Revised: 2 July 2022 / Accepted: 8 July 2022 / Published: 11 July 2022

Abstract

:
The two-stage hybrid flow shop scheduling problem with removal and transportation times is addressed in this paper. The maximum completion time is the objective function to be minimized. This scheduling problem is modeling real-life situations encountered in manufacturing and industrial areas. On the other hand, the studied problem is a challenging one from a theoretical point of view since it is NP-Hard in a strong sense. In addition, the problem is symmetric in the following sense. Scheduling from the second stage to the first provides the same optimal solution as the studied problem. This propriety allows extending all the proposed procedures to the symmetric problem in order to improve the quality of the obtained solution. Based on the existing literature and to the best of our knowledge, this study is the first one addressing the removal time and the transportation time in the hybrid flow shop environment simultaneously. In order to solve the studied problem optimally, a heuristic composed of two phases is proposed, and a new family of lower bounds is developed. In addition, an exact Branch and Bound algorithm is presented to solve the hard test problems. These hard instances are unsolved by the proposed heuristic. In order to evaluate the performance of the proposed procedures, an extensive experimental study is carried out over benchmark test problems with a size of up to 200 jobs. The obtained computational results provide strong evidence that the presented procedures are very effective since 90% of test problems are solved optimally within a moderate time of 47.44 s. Furthermore, the unsolved test problems present a relative gap of only 2.4%.

1. Introduction

The Hybrid Flow Shop (HFS) is composed of serial production stages, where each stage contains a set of identical and parallel machines. At least one of the stages contains more than one machine to be considered an HFS. The machines are intended to process a set of jobs consecutively from the first stage to the last one in that order. This is the flow side of the HFS. Each machine in each stage is able to process at most one job at the same time, and a given job is processed by only one machine in each stage. The HFS is a generalization of other interesting shops, including the single machine, the parallel machine and the flow shop. The scheduling problem in an HFS environment is a very interesting scheduling problem encountered in several real-life situations, especially in manufacturing processes such as the electronic ships industry [1], the cable industry [2], and the textile industry [3]. On the other hand, the HFS scheduling problem and several of its variants are shown to be NP-Hard in the strong sense, which constitutes a theoretical challenge. The HFS scheduling problem is extensively studied, and abundant literature is provided [4,5,6,7]. Solving the HFS scheduling problems optimally or approximately is the topic of extensive studies where several algorithms are proposed. These algorithms are the heuristics, metaheuristics and exact procedures. In this context, the reader is referred to [4,5] for more details on the HFS scheduling problems.
Modeling real-life situations accurately over the HFS scheduling problem requires taking into consideration the parameters (restrictions) with high impact as much as possible, including the job release times, setup times, machine unavailability, etc. Taking into consideration these restrictions (release date, setup times, etc.) according to the real situation allows for narrowing the gap between the theory and the practical aspects. In this context, authors in [8] studied an HFS scheduling problem with setup times and proposed a genetic algorithm to solve it efficiently and approximately. The setup time parameter is encountered in an industrial area, where machines require a time duration for their preparation to process jobs. In this case, the setup time is not neglected compared to the processing times. An HFS scheduling problem with lag times and sequence-dependent setup times was addressed in [9]. In order to solve the latter problem approximately, an immune algorithm was proposed and evaluated over an intensive experimental study. In [10], an HFS scheduling problem with multiprocessor tasks was addressed. In this kind of real-life scheduling problem, a job requires more than a machine to be processed. For the latter problem, an efficient genetic algorithm was proposed. An HFS scheduling problem with transportation times was examined in [11]. The transportation time parameter is required in several real-life applications. Indeed, this situation is encountered where the transportation time between the stages is comparable to the processing times and, therefore, cannot be neglected. The latter problem was solved using a Simulated Annealing metaheuristic.
The removal time for a job is the required time to remove a finished processed job from a machine. Removal time is among the encountered real-life parameters (restrictions) in the manufacturing and industrial areas. In these cases, the removal time is comparable to the processing time and cannot be neglected. Thus the removal time is taken into consideration separately from the processing time. This situation occurs, for example, in the steel industry where a produced part is extracted from a mold during a removal time that is more important than the processing time itself. In addition, the removal time restriction is encountered in the bio-process industry, where fermentation techniques are utilized [12]. In some HFS scheduling problems, the transportation time between stages is neglected compared to the processing time. This occurs when the stages are close to each other [13]. In other real-world situations, the transportation time of a job is an important factor and cannot be neglected.
In this study, the two-stage HFS scheduling problem with removal and transportation times between the stages is examined. In this problem, two serial stages with identical parallel machines for each one are used to process a set of jobs. Each job is processed in a machine from the first stage, removed, and transported to the second stage. A machine in the latter stage processes the job, and the processed job is then removed. The makespan (maximum completion time) is the objective function to be minimized.
After exploring much of the presented literature for the HFS problem, to the best of our knowledge, there is no study taking into consideration the removal times and the transportation time simultaneously for an HFS scheduling problem to date. Consequently, the related work literature review will be restricted to HFS scheduling problems with transportation times or removal times.
In this context, the authors of [14] studied the HFS problem with transportation time, sequence setup time and rework. An efficient Enhanced Harmony Search Algorithm was proposed to solve the studied problem. The HFS problem with dynamic transportation waiting time is examined in [15], where a memetic algorithm is proposed to provide a near-optimal solution. An HFS problem with transportation time and setup time is addressed in [16]. In order to solve the latter problem, an effective electromagnetism metaheuristic is presented. In [11], an HFS problem with transportation and setup times is examined with respective objective functions of the total tardiness and total completion time. A simulated annealing metaheuristic is proposed to tackle this problem. The HFS problem with robotic transportation time and release dates is studied in [17]. The makespan is minimized, and an ant colony optimization algorithm, as well as a genetic algorithms, are proposed. The two-stage HFS problem with transportation restrictions is treated in [18]. In the latter problem, the second stage is composed of two identical and parallel machines, while the first stage contains only one machine. The transportation between stages is ensured by a transporter with a capacity of one, and an efficient heuristic algorithm is proposed to determine a near-optimal solution. In [19], an HFS problem with transportation time and batching restrictions is considered, and a polynomial time heuristic is proposed for a particular case. For the general case, a pseudo-polynomial algorithm is presented. In [20], an HFS problem with robots’ transportation and blocking restrictions is considered. An efficient simulated annealing metaheuristic is proposed for the makespan minimization. An extensive experimental study provides strong evidence of the effectiveness and efficiency of the proposed procedure. The two-stage HFS problem with robots’ transportation between stages is addressed in [21]. Two dedicated machines are contained in the first stage, while the second stage has only one machine. A complexity study of the considered problem, as well as some of its particular cases, is performed. For the NP-hard ones, two efficient heuristics are developed.
In [22], an HFS problem with setup and removal times is addressed. Four heuristic algorithms are proposed and assessed over an intensive experimental study, which shows their efficiency. An HFS problem with removal time and precedence constraints is addressed in [23]. In the latter research work, the authors proposed six heuristic algorithms, which are shown to be efficient in a computational study. The authors of [24] examined an HFS problem with setup and removal times. The parallel machines in each stage are unrelated. In order to approximately solve the latter studied problem, a heuristic algorithm is proposed to provide an initial solution. This initial solution is then improved over the application of a simulated annealing metaheuristic. An intensive experimental study shows the efficiency of the proposed algorithm. A real-world HFS scheduling problem with removal time and other restrictions is considered in [12]. An exact algorithm based on a mixed-integer formulation is proposed. This formulation is enriched by new inequalities, and the computational results provide strong evidence that the proposed algorithm is efficient for industrial instances (small size test problems).
According to the existing literature, the HFS scheduling problem with transportation and removal times has not been addressed; thus, the open gap lies in studying this kind of problem and trying to provide efficient procedures to solve it.
In this work, firstly, the studied problem is formally defined, and a set of its interesting properties is established. These properties concern the complexity and the symmetry of the studied problem. Secondly, a new family of lower bounds is proposed. These lower bounds are of two categories. The first category is based on the optimal solution to the parallel machine scheduling problem with release dates and delivery times. The second category is based on the idle machine times. Thirdly, a new two-phase heuristic is proposed. The first phase builds an initial solution and the second phase improves it. The optimal solution to the parallel machine scheduling problem with release dates and delivery times is used in the latter heuristic. Finally, an exact Branch and Bound algorithm is developed. This procedure includes efficient lower bounds and dominance rules, allowing to reduce the size of the search tree. An extensive experimental study is carried out to evaluate the performance and the efficiency of the proposed procedures.
The parallel machine scheduling problem with release dates and delivery times plays a key role in the development of the proposed procedures. For further insight into the latter problem, the readers are referred to [25,26,27,28,29].
The contributions of this study are scientific and practical. These contributions are:
  • To the best of our knowledge, this is the first time the hybrid flowshop scheduling problem with transportation and removal times is addressed.
  • Proposal of new interesting and useful proprieties for the studied problem, allowing the improvement of the solution.
  • Development of a new set of efficient lower bounds.
  • Proposal of a heuristic algorithm that is able to provide the optimal solution or near-optimal solution within an acceptable computational time.
  • Presentation of Branch and Bound exact procedure able to optimally solve hard test problems within an acceptable computational time.
  • Allowing to model real-world manufacturing systems, where the removal and transportation times are not neglected as in the steel industry.
The rest of this paper is organized as follows. The studied scheduling problem is formally defined in Section 2, in addition to the presentation of some of its interesting properties. A family of tight and new lower bounds is the topic of Section 3. In Section 4, a heuristic algorithm, which is composed of two phases, is proposed. The details of an exact Branch and Bound algorithm are presented in Section 5. In order to evaluate the performance of the proposed algorithms, an intensive experimental study is carried out in Section 6. Finally, a conclusion summarizing the main findings and presenting the possible extensions of this work is presented.

2. Problem Statement and Proprieties

This section is intended to define the studied problem and the presentation of some of its relevant proprieties.

2.1. Problem Statement

The two-stage hybrid flow shop scheduling problem with removal and transportation times is stated as follows. A set J = 1 , . . . , n of n jobs has to be processed in a production shop composed of two serial stages S 1 and S 2 . Each stage S i i = 1 , 2 contains a set M i , 1 , , M i , m i of m i identical parallel machines such that n > max m 1 , m 2 . Each job j J is first processed in an available machine from S 1 during p 1 , j . After that, the job is removed from this machine during r m 1 , j . Once removed, the job j J is transported to a buffer belonging to the second stage S 2 during t j . In stage S 2 , an available machine treats the job j during p 2 , j . The removal of job j from this machine takes r m 2 , j units of time. The completed processed job remains in the machine until it is removed and released. The buffer’s capacity is too large to store all the jobs. All the machines and jobs are available for processing from time zero. The processing times p i , j , the removal times r m i , j , and the transportation times t j are assumed to be positive integers and deterministic i = 1 , 2 and j J . Each machine processes at most one job at the same time, and the preemption is not allowed. Each job j J is processed by only one machine in each stage. The main purpose is to determine a feasible schedule σ * that minimizes the maximum completion time (makespan). More precisely, for a feasible schedule σ if s i , j σ is the starting time of job j in stage S i then c i , j σ = s i , j σ + p i , j + r m i , j is its completion time. It is worth mentioning that s i , j σ + p i , j is the completion processing time of job j in stage S i , and at the same time, it is the earliest date to start the removal operation. Since, the machine will not be available until the job j is removed, the removal operation should start as soon as possible (at s i , j σ + p i , j ). Therefore, the makespan, which is denoted C max , is given by the expression: C max σ = max j J c 2 , j σ . In this case, the optimal makespan C max * and the requested optimal schedule σ * satisfy: C max * = C max σ * = min σ Δ C max σ with Δ as the set of feasible schedules.
Using the three-field notation α | β | γ [30], the studied scheduling problem is denoted F 2 P m 1 , P m 2 r m i , j , t j C max . In the latter notation, F 2 refers to a flow shop with two stages and P m 1 , P m 2 are indicating that each stage contains parallel machines. The jobs characteristics’ r m i , j and t j are the removal and the transportation times. The last and third field is reserved for the objective function to be minimized, which is the maximum completion time (makespan) in this study. In the following is a summary of the latter notations.
  • n : number of jobs.
  • m 1 : number of machines in the first stage S 1 .
  • m 2 : number of machines in the second stage S 2 .
  • p i , j : processing time of job j in stage S i ( 1 j n , 1 i 2 ) .
  • r m i , j : removal time of job j in stage S i ( 1 j n , 1 i 2 ) .
  • t j : transportation time of job j ( 1 j n ) .
  • s i , j σ : starting time of job j in stage S i ( 1 j n , 1 i 2 ) relatively to schedule σ .
  • c i , j σ : completion time of job j in stage S i ( 1 j n , 1 i 2 ) relatively to schedule σ .
  • C max σ : makespan of schedule σ .
  • C max * : optimal makespan.
To illustrate the studied problem, the following example is presented.
Example 1.
Consider the instance with n = 5 , and m 1 = m 2 = 2 . The processing times p i , j and the transportation times t j ( i = 1 , 2 and j J ) are presented in Table 1.
Figure 1 presents a feasible schedule for the addressed scheduling problem, relative to the data provided in Table 1.
In Figure 1, job 4 is not removed from machine M 1 , 2 immediately after finishing processing (at time 5). Instead of that, the beginning of the removal operation is postponed until time 7. Therefore, the release of job 4 from machine M 1 , 2 is performed at time 8. Then the removal time is not a part of the processing time for job 4. In addition, within time interval [ 5 , 7 ] , job 4 remains in machine M 1 , 2 and blocks it, i.e., no other job is processed within this time interval. The period [ 5 , 7 ] is a waiting period for removing job 4.

2.2. Proprieties

In this section, two relevant results are presented, where the first one is about the complexity of the current problem. The second result concerns the introduction of another problem called the “symmetric” or “reverse” or “backward” problem relative to the studied problem. These two problems have the same optimal solution, which suggests the systematic investigation of both of them in order to improve the obtained results.

2.2.1. Complexity

In addition to its practical interest, the two-stage hybrid flow shop scheduling problem is a challenging one from a theoretical point of view. This is due to the following lemma (Lemma 1).
Lemma 1.
The problem F 2 P m 1 , P m 2 r m i , j , t j C max is strongly NP-Hard.
Proof. 
The two-stage hybrid flow shop problem ( F 2 P m 1 , P m 2 C max ) is strongly NP-Hard [31]. Since, F 2 P m 1 , P m 2 C max is a particular case of F 2 P m 1 , P m 2 r m i , j , t j C max r m i , j = t j = 0 , then F 2 P m 1 , P m 2 r m i , j , t j C max is strongly NP-Hard. □

2.2.2. Symmetry

Definition 1.
Naturally, F 2 P m 1 , P m 2 r m i , j , t j C max has a reverse problem, which is obtained by inverting the flow of the jobs from stage S 2 toward stage S 1 . Formally, the reverse problem is obtained by setting up: First stage S 1 R = S 2 , second stage S 2 R = S 1 , the processing, removal, and transportation times p 1 , j R = r m 2 , j , r m 1 , j R = p 2 , j , p 2 , j R = r m 1 , j , r m 2 , j R = p 1 , j , t j R = t j , M 1 , k R = M 2 , k 1 k m 2 , and M 2 , k R = M 1 , k 1 k m 1 . The studied problem ( S 1 to S 2 ) is the forward problem and the reverse problem ( S 2 to S 1 ) is the backward problem. The reverse problem is denoted F 2 P m 2 , P m 1 r m 1 , j R , t j C max and defined as the symmetric of F 2 P m 1 , P m 2 r m i , j , t j C max .
In Figure 2, the reverse feasible schedule for the reverse (backward) problem is presented for Example 1.
The studied scheduling problem and its corresponding problem present the following interesting propriety.
Proposition 1.
F 2 P m 1 , P m 2 r m i , j , t j C max and F 2 P m 2 , P m 1 r m 1 , j R , t j C max are equivalent, i.e., any feasible schedule for one of these two problems is also a feasible schedule for the other problem with equal makespan.
Proof. 
Consider σ as a feasible schedule for F 2 P m 1 , P m 2 r m i , j , t j C max with a maximum completion time C max . All the allocations of jobs to the machines and their sequences are kept as in σ . The jobs are right-shifted until the last scheduled ones in the machines of S 2 reach C max . Therefore, a feasible schedule σ R for the backward problem is obtained. The timeline scale t is transformed to a new one: t R = C max t . According to the construction of σ R , the critical paths for σ R and σ are the same. Thus, σ R and σ have the same makespan. The same reasoning holds for the backward problem, and the equivalency of the two problems is proven. □
The latter proposition yields the following result.
Corollary 1.
Optimal solutions for F 2 P m 1 , P m 2 r m i , j , t j C max and F 2 P m 2 , P m 1 r m 1 , j R , t j C max are the same.
Proof. 
Let σ * be an optimal schedule for F 2 P m 1 , P m 2 r m i , j , t j C max with optimal makespan C max * . According to the latter proposition (Proposition 1), the reverse schedule for the backward problem σ R * has the same makespan C max * . Assume that there is another schedule σ R ( σ R σ R * ) for the backward problem with better solution C ( C < C max * ). Based on the latter proposition (Proposition 1), the corresponding schedule of the forward problem has the same makespan C. This means that there is a schedule σ for F 2 P m 1 , P m 2 r m i , j , t j C max with makespan C < C max * . This contradicts the fact that C max * is the optimal makespan for the forward problem. Conversely, following the same reasoning for the backward problem, an optimal schedule for the backward problem induces an optimal schedule for the forward problem. □
Remark 1.
Consequently, the reverse scheduling problem F 2 P m 2 , P m 1 r m 1 , j R , t j C max is automatically explored in order to provide a better solution.

3. Lower Bounds

In this section, two types of lower bounds are proposed for the studied scheduling problem. The first type consists in relaxing the capacity of a stage and keeping the other one as it is. This means that the number of machines in a selected stage is assumed to be infinite while the capacity of the other one is kept as it is. The second type of lower bound considers an estimation of the minimum idle machine times based on the Shortest Processing Time rule (SPT). Prior to the presentation of the lower bounds, the following notations are adopted.
For each stage S i ( i = 1 , 2 ) and each job j J , a release date r i , j and a delivery time q i , j are defined as follows.
r 2 , j = p 1 , j + r m 1 , j + t j r 1 , j = 0 , and q 1 , j = t j + p 2 , j + r m 2 , j q 2 , j = 0 ,

3.1. A Stage Capacity Relaxation Based Lower Bound

A relaxation of F 2 P m 1 , P m 2 r m i , j , t j C max consists in assuming that the number of machines in the second stage S 2 is infinite. This is the capacity relaxation of S 2 . Therefore, an arriving job to stage S 2 is processed and removed immediately without waiting for an available machine. This means that after arrival, a job j leaves S 2 exactly after p 2 , j + r m 2 , j unites of time. Consequently, the obtained capacity relaxed problem in stage S 1 is a parallel machine scheduling problem with release dates and delivery times P m 1 r j , q j C max , where the release date r j = 0 , the processing time p j = p 1 , j + r m 1 , j , and the delivery time q j = t j + p 2 , j + r m 2 , j j J .
Thus, a lower bound for the already defined problem P m 1 r j , q j C max , is also a lower bound for the F 2 P m 1 , P m 2 r m i , j , t j C max . Trivially, an optimal value C max * , 1 for the problem P m 1 r j , q j C max is a lower bound for the studied problem. Then a lower bound for the problem F 2 P m 1 , P m 2 r m i , j , t j C max is expressed as follows.
L B 1 = C max * , 1
The same reasoning is applied and the stage S 1 capacity relaxation yields a parallel machine problem P m 2 r j , q j C max on the second stage S 2 . This problem is characterized by a release date r j = p 1 , j + r m 1 , j + t j , the processing time p j = p 2 , j + r m 2 , j , and a delivery time q j = 0 j J .
Therefore, if C max * , 2 is the optimal makespan of P m 2 r j , q j C max , then a lower bound for the studied problem is given by:
L B 2 = C max * , 2
Remark 2.
The presented exact Branch and Bound algorithm in [25] is used to solve the parallel machine scheduling problem P m r j , q j C max . Since the P m r j , q j C max problem is NP-Hard, it might happen that within a time limit, the latter problem is not solved optimally. In this case, the best obtained lower bound while solving the problem is picked instead of C max 1 or(and) C max 2 in the expressions of L B 1 or(and) L B 2 .

3.2. An Idle Time-Based Lower Bound

Due to the flow shop constraint, idle machine times are observed in the second stage S 2 . The current lower bound is based on an estimation of the minimum idle machine time. This lower bound is presented in the following proposition.
Proposition 2.
If
  • t j ¯ is the j t h element in the increasing sorted list of t j for j J ,
  • I d m 2 is the sum of completion times of the m 2 jobs with smallest p 1 , j + r m 1 , j scheduled on stage S 1 according to the SPT rule,
    then the problem F 2 P m 1 , P m 2 r m i , j , t j C max has a lower bound expressed as follows.
    L B I d 2 = I d m 2 + j = 1 m 2 t ¯ j + j J p 2 , j + r m 2 , j m 2
Proof. 
Consider an optimal schedule σ * with optimal makespan C max * . For this optimal schedule, let s k be the starting processing time of the first processed job j k in machine M 2 , k 1 k m 2 . Thus,
s k + P R k C max *
where P R k is the total processing and removal times in machine M 2 , k . In addition,
s k c 1 , j k + t j k
where c 1 , j k is the completion time of job j k in stage S 1 . According to (2), k = 1 m 2 s k k = 1 m 2 c 1 , j k + k = 1 m 2 t k ¯ . Furthermore, k = 1 m 2 c 1 , j k I m 2 [32]. Then,
k = 1 m 2 s k I m 2 + k = 1 m 2 t k ¯
Based on (2) and (3), we have I m 2 + k = 1 m 2 t k ¯ + j J p 2 , j + r m 2 , j k = 1 m 2 s k + P R k m 2 C max * . Thus, I d m 2 + k = 1 m 2 t ¯ j + j J p 2 , j + r m 2 , j m 2 C max * , which ends the proof. □
Corollary 2.
Based on the symmetry of the studied problem, the following expression is a valid lower bound for the problem F 2 P m 1 , P m 2 r m i , j , t j C max .
L B I d 1 = I d m 1 + k = 1 m 1 t ¯ j + j J r m 1 , j + p 1 , j m 1
where I d m 1 is the sum of completion times of the m 1 jobs with smallest p 2 , j + r m 2 , j scheduled on stage S 2 according to the SPT rule for the backward problem.
An immediate trivial result is given in the following corollary.
Corollary 3.
A valid lower bound for F 2 P m 1 , P m 2 r m i , j , t j C max is expressed as follows.
L B = L B 1 , L B 2 , L B I d 1 , L B I d 2

4. Heuristic Algorithm

A heuristic algorithm is proposed in this section. This heuristic is mainly based on the optimal solution to the parallel machine scheduling problem with release dates and delivery times ( P m r j , q j C max ). Two consecutive phases comprise this heuristic. The first phase is a constructive one allowing to obtain an initial solution. The second phase is an improvement phase that might enhance the initial solution. This section starts by presenting a useful result relating two parallel machines scheduling problems, where the respective objective functions are the maximum completion time ( C max ) and the maximum lateness ( L max ).
Proposition 3.
The two scheduling problems P m r j , q j C max , P m r j , d j L max are equivalents. In other words, these two problems have the same optimal solution.
Proof. 
The P m r j , q j C max problem is transformed into the P m r j , d j L max problem by setting for each job j  J a due date d j = C q j , where C is an upper bound for C max * (optimal solution). Conversely, starting from the P m r j , d j L max problem and setting D = max j J d j , then, naturally, a delivery time for each job j J is given by q j = D d j . If s j denotes the starting time of the job j in a feasible schedule, then the maximum lateness satisfies L max = max j J s j + p j d j = max j J s j + p j D + q j = max j J s j + p j + q j D = C max D . Therefore,
L max = C max D .
In the sequel, the first phase of the proposed heuristic is presented over the following pseudo-code.
PHASE I: Initial solution
I.1
Initialization: m = m 1 , r j = 0 , p j = p 1 , j + r m 1 , j , and q j = t j + p 2 , j + r m 2 , j j J .
I.2
Solve the obtained problem P m r j , q j C max .
I.3
Collect the completion time c 1 , j for each j J , of the solution to (I.2).
I.4
Set m = m 2 , r j = c 1 , j + t j , p j = p 2 , j + r m 2 , j , and q j = 0 j J .
I.5
Solve the obtained problem P m r j , q j C max .
I.6
For each j J , Set s 2 , j as the starting processing time of the solution in (I.5).
I.7
Set U B F = max j J s 2 , j + p 2 , j + r m 2 , j .
The inputs of phase one are p 1 , j , p 2 , j , r m 1 , j , r m 2 , j , t j , m 1 , and m 1 ( 1 j n ) . The output is an initial feasible solution. The first phase consists in consecutively solving two parallel machine scheduling problems P m r j , q j C max such that the flow constraint is satisfied. In other terms, a job cannot start processing in the second stage S 2 before completing processing and removing in the first stage S 1 and before being transported to stage S 2 . The inputs for the first problem P m 1 r j , q j C max are presented in (I.1). These inputs state that the delivery time q j takes into account the transportation time as well as the processing and the removal times in stage S 2 ( q j = t j +   p 2 , j + r m 2 , j ). This is the minimum elapsed time after leaving stage S 1 . The solution to P m 1 r j , q j C max (I.2, I.3) provides a feasible schedule in which the completion times are denoted c 1 , j . The inputs for the second parallel machine problem are displayed in (I.4). The flow constraint is satisfied by setting the release dates for P m 2 r j , q j C max as r j = c 1 , j + t j . This is the minimum duration to reach S 2 after exiting S 1 . The resolution of the second parallel machine problem is performed in (I.5). These two feasible schedules allow obtaining a feasible one for the problem F 2 P m 1 , P m 2 r m i , j , t j C max by concatenating them. There are no contradictions since r j = c 1 , j + t j . The value of the upper bound U B F (upper bound for the forward problem) is trivially obtained in steps (I.6, I.7).
Once an initial feasible solution is obtained, the improvement phase starts. A pseudo-code of this phase is presented as follows.
PHASE II: Improvement phase
II.1
Set m = m 1 , r j = 0 , p j = p 1 , j + r m 1 , j , and d j = s 2 , j t j j J .
II.2
Solve the problem P m r j , d j L max .
II.3
Set c 1 , j ( j J ) as the completion time of the solution in (II.2).
II.4
If L max * = 0 then go to (II.10), Else U B F : = U B F + L max * .
II.5
Set m = m 2 , r j = c 1 , j + t j , p j = p 2 , j + r m 2 , j , and q j = 0 j J .
II.6
Solve the problem P m r j , q j C max .
II.7
For each j J set s 2 , j as the starting time for the solution in (II.6).
II.8
If C max * < U B F then Set U B F : = C max * .
II.9
Go to (II.1).
II.10
STOP.
It is worth mentioning that the input of phase two is the already obtained initial solution in phase one, and the output is an improved solution. The current phase is intended to enhance the initial solution. This is performed by iteratively visiting each time stage and keeping the other one as it is. The schedule in the visited stage is modified without contradiction with the fixed schedule in the other stage. This guarantees a feasible schedule for the studied problem at the end of each iteration. At the beginning of this phase, the schedule in the second stage S 2 is maintained, and in the first stage S 1 the due date d j of each job is set to d j = s 2 , j t j where s 2 , j are the starting time in the schedule of S 2 . Thus, any new schedule in S 1 does not contradict the one in S 2 (II.1). A parallel machine scheduling problem with lateness as the objective function P m r j , d j L max is then solved (II.2). Consequently, the optimal lateness satisfies L max * 0 , and two cases have to be considered. The first case is obtained when L max * = 0 , where no enhancement is detected and the improvement phase is halted. The second encountered case is for L max * < 0 , where an improvement is obtained and the new upper bound’s value is readjusted as: U B : = U B + L max * (II.3). In the latter case, the procedure is to be continued, and the second stage is visited by fixing the already obtained schedule in S 1 . A new parallel machine problem is obtained in S 1 (II.6), with inputs as cited in (II.5). The release dates in S 2 are set r j = c 1 , j + t j where c 1 , j are the completion times in S 1 . This allows to avoid any contradiction with the new obtained schedule in S 2 after solving the problem P m r j , q j C max (II.6). If the obtained optimal makespan C max * satisfies C max * < U B F , then an improvement is detected and the upper bound is readjusted as U B F : = C max * (II.8). The procedure is then restarted from the first stage S 1 (II.9). The whole procedure is halted when L max * = 0 .
Because of the symmetry of the studied problem, the current heuristic is applied to the reverse (backward) problem, and the obtained upper bound is denoted U B R . Therefore, the resulting final upper bound after exploring the studied problem and its reverse is:
U B = min U B F , U B R
Remark 3.
The main component of the latter heuristic is the resolution of the two NP-Hard problems P m r j , q j C max and P m r j , d j L max . This is obtained by running the proposed exact algorithm in [25]. In the case where an optimal solution is not reached within a prefixed limit time, the best upper bound (best lateness) and the corresponding feasible schedule are considered.

5. Exact Procedure

In the previous sections, a set of lower bounds and a heuristic algorithm are proposed. Obviously, if the values of the heuristic and the lower bounds are equal, then the optimal solution is reached. In the other case, an exact procedure is proposed to find an optimal solution. Clearly, the heuristic and the lower bounds are helpful in narrowing the search interval for the exact procedure. In this study, the Branch and Bound (B&B) algorithm is the exact procedure adopted. The different components of the proposed B&B algorithm are detailed in the sequel.

5.1. Solutions Representation

The solution representation is the first step in the B&B algorithm, and the B&B efficiency is strongly related to this step. In this context, if σ is a feasible schedule in the first stage S 1 then a parallel machine scheduling problem P m 2 r j C max is systematically induced in the second stage. The parameters of this P m 2 r j C max problem are the release dates, given by r j = c 1 , j σ + t j where c 1 , j σ is the completion time of job j relative to the feasible schedule σ in the first stage. In addition, for the same problem, the processing times are expressed as p j = p 2 , j + r m 2 , j for each job j J . Clearly, the optimal solution α σ * of the P m 2 r j C max problem allows obtaining a feasible solution for the studied problem F 2 P m 1 , P m 2 r m i , j , t j C max . This is performed by concatenating the two feasible solutions σ and α σ * . Therefore, solving the F 2 P m 1 , P m 2 r m i , j , t j C max problem is equivalent to determining, in the first stage, a feasible schedule σ * satisfying C _ _ σ * = min σ Γ C _ _ σ , where Γ is the set of all feasible schedules in the first stage, and C _ _ σ the optimal makespan of the P m 2 r j C max problem quoted above. In addition, a feasible schedule σ Γ is represented throughout a permutation σ 1 , σ 2 , , σ n of n jobs, where the respective starting times s σ i and s σ j of the jobs σ i and σ j , respectively, satisfy s σ i s σ j for 1 i < j n . Thus, a feasible solution to the studied problem is represented by a permutation of the n jobs.

5.2. Branching Strategy

In the search tree associated with the B&B algorithm, any node at level k is denoted N k . In this node, let σ N k be a partial schedule of k jobs in the first stage. It is worth mentioning that the partial schedule σ N k is explicitly represented throughout a partial permutation σ 1 , σ 2 , , σ k of the k scheduled jobs in node N k . The n k remaining unscheduled jobs at node N k are considered the descendants. Therefore, from node N k , the branching consists of selecting a job j 0 from the set of unscheduled jobs and creating a new node N k + 1 represented over the partial permutation σ 1 , σ 2 , , σ k , j 0 . Clearly, the branching process from node N k results in n k nodes at level k + 1 . Consequently, at level n 1 , a feasible schedule is obtained in the first stage S 1 . Naturally, a parallel machine scheduling problem with release dates P m 2 r j C max is obtained in the second stage. For the latter problem, r j = c 1 , j σ N n 1 + t j where c 1 , j σ N n 1 is the completion time of job j relatively to the feasible schedule σ N n 1 . The exploration of the B&B search tree is performed using the first strategy.

5.3. Bounding Strategy

In this section, two lower bounds and a polynomial heuristic algorithm are proposed for each node. Useful notations and definitions are given as follows. A node in the search tree is denoted N with N N 0 , where N 0 is the root node. The set of the scheduled and removed jobs at node N is denoted as J S , and the set of unscheduled job(s) is J U S = J \ J S . Let c 1 , j be the completion time of job j J S and also let u i be the availability of machine M 1 , i 1 i m 1 contained in the first stage after scheduling all j J S . Without loss of generality, assume that the machines’ availabilities in the first stage are sorted in increasing order : u 1 u 2 u m 1 .

5.3.1. First Stage Relaxed Capacity-Based Lower Bound

If the number of machines in the first stage is assumed to be infinite (capacity relaxation), then an unscheduled job finishes processing at time u 1 + p 1 , j + r m 1 , j + t j . This is the time for job j to start processing in the second stage. Clearly, a scheduled job j J S is ready to be processed in the second stage at time r j = c 1 , j + t j . Consequently, in the second stage, a parallel machine scheduling problem P m 2 r j C max with release dates is obtained. The processing times p j and the release dates r j for the latter problem are expressed as follows.
p j = p 2 j + r m 2 , j j J r j = u 1 + p 1 j + t j if j J U S r j = c 1 j + t j if j J S
Clearly, any lower bound for the latter problem P m 2 r j C max is a lower bound at node N. The first lower bound is based on the following result.
Proposition 4.
If A is a subset of jobs A J such that A m 2 , and r ¯ j ( A ) denotes the j t h release date in the increasing sorted order set r j , j A then
L B N 1 ( A ) = k = 1 m 2 r ¯ j ( A ) + j A p 2 , j + r m 2 , j m 2 ,
is valid lower bound for the obtained sub-problem at node N.
Proof. 
Let C max * be the optimal makespan for the problem P m 2 r j C max . For a machine M 2 , i i = 1 , 2 , , m 2 , let t 2 , i be the starting time of the first processed job. The time in each machine M 2 , i is subdivided into total processing and removing P i ( A ) , and idle time I i ( A ) . Clearly,
t 2 , i + I i ( A ) + P i ( A ) C max * for i = 1 . m 2
Thus,
k = 1 m 2 t 2 , i + k = 1 m 2 I i ( A ) + k = 1 m 2 P i ( A ) m 2 C max *
Since k = 1 m 2 r ¯ j ( A ) k = 1 m 2 t 2 , i , k = 1 m 2 P i ( A ) = k = 1 n p 2 , j + r m 2 , j and based on (8), the following inequality holds: k = 1 m 2 r ¯ j ( A ) + k = 1 m 2 p 2 , j + r m 2 , j m 2 C max * . This ends the proof. □
If all the subsets A J , such that A m 2 are explored, then L B N 1 ( A ) might be improved and L B N 1 = max A J ; A m 2 L B N 1 ( A ) is a valid lower bound. In this case, an exponential number of subsets has to be explored, which is out of reach. However, only a polynomial number of subsets has to be explored according to the following proposition.
Proposition 5.
A valid lower bound at node N is given by L B N 1 = max A J ; A m 2 L B N 1 ( A ) . This lower bound has a complexity of O ( n log m 2 ) .
Proof. 
Trivially, r ¯ m 2 ( A ) { r m 2 , r m 2 + 1 , , r n } with r i the i t h member of the increasing sorted list r j , j J . If A k ( k = m 2 , , n ) denotes a subset of J satisfying
L B N 1 ( A k ) = max A J : r ¯ m 2 ( A ) = r k L B N 1 ( A )
then clearly L B N 1 = max m 2 k n L B N 1 ( A k ) . Let g ( . ) be a function on the job subsets defined by g ( A ) = k = 1 m 2 r ¯ j ( A ) + j A p 2 , j + r m 2 , j with A J and A m 2 . Thus, g ( A k + 1 ) = g ( A k ) + r k + 1 r j k p 2 , j k + r m 2 , j k , k = m 2 , , n 1 , and j k = arg min j A k ( r j + p 2 , j + r m 2 , j ) . Based on the latter result, g ( A m 2 ) needs O ( n ) time to be computed. Knowing g ( A k ) , the main effort for the computation of g ( A k + 1 ) lies on the determination of the job j k . The determination of j k requires at most O ( log m 2 ) time. Based on the two previous observations, the computation of g ( A k ) for k = m 2 , , n is performed in O ( n log m 2 ) time. □

5.3.2. Lower Bound Based on the Machines’ Availabilities

At node N of the search tree, some jobs are already scheduled, and then at the first stage, a parallel machine problem is induced. This parallel machine problem P , N C i n c q j C max is defined on the set of unscheduled jobs J U S . In addition, the machines are subject to availabilities constraints and the jobs are characterized by their delivery times. The availability v i of machine M 1 , i i = 1 , 2 , , m 2 is the completion time of the last scheduled job on it (if not, v i = 0 ). For a job j J U S , the delivery time is q j = t j   + p 2 , j + r m 2 , j and the processing time is p j = p 1 , j + r m 1 , j . Without loss of generality, the availabilities are assumed to satisfy v 1 v 2 v m 1 . Clearly, any lower bound for the problem P , N C i n c q j C max is a lower bound at node N. It is worth mentioning that, in some cases, less than m 1 machines are required in an optimal schedule to process the jobs. This is basically because of the the availability constraints. In order to bound the number of the utilized machines in an optimal schedule, the following result is recalled [33].
Proposition 6
([33]). Let U B be an upper bound on the optimal makespan of the P , N C i n c q j C max problem. Then, the number of utilized machines m in an optimal schedule is bounded as follows.
m l ( J U S ) m m u ( J U S ) ,
with:
  • m l ( J U S ) = j J U S p 1 , j + r m 1 , j U B v 1 q ¯ 1 ( J U S ) where q ¯ 1 ( J U S ) = min j J U S q j .
  • m u ( J U S ) is the smallest k ( k = 1 , , m 1 1 ) satisfying v k + 1 + min j J U S ( p 1 , j + r m 1 , j + q j ) > U B . Otherwise, m u ( J U S ) = m 1 .
At this stage, the second lower bound is presented in the following proposition.
Proposition 7.
Let A J U S be a subset of jobs and assume that m machines are used in an optimal schedule, then a valid lower bound is expressed as follows.
L B N 2 ( A , m ) = 1 i m v i + j A p 1 , j + r m 1 , j + 1 k m q ¯ k ( A ) m ,
where q ¯ k ( A ) is the k t h member of the set q j , j A sorted in increasing order.
Proof. 
For an optimal schedule with optimal makespan C max * that uses m machines, the first processed jobs in each machine starts at t 1 , i i = 1 , 2 , , m . The last scheduled jobs in each machine has a delivery time q 1 , i ( A ) . If P i ( A ) is the total load in M 1 , i , then t 1 , i + P i ( A ) + q 1 , i ( A ) C max * and i = 1 , m t 1 , i + i = 1 , m P i ( A ) + i = 1 , m q 1 , i ( A ) m C max * . Since 1 i m v i 1 i m t 1 , i , 1 i m P i ( A ) = j A p 1 , j + r m 1 , j , and 1 k m q ¯ k ( A ) 1 i m q 1 , i ( A ) , then 1 i m v i + j A p 1 , j + r m 1 , j + 1 k m q ¯ k ( A ) m C max * , which ends the proof. □
Clearly, L B N 2 ( m ) = max A J U S L B N 2 ( A , m ) is a valid lower bound at node N. To compute L B N 2 ( m ) , a polynomial number of subsets A has to be explored. This is the content of the following result.
Proposition 8.
L B N 2 ( m ) is a polynomial valid lower bound with a complexity O ( n log m ) .
Proof. 
The proof is conducted as in Proposition 5, where:
  • q ¯ k ( A ) replaces r ¯ j ( A )
  • p 1 , j + r m 1 , j replaces p 2 , j + r m 2 , j
  • i = 1 , m v i is a constant.
 □
An immediate consequence is the following result.
Corollary 4.
L B N 2 = min m l ( J U S ) m m u ( J U S ) L B N 2 ( m ) ,
is a valid lower bound at node N with complexity O ( m 1 n log m 1 ) .
Proof. 
Immediate. □
Clearly,
L B N = max L B N 1 , L B N 2 ,
is a lower bound at node N.

5.3.3. Upper Bounding Strategy

A greedy polynomial heuristic algorithm HL is computed at node N N 0 . This heuristic algorithm is based on a priority list. In this HL heuristic, the available unscheduled job with the largest p 2 , j + r m 2 , j is scheduled in the most available machine in the first stage. The scheduling in the second stage is performed after all the jobs are scheduled in the first stage. In the second stage, among the unscheduled and available jobs, the one with the largest p 2 , j + r m 2 , j is scheduled in the first available machine in the second stage.
The following pseudo-code presents the main steps of HL.
HL Heuristic
Phase 1—Scheduling in the first stage S 1
1.1. Set V : = J U S .
1.2.Schedule in the first stage the job j J U S with the largest p 2 , j + r m 2 , j in the most available machine.
1.3. Set V : = V \ { j } .
1.4. If  V Ø   then   go to  Step  1.2.
Phase 2—Scheduling in the second stage S 2
2.1. Set  a release date  r j = c 1 , j for each job j J   ( c 1 , j completion time of j in the first stage  S 1 ).
2.2.Set V : = J .
2.3.Schedule an available job j V with the largest p 2 , j + r m 2 , j in the most available machine in the second stage.
2.4. Set V : = V \ { j } .
2.5. If V = Ø Thengo to Step2.6, Elsego to Step2.3.
2.6. STOP.
The main computational effort in HL is sorting the jobs according to their non-increasing order of p 2 , j + r m 2 , j , which requires O ( n log n ) time.

5.4. Additional Improvements

Additional improvements are proposed for the B&B algorithm in order to reduce the search tree size and, therefore, shorten the computational time. Among these improvements is a set of dominance rules. In addition, based on the symmetric propriety of the studied problem, the backward problem is systematically explored. In this context, the B&B algorithm is extended to the backward problem. These two main improvements are the respective topics of the two next subsections.

5.4.1. Dominance Rules

In order to eliminate additional nodes from the B&B search tree, dominance rules are proposed. Indeed, some nodes are shown to be dominated by others, and in this case, there is no need to explore them. In this work, the dominance rules presented in [34] are extended to the studied problem F 2 P m 1 , P m 2 r m i , j , t j C max . More precisely, the unscheduled jobs J U S = { j 1 , j 2 , . . . , j K } at node N are the candidates to be branched in the next step of exploration. In addition, if σ N = σ 1 , σ 2 , . . . , σ k is the partial schedule at node N then,
  • If there are two jobs j k J U S and j k + 1 J U S that have the same characteristics: p 1 , j k = p 1 , j k + 1 , r m 1 , j k = r m 1 , j k + 1 , t j k = t j k + 1 , p 2 , j k = p 2 , j k + 1 , and r m 2 , j k = r m 2 , j k + 1 , then the two nodes represented, respectively, by partial schedules σ 1 , σ 2 , . . . , σ k , j k and σ 1 , σ 2 , . . . , σ k , j k + 1 are the same and one of them should be eliminated.
  • If v 1 = v 2 , then the two nodes represented, respectively, by partial schedules σ 1 , σ 2 , . . . , σ k , j k , j k + 1 and σ 1 , σ 2 , . . . , σ k , j k + 1 , j k are the same, and one of them should be eliminated. This dominance rule is based on the symmetric availability of the two first machines ( v 1 = v 2 ) .

5.4.2. Systematical Forward-Backward Procedure

Due to the symmetry of the studied problem (as mentioned in Proposition 1, the forward and the backward problems are investigated systematically. This is performed in order to obtain better results. In this context, the B&B algorithm is applied for the forward and the backward problems consecutively and iteratively. The obtained result for one of problems is the input for the other one. A time limit is set up for the B&B algorithm to find an optimal solution. If the B&B fails, then it moves to the other problem. This iterative procedure is cyclic, and it is halted if there is no improvement for the lower bounds and upper bounds or the optimal solution is not reached.

6. Computational Results

In order to evaluate the performance and the efficiency of the proposed procedures, an extensive experimental study on benchmark test problems was carried out. All the procedures were coded in C and implemented in a Pentium IV 2.8GHz Personal Computer with 1GBRAM.

6.1. Test Problems

In this study, the test problems are selected from an existing one for the hybrid flow shop environment [35]. These data are extended to include the transportation and removal times. Therefore, the number of jobs n and the number of machines in both stages ( m 1 , m 2 ) are given as follows.
  • The number of jobs n 10 , 20 , 30 , 40 , 50 , 100 , 150 , 200 .
  • The number of machines in both stages ( m 1 , m 2 ) ( 2 , 2 ) , ( 2 , 4 ) , ( 4 , 2 ) , ( 4 , 4 ) .
Recall that in this study the transportation and removal times are not neglected compared to the processing times. Two cases are considered: either the transportation and removal times are similar to the processing times or they are more important (double) than the processing times. To generate test problems satisfying the two previous cases, the processing times are set as:
  • p 1 , j and p 2 , j are randomly and uniformly generated in [ 1 , 20 ] .
Three positive integers a, b, c are assigned, respectively, to removal time in the first stage r m 1 , j , transportation time t j , and removal time in the second stage r m 2 , j . In addition, a , b , c { 20 , 40 } . Following the latter notations, the removal time in the first stage r m 1 , j , transportation time t j , and removal time in the second stage r m 2 , j are generated as follows.
  • The removal times in the first stage r m 1 , j are randomly and uniformly generated in [ 1 , a ] .
  • The transportation times t j are randomly and uniformly generated in [ 1 , b ] .
  • The removal times in the second stage r m 2 , j are randomly and uniformly generated in [ 1 , c ] .
If, for example, a = 20 then the removal time in the first stage is compared to the processing times, and if a = 40 , then the removal time in the first stage is more important than the processing times. This remark holds for t j and r m 2 , j . For each combination, n , m 1 , m 2 , a, b, and c, 10 test problems are generated, and a set of 2560 test problems is obtained.

6.2. Performance of the Proposed Procedures

At this stage, it is worth recalling that three kinds of procedures are proposed in this work. These procedures are the lower bounds, the heuristic algorithm, and the B&B procedure. The roles of these procedures are complementary. Indeed, for each test problem, the lower bound L B is computed first. After that, and in a second phase, the heuristic algorithm is executed, and a feasible solution with upper bound value’s U B is obtained. If L B = U B , then an optimal solution is reached. In the other case where L B < U B , the B&B is executed with input U B . This means that the B&B algorithm takes advantage of the heuristic algorithm and does not start from scratch. Since the studied problem is NP-Hard, a time limit is set for the B&B algorithm. If an optimal solution is not reached within this time limit, then the lower bound is utilized to calculate the relative gap for a test problem. The expression of the relative gap is presented as follows.
r g = U B L B L B × 100
Consequently, the presented experimental results concern the three procedures simultaneously.
The utilized parameters to assess the performance of the proposed algorithms are:
  • [ a : b : c ] : The rate parameters, which means that r m 1 , j U [ 1 , a ] , t j U [ 1 , b ] , and r m 2 , j U [ 1 , a ] .
  • S R : Number of test problems solved at the root node ( U B = L B : (4), (5)).
  • S B B : Number of test problems solved by the B&B algorithm and not solved at the root node.
  • U N : Number of unsolved test problems by the heuristic algorithm and B&B procedure.
  • % S : Percent of solved test problems.
  • M T : Mean computational time (in seconds) for solving the test problems.
  • M G : The average relative gap of unsolved instances.
  • M a x G : The maximum relative gap of the unsolved instances.
It is worth mentioning that the performance measure S R assesses the performance of both the heuristic algorithm and the lower bound. Indeed, a test problem is optimally solved using the heuristic algorithm if L B = U B . If a test problem is not optimally solved using the heuristic algorithm, then the B&B algorithm is activated, and the performance measure S B B assesses the efficiency of the B&B algorithm. The parameter % S measures the performance of the combined three procedures (lower bound, heuristic algorithm, and the B&B). The computational time solving the test problems is an important parameter that should be taken into account while evaluating the performance of an algorithm; this parameter is M T . For the unsolved test problems, the mean relative gap M G is an interesting parameter showing the efficiency of the proposed procedures. Indeed, if M G is relatively small, then the proposed procedure is not providing the optimal solution but a near-optimal solution, which is very close to the optimal solution.
The experimental results are reported in Table 2, Table 3, Table 4, Table 5, Table 6 and Table 7. More precisely, Table 2 is presenting the overall results. In Table 3, the impact of the number of jobs n on the performance of the proposed procedures is displayed. The effect of the machines’ distribution ( m 1 , m 2 ) on the efficiency and performance of the developed algorithms is presented. Table 5 presents the results considering the simultaneous impact of n, m 1 , and m 2 on the performance of the presented procedures. The effect of the rates [ a : b : c ] on the behavior of the proposed procedures is presented in Table 6.
A summary of the general experimental results is displayed in Table 2.
Based on Table 2, one can observe that the percentage of solved test problems at the root node is 66.02 % (1960 out of 2560). This is evidence of the efficiency of the proposed lower bounds and the heuristic algorithm. Furthermore, the B&B procedure is able to solve 23.63 % (605 out of 2560) of the test problems and 77.56 % of the unsolved test problems (605 out of 870 unsolved test problems at the root node). Solving a test problem requires on average only 47.44 s, which is a moderate computational time. In addition, the unsolved test problems present an average relative gap of 2.4 % . All the presented results provide evidence of the efficiency and the effectiveness of the proposed procedure in solving even large size instances (up to 200 jobs) in a moderate CPU time.
The effect of the number of jobs on different results is presented in Table 3.
Based on Table 3 and as expected, for n = 10 , all the test problems were solved even if approximately 50 % (159 out of 320) were considered using the B&B algorithm. In addition, for n = 10 , the average time for solving the test problems reached its minimum with M T = 0.34 s. The minimum solved percentage ( % S ) is reached, respectively, for n = 20 and n = 30 , with respective values 82.5 % and 83.75 % . In addition, for n = 20 and n = 30 , the maximum M a x G (maximum gap) are reached with M a x G = 9.35 and M a x G = 10.97 , respectively. For n = 20 , the maximum M T is reached with M T = 82.49 s. The percentage of solved test problems is increasing as the number of jobs is increasing from n = 40 onward. Furthermore, the average relative gap is decreasing as the number of jobs increases from n = 40 onward. Except for n = 10 , the highest percentage of solved test problems 92.81 % is reached for n = 200 . This means that the developed procedures perform well for the large size test problems.
The effect of the distribution of the machines in the two stages is reported in Table 4.
According to Table 4, the unbalanced ( m 1 m 2 ) distributions of the machines ( ( m 1 , m 2 ) = ( 2 , 4 ) ; ( 4 , 2 ) ) present the easiest test problems to be solved. Indeed, for these latter distributions, almost all the test problems are solved, and the respective percentages of the solved problems are 99.38 % and 98.75 % . In addition, for the unbalanced distributions, the maximum gap M a x G as well as the average time M T are reaching their minimum. The balanced ( m 1 = m 2 ) distributions ( ( 2 , 2 ) ; ( 4 , 4 ) ) are the hardest ones to be solved and the respective % S are 89.06 % and 71.41 % . For the balanced distributions, one can observe that % S is decreasing as the number of machines increases. Therefore, the proposed procedures are favorable for the unbalanced distribution of machines.
Detailed results considering the number of jobs n and machines in the stages m 1 and m 2 are presented in Table 5.
Based on Table 5, the easiest test problems to be solved are the ones with unbalanced machine distribution and a large number of jobs ( n = 200 , ( m 1 , m 2 ) = ( 2 , 4 ) ; ( 4 , 2 ) ), where the percentage of solved problems reaches 100 % . In addition, the hardest test problems are those with n = 30 and ( m 1 , m 2 ) = ( 4 , 4 ) ), where the % S reaches its minimum, which is 56.25 % .
The effect of the rates [a: b: c] on the performance of the proposed procedures results is presented in Table 6.
Based on Table 6, the rates [ 40 : 20 : 20 ] , where the removal time in the first stage is more important compared to the other parameters (processing times, transportation times, and removal time in the first stage), presents the highest percentage of solved test problems, which is 99.69 % . Since the studied problem is symmetric, a comparable behavior is expected for the rates [ 20 : 20 : 40 ] . For these rates [ 20 : 20 : 40 ] , the percentage of solved test problems is 97.5 % . The least % S is reached for the rates [ 20 : 40 : 20 ] with a value of 73.75 % , which corresponds to the case where the transportation times are the most important parameter. In addition, the removal times are dominating the transportation times in terms of importance. Indeed, in the cases where a = 40 or c = 40 , the value of the rate b is not affecting the results.
In order to identify the reasons behind the lowest percentage ( 73.75 % ) of solved test problems for the rates [ 20 : 40 : 20 ] , the detailed results are presented for these rates in Table 7.
Based on Table 7, the lowest value of % S is reached for ( m 1 , m 2 ) = ( 4 , 4 ) , n = 20 , n = 30 , n = 40 , n = 50 , and n = 100 , where the percentage of solved test problems is only 10 % . Even for ( m 1 , m 2 ) = ( 4 , 4 ) , n = 150 , and n = 200 , the percentage of solved test problems is 50 % . Clearly for the rates [ 20 : 40 : 20 ] and [ 40 : 40 : 40 ] , the hardest test problems to be solved are those with the highest balanced load: a = c , m 1 = m 2 = 4 , and the transportation times ( b = 40 ).

7. Conclusions

The two-stage hybrid flow shop scheduling problem with transportation and removal times is addressed in this work. A heuristic algorithm composed of two phases is proposed. In addition, two efficient lower bounds are presented. Furthermore, a Branch and Bound exact procedure is developed. The solution to the parallel machine scheduling problem with release dates and delivery times plays a key role in the development of the proposed algorithms.
Furthermore, a set of low complexity lower bounds are proposed within the Branch and Bound exact procedure in addition to several efficient dominance rules. All these procedures are evaluated over an extensive experimental study using benchmark test problems. The computational results show the efficiency and the performance of these procedures.
Future research could focus on solving extensions of the current studied problem by considering hybrid flow shop scheduling problems with more than two stages. In addition, several other restrictions might be included to the addressed problem by including, for example, the release dates and the delivery times.

Author Contributions

Modeling, resolution, and writing, L.H.; modeling and software, A.M.E. All authors have read and agreed to the published version of the manuscript.

Funding

This project was funded by King Saud University through Researchers supporting project number (RSP-2021/133), King Saud University, Riyadh, Saudi Arabia.

Institutional Review Board Statement

Not applicable.

Informed Consent Statement

Not applicable.

Data Availability Statement

Not applicable.

Acknowledgments

The authors extend their appreciation to King Saud University for funding this work through Researchers supporting project number (RSP-2021/133), King Saud University, Riyadh, Saudi Arabia.

Conflicts of Interest

The authors declare no conflict of interest.

References

  1. Jin, Z.H.; Ohno, K.; Ito, T.; Elmaghraby, S.E. Scheduling hybrid flowshops in printed circuit board assembly lines. Prod. Oper. Manag. 2002, 11, 216–230. [Google Scholar] [CrossRef]
  2. Narasimhan, S.L.; Panwalker, S.S. Scheduling in a two stage manufacturing process. Int. J. Prod. Res. 1984, 22, 555–564. [Google Scholar] [CrossRef]
  3. Elmaghraby, S.E.; Karnoub, R.E. Production control in hybrid flow shop: An example from textile manufacturing. In The Planning and Scheduling of Production Systems Methodologies and Applications; Artiba, A., Emaghraby, S.E., Eds.; Chapman & Hall: Boston, MA, USA, 1997; pp. 163–198. [Google Scholar]
  4. Ruiz, R.; Vazquez-Rodriguez, J.A. The hybrid flow shop scheduling problem. Eur. J. Oper. Res. 2010, 205, 1–18. [Google Scholar] [CrossRef] [Green Version]
  5. Ribas, I.; Leisten, R.; Framinan, J.M. Review and classification of hybrid flow shop scheduling problems from a production system and a solutions procedure perspective. Comput. Oper. 2010, 37, 1439–1454. [Google Scholar] [CrossRef]
  6. Wu, X.; Cao, Z. An improved multi-objective evolutionary algorithm based on decomposition for solving re-entrant hybrid flow shop scheduling problem with batch processing machines. Comput. Ind. Eng. 2022, 169, 108236. [Google Scholar] [CrossRef]
  7. Hidri, L.; Gharbi, A. New efficient lower bound for the Hybrid Flow Shop Scheduling Problem with Multiprocessor Tasks. IEEE Access 2017, 5, 6121–6133. [Google Scholar] [CrossRef]
  8. Kurz, M.E.; Askin, R.G. Scheduling flexible flow lines with sequence-dependent setup times. Eur. J. Oper. 2004, 159, 66–82. [Google Scholar] [CrossRef] [Green Version]
  9. Javadian, N.; Fattahi, P.; Farahmand-Mehr, M.; Amiri-Aref, M.; Kazemi, M. An immune algorithm for hybrid flow shop scheduling problem with time lags and sequence-dependent setup times. Int. J. Adv. Manuf. Technol. 2012, 63, 337–348. [Google Scholar] [CrossRef]
  10. Engin, O.; Ceran, G.; Yilmaz, M.K. An efficient genetic algorithm for hybrid flowshop scheduling with multiprocessor task problems. Appl. Soft Comput. 2011, 11, 3056–3065. [Google Scholar] [CrossRef]
  11. Naderi, B.; Zandieh, M.; Balagh, A.K.G.; Roshanaei, V. An improved simulated annealing for hybrid flowshops with sequence-dependent setup and transportation times to minimize total completion time and total tardiness. Expert Syst. Appl. 2009, 36, 9625–9633. [Google Scholar] [CrossRef]
  12. Gicquel, C.; Hege, L.; Minoux, M.; Van Canneyt, W. A discrete time exact solution approach for a complex hybrid flow-shop scheduling problem with limited-wait constraints. Comput. Oper. 2012, 39, 629–636. [Google Scholar] [CrossRef] [Green Version]
  13. Shao, W.; Shao, Z.; Pi, D. Modeling and multi-neighborhood iterated greedy algorithm for distributed hybrid flow shop scheduling problem. Knowl.-Based Syst. 2020, 194, 105527. [Google Scholar] [CrossRef]
  14. Gheisariha, E.; Tavana, M.; Jolai, F.; Rabiee, M. A simulation–optimization model for solving flexible flow shop scheduling problems with rework and transportation. Math. Comput. Simul. 2021, 180, 152–178. [Google Scholar] [CrossRef]
  15. Lei, C.; Zhao, N.; Ye, S.; Wu, X. Memetic algorithm for solving flexible flow-shop scheduling problems with dynamic transport waiting times. Comput. Ind. Eng. 2020, 139, 105984. [Google Scholar] [CrossRef]
  16. Naderi, B.; Zandieh, M.; Shirazi, M.A.H.A. Modeling and scheduling a case of flexible flowshops: Total weighted tardiness minimization. Comput. Ind. Eng. 2009, 57, 1258–1267. [Google Scholar] [CrossRef]
  17. Zabihzadeh, S.S.; Rezaeian, J. Two meta-heuristic algorithms for flexible flow shop scheduling problem with robotic transportation and release time. Appl. Soft Comput. 2016, 40, 319–330. [Google Scholar] [CrossRef]
  18. Zhong, W.Y.; Lv, L.H. Hybrid flowshop scheduling with interstage job transportation. J. Oper. Res. Soc. China 2014, 2, 109–121. [Google Scholar] [CrossRef]
  19. Zhu, H. A two stage scheduling with transportation and batching. Inf. Process. Lett. 2012, 112, 728–731. [Google Scholar] [CrossRef]
  20. Elmi, A.; Topaloglu, S. A scheduling problem in blocking hybrid flow shop robotic cells with multiple robots. Comput. Oper. 2013, 40, 2543–2555. [Google Scholar] [CrossRef]
  21. Chikhi, N.; Abbas, M.; Benmansour, R.; Bekrar, A.; Hanafi, S. A two-stage flow shop scheduling problem with transportation considerations. 4OR A Qual. J. Oper. Res. 2015, 13, 381–402. [Google Scholar] [CrossRef]
  22. Gupta, J.N.; Tunc, E.A. Scheduling a two-stage hybrid flowshop with separable setup and removal times. Eur. J. Oper. Res. 1994, 77, 415–428. [Google Scholar] [CrossRef]
  23. Botta-Genoulaz, V. Hybrid flow shop scheduling with precedence constraints and time lags to minimize maximum lateness. Int. J. Prod. Econ. 2000, 64, 101–111. [Google Scholar] [CrossRef]
  24. Low, C. Simulated annealing heuristic for flow shop scheduling problems with unrelated parallel machines. Comput. Oper. Res. 2005, 32, 2013–2025. [Google Scholar] [CrossRef]
  25. Gharbi, A.; Haouari, M. Minimizing makespan on parallel machines subject to release dates and delivery times. J. Sched. 2002, 5, 329–355. [Google Scholar] [CrossRef]
  26. Hidri, L.; Gharbi, A.; Haouari, M. Energetic reasoning revisited: Application to parallel machine scheduling. J. Sched. 2008, 11, 239–252. [Google Scholar] [CrossRef]
  27. Haouari, M.; Jemmali, M. Tight bounds for the identical parallel machine-scheduling problem: Part II. Int. Trans. Oper. Res. 2008, 15, 19–34. [Google Scholar] [CrossRef]
  28. Haouari, M.; Jemmali, M. Maximizing the minimum completion time on parallel machines. 4OR 2008, 6, 375–392. [Google Scholar] [CrossRef]
  29. Jemmali, M. An optimal solution for the budgets assignment problem. RAIRO-Res. 2021, 55, 873–897. [Google Scholar] [CrossRef]
  30. Brucker, P. Scheduling Algorithms; Springer: Berlin, Germany, 1998. [Google Scholar]
  31. Gupta, J.N.D.; Tunc, E.A. Schedules for a two stage hybrid flow shop with parallel machines at the second stage. Eur. Oper. Res. 1994, 77, 429–439. [Google Scholar]
  32. Haouari, M.; M’Hallah, R. Heuristic algorithms for the two-stage hybrid flow shop problem. Oper. Res. Lett. 1997, 21, 43–53. [Google Scholar] [CrossRef]
  33. Gharbi, A.; Haouari, M. Optimal Parallel Machines Scheduling with Availability Constrain. Discret. Appl. Math. 2005, 148, 63–87. [Google Scholar] [CrossRef] [Green Version]
  34. Gharbi, A.; Haouari, M. Optimal Parallel Machines Scheduling with Initial and Final Availability Constraints. In Proceedings of the Ninth International Workshop on Project Management and Scheduling PMS, Nancy, France, 26–28 April 2004; pp. 218–221. [Google Scholar]
  35. Lee, C.Y.; Vairaktarakis, G.L. Minimizing makespan in hybrid flowshop. Oper. Res. Lett. 1994, 16, 149–158. [Google Scholar] [CrossRef]
Figure 1. Gantt chart of a feasible schedule for Example 1.
Figure 1. Gantt chart of a feasible schedule for Example 1.
Symmetry 14 01424 g001
Figure 2. Gantt chart of a feasible schedule for Example 1 for the reverse problem.
Figure 2. Gantt chart of a feasible schedule for Example 1 for the reverse problem.
Symmetry 14 01424 g002
Table 1. Data of Example 1.
Table 1. Data of Example 1.
j12345
p 1 , j 12122
r m 1 , j 11212
t j 21112
p 2 , j 21121
r m 2 , j 11111
Table 2. Performance of the proposed procedures.
Table 2. Performance of the proposed procedures.
SR SBB UN % S MT MG MaxG
169060526589.6547.442.4010.97
Table 3. Performance of the proposed procedures according to the number of jobs.
Table 3. Performance of the proposed procedures according to the number of jobs.
n SR SBB UN % S MT MG MaxG
101611590100.000.340.000.00
20198665682.5082.492.719.35
30201675283.7551.174.0910.97
40216683688.7537.053.089.33
50209723987.8175.252.907.89
100228613190.3146.490.985.19
150234582891.2544.280.351.44
200243542392.8151.350.371.11
Table 4. Performance of the proposed procedures with respect to the number of machines.
Table 4. Performance of the proposed procedures with respect to the number of machines.
( m 1 , m 2 ) SR SBB UN % S MT MG MaxG
(2,2)3322387089.0675.932.3510.97
(2,4)53799499.387.430.390.54
(4,2)54587898.7526.812.056.60
(4,4)27618118371.4196.152.489.35
Table 5. Performance of the proposed procedures according to m 1 , m 1 and n.
Table 5. Performance of the proposed procedures according to m 1 , m 1 and n.
n ( m 1 , m 2 ) SR SBB UN % S MT MG MaxG
10(2,2)21590100.000.970.000.00
10(2,4)61190100.000.090.000.00
10(4,2)63170100.000.070.000.00
10(4,4)16640100.000.200.000.00
20(2,2)31321778.75145.081.556.38
20(2,4)744297.500.160.430.45
20(4,2)715495.002.703.436.60
20(4,4)22253358.75264.273.369.35
30(2,2)35291680.0073.384.3510.97
30(2,4)69110100.007.710.000.00
30(4,2)727198.7525.082.192.19
30(4,4)25203556.25142.684.028.99
40(2,2)41271285.0085.542.907.97
40(2,4)70100100.003.810.000.00
40(4,2)736198.7510.580.230.23
40(4,4)32252371.2562.543.299.33
50(2,2)42261285.00121.422.235.95
50(2,4)6612297.5012.350.360.54
50(4,2)66140100.0067.060.000.00
50(4,4)35202568.75119.273.437.89
100(2,2)5421593.7551.590.833.35
100(2,4)67130100.0010.720.000.00
100(4,2)6316198.7539.790.190.19
100(4,4)44112568.75101.181.045.19
150(2,2)5619593.7562.460.290.61
150(2,4)65150100.004.460.000.00
150(4,2)6415198.7538.040.060.06
150(4,4)4992272.5084.170.371.44
200(2,2)5225396.2587.500.520.79
200(2,4)65150100.0020.040.000.00
200(4,2)7370100.0029.990.000.00
200(4,4)5372075.0075.180.351.11
Table 6. Performance of the proposed procedures for rates [ a : b : c ] .
Table 6. Performance of the proposed procedures for rates [ a : b : c ] .
abc SR SBB UN % S MT MG MaxG
2020201831003788.4457.812.097.97
20204025854897.5021.890.611.77
204020151858473.7568.583.219.89
204040230692193.4426.220.653.41
40202025564199.6937.260.130.13
402040201972293.1362.432.128.30
404020234642293.1351.401.246.60
404040178727078.1363.452.8210.97
Table 7. Performance of the proposed procedures for rates [ 20 : 40 : 20 ] .
Table 7. Performance of the proposed procedures for rates [ 20 : 40 : 20 ] .
n ( m 1 , m 2 ) SR SBB UN % S MT MG MaxG
10(2,2)0100100.002.620.000.00
10(2,4)820100.000.070.000.00
10(4,2)1000100.000.000.000.00
10(4,4)190100.000.340.000.00
20(2,2)04640.00450.031.122.06
20(2,4)1000100.000.000.000.00
20(4,2)81190.000.120.450.45
20(4,4)01910.00891.605.219.35
30(2,2)14550.00131.183.999.89
30(2,4)910100.000.030.000.00
30(4,2)90190.000.062.192.19
30(4,4)01910.0012.806.438.99
40(2,2)26280.00119.765.706.00
40(2,4)820100.000.020.000.00
40(4,2)820100.0060.180.000.00
40(4,4)01910.00618.804.379.33
50(2,2)03730.0034.022.675.74
50(2,4)72190.0025.870.170.17
50(4,2)730100.00180.220.000.00
50(4,4)01910.00608.894.717.89
100(2,2)35280.00150.551.723.35
100(2,4)910100.000.190.000.00
100(4,2)730100.0060.730.000.00
100(4,4)01910.00794.241.575.19
150(2,2)44280.00183.110.120.12
150(2,4)640100.000.920.000.00
150(4,2)72190.0015.370.060.06
150(4,4)41550.0031.950.641.25
200(2,2)36190.00152.370.330.33
200(2,4)730100.00107.970.000.00
200(4,2)1000100.002.530.000.00
200(4,4)32550.00202.180.421.11
Publisher’s Note: MDPI stays neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Share and Cite

MDPI and ACS Style

Hidri, L.; Elsherbeeny, A.M. Optimal Solution to the Two-Stage Hybrid Flow Shop Scheduling Problem with Removal and Transportation Times. Symmetry 2022, 14, 1424. https://doi.org/10.3390/sym14071424

AMA Style

Hidri L, Elsherbeeny AM. Optimal Solution to the Two-Stage Hybrid Flow Shop Scheduling Problem with Removal and Transportation Times. Symmetry. 2022; 14(7):1424. https://doi.org/10.3390/sym14071424

Chicago/Turabian Style

Hidri, Lotfi, and Ahmed M. Elsherbeeny. 2022. "Optimal Solution to the Two-Stage Hybrid Flow Shop Scheduling Problem with Removal and Transportation Times" Symmetry 14, no. 7: 1424. https://doi.org/10.3390/sym14071424

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