Content area
In this paper we study the online over-time scheduling on an unbounded parallel-batch machine to minimize the weighted makespan. First, we show that the general problem has a low bound 2 and then design a 4-competitive online algorithm. Furthermore, we consider a special case in which the jobs have agreeable processing times and weights. When all jobs have the same weights (the task is to minimize the makespan), an online algorithm with the best possible competitive ratio
Introduction
Parallel-batch scheduling, which was first introduced in Lee et al. (1992), has become a fast developing area of scheduling research in the past few decades. According to Lee et al. (1992), parallel-batch scheduling is motivated by burn-in operations in semi-conductor manufacturing. In this model, we have a parallel-batch machine which can process several jobs as a batch at the same time, as long as its batch capacity is not exceeded. We use b to denote the batch capacity. If , the parallel-batch machine is called unbounded; and if , it is called bounded. The processing time of a batch is equal to the longest processing time of the jobs in this batch, and all the jobs in this batch have the same starting time and the same completion time. In this paper, we only consider schedules on an unbounded parallel-batch machine, and hence, .
Online scheduling is also a hot topic in scheduling research. In the online scheduling, we do not know any information of future jobs in advance. The quality of an online algorithm is usually evaluated by its competitive ratio. Suppose that A is an online algorithm for solving a given scheduling problem. For an instance I of this scheduling problem, A(I) and OPT(I) are used to denote the objective function values obtained by the algorithm A and an optimal off-line schedule on instance I, respectively. The online algorithm A is called -competitive if holds for every instance I. The competitive ratio of A is defined as the minimum value of such that A is -competitive. If there is no other online algorithm which has a competitive ratio of less than , then we say that A is a best possible online algorithm.
Let be a set of jobs to be scheduled on a parallel-batch machine. For a schedule of , we use to denote the completion time of each job . The makespan (i.e., the maximum completion time of the jobs) under schedule is defined by . The weighted makespan (i.e., the maximum weighted completion time of the jobs) under schedule is defined by . Notice that is widely studied in the literature. However, as an extension of makespan, the weighted makespan is relatively less studied in the literature. In the off-line setting, research for the objective function can be found in Feng and Yuan (2007), Oron et al. (2015), and Yuan et al. (2020).
There are rich achievements on the online scheduling in the literature. Here we mainly review some results on the objective functions or . Zhang et al. (2001) and Deng et al. (2003) gave the same best possible online algorithm with the competitive ratio for problem . For problem , Tian et al. (2009) and Liu et al. (2012) independently provided their own best possible online algorithms with the competitive ratio , where is the positive root of the equation .
For problem , Li (2015) presented a lower bound 2 and an online algorithm with the competitive ratio 3. For the same problem, Chai et al. (2018) further provided two best possible online algorithms with the competitive ratio 2. For problem , Li (2015) presented a best possible online algorithm with the competitive ratio . Li and Chai (2018) further studied the more general problem and provided a best possible online algorithm with the competitive ratio and a best possible dense algorithm with the competitive ratio 2.
Due to the lack of the information of future jobs, an online algorithm often makes some wrong decisions. To avoid these wrong decisions, an effective way is to allow restarts. This means that, if an urgent job arrives while the machine is still busy, then we can break off the processing of the current job and start to process the urgent one. Clearly, allowing restarts can reduce the impact of the wrong decisions. However, it also brings another disadvantage, i.e., the previous processing of the current job is wasted.
To the best of our knowledge, van den Akker et al. (2000) introduced the conception of “restarts” into online scheduling. For problem , Fu et al. (2007) provided a lower bound and presented an online algorithm with the competitive ratio . For the same problem, Yuan et al. (2011) further provided a best possible online algorithm with the competitive ratio . Limited restarts were first introduced by Fu et al. (2008), which mean that any job can be restarted only once. For problem , Fu et al. (2008) gave a best possible online algorithm with the competitive ratio .
In this paper, we study the online (over-time) scheduling on an unbounded parallel-batch machine for minimizing the weighted makespan. First, we show that the general problem has a low bound 2 and then design a 4-competitive online algorithm. Furthermore, we consider a special case in which the jobs have agreeable processing times and weights. When all jobs have the same weights (the task is to minimize the makespan), an online algorithm with the best possible competitive ratio has been established in the literature. We show that, after a slightly modification, this known online algorithm also has the best possible competitive ratio for our problem. Finally, we introduce limited restarts into the above special case and present an online algorithm with a better competitive ratio .
The rest of this paper is organized as follows. In Sect. 2, we formulate the problem studied in this paper. In Sect. 3, we study the general online scheduling problem. In Sect. 4, we consider the special online scheduling problem without restarts. In Sect. 5, we study the special online scheduling with limited restarts. Finally, some conclusions and future research are provided in Sect. 6.
Problem formulation
In this paper, we consider the online (over-time) scheduling on an unbounded parallel-batch machine to minimize the weighted makespan. This problem can be stated as follows: There are n jobs which should be scheduled on an unbounded parallel-batch machine. Each job has an arrival time , a processing time and a weight . The jobs arrive online over time, and so, the processing time and weight of job become known at its arrival time . The weighted makespan of a schedule of the n jobs is given by Then this online scheduling problem can be denoted by
1
Furthermore, we consider a special case in which all jobs have agreeable processing times and weights in our problem. That is, implies . This assumption for processing times and weights is also called agreeability condition in this paper. Then the online scheduling problem is denoted by2
We also introduce limited restarts into the above special case, the corresponding problem is denoted by3
For convenience, we use to indicate the items “, agreeable, p-batch, ” in the -field. Then the two problems (2) and (3) can be shortly denoted by and , respectively.The general online scheduling problem
In this section, we consider the general problem in (1). We show that this problem has a low bound 2 and then design a 4-competitive online algorithm.
Lemma 3.1
The problem in (1) has a low bound 2 and admits a 4-competitive online algorithm.
Proof
The low bound 2 is proved by a simple adversary method. At time 0, job with arrives. Suppose that an online algorithm processes at some time . If , then no jobs will arrive later. If , then job with arrives at time and no jobs will arrive later. Let and be the online objective value and the off-line optimal objective value of the job instance. In the case where , we have and , and so, . In the case where , we have and , and so, . Consequently, 2 is a low bound of the problem in (1).
We now consider the following simple online algorithm for the problem in (1).
At the current time t, let be the set of all unscheduled available jobs and each of them has a processing time at most t. If , then process as a single batch at time t. Otherwise, do nothing but wait.
Let be the schedule generated by the above online algorithm, let be an arbitrary job, let B be the batch containing in , and let t be the starting time of B in . From the algorithm design, we have . If either or , then . If and , from the algorithm design, another batch is processed directly before batch B in such that , where is the starting time of in . In the case where , we have . In the case where , we must have , and so, .
The above discussion shows that, in schedule , every job completes at a time less than . Consequently, the above online algorithm is 4-competitive.
The special online scheduling problem
In this section, we consider problem in (2). In order to analyse the competitive ratio of the proposed online algorithms, we first consider the corresponding off-line version of the problem in (2), which is denoted by . We use to denote the optimal objective value for the corresponding off-line problem . Next, we establish a useful lemma to estimate the low bound of .
Lemma 4.1
Suppose that and are two jobs with . Then we have the following two statements:
If there is an off-line optimal schedule such that and are processed in the same batch in , then we have .
If and are processed in different batches in all off-line optimal schedules, then we have .
Proof
(i) Since and are processed in the same batch in , we have . Consequently,Statement (i) follows.
(ii) Let be an off-line optimal schedule. Then and are processed in different batches in . We distinguish the following three possibilities.
If is processed before in , then we have .
If is processed after in and , then we have .
If is processed after in and , by the agreeability condition, we have . Note that . Thus, is available at time starting time of . Let be the schedule obtained from by shifting into the batch containing . Since , we have and for each . Thus, is also an optimal schedule. But then, and are processed in the same batch in . This contradicts the assumption that and are processed in different batches in all off-line optimal schedules. This proves Statement (ii) and gives the lemma.
Let U be a set of jobs. A job is called a critical job in U if and . In our problem, the jobs have agreeable processing times and weights. Then the following lemma can be easily verified.
Lemma 4.2
Under the agreeability condition in our problem, every set of jobs must has a critical job, and moreover, every two critical jobs must have the same processing time and the same weight.
The result in Lemma 4.2 enables us to just pick one critical job in a set of jobs under consideration. This will be reflected in our algorithm designs.
Suppose that is the positive root of . Thus, we have . For problem , Zhang et al. (2001) proved that is a lower bound of the competitive ratio for all deterministic online algorithms and proposed an online algorithm with the best possible competitive ratio . Note that the above problem is a special version of our problem . Thus, we have the following result.
Theorem 4.1
For problem , there is no deterministic online algorithm with a competitive ratio of less than .
Next, we will make a slight modification on the online algorithm proposed in Zhang et al. (2001). We will show that the modified online algorithm has the best possible competitive ratio for our problem . At a time t, we use U(t) to denote the set of all unscheduled jobs which are available at time t.
Algorithm: For problem .
Step 0: Set .
Step 1: Do the following.
(1.1) If , then wait until a new job arrives at some time . Reset and go to Step (1.2).
(1.2) If , then find a critical job . Go to Step 2.
Step 2: Do the following.
(2.1) If , then reset and update the critical job in U(t). This procedure is repeated until the condition is satisfied. Go to Step 3.
(2.2) If , then go to Step 3 directly.
Step 3: At time t, schedule all jobs in U(t) as a single batch. Reset and go to Step 1.
Let I be an instance of problem . Let be an off-line optimal schedule of instance I and let be the the weighted makespan of . Furthermore, we assume that is the schedule generated by Algorithm and is the the weighted makespan of . We also assume that are all the batches generated by Algorithm . Let be the starting time of in , . Without loss of generality, we assume that . Note that . Let be the critical job in . That is, and . By the design of Algorithm , we can easily observed that and, for each batch with , we have . For convenience, we call a regular batch if , and a delayed batch if .
It is easy to verify that if we delete all jobs in , then the ratio of will not decrease. Thus, in the sequel, we assume that in . Suppose that is the first batch in such that . We have the following lemmas.
Lemma 4.3
must be a regular batch. Furthermore, if is a regular batch, then or is also a regular batch.
Proof
The first statement follows from the fact that . The second statement can be proved by the same way as that in Zhang et al. (2001). For completeness, we borrow the proof of Lemma 2 in Zhang et al. (2001) as follows: Otherwise, we assume that is a regular batch, but and are delayed batches. Clearly, all jobs in come later than . Thus, we have . Since is a delayed batches, we haveIt follows that and .
Similarly, all jobs in come later than . Thus, we have . Since is a delayed batches, we haveIt follows that and . This contradicts the fact that . Lemma 4.3 follows.
Lemma 4.4
If is a regular batch, then we have .
Proof
Since is a regular batch, we have . By noting that completes at time , it holds that . Since , we have . The lemma follows.
Lemma 4.5
If is a delayed batch, then we have .
Proof
Since is a delayed batch, we have . By Lemma 4.3, there do not exist two successive delayed batches. Thus, must be a regular batch, i.e., . By noting that completes at time , it follows that
4
We consider the following two cases.Case 1. and are processed in the same batch in an off-line optimal schedule . Then the batch containing and completes at a time no earlier than and . Since and , from Lemma 4.1(i), we have
5
and6
If , from (4) and (5), we haveIf , from the agreeability condition, we have . From (6), we further have By using (4), we haveCase 2. and are processed in different batches in all off-line optimal schedules. From Lemma 4.1(ii), we have . By using (4), we haveFrom the discussions in Case 1 and Case 2, the lemma follows.Combining Lemmas 4.4 and 4.5 together, we conclude the following theorem.
Theorem 4.2
For problem , Algorithm has a best possible competitive ratio .
The special problem with limited restarts
To improve the competitive ratio , we introduce “limited restarts" into the special problem, where each job can be restarted only once when it is processed on the machine. The corresponding problem is denoted by . For problem , Fu et al. (2008) proved that is a lower bound of the competitive ratio for all deterministic online algorithms. Note that the above problem is a special version of our problem . Thus, we have the following theorem.
Theorem 5.1
For problem , there exists no deterministic online algorithm with a competitive ratio of less than .
For a time instant t, let U(t) be the set of unscheduled jobs which are available at time t. If the machine is busy at time t, let be the currently processing batch at time t. If there is some restarted jobs in , we set ; otherwise, we set . Thus, the current batch can be restarted if and only if .
Algorithm: For problem .
Step 1: Set and .
Step 2: If , go to Step 6. If , then find the critical job and go to Step 3.
Step 3: If , then reset and go to Step 2. If , then schedule all the jobs in U(t) as a single batch at time t and go to Step 4.
Step 4: If there are no new jobs arriving in the time interval or , then reset and and go to Step 2. If and a new job arrives at time with , go to Step 5.
Step 5: Do the following.
(5.1) If either or , then reset . Go to Step 2.
(5.2) If , then do the following:
(5.2.1) If , then go on processing the current batch in the time interval . If there is a new job with or arriving in the time interval , then reset and run Step 5 again. Otherwise, restart the current batch at time . Reset and , update the critical job in , and go to Step 4.
(5.2.2) If , then restart the current batch at time . Reset and , update the critical job in , and go to Step 4.
(5.3) If , then do the following.
(5.3.1) If , then go on processing the current batch in the time interval . If there is a new job with or arriving in the time interval , then reset and run Step 5 again. Otherwise, restart the current batch at time . Reset and , update the critical job in , and go to Step 4.
(5.3.2) If , then complete the current batch . Reset and go to Step 2.
(5.4) If , then continue to process the current batch . Go to Step 4.
Step 6: If there exist some new jobs arriving after time t, then let be arrival time of the first new job. Reset and go to Step 2. Otherwise, stop the algorithm and output the current schedule.
Let I be a job instance, let be the schedule obtained by Algorithm on instance I, and let be all the batches in . For each batch , let be the earliest arrival time of the jobs in , let be the starting time of in , and let be the critical job in . Assume that . For each , we call a free batch if there are no restarted jobs in , and call a restricted batch otherwise. Assume that is the first batch in such that . Throughout our discussions, we use to denote an off-line optimal schedule of instance I.
Next, we give four observations about Algorithm , all of which can be directly obtained from the implementation of the algorithm.
Observation 5.1
For each batch in , we have .
Observation 5.2
If there exists an idle time directly before in , then we have .
Observation 5.3
If is a free batch in , then we have or or .
Observation 5.4
If is a restricted batch in , then we have or , where is the job with the longest processing time and the maximum weight which arrives in the time interval .
Lemma 5.1
If is a restricted batch, then we have .
Proof
Since is a restricted batch, we have or by Observation 5.4. Note that by Step 5.2 of Algorithm . If , then we have and . Note further that by Step 5.3 of Algorithm . If , then we have and . The lemma follows.
Lemma 5.2
If is a restricted batch, then we have .
Proof
Denote by the job with the longest processing time and the maximum weight which arrives latest in the time interval . Let , and be the arrival time, the processing time and the weight of , respectively. By Observation 5.4, we have or . Note that . We consider the following two cases in our discussion.
Case 1.. By Step 5.2 of Algorithm , we have . It follows that . Since , we have by the agreeability condition. Thus, we have . Furthermore, we have .
If , then . In this situation, the schedule generated by Algorithm is optimal. If , then . Note that and . Thus, we have . Since , we have . Consequently, we have .
Case 2.. By Step 5.3 of Algorithm , we have and . It follows that and . We distinguish two subcases in the following discussion.
Case 2.1.. In this subcase, and . Since , we have . Note that . Thus, we have , Note further that and . It follows that . Therefore, we have .
Case 2.2.. In this subcase, and . By Lemma 4.1, we haveIf , then we have since . Furthermore, we have . If , since and , then we have . Thus, we also have . The lemma follows.
Lemma 5.2 enables us only to consider the case where is a free batch in the sequel.
Lemma 5.3
If is a free batch, then we have the following three statements.
If , then the schedule generated by Algorithm is optimal.
If , then .
If , then we have . Furthermore, if , then we have .
Proof
By Observation 5.3, we have or or .
If , then we have . Thus, . It means that the schedule generated by Algorithm is optimal.
If , then . Note that . Thus, we have .
If , then . From the fact that , we have . Thus, we have . Furthermore, if , then we have . Notice that and . Thus, we have . The lemma follows.
By Lemma 5.3, we need only to show that under the following assumption.
Assumption 5.1
is a free batch, , and .
By assumption 5.1, if , then . Let us take our discussions by the status of batch .
Lemma 5.4
If is a free batch, then we have .
Proof
By Assumption 5.1, we have and . Thus, . Four cases will be discussed in the following.
Case 1.. Note that and . Thus, we have . Furthermore, we have .
Case 2.. Since is a free batch and is a free batch, we have . Note that and . Thus, we have . It follows that .
Case 3.. Since is a free batch and is a free batch, we have or . We first assume that . Note that and . Then we have . Furthermore, we have . Next, we assume that . By Lemma 4.1, we haveNote that and . Thus, we haveFurthermore, since , we also have Thus, we have . Furthermore, we conclude that .
Case 4.. Since , we have . By Lemma 4.1, we haveNote that . If , then we have . Since and , we have . Note further that . Thus, we have . It follows that .
Suppose that in the following. Since is a free batch, we have or or by Observation 5.3. Thus, we distinguish the following three subcases.
Case 4.1.. In this subcase, we have . Note that . Thus, we have . That is, the schedule generated by Algorithm is optimal.
Case 4.2.. In this subcase, we have . Note that . Thus, we have . Since , we have . It follows that .
Case 4.3.. In this subcase, we have . Notice that and . Thus, we have . To show that , it is sufficient to show that .
Since and are processed in different batches in , is a restricted batch or or or and or . These possibilities are distinguished in the sequel discussions.
is a restricted batch in . By Lemma 5.1, we have . It follows that . Thus, we have .
. If , then we have . Note that . Thus, we have . If , then we have and . Thus, we have .
. Note that . Thus, we have . It follows that .
and . By Lemma 4.1, we haveNote thatIf , then we haveNote further that and . If , then we also have . It follows that .
. By Lemma 4.1, it is easy to obtain thatNote that and . If , then we have . Note further that and . Thus, we have . It follows that . If , then we have since . Thus, we also have .
Summing up the above discussions, the lemma follows.
Lemma 5.5
If is a restricted batch, then we have .
Proof
Denote by the job with the longest processing time and the maximum weight which arrives latest in the time interval . Let , and be the arrival time, processing time and weight of , respectively. Since is a restricted batch, we have or by Observation 5.4. We next distinguish the following two cases.
Case 1.. By Step 5.2 of Algorithm , we can get that . Note that . Two subcases are considered below.
Case 1.1.. In this subcase, we have . By Lemma 4.1, we haveNotice that . If , then we have . By Assumption 5.1, we have . Consequently, . Note further that . If , then the schedule generated by Algorithm is optimal.
Case 1.2.. In this subcase, we have . By Lemma 4.1, it’s easy to obtain that . Note that and . If , then we have . By Assumption 5.1, we have . Consequently, . Note further that and . If , then we have and . Consequently, .
Case 2. . By Step 5.3 of Algorithm , we can get that . Note that and . If and are processed in the same batch in , then we have . Note further that , and . Thus, we have . By Assumption 5.1, we have . Consequently, we have .
In the following, we assume that and are processed in different batches in . If , then . Note that and . Then we have . By Assumption 5.1, we have . Consequently, we have .
If and is processed earlier than , then . Note that , and . Thus, . Since , we have . Without loss of generality, we assume that and is processed earlier than in . If and are processed in the same batch in , then we have . Note that . Thus, we have . Since , we have . If and are processed in different batches in , then there are three possibilities. The first possibility, is processed earlier than and is processed earlier than in . Then we have . The second possibility, is processed earlier than and is processed earlier than in . Then we have . The three possibility, is processed earlier than and is processed earlier than in . If , then . Thus, we have . If , note that , then we have . Since and , we have . Note that . Thus, we have .
From Lemmas 5.4 and 5.5, the relation holds under Assumption 5.1. Combining Lemmas 5.2 and 5.3, we conclude the following theorem.
Theorem 5.2
For problem , Algorithm has a competitive ratio .
Next, we present a job instance I to show that the bound is tight. Let be a sufficiently small positive number. The instance I consists of two jobs and with and . By Algorithm H, is first processed at time and then restarted at time . That is, the batch is processed at time . Thus, we have . Note that the off-line optimal schedule will first schedule at time 0 and then schedule at time 1. Thus, we have . Consequently, we have .
Conclusions and future research
In this paper we study the online over-time scheduling on an unbounded parallel-batch machine to minimize the weighted makespan. We show that the general problem has a low bound 2 and then design a 4-competitive online algorithm. For the special case with the agreeable processing times and weights, we present an online algorithm with the best possible competitive ratio . We also introduce limited restarts into the above special case and present an online algorithm with a better competitive ratio .
For future research, it is worthwhile to study the general online scheduling problem with or without restarts. Furthermore, it is challenging to develop a better online algorithm to improve the current competitive ratio if limited restarts are allowed. Finally, it is also interesting to expand the problem with limited restarts by considering individual cases based on whether rescheduling occurs periodically, arbitrarily, or in response to changing conditions.
Funding
This work was supported by the National Natural Science Foundation of China under grant numbers 12271491, 12471305, 12071442 and 12371318.
Data availibility
Not applicable.
Declarations
Conflict of interest
The authors report no Conflict of interest.
Publisher's Note
Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.
References
Chai, X; Lu, LF; Li, WH; Zhang, LQ. Best-possible online algorithms for single machine scheduling to minimize the maximum weighted completion time. Asia-Pacific J Oper Res; 2018; 35,
Deng, XT; Poon, CK; Zhang, YZ. Approximation algorithms in batch processing. J Comb Optim; 2003; 7, pp. 247-257.2024885 [DOI: https://dx.doi.org/10.1023/A:1027316504440] 1053.90033
Feng, Q; Yuan, JJ. NP-hardness of a multicriteria scheduling on two families of jobs. OR Trans; 2007; 11, pp. 121-126.1232.91552
Fu, RY; Tian, J; Yuan, JJ; He, C. On-line scheduling on a batch machine to minimize makespan with limited restarts. Oper Res Lett; 2008; 36, pp. 255-258.2396576 [DOI: https://dx.doi.org/10.1016/j.orl.2007.07.001] 1144.90378
Fu, RY; Tian, J; Yuan, JJ; Lin, YX. Online scheduling in a parallel batch processing system to minimize makespan using restarts. Theor Comput Sci; 2007; 374,
Lee, CY; Uzsoy, R; Martin-Vega, LA. Efficient algorithms for scheduling semi-conductor burn-in operations. Oper Res; 1992; 40, pp. 764-775.1179802 [DOI: https://dx.doi.org/10.1287/opre.40.4.764] 0759.90046
Li, WH; Chai, X. Online scheduling on bounded batch machines to minimize the maximum weighted completion time. J Oper Res Soc Chin; 2018; 6,
Li, WJ. A best possible online algorithm for the parallel-machine scheduling to minimize the maximum weighted completion time. Asia-Pacific J Oper Res; 2015; 32,
Liu, PH; Lu, XW; Fang, Y. A best possible deterministic on-line algorithm for minimizing makespan on parallel batch machines. J Sched; 2012; 15,
Oron, D; Shabtay, D; Steiner, G. Single machine scheduling with two competing agents and equal job processing times. Euro J Oper Res; 2015; 244, pp. 86-99.3320768 [DOI: https://dx.doi.org/10.1016/j.ejor.2015.01.003] 1346.90378
Tian, J; Cheng, TCE; Ng, CT; Yuan, JJ. Online scheduling on unbounded parallel-batch machines to minimize the makespan. Inf Process Lett; 2009; 109,
van den Akker, M; Hoogeveen, H; Vakhania, N. Restarts can help in the on-line minimization of the maximum delivery time on a single machine. J Sched; 2000; 3,
Yuan, JJ; Fu, RY; Ng, CT; Cheng, TCE. A best possible online algorithm for unbounded parallel-batch scheduling with restarts to minimize makespan. J Sched; 2011; 14, pp. 361-369.2818764 [DOI: https://dx.doi.org/10.1007/s10951-010-0172-2] 1229.90067
Yuan, JJ; Ng, CT; Cheng, TCE. Scheduling with release dates and preemption to minimize multiple max-form objective functions. Euro J Oper Res; 2020; 280, pp. 860-875.4011138 [DOI: https://dx.doi.org/10.1016/j.ejor.2019.07.072] 1430.90296
Zhang, GC; Cai, XQ; Wong, CK. Online algorithms for minimizing makespan on batch processing machines. Naval Res Logist; 2001; 48, pp. 241-258.1817652 [DOI: https://dx.doi.org/10.1002/nav.5] 1018.90017
© The Author(s), under exclusive licence to Springer Science+Business Media, LLC, part of Springer Nature 2024.