Anomalies in Special Permutation Flow Shop Scheduling Problems

Recent researches show that there are some anomalies, which are not satisfied with common sense, appearing in some special permutation flow shop scheduling problems (PFSPs). These anomalies can be divided into three different types, such as changing the processing time of some operations, changing the number of total jobs and changing the number of total machines. This paper summarizes these three types of anomalies showing in the special PFSPs and gives some examples to make them better understood. The extended critical path is proposed and the reason why these anomalies happen in special PFSPs is given: anomalies will occur in these special PFSPs when the time of the operations on the reverse critical path changes. After that, the further reason for these anomalies is presented that when any one of these three types of anomalies happens, the original constraint in the special PFSPs is destroyed, which makes the anomalies appear. Finally, the application of these anomalies in production practice is given through examples and also with the possible research directions. The main contribution of this research is analyzing the intial reason why the anomalies appear in special PFSPs and pointing out the application and the possible research directions of all these three types of anomalies.


Introduction
The permutation flow shop scheduling problem (PFSP), which has the same machine permutation to each job and the same job permutation to each machine [1-3], is a common type of flow shop scheduling problem [4,5]. Some other new types of shop scheduling problems will form if different constraints is added to it. For example, the no-wait flow shop scheduling problem (NWFSP) forms when the constraint, that a certain operation of a job finishes, and it must immediately enter the next processing machine, is added to PFSP [6][7][8]. With other constraints, different problems, like no-idle flow shop scheduling problem (NIFSP) [9][10][11], no-buffering flow shop scheduling problem (NBFSP) [12][13][14] and synchronous flow shop scheduling problem (SFSP) [15][16][17] can be got.
In these special PFSPs mentioned above, scholars have found some interesting phenomena. The first who observed this were Abadi, Hall, and Sriskandarajah [18] in 2000. They found in the NWFSP if they slowed down (i.e., increasing the processing time) of some operations may permit a reduction in makespan. Also, in 2005, Spieksma and Woeginger [19] found similar phenomena that if they improved one of the machine speed, the makespan may be increased, or if they reduced the processing time of all operations of a job by a certain proportion, the makespan may be increased. In 2007, Kalczynski and Kamburowski [20] found the anomaly was not only existed in NWFSP but also NIFSP. They mainly analyzed the NWFSP and gave the method to calculate which operations can increase the processing time and how much, and with this methed, the completion time can be decreased to the minimum. In 2008, Pan, Zhao and Qu [21] introduced another way to calculate the increase of the processing time to reduce the makespan. In 2017, Waldherr, Knust and Briskorn [22] discussed how to insert voluntary idle time in SFSP to reduce the objective functions, like minimization of makespan, total completion time, maximum lateness. In 2018, Panwalkar and Koulamas [23] explained these anomalies with schematic representation. They also did a systematic analysis in 2020 [24], dividing these anomalies into three categories: increasing the processing time of some operations, increasing the number of total jobs and increasing the number of total machines. This paper aims to explain the anomalies in these special PFSPs further and discuss the role of these anomalies in actual production. In order to have a better understanding, this paper gives some examples of all three types of anomalies in Section 2. Then the Gantt chart and critical path are used to explain the existence of anomalies in the special PFSPs in Section 3. Lastly, a discussion about how to use these anomalies in real-world production is given in Section 4.

Examples of Anomalies in Special PFSPs
In special PFSPs, as described in Ref. [24], there exist three types of anomalies as follows.
Type 1: The anomaly caused by changing processing time of operations: increasing the processing time of some operations in an optimal schedule causes a reduction in the minimum objective function value, or reducing the processing time of some operations in an optimal schedule causes an increase in the minimum objective function value.
Type 2: The anomaly caused by changing the number of total jobs: increasing the number of total jobs in an optimal schedule causes a reduction in the minimum objective function value, or reducing the number of total jobs in an optimal schedule causes an increase in the minimum objective function value.
Type 3: The anomaly caused by changing the number of total machines: increasing the number of total machines in an optimal schedule causes a reduction in the minimum objective function value, or reducing the number of total machines in an optimal schedule causes an increase in the minimum objective function value.
It is easy to know that when only two jobs or each job with only two operations are given, there is no possibility for any anomaly mentioned above to appear. The reason is given in Section 3. Based on that, the examples showed below use simplest version of these anomalies, which has three jobs J1, J2, J3, and each job has only three operations. The operations in each job are (O 11  For the type 1 anomaly, it usually appears in NIFSP and NWFSP. This paper only uses the NIFSP to show the type 1 anomaly. The processing time of each operation is considered as (5,3,5), (5,3,5) and (5,3,3). It is easy to know that when the minimization of makespan is regarded as the objective function, the optimal schedule is J1, J2, J3, and the value is 25. The Gantt chart is shown in Figure 1. As known by common sense, when the processing time of any operation is increased, it is impossible to reduce the makespan of the optimal schedule. But here comes an interesting thing that when the processing time of operation O 22 is increased to 5, then the makespan changes from 25 to 23. The Gantt chart is shown in Figure 2. On the contrary, if the schedule of Figure 2 is regarded as the initial one, the makespan will increase if the processing time of operation O 22 is reduced from 5 to 3. Also, NWFSP has the same anomaly.
For the type 2 anomaly, it usually appears in NIFSP and SFSP. Similarly, only the NIFSP is used to show the type 2 anomaly. The processing time of the operations is the same as before. As known by common sense, when the number of total jobs is increased, it is impossible to reduce the makespan of the optimal schedule. But another interesting thing has happened. When a job, of which processsing time is (1, 3, 1) respectively, is inserted between J1 and J2, the makespan changes from 25 to 24. The Gantt chart is shown in Figure 3. On the contrary, if the schedule of Figure 3 is regarded as the initial one, the makespan will increase if the number of total jobs is reduced from 4 to 3. Also, the SFSP has the same anomaly.
For the type 3 anomaly, it usually appears in NWFSP, NBFSP, and SFSP. This paper only uses the NWFSP to show the type 3 anomaly. The processing time of each operation in each job is considered as (3,3,9), (3,6,3) and (9,3,3). It is easy to know that when the minimization of makespan is regarded as the objective function, the optimal schedule is J1, J2, J3, and the makespan is 25. The Gantt chart is shown in Figure 4. From common sense, when the number of total machines is increased (each job increases the number of total operations), it is impossible to reduce the makespan of the optimal schedule. But when Ma is added between M2 and M3, and the processing time of each job on this machine is 1, 3, 1 respectively. The makespan changes from 24 to 23. The Gantt chart is shown in Figure 5. On the contrary, if the schedule of Figure 5 is regarded as the initial one, the makespan will increase if the number of total machines is reduced from 4 to 3. Also, NBFSP and SFSP have the same anomaly.
In conclusion, these three types of anomalies can appear in four kinds of special PFSPs. To express this problem more clearly, the correspondence between shop types and different anomalies is summarized in Table 1.

Definitions and Theorems
In order to explore the causes of the anomalies, the critical path in other scheduling problems [25,26] is expanded. The definitions are added as follows.

Definition 1
The critical path segment from the operation start time to the operation end time is called the forward critical path segment.

Definition 2
The critical path segment from the operation end time to the operation start time is called the reverse critical path segment.
So the critical path of NIFSP is shown in Figure 6. As it can be easily seen from Figure 6, the completion time of the schedule is the sum of the forward critical path segments minus the sum of the reverse critical path segments. Therefore, it is easy to obtain the following theorems.
Theorem 1 Changing the processing time of the operations on the non-critical paths will not cause the completion time to change until a new critical path is generated.
Theorem 2 Changing the processing time of the operations on the critical path will definitely cause the completion time to change until a new critical path is generated.
Proof The two theorems above can be easily proved by contradiction. Assume that changing the processing time of operations on non-critical paths can cause the Figure 3 Gantt chart of increasing the number of total jobs   With the Theorem 2, it is easy to draw the following two corollaries.

Corollary 1 When increasing the processing time of the operations in the forward critical path segment, the completion time will increase until a new critical path is generated; when reducing the processing time of the operations in the forward critical path segment, the completion time will reduce until a new critical path is generated.
Corollary 2 When increasing the processing time of the operations in the reverse critical path segment, the completion time will reduce until a new critical path is generated. When reducing the processing time of the operations in the reverse critical path segment, the completion time will increase until a new critical path is generated.
It can be known that only the change of the processing time of the operations in the reverse critical path segment can cause an anomaly in the special PFSPs. The reverse critical path segment can only be generated in the schedule which has at least three jobs and each job has at least three operations. That is why only two jobs or each job with only two operations can not cause anomalies. Of course, when there are multiple critical paths in a schedule, all the critical paths work together.

Explanation of Anomalies
For type 1 anomaly, the example mentioned above is used. From Figure 7, only increase the processing time of operation O 22 , can the completion time be reduced until some other critical path is generated. It is easy to know that the maximum value, used to increase the processing time of the operation O 22 to reduce the completion time, is related to ε, which show in Figure 7, and it can be calculated as follows: (1) For type 2 and type 3 anomalies, the examples mentioned above are also used. From Figure 9, the job inserted between J1 and J2 increases the value of the forward critical path segment and the reverse critical path segment at the same time. The latter increases 3 while the former increases 2, so the completion time reduces by 1. The calculation of the maximum value to reduce the

Figure 8
The critical path in the Gantt chart of NIFSP makespan is similar to the type 1 anomaly, and when processing time of the inserted job is (0, 2, 0), the makespan will be the minimum. From Figure 10, the machine Ma is inserted between M2 and M3. Similar to type 2 anomaly, the value of the forward critical path segment and the reverse critical path segment at the same time. The latter increases 3 while the former increases 2, so the completion reduces by 1. The calculation of the maximum value to reduce the makespan is similar to the type 1 anomaly, and when processing time of the operations in Ma is (0, 2, 0), the makespan will be the minimum.

Cause of the Anomalies
Knowing from the above analysis, no matter which kind of anomalies, the completion time can be reduced when the value increasing in the reverse critical path segment is more than the value increasing in the forward critical path segment. In other words, if only the value of the reverse critical path segment is increased, the completion time may be reduced the most, just like it mentioned in Section 3.2.
While looking at this problem from another aspect, if the time of the operation, the number of total jobs or the number of total machines is not increased, the completion time can also be reduced when the operation waits for some time instead of being processed immediately. The examples used are shown in Section 3.2, and Figure 11, Figure 12, Figure 13 are generated. The grey blocks represent the waiting time of the operation, and it is easy to know that it has the same effect as the anomalies.
However, in this case, the constraints of the special PFSPs are not satisfied. In Figure 11, if the operation of O 22 does not process immediately when the operation O 12 finishes, the schedule is not the NIFSP. Similarly, in Figure 13, if the operation of O 13 does not process immediately when the operation O 12 finishes, the schedule is not the NWFSP. It is also the same situation in NBFSP and SFSP. In another word, the anomalies in special PFSPs can be seen as a way to reduce the completion time by destroying the constraints of the special PFSPs. It is easy to know the lower bound of the anomalies in these special PFSPs is the optimal solution in PFSPs which has the same data with these special PFSPs.
Except for the anomalies in scheduling problems, there are also some anomalies in other problems, like Figure 9 The critical path in the Gantt chart of NIFSP M3 1 3 1 Figure 10 The critical path in the Gantt chart of NWFSP O22 3 2 Figure 11 The Gantt chart added with free time in NIFSP Figure 12 The Gantt chart added with free time in NIFSP

Application of the Anomalies
Through the analysis above, it is known that anomalies are caused by destroying constraints, while it is common in real-world production. Use NIFSP as an example. In some actual manufacture, when the devices are expensive to use, the production model of no-idle is always accepted to reduce the total cost. But it may have a conflict if the product has an urgent due date. In this case, the company should balance the constraints of the production cost and the due date. The NIFSP data above is used to show the application of the type 1 anomaly. Suppose the unit time cost of all machines is 5, and the due date is 20. When the completion time exceeds 20, the compensation for each unit time shall be 10. Then, it is easy to know the cost is (15+9+13)×5+10×max {0, }=235. Since the type 1 anomaly appears in NIFSP, the waiting time can be inserted into the scheduling to reduced the completion time, as shown in Figure 11, and the cost is changed to (15+11+13)×5+10×max {0, }= 225. It is known that the total costs are reduced by using the type 1 anomaly in NIFSP.
In real-world production, the process may be more complicated than the instance above. There may exist more jobs, more machines, and more reverse critical path segments. At this time, if the cost of the devices is different, the company should decide which device to insert free time to get the maximum benefit. On the contrary, the company may consider to speed up some machine, which may increase the makespan under the meets of the due date, to reduce the total cost. Also in NWFSP, the company should decide how to control the speed of the machine to balance the total cost and the makespan. In NBFSP, the company should decide whether and where to add a buffer area to reduce the makespan. In SFSP, the company should decide when should each operation be processed to get the minimum completion time.

Conclusions
This paper summarizes three types of anomalies in the special PFSPs. By using the extended critical path, the rule of anomalies is explained, and that is, when the time of the operation on the reverse critical path changes, anomalies will occur in these special PFSPs. After that, the primary cause of these anomalies is presented. When the processing time of the process increased, or the number of jobs increased, or the number of machines increased, the constraint in the original special PFSPs is destroyed, which makes the anomalies appear. Finally, this paper points out the application of these anomalies in production practice through examples.
As the essential cause of the anomalies is revealed, there are some research directions could be done at the problem analysis level. For example, is the original optimal scheduling still the optimal solution after increasing the processing time of a certain operation (or inerting the free time to the scheduling), or which one has less completion time when the original optimal solution and the original sub-optimal solution increase the processing time of a certain operation (or inert the free time to the scheduling). Research on these issues will be beneficial to actual production.