Abstract

This study considers a scheduling environment in which there are two agents and a set of jobs, each of which belongs to one of the two agents and its actual processing time is defined as a decreasing linear function of its starting time. Each of the two agents competes to process its respective jobs on a single machine and has its own scheduling objective to optimize. The objective is to assign the jobs so that the resulting schedule performs well with respect to the objectives of both agents. The objective functions addressed in this study include the maximum cost, the total weighted completion time, and the discounted total weighted completion time. We investigate three problems arising from different combinations of the objectives of the two agents. The computational complexity of the problems is discussed and solution algorithms where possible are presented.

1. Introduction

In traditional scheduling research, it is commonly assumed that the processing times of the jobs remain unchanged throughout the scheduling horizon. However, under certain circumstances, the job processing times may become short due to learning effects in the production environment. For example, Biskup  [1] points out that the repeated processing of similar tasks will improve workers’ efficiency; that is, it takes workers shorter times to process setups, operate machines or software, or handle raw materials and components. In such an environment, a job scheduled later will consume less time than the same job when scheduled earlier. Jobs in such a setting are said to be under the “learning effect” in the literature.

Biskup [1] and Cheng and Wang [2] first introduce the idea of learning into the field of scheduling independently. Since then, a large body of literature on scheduling with learning effects has emerged. Examples of such studies are Mosheiov  [3], Mosheiov and Sidney  [4], Bachman and Janiak [5], Janiak and Rudek [6], Wang [7], and Yin et al. [8]. Biskup [9] provides a comprehensive review of research on scheduling with learning effects. For more recent studies in this line of research, the reader is referred to Jiang et al. [10, 11], Yang  [12], S.-J. Yang and D.-L. Yang  [13], Wang et al. [14], Wu et al. [15], Xu et al. [16], and Yin et al. [8].

All the above papers consider the traditional case with a single agent. In recent years scheduling researchers have increasingly considered the setting of multiple competing agents, in which multiple agents need to process their own sets of jobs, competing for the use of a common resource and each agent has its own objective to optimize. However, there is little scheduling research in the multiagent setting in which the jobs are under learning effects. Liu et al. [17] study two models with two agents and position-dependent processing times. They assume that the actual processing time of job is in the aging-effect model, while the actual processing time of is in the learning-effect model, where represents the processed position of and denotes the aging or learning index. Ho et al. [18] define the actual processing time of job as if it is processed at time , where denotes the normal processing time of job and represents a constant such that with . Inspired by Ho et al. [18], Yin et al. [19] consider some two-agent scheduling problems under the learning effect model proposed in Ho et al. [18], in which the objective functions for agent include the maximum earliness cost, the total earliness cost, and the total weighted earliness cost, and the objective function for agent is always the same, that is, maximum earliness cost, and the objective is to minimize the objective function of agent while keeping the objective function of agent not greater than a given level. Similar models have been further studied by Wang and Xia [20], Wang [21], and so on. For the other related two-agent works without time-dependent processing times, the reader can refer to Baker and Smith [22], Agnetis et al. [23, 24], Cheng et al. [25, 26], Ng et al. [27], Mor and Mosheiov  [28], Lee et al. [29], Leung et al. [30], Wan et al. [31], Yin et al. [19, 32], Yu et al. [33], and Zhao and Lu [34].

This study introduces a new scheduling model in which both the two-agent concept and the learning effects exist, simultaneously. We consider the following objective functions: the maximum cost, total completion time, total weighted completion time, and discounted total weighted completion time. The structural properties of optimal schedules are derived and polynomial time algorithms are developed for the problems where possible.

The remaining part of the study is organized as follows: Section 2 introduces the notation and terminology used throughout the paper. Sections 36 analyze the computational complexity and derive the optimal properties of the problems under study. The last section concludes the paper and suggests topics for future research.

2. Model Formulation

The problem investigated in this paper can be formally described as follows. Suppose that there are two agents and , each of whom has a set of nonpreemptive jobs. The two agents compete to process their jobs on a common machine. Agent has to process the job set  , while agent has to process the job set . All the jobs are available for processing at time , where . Let . The jobs belonging to agent are called -jobs. Associated with each job , there are normal processing time and weight . Due to the learning effect, the actual processing time of job is defined as where denotes job’s starting time and represents constant such that , where (see Ho et al. [18] for details).

Given a feasible schedule of the jobs, we use to denote the completion time of job and omit the argument whenever this does not cause confusion. The makespan of agent is . For each job ,  let be a nondecreasing function.  In this case, the maximum cost is defined as . The objective function of agent considered in this paper includes the following: (maximum cost), (total completion time), (total weighted completion time), and (discounted total weighted completion time).

Using the three-field notation scheme introduced by Graham et al. [35], the problems considered in this paper are denoted as follows: , , , and .

Note that all the objective functions involved in the considered problems are regular; that is, they are nondecreasing in the job completion times. Hence there is no benefit in keeping the machine idle.

3. Problem

In this section we address the problem and show that it can be solved optimally in polynomial time. We first develop some structural properties of optimal schedules for the problem which will be used in developing the algorithm.

Lemma 1 (see [19]). For problem , the makespan is equal to

In the sequel, we set . Then the following results hold.

Proposition 2. For the problem , if there is a B-job such that , then there exists an optimal schedule such that is scheduled last and there is no optimal schedule where an A-job is scheduled last.

Proof. Assume that is an optimal schedule where the -job is not scheduled in the last position. Let denote the set of jobs scheduled prior to job . We construct from a new schedule by moving job to the last position and leaving the other jobs unchanged in . Then, the completion times of the jobs processed before job in are the same as that in since there is no change for any job preceding in . The jobs belonging to are scheduled earlier, so their completion times are smaller in by Lemma 1. It follows that for any job in , where . By the assumption that , job is feasible in ,  so schedule is feasible and optimal, as required.

For each -job , let us define a deadline such that for and for (if the inverse function is available, the deadlines can be evaluated in constant time; otherwise, this requires logarithmic time).

Proposition 3. For the problem , there exists an optimal schedule where the -jobs are scheduled according to the nondecreasing order of .

Proof. Assume that is an optimal schedule where the -jobs are not scheduled according to the nondecreasing order of . Let and be the first pair of jobs such that . In this schedule, job is processed earlier; then a set of -jobs, denoted as , are consecutively processed and then job . In addition, denote by the set of jobs processed after job . We construct from a new schedule by extracting job , reinserting it just after job and leaving the other jobs unchanged in schedule . Then the completion times of the jobs processed prior to job in are the same as that in . By Lemma 1, the completion time of job in equals that of job in ; that is, , so the completion times of the jobs belonging to are identical in both and . Since is feasible, it follows that , so job is feasible in . The -jobs and job are scheduled earlier in , implying that their actual processing times are smaller in , so their completion times are earlier in , and thus they remain feasible. Therefore, schedule is feasible and optimal.
Thus, repeating doing this procedure for all the -jobs not sequenced according to nondecreasing order of completes the proof.

Proposition 4. For the problem , if for any -job , then there exists an optimal schedule where the -job with the smallest cost is processed in the last position.

Proof. Assume that is an optimal schedule where the -job with the smallest cost , that is, , is not processed in the last position. By the hypothesis, the last job in schedule is an -job, say . This means . In this schedule, job is scheduled earlier. Let denote the set of jobs scheduled after job and prior to job . We construct from a new schedule by extracting job , reinserting it just after job , and leaving the other jobs unchanged in schedule . There is no change for any job preceding in . We claim the following.(1)Schedule is feasible. First, the completion times of the jobs processed prior to job in are the same as that in . Since the jobs belonging to are scheduled earlier in , their actual processing times are smaller in , so their completion times are earlier in . It follows that for any job in , where , as required.(2)Schedule is a better schedule than . By Lemma 1, the completion time of the last job in equals that of the last job in ; that is, . Thus, to prove that is better than , it suffices to show that Since is a nondecreasing function of the completion time of job and , we have . Thus , as required.
The result follows.

Summing up the above analysis, our algorithm for problem can be formally described as in Algorithm 1.

Input: , and .
Step  1. Set and ,; solve from
   for and renumber them according to the non-decreasing
  order such that ;
Step  2. If , then
     If , then
    set , , assign job at time , and go to Step  2;
     Else
    go to Step  3;
  Else
     go to Step  3;
Step  3. If , then
     select the job from with the the smallest cost, that is,   ,
     set , , assign job at time , delete from ,
     and go to Step  4;
  Elseif
     report that the instance is not feasible;
  Else
     go to Step  4;
Step  4. If is not empty or , then
     go to Step  2.
  Else
     stop.

Theorem 5. Algorithm 1 solves problem in time.

Proof. Step 1 requires a sorting operation of the -jobs, which takes time. Step 2 takes time since the calculation of the functions in Step 2 can be evaluated in constant time by the assumption. In Step 3 we calculate the value for all the remaining unscheduled -jobs, which takes time. Thus, after iterations, Step 3 can be executed in time. Therefore, the overall time complexity of the algorithm is indeed .

4. Problem

Leung et al. [30] show that problem is NP-hard in the strong sense. Since our problem is a generalization of the problem , then so is our problem. In what follows we show that the problem is polynomially solvable if the -jobs have reversely agreeable weights; that is,  implies for all jobs and . It is clear that Propositions 2 and 3 still hold for this problem. We modify Proposition 4 as follows.

Proposition 6. For the problem , if the -jobs have reversely agreeable weights, then there exists an optimal schedule where the -jobs are assigned according to the nondecreasing order of , that is, in the weighted shortest processing time (WSPT) order.

Proof. Assume that is an optimal schedule where -jobs are not scheduled in the WSPT order. Let and be the first pair of jobs such that . Then and due to the fact that the -jobs have reversely agreeable weights. Assume that, in schedule , job starts its processing at time ; then a set of -jobs are consecutively processed and then job . In addition, let denote the set of jobs processed after job . We construct a new scheduling from by swapping jobs and and leaving the other jobs unchanged. We conclude the following. (1)Schedule is feasible. By Lemma 1, the completion time of job in equals that of job in ; that is, , so the completion times of the jobs belonging to are identical in both and . Since , we have . Hence the -jobs are scheduled earlier in , implying that their actual processing times are smaller in , so their completion times are earlier in . Hence for any job in , as required.(2)Schedule is better than . By the proof of (1), it is sufficient to show that Since and , we have as required.
Thus, repeating this swapping argument for all the -jobs not sequenced in the WSPT order yields the theorem.

Based on the results of Propositions 2, 3, and 6, our algorithm to solve the problem for the case where the -jobs have reversely agreeable weights can be formally described as in Algorithm 2.

Input: , , and .
Step  1. Set , and ;
  sort the -jobs according to the non-decreasing order of , that is,
   ;
  calculate the deadlines of the -jobs from and renumber them
  according to the non-decreasing order such that ;
Step  2. If , then
     If , then
    set , , assign job at time , and go to Step  2;
     Else
    go to Step  3;
  Else
     go to Step  3;
Step  3. If , then
     set , , , assign at time , and go to Step  4;
  Elseif
     output that the instance is not feasible;
  Else
     go to Step  4;
Step  4. If or , then
     go to Step  2.
  Else
     stop.

Theorem 7. The problem can be solved in time by applying Algorithm 2 if all -jobs have reversely agreeable weights.

Proof. The correctness comes from the above analysis. Now we turn to the time complexity of the algorithm. Step 1 requires two sorting operations of the -jobs and -jobs, respectively, which take time and time, respectively. Both Steps 2 and 3 take time. Therefore, the overall time complexity of the algorithm is indeed .

5. Problem

This section address the problem . We show that it is polynomially solvable if the -jobs have reversely agreeable weights. It is clear that Propositions 2 and 3 still hold for this problem. We give Proposition 8 as follows.

Proposition 8. For the problem , if the -jobs have reversely agreeable weights, then there exists an optimal schedule where the -jobs are assigned according to the nondecreasing order of , that is, in the weighted discount shortest processing time (WDSPT) order.

Proof. We adopt the same notation as that used in the proof of Proposition 6. Assume that . Since -jobs have reversely agreeable weights, we have and . Then by the proof of Proposition 6,  we know that , , and for all the other jobs and that schedule is feasible. To show that is better than , it is sufficient to show that In fact, since , , and , we have Hence, . Therefore, is not worse than . Thus, repeating this swapping argument for all the -jobs not sequenced in the WDSPT order yields the theorem.

Based on the above analysis, our algorithm to solve the problem for the case where the -jobs have reversely agreeable weights can be described as in Algorithm 3.

Input: , , and .
Step  1. Set , and ;
  sort the -jobs in non-decreasing order of ,
  that is, ;
  calculate the deadlines of the -jobs from and
  renumber them according to the non-decreasing order, that is, ;
Step  2. If , then
     If , then
    set , , assign at time , and go to Step  2;
     Else
    go to Step  3;
  Else
     go to Step  3;
Step  3. If , then
     set , , ,
     assign at time , and go to Step  4;
  Elseif
     output that the instance is not feasible;
  Else
     go to Step  4;
Step  4. If or , then
     go to Step  2.
  Else
     stop.

Theorem 9. The problem can be solved in time by applying Algorithm 3 for the case that the -jobs have reversely agreeable weights.

Proof. The proof is analogous to that of Theorem 7.

6. Conclusions

This paper introduced a new scheduling model on a single machine that involves two agents and learning effects simultaneously. We studied the problem of finding an optimal schedule for agent , subject to the constraint that the maximum cost of agent does not exceed a given value. We derived the optimal structural properties of optimal schedules and provided polynomial time algorithms for the problem . We also showed that the problems and can also be solved in polynomial time under certain agreeable conditions. Future research may consider the scheduling model with more than two agents.

Conflict of Interests

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

Acknowledgments

The authors are grateful to the Editor and two anonymous referees for their helpful comments on an earlier version of their paper. This research was supported by the National Natural Science Foundation of China (no. 71301022).