1 Introduction

In classic deterministic scheduling models, the job processing times are treated as certain given constants, but this is not appropriate for all actual situations. There are many real-life production situations where the job processing times may vary over time due to the learning effect. Biskup [1] considered the learning effect in the scheduling problems for the first time, and he pointed out that the learning effects have been observed in numerous practical situations in different branches of industry. However, many studies on the scheduling problem with the learning effect assumed that the machines are available all the time. This assumption may not be true in real production settings. Machine breakdown and preventive maintenance may occur during the scheduling period. In this paper we investigate the scheduling problem on a single serial-batching machine with the learning effect and an availability constraint for the deterministic case. To the best of our knowledge, this is the first attempt to investigate this type of problem.

Wright [2] first found the impact of learning on productivity in the aircraft industry. Then, Biskup [1] and Chen and Wang [3] are among the pioneers that combined the learning effect and scheduling fields. Afterwards, more researches have been devoted to investigating the learning effects in many scheduling situations. Recently, Wang and Wang [4] studied a new scheduling model with sum-of-logarithm-processing-times based and position based learning effects. Based on the proposed model, they show that some single-machine scheduling problems are still polynomially solvable. Lee [5] studied a scheduling model where the learning effect, deteriorating jobs, and the setup times are considered simultaneously. Some optimal schedules are proposed for some single-machine scheduling problems. Cheng et al. [6] introduced a scheduling model with a position-weighted learning effect. They develop some optimal solutions to minimize the makespan and the total completion time, and an optimal solution is also provided to minimize the total tardiness under an agreeable situation. Wang and Wang [7] considered flowshop scheduling problems with a general exponential learning effect, and several heuristic algorithms are developed for five objective functions: the makespan, the total completion time, the total weighted completion time, the total weighted discounted completion time, and the sum of the quadratic job completion times. The worst-case bound of each heuristic algorithm is analyzed. Luo and Zhang [8] investigated a simple proof technique to analyze the scheduling models with the learning effects. Based on the famous Lagrange mean value theorem, a simpler technique is proposed to simplify the proofs. Based on a common flow allowance, Li et al. [9] studied a single-machine due-window assignment scheduling problem with learning effect and controllable processing times, and the objective is to minimize a linear combination of earliness, tardiness, window location, window size, makespan, and resource consumption. A polynomial-time algorithm is developed to solve them, respectively.

The majority of the scheduling literature carries a common assumption that machines are available simultaneously. However, the machine may not always be available in real industrial setting, and it is mainly due to machine breakdowns or preventive maintenance during the scheduling period. Many researchers have focused on this type of the scheduling problems. Based on various performance measures and various machine environments, Lee [10] presented an extensive study of the single and parallel machine scheduling problems with an availability constraint. Lee [11] investigated the model of the two-machine flowshop problem with the availability constraint on one machine and both machines, respectively. Dynamic programming algorithms are developed to solve the problems optimally and heuristic methods are proposed with an error bound analysis. Zhong et al. [12] studied an order acceptance and scheduling model with machine availability constraints, where the machine is available to process orders only within a number of discontinuous time intervals. The objective is to minimize the makespan of all accepted orders plus the total penalty of all rejected/outsourced orders, and the approximability of the model and some of its important special cases are studied. Kacem et al. [13] considered the maximization of the weighted number of early jobs on a single machine with non-availability constraints. Both the resumable and the non-resumable cases are investigated, and some polynomial time approximation schemes are developed to solve them. Mor and Mosheiov [14] studied single-machine scheduling problems with an unavailability constraint and position-dependent processing times. The objectives are to minimize makespan, minimum total completion time, and minimum number of tardy jobs. Heuristics are developed to solve them, respectively, and lower bounds, worst case analysis, and asymptotic optimality are also discussed. Wu and Lee [15] considered a single-machine scheduling problem with learning effect and an availability constraint. They showed that the shortest processing time rule provides the optimal schedules for the makespan and the total completion time minimization problems when jobs are assumed to be resumable.

The batch production is an important class of scheduling problems, and many researchers have investigated the batching scheduling problems, i.e., parallel-batching and serial-batching problems. The parallel-batching scheduling problems with deterioration and/or learning effects have been studied by several researchers in the last decade, including Yang and Kuo [16] and Li et al. [17]. The problem studied in this paper is similar to the group scheduling problem with the effect of learning which has been studied extensively, including Yang [21], Bai et al. [22], and Huang et al. [23]. There are some similarities and differences between group and serial-batching scheduling problems, and we have analyzed in depth in [24]. We also have investigated some serial-batching scheduling problems with deterioration and learning effects. In [18], the problem of coordinated production and transportation was investigated, where the deteriorating jobs are processed on a serial-batching machine in an aluminum manufacturing factory. Two scheduling models with and without buffers are considered, and we developed the optimization algorithm and heuristic algorithm to solve them. In [19], a scheduling model with the features of deteriorating jobs, serial batches, multiple job types, and setup times are considered simultaneously. In [20], the serial-batching scheduling problems with the effects of deterioration and learning are considered simultaneous. This paper differs from our previous research in the following two aspects. Firstly, unlike our previous papers that assume machine availability at all times, in this paper deterministic availability constraint is imposed on the machine according to the practical production situation at the factory. Secondly, we investigate the different position-dependent learning effect as function of the actual job processing time.

The reminder of this paper is organized as follows. The problem description is given in Sect. 2. In Sect. 3, the structure properties of three cases for the makespan minimization problem are analyzed and our solution procedure is presented. Finally, the conclusion is given in Sect. 4.

2 Notations and problem statement

In this section, a new scheduling model is investigated by extending Wang and Xia’s idea [25] to the context of serial-batching scheduling with an availability constraint. The model is described as follows. There are given n independent and non-preemptive jobs \(J_{1} ,J_{2} ,\ldots ,J_{n} \) to be processed on a single serial-batching machine. All jobs are first partitioned into multiple serial batches, and then these different batches are processed on a single machine. Serial batches require that all the jobs within the same batch are processed one after another in a serial fashion [26], and the setup operation is needed before processing each batch. The general model of the job processing time is considered from Wang and Xia [25], and it is based on a position-dependent learning effect. That is, when \(J_{i} \) is scheduled in the position r, the actual processing time of job \(J_{i} \) is

$$\begin{aligned} p_{ir} =p_{i} \left( {a-br} \right) \end{aligned}$$
(1)

where \(p_{i} \) is the normal processing time, a and b denote a constant number and a learning ratio. Here \(a,b>0\), it is assumed that \(a-bn>0\), and the values of these parameters are determined based on the machine’s status and the practical production situations. All jobs are available for processing at time \(t_{0} \).

The setup operation is used for adjustment of related assistive equipment, and longer setup time might be necessary as the assistive equipment’s condition worsens. As in [27], the setup time s for a batch is also defined as a simple linear function of its starting time t, and it is defined as

$$\begin{aligned} s=\theta t \end{aligned}$$
(2)

where \(\theta \) is the deteriorating rate of the setup time.

Let c denote the capacity of the serial-batching machine, i.e., the maximum number of jobs in a batch. Also, we denote the number of batches and the number of jobs in the kth batch \(b_{k} \) as m and \(n_{k} \), i.e., \(n_{k} \le c\), \(k=1,2,\ldots ,m\). Here we also investigate the situation that the machine is not available from the period \(d_{1} \) to \(d_{2} \) [28], where \(0\le d_{1} \le d_{2} \). Thus, resumable jobs are considered in the present paper. If a job is interrupted by the start time of a non-availability period, and it does not need to be restarted and can continue to be processed after the machine becomes available again, then this job is said to be resumable [28, 29]. The objective of this paper is to find an optimal schedule to minimize the makespan. For a given schedule    \(\pi =\{ {J_{1} ,J_{2} ,\ldots ,J_{n} } \}\), let \(C_{i} ( \pi )\) and \(C( {b_{k} })\) represent the completion times of the job \(J_{i} \) and the batch \(b_{k} \), respectively. Also, let \(C_{max} =max\{ {C_{i} \hbox {|}i=1,2,\ldots ,n} \}\) represent the makespan based on the traditional notation and m represent the number of batches in a schedule. The problem under consideration is denoted as \(1| {s-batch,r-a,p_{ir} =p_{i} ( {a-br}),s=\theta t}|C_{max} \) using the three-field notation schema \(\upalpha | \beta |\gamma \) introduced by Graham et al. [30].

3 The problem \(1|s-batch,r-a,p_{ir}=p_{i} (a-br),s=\theta t|C_{max}\)

In this section, we focus on the makespan minimization problem. Depending on the relation among the starting time of the setup, the completion time of the batch, and the starting time for the machine’s non-availability period, these situations are divided into the following three cases.

Case 1. The starting time for the non-availability period is bigger than the starting time of one batch and smaller than the completion time of one batch. Or, the starting time for the non-availability period is bigger than the starting time of one batch’s setup and smaller than the completion time of one batch’s setup, and this batch is not the first batch.

Case 2. The starting time for the non-availability period is bigger than the starting time of the first batch’s setup and smaller than the completion time of the first batch’s setup.

Case 3. The starting time for the non-availability period is bigger than the completion time of all batches.

These three cases are shown in Fig. 1.

Fig. 1
figure 1

Three cases for the situation of the machine’s non-availability period

Then, we discuss on these three cases, respectively.

(1) Case 1

Lemma 1

For Case 1, given any schedule \(\pi =( {b_{1} ,b_{2} ,\ldots ,b_{m} })\), with the first batch \(b_{1} \)starting at time \(t_{0} >0\), if the starting time for the non-availability period is bigger than the starting time of \(b_{f} ( {0<f\le m})\)and smaller than the completion time of \(b_{f} \), then the makespan of schedule \(\pi \) is

$$\begin{aligned} C_{max} \left( \pi \right)= & {} t_{0} \left( {1+\theta }^m \right) +\mathop \sum \limits _{k=1}^{m} \mathop \sum \limits _{i=1+\mathop \sum \nolimits _{j=1}^{k-1} n_{j} }^{\mathop \sum \nolimits _{j=1}^{k} n_{j} } p_{i} \left( {a-bi} \right) \left( {1+\theta } \right) ^{m-k}\nonumber \\&+\left( {d_{2} -d_{1} } \right) \left( {1+\theta } \right) ^{m-f+1} \end{aligned}$$
(3)

Proof

For the batch index \(l=1\), there is

$$\begin{aligned} C\left( {b_{1} } \right) =t_{0} \left( {1+\theta } \right) +\mathop \sum \limits _{i=1}^{n_{1} } p_{i} \left( {a-bi} \right) . \end{aligned}$$

For all \(2\le l<f\), if Eq. (3) holds, then

$$\begin{aligned} C\left( {b_{l} } \right) =t_{0} \left( {1+\theta } \right) ^{l}+\mathop \sum \limits _{k=1}^{l} \mathop \sum \limits _{i=1+\mathop \sum \nolimits _{j=1}^{k-1} n_{j} }^{\mathop \sum \nolimits _{j=1}^{k} n_{j} } p_{i} \left( {a-bi} \right) \left( {1+\theta } \right) ^{l-k}, \end{aligned}$$

Then, for the \(\left( {l+1} \right) \)th batch \(b_{l+1} \), there is

$$\begin{aligned} C\left( {b_{l+1} } \right)= & {} C\left( {b_{l} } \right) \left( {1+\theta } \right) +\mathop \sum \limits _{i=1+\mathop \sum \nolimits _{j=1}^{l} n_{j} }^{\mathop \sum \nolimits _{j=1}^{l+1} n_{j} } p_{i} \left( {a-bi} \right) \left( {1+\theta } \right) ^{l-k}\\= & {} t_{0} \left( {1+\theta }\right) ^{l+1} +\mathop \sum \limits _{k=1}^{l+1} \mathop \sum \limits _{i=1+\mathop \sum \nolimits _{j=1}^{k-1} n_{j} }^{\mathop \sum \nolimits _{j=1}^{k} n_{j} } p_{i} \left( {a-bi} \right) \left( {1+\theta } \right) ^{l-k}, \end{aligned}$$

so Eq. (3) holds for all \(1\le l<f\).

For \(l\ge f\), if Eq. (3) holds, then

$$\begin{aligned} C\left( {b_{l} } \right) =t_{0} \left( {1+\theta }\right) ^{l} +\mathop \sum \limits _{k=1}^{l} \mathop \sum \limits _{i=1+\mathop \sum \nolimits _{j=1}^{k-1} n_{j} }^{\mathop \sum \nolimits _{j=1}^{k} n_{j} } p_{i} \left( {a-bi} \right) \left( {1+\theta } \right) +\left( {d_{2} -d_{1} } \right) \left( {1+\theta } \right) ^{m-f+1}. \end{aligned}$$

Then, for the \(\left( {l+1} \right) \)th batch \(b_{l+1} \),

$$\begin{aligned} C\left( {b_{l+1} } \right) =t_{0} \left( {1+\theta }\right) ^{l+1} +\mathop \sum \limits _{k=1}^{l+1} \mathop \sum \limits _{i=1+\mathop \sum \nolimits _{j=1}^{k-1} n_{j} }^{\mathop \sum \nolimits _{j=1}^{k} n_{j} } p_{i} \left( {a-bi} \right) \left( {1+\theta } \right) +\left( {d_{2} -d_{1} } \right) \left( {1+\theta } \right) ^{m-f}. \end{aligned}$$

Thus, Eq. (3) holds for \(m=l+1\). Note that \(C_{max} \left( \pi \right) =C\left( {b_{m} } \right) \), the proof is completed. \(\square \)

Similar to the Proof of Lemma 1, we have the following lemma

Lemma 2

For Case 1, given any schedule \(\pi =\left( {b_{1} ,b_{2} ,\ldots ,b_{m} } \right) \), with the first batch \(b_{1} \) starting at time \(t_{0} >0\), if the starting time for the non-availability period is bigger than the starting time of the setup for \(b_{f} \left( {1<f\le m} \right) \)and smaller than the completion time of the setup for \(b_{f} \), and this batch is not the first batch, then the makespan of schedule \(\pi \) is

$$\begin{aligned} C_{max} \left( \pi \right)= & {} t_{0} \left( {1+\theta }\right) ^{m}+\mathop \sum \limits _{k=1}^{m} \mathop \sum \limits _{i=1+\mathop \sum \nolimits _{j=1}^{k-1} n_{j} }^{\mathop \sum \nolimits _{j=1}^{k} n_{j} } p_{i} \left( {a-bi} \right) \left( {1+\theta } \right) ^{m-k}\\&+\left( {d_{2} -d_{1} } \right) \left( {1+\theta } \right) ^{m-f+1}. \end{aligned}$$

Here we denote the batch set \(\left( {b_{1} ,b_{2} ,\ldots ,b_{f} } \right) \) as batch set A and the batch set \(\left( {b_{f+1} ,b_{f+2} ,\ldots ,b_{m} } \right) \) as batch set B, respectively.

Lemma 3

For Case 1,all jobs should be sequenced in non-decreasing order of \(p_{i} \) in the job sets A and B, respectively.

Proof

We first consider the jobs in B. Here we assume that \(\pi \) and \(\pi \) are an optimal schedule and a job schedule, respectively. The difference of these two schedules is the pairwise interchange of these two jobs \(J_{r} \) and \(J_{r+1} ( {r=1,2,\ldots ,n-1} )\) in the same batch, that is, \(\pi =( {W_{1} ,J_{r} ,J_{r+1} ,W_{2} } )\), \(\pi =( {W_{1} ,J_{r+1} ,J_{r} ,W_{2} })\), where \(J_{r} \in b_{p} \), \(J_{r+1} \in b_{p} \), and \(b_{p} \subset B\), \(n_{p} \ge 2\), \(p=1,2,\ldots ,m\). \(W_{1} \)and \(W_{2} \) represent two partial sequences, and \(W_{1} \) or \(W_{2} \) may be empty. It is assumed that \(p_{r} \ge p_{r+1} \).

The completion time of \(b_{p} \) in \(\pi ^{*}\) is

$$\begin{aligned} C\left( {b_{p} \left( {\pi }^{*} \right) } \right)= & {} t_{0} \left( {1+\theta } \right) ^{p}+\mathop \sum \limits _{k=1}^{p} \mathop \sum \limits _{i=1+\mathop \sum \nolimits _{j=1}^{k-1} n_{j} }^{\mathop \sum \nolimits _{j=1}^{k} n_{j} } p_{i} \left( {a-bi} \right) \left( {1+\theta } \right) ^{p-k}\\&+\left( {d_{2} -d_{1} } \right) \left( {1+\theta } \right) ^{p-f+1}. \end{aligned}$$

The completion time of \(b_{p} \) in \(\pi \) is

$$\begin{aligned} C\left( {b_{p} \left( \pi \right) } \right)= & {} t_{0} \left( {1+\theta }\right) ^{p} +\mathop \sum \limits _{k=1}^{p} \mathop \sum \limits _{i=1+\mathop \sum \nolimits _{j=1}^{k-1} n_{j} }^{\mathop \sum \nolimits _{j=1}^{k} n_{j} } p_{i} \left( {a-bi} \right) \left( {1+\theta } \right) ^{p-k}\\&+\left( {d_{2} -d_{1} } \right) \left( {1+\theta }\right) ^{p-f+1}\\&-\left[ {p_{r} \left( {a-br} \right) +p_{r+1} \left( {a-b\left( {r+1} \right) } \right) } \right] \\&+\left[ {p_{r+1} \left( {a-br} \right) +p_{r} \left( {a-b\left( {r+1} \right) } \right) } \right] . \end{aligned}$$

Then,

$$\begin{aligned} C\left( {b_{p} \left( {\pi }^{*} \right) } \right) - C\left( {b_{p} \left( \pi \right) } \right)= & {} \left[ {p_{r} \left( {a-br} \right) +p_{r+1} \left( {a-b\left( {r+1} \right) } \right) } \right] \\&-\left[ {p_{r+1} \left( {a-br} \right) +p_{r} \left( {a-b\left( {r+1} \right) } \right) } \right] \\= & {} \left( {p_{r} -p_{r+1} } \right) b. \end{aligned}$$

Since we have \(p_{r} >p_{r+1} \) and \(b>0\), it can be derived that

$$\begin{aligned} C\left( {b_{p} \left( {\pi } \right) ^{*}} \right) >C\left( {b_{p} \left( \pi \right) } \right) , \end{aligned}$$

which conflicts with the optimal schedule. Hence, \(p_{r} \le p_{r+1} \).

Also, the proof of the case of the jobs in A is similar to that of B, and we omit it.

The proof is completed.

Similar to the Proof of Lemma 3, we can obtain the following lemma.

Lemma 4

For Case 1,the processing time of any job in batch set A is smaller than that in batch set B.

Based on Lemmas 3 and 4, we can obtain the following corollary.

Corollary 1

For Case 1, all jobs should be sequenced in non-decreasing order of \(p_{i} \) in the optimal schedule.

Similar to the Proof of Lemma 3, we can obtain the following two lemmas.

Lemma 5

For Case 1, for two consecutive batches \(b_{p} \) and \(b_{p+1} \) in an optimal schedule, \(n_{p} \ge n_{p+1} \) must hold.

Lemma 6

For Case 1, the number of the batches in the optimal schedule is \(\left[ \frac{n}{c}\right] .\)

Based on Lemmas 5 and 6, we can obtain the following corollary.

Corollary 2

For Case 1, all batches in an optimal schedule are full, except possibly for the highest indexed one.

(2) Case 2

Lemma 7

For Case 2, given any schedule \(\pi =\left( {b_{1} ,b_{2}} ,\ldots ,b_{m} \right) \), with the first batch \(b_{1} \) starting at time \(t_{0} >0\) , then the makespan of schedule \(\pi \) is

$$\begin{aligned} C_{max} \left( \pi \right)= & {} t_{0} \left( {1+\theta }\right) ^{m}+\left( {d_{2} -d_{1} } \right) \left( {1+\theta }\right) ^{m-1} \nonumber \\&+\mathop \sum \limits _{k=1}^{m} \mathop \sum \limits _{i=1+\mathop \sum \nolimits _{j=1}^{k-1} n_{j} }^{\mathop \sum \nolimits _{j=1}^{k} n_{j} } p_{i} \left( {a-bi} \right) \left( {1+\theta } \right) ^{m-k} \end{aligned}$$
(4)

Proof

Based on the number of the batches, this lemma can be proved by using mathematical induction. Firstly for \(m=1\), there is

$$\begin{aligned} C\left( {b_{1} } \right) =t_{0} \left( {1+\theta } \right) +\left( {d_{2} -d_{1} } \right) +\mathop \sum \limits _{i=1}^{n} p_{i} \left( {a-bi} \right) , \end{aligned}$$

so Eq. (4) holds for \(m=1\). Suppose for all \(2\le l\le m-1\), Eq. (4) is satisfied. We have

$$\begin{aligned} C\left( {b_{l} } \right) =t_{0} \left( {1+\theta }\right) ^{l}+\left( {d_{2} -d_{1} } \right) \left( {1+\theta } \right) ^{l-1}+\mathop \sum \limits _{k=1}^{l} \mathop \sum \limits _{i=1+\mathop \sum \nolimits _{j=1}^{k-1} n_{j} }^{\mathop \sum \nolimits _{j=1}^{k} n_{j} } p_{i} \left( {a-bi} \right) \left( {1+\theta } \right) ^{l-k}. \end{aligned}$$

Then, for the \(( {l+1})\)th batch \(b_{l+1} \),

$$\begin{aligned} C\left( {b_{l+1} } \right)= & {} \left( {1+\theta } \right) \left[ {t_{0} \left( {1+\theta } \right) ^{l}+\left( {d_{2} -d_{1} } \right) \left( {1+\theta }\right) ^{l-1}+\mathop \sum \limits _{k=1}^{l} \mathop \sum \limits _{i=1+\mathop \sum \nolimits _{j=1}^{k-1} n_{j} }^{\mathop \sum \nolimits _{j=1}^{k} n_{j} } p_{i} \left( {a-bi} \right) \left( {1+\theta } \right) ^{l-k}} \right] \\&+\mathop \sum \limits _{i=1+\mathop \sum \nolimits _{j=1}^{l} n_{j} }^{\mathop \sum \nolimits _{j=1}^{l+1} n_{j} } p_{i} \left( {a-bi} \right) \\= & {} t_{0} \left( {1+\theta } \right) ^{l+1}+\left( {d_{2} -d_{1} } \right) \left( {1+\theta } \right) ^{l}+\mathop \sum \limits _{k=1}^{l+1} \mathop \sum \limits _{i=1+\mathop \sum \nolimits _{j=1}^{k-1} n_{j} }^{\mathop \sum \nolimits _{j=1}^{k} n_{j} } p_{i} \left( {a-bi} \right) \left( {1+\theta } \right) ^{l-k} \end{aligned}$$

Hence, Eq. (4) holds for \(m=l+1\). Note that \(C_{max} \left( \pi \right) =C\left( {b_{m} } \right) \), the lemma is proved by the induction. \(\square \)

Lemma 8

For Case 2, the jobs in the same batch should be sequenced in non-decreasing order of \(p_{i} \) in an optimal schedule.

Proof

Here we assume that \(\pi ^{*}\) and \(\pi \) are an optimal schedule and a job schedule, respectively. The difference of these two schedules is the pairwise interchange of these two jobs \(J_{r} \) and \(J_{r+1} \left( {r=1,2,\ldots ,n-1} \right) \) in the same batch, that is, \(\pi ^{*} =\left( {W_{1} ,J_{r} ,J_{r+1} ,W_{2} } \right) \), \(\pi =\left( {W_{1} ,J_{r+1} ,J_{r} ,W_{2} } \right) \), where \(J_{r} \in b_{p} \) and \(J_{r+1} \in b_{p} \), \(n_{p} \ge 2\), \(p=1,2,\ldots ,m\). \(W_{1} \)and \(W_{2} \) represent two partial sequences, and \(W_{1} \) or \(W_{2} \) may be empty. It is assumed that \(p_{r} \ge p_{r+1} \).

The completion time of \(b_{p} \) in \(\pi ^{*}\) is

$$\begin{aligned} C\left( {b_{p} \left( {\pi }^{*} \right) } \right)= & {} t_{0} \left( {1+\theta } \right) ^{p}+\left( {d_{2} -d_{1} } \right) \left( {1+\theta } \right) ^{p-1}\\&+\mathop \sum \limits _{k=1}^{p} \mathop \sum \limits _{i=1+\mathop \sum \nolimits _{j=1}^{k-1} n_{j} }^{\mathop \sum \nolimits _{j=1}^{k} n_{j} } p_{i} \left( {a-bi} \right) \left( {1+\theta } \right) ^{p-k}, \end{aligned}$$

The completion time of \(b_{p} \) in \(\pi \) is

$$\begin{aligned} C\left( {b_{p} \left( \pi \right) } \right)= & {} t_{0} \left( {1+\theta }\right) ^{p}+\left( {d_{2} -d_{1} } \right) \left( {1+\theta } \right) ^{p-1}\\&+\mathop \sum \limits _{k=1}^{p} \mathop \sum \limits _{i=1+\mathop \sum \nolimits _{j=1}^{k-1} n_{j} }^{\mathop \sum \nolimits _{j=1}^{k} n_{j} } p_{i} \left( {a-bi} \right) \left( {1+\theta } \right) ^{p-k}\\&-\left[ {p_{r} \left( {a-br} \right) +p_{r+1} \left( {a-b\left( {r+1} \right) } \right) } \right] \\&+\left[ {p_{r+1} \left( {a-br} \right) +p_{r} \left( {a-b\left( {r+1} \right) } \right) } \right] . \end{aligned}$$

Then,

$$\begin{aligned} C\left( {b_{p} \left( {\pi ^{*}}\right) } \right)- & {} C\left( {b_{p} \left( \pi \right) } \right) \\&=\left[ {p_{r} \left( {a-br} \right) +p_{r+1} \left( {a-b\left( {r+1} \right) } \right) } \right] \\&\quad -\left[ {p_{r+1} \left( {a-br} \right) +p_{r} \left( {a-b\left( {r+1} \right) } \right) } \right] \\&=\left( {p_{r} -p_{r+1} } \right) b. \end{aligned}$$

Since we have \(p_{r} >p_{r+1} \) and \(b>0\), it can be derived that

$$\begin{aligned} C\left( {b_{p} \left( {\pi }^{*} \right) } \right) >C\left( {b_{p} \left( \pi \right) } \right) , \end{aligned}$$

which conflicts with the optimal schedule. Hence, \(p_{r} \le p_{r+1} \). The proof is completed. \(\square \)

Lemma 9

For Case 2, for two jobs \(J_{u} \in b_{p} \) and \(J_{v} \in b_{p+1} \) from two consecutive batches, in an optimal schedule \(p_{u} \le p_{v} \)must hold.

Proof

Here we assume that \(\pi ^{*}\) and \(\pi \) are an optimal schedule and a job schedule, respectively. The two schedules’ difference is the pairwise interchange of these two jobs \(J_{u} \) and \(J_{v} \) (where \(J_{u} \) and \(J_{v} \) are in the u-th and v-th positions, and \(u<v)\), that is, \(\pi =\left( {W_{1} ,b_{p} ,b_{p+1} ,W_{2} } \right) \), \(\pi =\left( {W_{1} ,\left( {b_{p} /\left\{ {J_{u} } \right\} } \right) \mathop \cup \nolimits \left\{ {J_{v} } \right\} ,\left( {b_{p+1} /\left\{ {J_{v} } \right\} } \right) \mathop \cup \nolimits \left\{ {J_{u} } \right\} ,W_{2} } \right) \). \(W_{1} \)and \(W_{2} \) represent two partial sequences, and \(W_{1} \) or \(W_{2} \) may be empty. It is assumed that \(p_{u} >p_{v} \).

The completion time of \(b_{p+1} \) in \(\pi \) is

$$\begin{aligned} C\left( {b_{p+1} \left( {\pi ^{*}} \right) } \right)= & {} t_{0} \left( {1+\theta } \right) ^{p+1}+\left( {d_{2} -d_{1} } \right) \left( {1+\theta }\right) ^{p} \\&+\mathop \sum \limits _{k=1}^{p+1} \mathop \sum \limits _{i=1+\mathop \sum \nolimits _{j=1}^{k-1} n_{j} }^{\mathop \sum \nolimits _{j=1}^{k} n_{j} } p_{i} \left( {a-bi} \right) \left( {1+\theta } \right) ^{p+1-k}. \end{aligned}$$

The completion time of \(b_{p+1} \) in \(\pi \) is

$$\begin{aligned} C\left( {b_{p+1} \left( \pi \right) } \right)= & {} t_{0} \left( {1+\theta } \right) ^{p+1}+\left( {d_{2} -d_{1} } \right) \left( {1+\theta } \right) ^{p}\\&+\mathop \sum \limits _{k=1}^{p+1} \mathop \sum \limits _{i=1+\mathop \sum \nolimits _{j=1}^{k-1} n_{j} }^{\mathop \sum \nolimits _{j=1}^{k} n_{j} } p_{i} \left( {a-bi} \right) \left( {1+\theta } \right) ^{p+1-k}\\&-\left[ {p_{u} \left( {a-bu} \right) \left( {1+\theta } \right) +p_{v} \left( {a-bv} \right) } \right] \\&+\left[ {p_{v} \left( {a-bu} \right) \left( {1+\theta } \right) +p_{u} \left( {a-bv} \right) } \right] . \end{aligned}$$

Then,

$$\begin{aligned} C\left( {b_{p} \left( {\pi ^{*}} \right) } \right) -C\left( {b_{p} \left( \pi \right) } \right)&=\left( {p_{u} -p_{v} } \right) \left( {a-bu} \right) \left( {1+\theta } \right) -\left( {p_{u} -p_{v} } \right) \left( {a-bv} \right) \\&=\left( {p_{u} -p_{v} } \right) \left[ {\theta \left( {a-bu} \right) +b\left( {v-u} \right) } \right] . \end{aligned}$$

Hence, it can be derived that

$$\begin{aligned} C\left( {b_{p} \left( {\pi }^{*} \right) } \right) >C\left( {b_{p} \left( \pi \right) } \right) , \end{aligned}$$

which conflicts with the optimal schedule. Thus, \(p_{u} \le p_{v} \). The proof is completed. \(\square \)

Based on Lemmas 8 and 9, we have the following Corollary 3.

Corollary 3

For Case 2, all jobs should be sequenced in non-decreasing order of \(p_{i} \) in the optimal schedule.

Then, we have the following lemma similar to Case 1.

Lemma 10

For Case 2, the number of the batches in the optimal schedule should be \(\left[ \frac{n}{c}\right] \). All batches are full in an optimal schedule, except possibly for the highest indexed one.

(3) Case 3

Lemma 11

For Case 3, given any schedule \(\pi =\left( {b_{1} ,b_{2} ,\ldots ,b_{m} } \right) \) , with the first batch \(b_{1} \) starting at time \(t_{0} >0\), then the makespan of schedule \(\pi \) is

$$\begin{aligned} C_{max} \left( \pi \right) =t_{0} \left( {1+\theta } \right) ^{m}+\mathop \sum \limits _{k=1}^{m} \mathop \sum \limits _{i=1+\mathop \sum \nolimits _{j=1}^{k-1} n_{j} }^{\mathop \sum \nolimits _{j=1}^{k} n_{j} } p_{i} \left( {a-bi} \right) \left( {1+\theta } \right) ^{m-k}. \end{aligned}$$

Similar to the Proof of Lemmas in Cases 1 and 2, we have the following lemma.

Lemma 12

For Case 3, all jobs should be sequenced in non-decreasing order of \(p_{i} \). The number of the batches in the optimal schedule should be \(\left[ \frac{n}{c}\right] \). All batches in an optimal schedule are full, except possibly for the highest indexed one.

Based on all lemmas and corollaries, a heuristic algorithm is proposed to the solve this problem, and it is described as follows:

figure a

Theorem 1

For the problem \(1\left| {s-batch,r-a,p_{ir} =p_{i} \left( {a-br} \right) ,s=\theta t} \right| C_{max} \), an optimal schedule can be obtained by Algorithm SPT-FB in \(O\left( {n\log n} \right) \) time. If all job are sequenced in non-increasing order of \(p_{i} \left( {i=1,2\ldots ,n} \right) \) , then the results of the optimal makespan are as follows:

1.  when \(t_{0} \le d_{1} \le \left( {1+\theta } \right) t_{0} ,\)

$$\begin{aligned} C_{max}= & {} t_{0} \left( {1+\theta } \right) ^{\left[ \frac{n}{c}\right] }+\left( {d_{2} -d_{1} } \right) \left( {1+\theta } \right) ^{\left[ \frac{n}{c}\right] }\\&+\mathop \sum \limits _{k=1}^{\left[ \frac{n}{c}\right] } \mathop \sum \limits _{i=1+\mathop \sum \nolimits _{j=1}^{k-1} n_{j} }^{\mathop \sum \nolimits _{j=1}^{k} n_{j} } p_{i} \left( {a-bi} \right) \left( {1+\theta } \right) ^{{\left[ \frac{n}{c}\right] }-k}. \end{aligned}$$

2.  when \(\left( {1+\theta } \right) t_{0} \le d_{1} \le t_{0} \left( {1+\theta } \right) ^{\left[ \frac{n}{c}\right] }+\mathop \sum \limits _{k=1}^{\left[ \frac{n}{c}\right] } \mathop \sum \limits _{i=1+\mathop \sum \nolimits _{j=1}^{k-1} n_{j} }^{\mathop \sum \nolimits _{j=1}^{k} n_{j} } p_{i} \left( {a-bi} \right) \left( {1+\theta } \right) ^{{\left[ \frac{n}{c}\right] }-k},\)

$$\begin{aligned} C_{max}= & {} t_{0} \left( {1+\theta } \right) _{{\left[ \frac{n}{c}\right] }}+\mathop \sum \limits _{k=1}^{\left[ \tfrac{n}{c}\right] } \mathop \sum \limits _{i=1+\mathop \sum \nolimits _{j=1}^{k-1} n_{j}}^{\mathop \sum \nolimits _{j=1}^{k} n_{j} } p_{i} \left( {a-bi} \right) \left( {1+\theta } \right) ^{{\left[ \frac{n}{c}\right] }-k}\\&+\left( {d_{2} -d_{1} } \right) \left( {1+\theta } \right) ^{{\left[ \frac{n}{c}\right] }-{f+1}}, \end{aligned}$$

where the non-availability period happens during the setup operation or while processing \(b_{f}.\)

3.  when \(t_{0} \left( {1+\theta } \right) ^{\left[ \frac{n}{c}\right] }+\mathop \sum \limits _{k=1}^{\left[ \frac{n}{c}\right] } \mathop \sum \limits _{i=1+\mathop \sum \nolimits _{j=1}^{k-1} n_{j} }^{\mathop \sum \nolimits _{j=1}^{k} n_{j} } p_{i} \left( {a-bi} \right) \left( {1+\theta } \right) ^{{\left[ \frac{n}{c}\right] }-k} \le d_{1} ,\)

$$\begin{aligned} C_{max} =t_{0} \left( {1+\theta } \right) ^{\left[ \frac{n}{c}\right] }+\mathop \sum \limits _{k=1}^{\left[ \frac{n}{c}\right] } \mathop \sum \limits _{i=1+\mathop \sum \nolimits _{j=1}^{k-1} n_{j} }^{\mathop \sum \nolimits _{j=1}^{k} n_{j} } p_{i} \left( {a-bi} \right) \left( {1+\theta } \right) ^{{\left[ \frac{n}{c}\right] }-k}. \end{aligned}$$

Proof

Combining Lemmas 112 and Corollaries 1 and 2, we can obtain that Algorithm SPT-FB can generate an optimal schedule for the problem \(1\left| s-batch,r-a,p_{ir} =\right. \left. p_{i} \left( {a-br} \right) ,s=\theta t \right| C_{max} \).

And the result of the optimal makespan can be derived as the above three cases. The complexity of Step 1 is \(O\left( {n\log n} \right) \), the complexity of Step 2 is \(O\left( n \right) \), and the complexity of Step 3 is \(O\left( 1 \right) \). Thus, the total complexity of this proposed algorithm is \(O\left( {n\log n} \right) \). \(\square \)

In addition, we demonstrate the result of Theorem 1 in the following example.

Example 1

Assume \(n=10\), \(c=3\), \(t_{0} =2\), \(\theta =0.5\), \(a=10\), \(b=0.1\), \(d_{1} =800\), \(d_{2} =900\), the normal processing times of jobs are given in Table 1.

Table 1 An illustrative example

Solution. According to Algorithm SPT-FB, we solve Example 1 as follows:

Step 1. Sort all jobs in non-decreasing order of their normal processing time, and the optimal job sequence is \(J_{6} \rightarrow J_{5} \rightarrow J_{9} \rightarrow J_{4} \rightarrow J_{8} \rightarrow J_{1} \rightarrow J_{7} \rightarrow J_{3} \rightarrow J_{2} \rightarrow J_{10} \).

Step 2. Batch the jobs as the rule of full batch first, and the optimal batches are \(\left\{ {J_{6} ,J_{5} ,J_{9} } \right\} \), \(\left\{ {J_{4} ,J_{8} ,J_{1} } \right\} \), \(\left\{ {J_{7} ,J_{3} ,J_{2} } \right\} \), \(\left\{ {J_{10} } \right\} \).

Thus, in the optimal schedule, we have

$$\begin{aligned} C\left( {b_{1} } \right)= & {} 2\times \left( {1+0.5} \right) +\left[ 2\times \left( {10-1\times 0.1} \right) +5\times \left( {10-2\times 0.1} \right) +7\times \left( {10-3\times 0.1} \right) \right] \\ {}= & {} 139.7,\\ C\left( {b_{2} } \right)= & {} 139.7\times \left( {1+0.5} \right) +\left[ {8\times \left( {10-4\times 0.1} \right) +9\times \left( {10-5\times 0.1} \right) +12\times \left( {10-6\times 0.1} \right) } \right] \\= & {} 484.65,\\ C\left( {b_{3} } \right)= & {} 484.65\times \left( {1+0.5} \right) +\left[ {16\times \left( {10-7\times 0.1} \right) +21\times \left( {10-8\times 0.1} \right) +30\times \left( {10-9\times 0.1} \right) } \right] \\&+ \,\left( {900-800} \right) =1441.975,\\ C\left( {b_{4} } \right)= & {} 1441.975\times \left( {1+0.5} \right) +35\times \left( {10-10\times 0.1} \right) =2477.9625. \end{aligned}$$

The optimal makespan is 2477.9625.

4 Conclusion

In this paper we investigate the problem of scheduling the jobs with learning effect on a single serial-batching machine with an availability constraint. The objective is to find an optimal schedule that minimizes the makespan. Three different cases of this scheduling problem are considered, and their properties are derived and investigated. Based on these properties, an optimization algorithm is proposed to solve this problem.

Further research might focus on other objectives, such as the total completion time and total tardiness. It is also interesting to extend this problem to parallel machines scheduling problem or flowshop problem.