Research Article | Open Access

# Scheduling and Common Due Date Assignment on a Single Parallel-Batching Machine with Batch Delivery

**Academic Editor:**Chin-Chia Wu

#### Abstract

We consider a single parallel-batching machine scheduling problem with delivery involving both batching scheduling and common due date assignment. The orders are first processed on the single parallel-batching machine and then delivered in batches to the customers. The batching machine can process several orders at the same time. The processing time of a production batch on the machine is equal to the longest processing time of the orders assigned into this batch. A common due date for all the orders in the same delivery batch and a delivery date for each order need to be determined in order to minimize total weighted flow time. We first prove that this problem is NP hard in the strong sense. Two optimal algorithms by using dynamic programming are derived for the two special cases with a given sequence of orders on the machine and a given batching in the production part, respectively.

#### 1. Introduction

A wide variety of practical problems are closely related to the batching production and delivery in batches considered in this paper. In a supply chain of many industries, production operation and delivery operation are two key operational functions. Many industries first produce products and transport their finished products to the customers directly without holding intermediate inventories. For example, there exist the operations with production of steel ingots and delivery of the finished ingots in the iron and steel industry. The steel ingots need to heat to a high temperature in a soaking pit in order to keep the steady performance of the steel ingots. The soaking pit heats several ingots simultaneously where the soaking pit can be viewed as a parallel-batching machine. Then the steady ingots finished in the soaking pit are directly transported to the corresponding customers in batches. This is the motivation for the considered problem. All ingots in the same shipment for delivery to the customer have a common due date. The common due date is a decision variable. Production operation and delivery operation are linked together without any intermediate step since no inventory is involved. The customer does not want to accept his order earlier than the due date. Thus, the orders are finished before the due date, and they have to be storage in inventory for the industries. It is important to coordinate these two operations and schedule them jointly in order to achieve optimal inventory level in the iron and steel industry. Hence, the coordination between production and delivery has become more practical and become one of the most important topics. In such supply chain application, it is well understood that coordinated production and delivery scheduling can significantly reduce the inventory level and the customer service level for the decision maker.

Motivated by the above-described applications in the supply chain, we address a coordinated scheduling problem of production on a single batching machine and delivery operation in batches. The orders are first processed on the single batching machine and then delivered to the customers directly without intermediate. In the production part, the production schedule specifies the processing sequencing and batching of the orders on the machine. Completed orders are delivered in batches to the customers by homogeneous vehicles. We assume that each delivery shipment can only carry up to a number of orders. The delivery schedule specifies how many batches to use, how to batch, and the delivery date of each batch from the machine. The production batches may be partitioned into delivery batches to determine the delivery date. A common due date for the same delivery batch has to be determined. A delivery batch has the same delivery date and the same due date. The problem is to find a coordinated schedule of production batching and delivery batching such that an objective function that takes into account the inventory level is optimized. The inventory level is measured by a function of the times when the finished orders are delivered to the customers. A common due date for the orders in the same delivery batch is the flow time of each order in this batch. Therefore, the objective is to minimize total weighted flow time of orders.

The described problem in this paper falls into two categories: batch delivery and batching scheduling. Many researchers have made contributions in the coordinated scheduling area with production and delivery. We briefly discuss some work related to the problems where the objective is to minimize the sum of the total flow time and delivery cost. Cheng and Kahlbacher [1] and Cheng et al. [2] study a single machine scheduling problem with batch delivery cost, respectively. Wang and Cheng [3] consider a scheduling problem on the parallel machines with batch deliveries where the batch delivery date is equal to the completion time of the last job in a batch. Hall and Potts [4, 5] consider the single machine and identical-parallel machine scheduling problems with batch deliveries in batches involving the due dates, but without a transporter availability constraint. Yin et al. [6] consider a batch delivery scheduling problem with unrelated or uniform parallel machines. Wan and Zhang [7] consider a coordinated scheduling on parallel identical machines with batch delivery with objective of minimizing the sum of job arrival times. Yin et al. [8] address a single machine scheduling with batch delivery in which jobs have an assignable common due window. Chen [9] gives a detail survey for the production-delivery coordination. Ji et al. [10] study a single machine scheduling problem with release times and job delivery to minimize total weighted completion time of jobs. For the objective with minimizing the flow time and delivery cost, Mazdeh et al. [11] consider a single machine scheduling problem with batch deliveries and job release times. Mazdeh et al. [12] and Selvarajah et al. [13] study the single machine scheduling problem with delivery in batches, respectively. Chen and Vairaktarakis [14] consider single machine and parallel machine scheduling problems with delivery routing for the completed jobs to the customers. Yin et al. [15] consider a scheduling problem of nonresumable and simultaneously available jobs on a single machine and delivery in batches where the machine has a fixed unavailability interval.

Batching is an important feature of many practical industries in the supply chain. The parallel-batching scheduling problems considered in this paper are motivated by burn-in operations in the very large-scale integrated circuit manufacturing. The detail surveys for the batching scheduling problems can be seen in [16–18]. For the coordinated scheduling problem with the parallel-batching machine and transportation, Tang and Liu [19] study a flow shop scheduling problem with a parallel-batching machine where the intermediate transportation is considered between two machines. Tang and Gong [20] consider a coordinated scheduling problem with transportation before and after production scheduling on a single parallel-batching machine. In [19, 20], they assume that the processing time of a batch on the batching machine is a constant.

The problem formulated above combines three types of decisions: scheduling, batching, and due date assignment. The independent and simultaneously available orders have to be scheduled and partitioned into batches during processing and delivery. After the orders in a batch finished processing on the parallel-batching machine, they must be delivered to the customers in batches within limited delivery capacity. In a real supply chain, the managers may not stipulate the delivery for each specific order. In such a coordinated system, the linkage between order production scheduling and delivery dispatching of finished orders is extremely important in order to determine the common due date for each delivery batch. Our work differs from the above where we study not only the batching and sequencing schedule of orders on the parallel-batching machine, but also the batching for the finished orders in the delivery part where the delivery date and the common due date for each delivery batch need to be determined.

The rest of this paper is organized as follows. In Section 2, we describe the problem and introduce the notation to be used. In Section 3, we give a strongly NP-hardness proof by a polynomial-time reduction. In Section 4, we develop the efficient algorithms for two special cases. Finally, our conclusion is presented in the last section.

#### 2. Model and Preliminary Results

In this paper, a coordinated scheduling problem on a single parallel-batching machine with batch delivery is addressed in order to determine the common due date for each delivery. The problem can be described as follows.(1)All the orders have the same production-delivery routing: they are first processed on a single parallel-batching machine in the production part, and then they are transported to the customers in batches in the delivery part.(2)In the production part, all orders and the machine are available at time 0. The parallel-batching machine has a capacity limit and can process several orders simultaneously. A production batch is defined as a set of orders processed on the parallel-batching machine at the same time. The processing time of a production batch on the machine is equal to the longest processing time of the orders assigned into this batch.(3)In the delivery part, each delivery shipment will transported by a dedicated vehicle. Due to limited vehicle capacity , each delivery shipment can carry up to a number of orders. A delivery batch is defined as a set of orders transported together in the same shipment.(4)The vehicle is stationed at the processing facility at time 0 and must go back to the facility once it finishes a delivery batch. A delivery vehicle can depart from the processing facility only when all the orders to be delivered have finished processing.(5)All orders are not interruption. When the processing of a batch is executed, it cannot be interrupted, and other orders cannot be introduced into the batch. Orders processed in a batch have the same starting time and completion time on the machine.(6)The production batches may be partitioned into delivery batches to determine their delivery dates. A common due date for the same delivery batch has to be determined. A delivery batch has the same delivery date and the same due date.

Next, we present the notation that will be used throughout the paper: : the processing time of order on the parallel-batching machine, ; : the delivery time of the vehicle from the machine to the customer; : the return time of the vehicle from the customer back to the machine; : the weight of order , .

Decision variables are as follows: : the production batch ; : the completion time of order on the machine, ; : the delivery batch ; : the common due date of delivery batch ; : the flow time of order which is defined as the time when it arrives at the customer, , , if ; : total weighted flow time.

Here, the flow times of the orders assigned into the same delivery batch are equal to the common due date of the delivery batch. For convenience, we denote our problem by (P). Next, we present three general properties that will be useful throughout our study.

Lemma 1. *There exists an optimal schedule that production batches of the orders are processed continuously from time 0 without idle time on the single parallel-batching machine.*

*Proof. *If there is any idle time between two continuous batches in the production part, the latter batch can be moved earlier to be processed on the machine. The objective value is not increased.

Lemma 2. *There exists an optimal schedule where the delivery date of a delivery batch is either the completion time of the last order on the machine which is included in the delivery batch or the available time of the vehicle immediately.*

*Proof. *Assume that there exists a delivery batch such that its delivery date does not fit any above condition. That is neither at the completion time of the last order on the machine which is included in the delivery batch nor the available time of the vehicle immediately. Then we can move the delivery batch such that this delivery date can fit either of those conditions. It is easy to see that this delivery batch can be transported at that earlier time to the customer without increasing the total weighted flow time.

Lemma 3. *The delivery batch must contain all orders which are processed on the machine but not delivered within the scope of the delivery capacity to allow.*

*Proof. *The finished orders on the parallel-batching machine should be delivered to the customer as early as possible. The delivery batch should contain orders as many as possible which are processed on the machine but not delivered.

#### 3. Strongly NP Hardness

In this section, we show that problem (P) is strongly NP hard by a reduction from 3-partition problem, which is known to be NP hard in the strong sense (see Garey and Johnson [21]).

The following theorem shows the computational complexity of problem (P).

Theorem 4. *Problem (P) is strongly NP hard.*

*Proof. *We next perform a polynomial time reduction from 3-partition problem.*3-Partition Problem (3-PP)*. Given positive integers and satisfying for and , can be partitioned into sets such that for ? Without loss of generality, if there exists a solution to 3-partition problem, then the elements can be numbered such that , for .

Given a 3-PP instance, we construct an instance for (P) as follows.

There are orders with machine capacity of 2 and delivery capacity of 6.

Assume that .

Processing times and weights of orders as follows:

, ;

, , ;

threshold: .

We prove there exists a schedule for this instance with total weighted flow time less than or equal to if and only if there exists a feasible solution to 3-partition problem. Note that the processing times of orders are equal to 0. We first prove the following two properties: in a solution to this instance of (P) with total weighted flow time less than or equal to , (1) orders form the first delivery batch to the customer; (2) there is no idle time once the vehicle starts to deliver from time point 0 in the delivery part. Then the related total weighted flow time of these orders in the first delivery batch is .*If Part*. Consider that the sets , , form a solution to 3-partition. The batching for the production and delivery is shown as follows. In the production part, the orders are partitioned into production batches on the machine where , , . In the delivery part, all the orders are partitioned into delivery batches where each delivery batch contains 6 orders; that is, , . The delivery date and the common due date of are and , respectively, for . It is easy to see that total weighted flow time of orders in the above schedule is .*Only If Part*. Suppose that there exists a schedule for the instance of (P) with total weighted flow time less than or equal to . Since the machine capacity is 2, we can see that each production batch on the machine contains exactly two orders with identical processing times: , . Due to the delivery capacity of 6, the delivery batches of the orders are at least in the delivery part. Assume that total weighted flow time to minimize a solution with delivery batches for these orders except the first delivery batch. From property (1), we can derive total weighted flow time of this problem as follows:where is total processing time of orders assigned into the same batch , for . The total weighted flow time can be formulated as Note that the second term is minimized by setting . We obtain that total weighted flow time for the delivery batches is greater than or equal to . Then this expression means a minimum objective value with respect to at , and this minimum total weighted flow time is . From (1), it means that these orders are partitioned into delivery batches. Furthermore, the minimum total weighted flow time is contributed by delivery batches. Each delivery batch contains exactly 6 orders which are assigned into three production batches, that is, , . According to (2), the delivery date of the delivery batch is , for . The common due date of is , for . From the above discussion, we see that , for . This means that the 3-Partition problem has a solution. Combining the “if” part and “only if” part, we have proved the theorem.

#### 4. Solving Two Special Cases

In this section, we consider two special cases of problem (P): (1) the problem where the order sequence on the machine in the production part is predetermined and (2) the problem where the batching on the machine in the production part is predetermined. Case (1) occurs when direct sequence is the production strategy used for the customer, while case (2) occurs when direct batching is the production strategy used for the producer. In practice, a direct sequence strategy will be used when the customer’s demands are relatively high, while it is more likely that a direct batching will be used when the production cost is relatively high.

##### 4.1. The Predetermined Sequence of Orders

In this case of the problem, the sequence of orders on the batching machine is predetermined . If , then order is in preference to order or they are assigned into the same production batch to be processed on the machine. Then the case of (P) can be expressed as (P-case1). In this case, we need to make decisions on the production batching on the machine and delivery batching in the delivery part according to the predetermined sequence of orders. The following dynamic programming algorithm solves the case of the problem.

*Algorithm DP1.* (a) Number the orders in the predetermined sequence and (b) function values.

Let be the minimum completion time of order on the parallel-batching machine if orders have been scheduled such that the current production batch contains orders and .

Let be the minimum common due date of the current batch containing when they are delivered to the customer and .

Define as the minimum total weighted flow time for the first scheduled orders .(c)Dynamic programming is as follows.

Initial conditions are as follows:where , and , .

Recurrence relations are as follows:where and + < .

Optimal solution value is .

Theorem 5. *Algorithm DP1 solves problem (P-case 1) in time.*

*Proof. *Due to the predetermined order sequence, the batching on the machine, the batching, and the delivery date of orders for the delivery need to be decided. From Lemma 2, the delivery date of a new delivery batch has two possibilities: the vehicle transports a current delivery batch immediately or the vehicle waits the last order of the current delivery batch that finished processing on the machine. Therefore, the delivery date of the current delivery batch can be derived as . Hence, we can determine the common due date of the new delivery batch according to its delivery date. Since the delivery capacity and the production capacity are limited, the relations satisfy that and . The increase of the total weighted flow time for the current delivery batch is computed by its common due date . Then the total weighted flow time of orders is . This proves the correctness of the recursive relations and the optimality of the algorithm.

The time complexity of Algorithm DP1 can be established as follows. Due to , we can obtain that the overall time complexity of Algorithm DP1 is bounded by .

##### 4.2. The Given Batching of Orders in the Production Part

In this case of the problem, the production batching of orders on the machine is predetermined . Then the case can be expressed as (P-case 2). In this case, we need to make decisions on the sequence of the given production batches on the machine and the delivery batching in the delivery part. Let and be the processing time of production batch and the total weight of production batch , respectively.

Lemma 6. *For problem (P-case 2), there exists an optimal schedule in which the production batches are processed in the nondecreasing rule on the machine.*

*Proof (by contradiction). *Consider an optimal schedule formed from a sequence that is not processed in the nondecreasing rule. In this schedule, there must be at least two adjacent batches, say followed by , such that Now consider the schedule formed by interchanging the positions of these two batches. Clearly, the flow times of all the batches preceding the pair under consideration will remain unaffected and so will the flow times of all the succeeding batches. Let and denote the total weighted flow time of and , respectively. Now if the completion time of the last batch preceding the pair and is , then the flow times of two batches in are and . We can obtain the flow times of two batches in are and . Then Comparing terms, it is clear that total weighted flow time of is smaller than that of . Thus interchanging the positions of these two batches and can decrease overall weighted flow time. A finite number of repetitions of this argument establish that there exists an optimal schedule where the production batches are processed in the nondecreasing rule on the machine.

Based on Lemma 6, the orders processed in the same production batch have the same starting time and completion time on the machine. Hence, the processing on the machine is not influenced by the sequence of orders in a batch. If the orders of the same production batch can be transported to the customer in the same delivery batch, the sequence of order in one batch is irrelevant to the delivery. Otherwise, the sequence of orders in the same production batch affects the batching decision in the delivery part. We have the following lemma to partition the orders into the delivery batches.

Lemma 7. *For problem (P-case 2), there exists an optimal schedule in which the orders in the same production batch are sequenced in the longest weight rule of orders in the delivery part.*

*Proof. *Assume that there exists an optimal schedule . If contains orders that are not delivered in the longest weight rule of orders of the same production batch for two adjacent orders and in the same production batch, we assume that is the last order to be delivered in some batch and is the first order to be processed in the next batch such that in . Let be a schedule obtained by swapping and . After swapping orders and , contains two new delivery bathes which contain jobs and . All other orders remain the same schedule in as in . Then the flow times of orders and are and . We haveTherefore, regardless of whether and are transported in the same delivery batch or not, the total weighted flow time associated with is less than that associated with . We can establish the property using a finite number of repetitions of this argument such that there exists an optimal schedule where the orders in the same production batch are sequenced in the longest weight rule of orders in the delivery part.

The following dynamic solves the case of (P-case 2).

*Algorithm DP2.* (a) Sequence the given production batches in the nondecreasing rule on the machine. (b) Calculate the completion time of order on the parallel-batching machine , . (c) Number the orders in the shortest weight rule in each production batch. (d) Function values are as follows.

Let be the minimum common due date of the current batch containing orders when they are delivered to the customer, and .

Let be the minimum total weighted flow time for the first scheduled orders .(e)Dynamic programming is as follows.

Initial conditions are as follows:

Recurrence relations are as follows:where .

Optimal solution value is .

Theorem 8. *Algorithm DP2 can solve problem (P-case 2) in time.*

*Proof. *By Lemmas 6 and 7, in the schedule for the given production batches , where the production schedule follows the nondecreasing rule on the parallel-batching machine, the delivery schedule follows the longest weight rule for the orders in the same batch. In the recursive relations, the function value is computed by trying every possible size of the last delivery batch and the delivery date of this batch. The common due date contributed by the last batch is . This proves the correctness of the recursive relations and the optimality of the algorithm.

The time complexity of Algorithm DP2 can be established as follows. Sorting the production batches in the nondecreasing rule requires time. Sequencing the orders of the same batch in the longest weight rule takes time. In addition, by definition, we have . Therefore, the overall time complexity of Algorithm DP 2 is bounded by .

#### 5. Conclusions

In this paper, we propose a coordinated scheduling problem with production operation and delivery operation in the supply chain with batching scheduling and common due date assignment. The orders are processed on a single parallel-batching machine and then the finished orders are transported in batches to the customer. The parallel-batching machine has a limited capacity and the number of orders in each delivery batch cannot exceed the delivery capacity. All orders in the same delivery batch to the customer have a common due date. The common due date of each delivery batch needs to be determined. Inventory level in the supply chain is measured by a function of the common due date for each delivery batch when the completed orders are delivered to the customers. The objective is to minimize total weighted flow time. We first prove that this problem is NP hard in the strong sense. For the two special cases with a given sequence of orders on the machine and a given batching in the production part, we derive two optimal algorithms based on the dynamic programming, respectively. A natural extension of this work would consider approximation algorithms for the problem with the objective of the total weighted flow time. Another extension of this work would consider other objective functions.

#### Conflict of Interests

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

#### Acknowledgments

This research is partly supported by the National Natural Science Foundation of China (Grant no. 71101097 and Grant no. 71071100), the National High Technology Research and Development Program of China (863, Grant no. 2014AA041401), and the Liaoning BaiQianWan Talents Program (Grant no. 2014921043).

#### References

- T. C. E. Cheng and H. G. Kahlbacher, “Scheduling with delivery and earliness penalties,”
*Asia-Pacific Journal of Operational Research*, vol. 10, pp. 145–152, 1993. View at: Google Scholar - T. C. E. Cheng, V. S. Gordon, and M. Y. Kovalyov, “Single machine scheduling with batch deliveries,”
*European Journal of Operational Research*, vol. 94, no. 2, pp. 277–283, 1996. View at: Publisher Site | Google Scholar - G. Wang and T. C. E. Cheng, “Parallel machine scheduling with batch delivery costs,”
*International Journal of Production Economics*, vol. 68, no. 2, pp. 177–183, 2000. View at: Publisher Site | Google Scholar - N. G. Hall and C. N. Potts, “Supply chain scheduling: batching and delivery,”
*Operations Research*, vol. 51, no. 4, pp. 566–584, 2003. View at: Publisher Site | Google Scholar | MathSciNet - N. G. Hall and C. N. Potts, “The coordination of scheduling and batch deliveries,”
*Annals of Operations Research*, vol. 135, pp. 41–64, 2005. View at: Publisher Site | Google Scholar | MathSciNet - Y. Yin, S.-R. Cheng, and C.-C. Wu, “Parallel-machine scheduling to minimize flowtime, holding, and batch delivery costs,”
*Asia-Pacific Journal of Operational Research*, vol. 31, no. 6, pp. 1–17, 2014. View at: Publisher Site | Google Scholar | MathSciNet - L. Wan and A. Zhang, “Coordinated scheduling on parallel machines with batch delivery,”
*International Journal of Production Economics*, vol. 150, pp. 199–203, 2014. View at: Publisher Site | Google Scholar - Y. Yin, T. C. E. Cheng, C.-J. Hsu, and C.-C. Wu, “Single-machine batch delivery scheduling with an assignable common due window,”
*Omega*, vol. 41, no. 2, pp. 216–225, 2013. View at: Publisher Site | Google Scholar - Z.-L. Chen, “Integrated production and outbound distribution scheduling: review and extensions,”
*Operations Research*, vol. 58, no. 1, pp. 130–148, 2010. View at: Publisher Site | Google Scholar - M. Ji, Y. He, and T. C. Cheng, “Batch delivery scheduling with batch delivery cost on a single machine,”
*European Journal of Operational Research*, vol. 176, no. 2, pp. 745–755, 2007. View at: Publisher Site | Google Scholar | MathSciNet - M. M. Mazdeh, M. Sarhadi, and K. S. Hindi, “A branch-and-bound algorithm for single-machine scheduling with batch delivery and job release times,”
*Computers & Operations Research*, vol. 35, no. 4, pp. 1099–1111, 2008. View at: Publisher Site | Google Scholar - M. M. Mazdeh, S. Shashaani, A. Ashouri, and K. S. Hindi, “Single-machine batch scheduling minimizing weighted flow times and delivery costs,”
*Applied Mathematical Modelling*, vol. 35, no. 1, pp. 563–570, 2011. View at: Publisher Site | Google Scholar | MathSciNet - E. Selvarajah, G. Steiner, and R. Zhang, “Single machine batch scheduling with release times and delivery costs,”
*Journal of Scheduling*, vol. 16, no. 1, pp. 69–79, 2013. View at: Publisher Site | Google Scholar | MathSciNet - Z.-L. Chen and G. L. Vairaktarakis, “Integrated scheduling of production and distribution operations,”
*Management Science*, vol. 51, no. 4, pp. 614–628, 2005. View at: Publisher Site | Google Scholar - Y. Yin, D. Ye, and G. Zhang, “Single machine batch scheduling to minimize the sum of total flow time and batch delivery cost with an unavailability interval,”
*Information Sciences*, vol. 274, pp. 310–322, 2014. View at: Publisher Site | Google Scholar | MathSciNet - P. Brucker, A. Gladky, H. Hoogeveen et al., “Scheduling a batching machine,”
*Journal of Scheduling*, vol. 1, no. 1, pp. 31–54, 1998. View at: Google Scholar | MathSciNet - C. N. Potts and M. Y. Kovalyov, “Scheduling with batching: a review,”
*European Journal of Operational Research*, vol. 120, no. 2, pp. 228–249, 2000. View at: Publisher Site | Google Scholar | MathSciNet - C. Y. Lee, R. Uzsoy, and L. A. Martin-Vega, “Efficient algorithms for scheduling semiconductor burn-in operations,”
*Operations Research*, vol. 40, no. 4, pp. 764–775, 1992. View at: Publisher Site | Google Scholar | MathSciNet - L. Tang and P. Liu, “Flowshop scheduling problems with transportation or deterioration between the batching and single machines,”
*Computers & Industrial Engineering*, vol. 56, no. 4, pp. 1289–1295, 2009. View at: Publisher Site | Google Scholar - L. Tang and H. Gong, “The coordination of transportation and batching scheduling,”
*Applied Mathematical Modelling*, vol. 33, no. 10, pp. 3854–3862, 2009. View at: Publisher Site | Google Scholar | MathSciNet - M. R. Garey and D. S. Johnson,
*Computers and Intractability: A Guide to the Theory of NP-Completeness*, W. H. Freeman, New York, NY, USA, 1979. View at: MathSciNet

#### Copyright

Copyright © 2015 Hua Gong et al. This is an open access article distributed under the Creative Commons Attribution License, which permits unrestricted use, distribution, and reproduction in any medium, provided the original work is properly cited.