Exact Algorithm for Batch Scheduling on Unrelated Machine
Exact Algorithm for Batch Scheduling on Unrelated Machine
4, July 2023
Abstract: In this paper, we propose a new linear algorithm to tackle a specific class of unrelated machine scheduling
problem, considered as an important real-life situation, which we called Batch Scheduling on Unrelated Machine (BSUM),
where we have to schedule a batch of identical and non-preemptive jobs on unrelated parallel machines. The objective is to
minimize the makespan (Cmax) of the whole schedule. For this, a mathematical formulation is made and a lower bound is
computed based on the potential properties of the problem in order to reduce the search space size and thus accelerate the
algorithm. Another property is also deducted to design our algorithm that solves this problem. The latter is considered as a
particular case of RmCmax family problems known as strongly NP-hard, therefore, a polynomial reduction should realize a
significant efficiency to treat them. As we will show, Batch BSUM is omnipresent in several kind of applications as
manufacturing, transportation, logistic and routing. It is of major importance in several company activities. The problem
complexity and the optimality of the algorithm are reported, proven and discussed.
Keywords: Scheduling, unrelated machine, exact method, parallel machine, batch scheduling.
The problems of scheduling on unrelated machines For the instance above, there are 21 different
to minimize the makespan were also been well studied manners to dispatch the 5 jobs between 3 machines
in the literature [5, 12, 19, 27]. Since this class of shown with their respective makespan (Table 2):
scheduling problems is known and proved as strongly
Table 2. Exhaustive list of solutions.
NP-hard, all these works gave approximate algorithms
[3] to solve them. in some work, just the case of two (5,0,0) 25 (1,4,0) 40 (4,1,0) 20
types of jobs is considered, Vakhania et al. [28] (0,5,0) 50 (1,0,4) 32 (4,0,1) 20
Hernandez presented a polynomial time algorithm. (0,0,5) 40 (0,1,4) 32 (0,4,1) 40
Ebenlendr et al. [10] elaborate a O(n2)-algorithm to (2,3,0) 30 (3,2,0) 20 (1,1,3) 24
tackle a special case of the class Rm||Cmax [2, 21]. (2,0,3) 24 (3,0,2) 16 (1,3,1) 30
Fanjul-Peyro and Ruiz [13]. Some research focus on the (0,2,3) 24 (0,3,2) 30 (3,1,1) 15
equal processing times of jobs [11, 15]. Munir et al. (2,1,2) 16 (2,2,1) 20 (1,2,2) 20
[24] propose novel approaches for Scheduling task
graphs in heterogeneous distributed computing The optimal solution is (3, 1, 1) with the makespan
environment that tackle a similar problem. Cmax=15 represented in the diagram below (Figure 1):
1
Thus: 𝑛 ≤ 𝐶𝑚𝑎𝑥 × ∑𝑚
𝑗=1
(1) implies that the search start from LB, the property
𝑝𝑗
𝑛
(2) implies that we have to look for the smallest
Therefore: 𝐶𝑚𝑎𝑥 ≥ 1 multiple of one the processing time pj that is the last
∑𝑚
𝑗=1 𝑝𝑗
completion time in the schedule.
Since Cmax is integer: Cmax≥LB
That means: 4. Algorithm Description
𝑚
𝑛 1
1
; 𝑖𝑓𝑛 𝑚𝑜𝑑𝑢𝑙𝑜 ∑ = 0
𝑝𝑗 In this section we will describe and discuss all phases
∑𝑚
𝑗=1 𝑝 𝑗=1
𝑗 of our proposed linear algorithm for solving BSUM.
𝐿𝐵 =
𝑛 This approach consists of three phases:
(𝑖. 𝑒. 𝑖𝑓 ∈ 𝑁) ;
1 The first phase is computing lower bound of the
∑𝑚
𝑗=1 𝑝
𝑗
𝑛 makespan. Based on the property (1) above we
+ 1 𝑜𝑡ℎ𝑒𝑟𝑤𝑖𝑠𝑒 ;
1 elaborate the Algorithm (1) below:
∑𝑚
𝑗=1 𝑝
{ 𝑗
algorithm complexity whatever the choice of m. [2] Afzalirad M. and Rezaeian J., “A Realistic
Variant of Bi-Objective Unrelated Parallel
Comparison with other Exact Approaches
Machine Scheduling Problem: NSGA-II and
As we are about to discuss exact approaches, where the MOACO Approaches,” Applied Soft Computing,
optimality must be formally proven, we have compared vol. 50, pp. 109-123, 2017.
our algorithm to the exact ones elaborated for the same https://doi.org/10.1016/j.asoc.2016.10.039
problem found in the literature. the results are [3] Afzalirad M. and Shafipour M., “Design of An
summarized in the Table 3 below. All these cases are Efficient Genetic Algorithm for Resource-
reported in several papers and formally proven. Some Constrained Unrelated Parallel Machine
of them was served to measure and justify the Scheduling Problem with Machine Eligibility
efficiency of heuristics [5, 7]. Restrictions,” Journal of Intelligent
Table 3. Comparison with other algorithms. Manufacturing, vol. 29, no. 2, pp. 423-437, 2018.
Approach Complexity
DOI:10.1007/s10845-015-1117-6
Linear Assignment O(mn2) [4] Afzalirad M. and Rezaeian J., “Resource-
Dynamic Programming O(mn2m + 1) Constrained Unrelated Parallel Machine
Integer Linear Programming O(n log m)
Linear programming relaxation O(n +mlogm)
Scheduling Problem With Sequence Dependent
Setup Times, Precedence Constraints and
Note that, the least expensive metaheuristic as Machine Eligibility Restrictions,” Computers and
simulated annealing will make not less than O(n2) time Industrial Engineering, vol. 98, pp. 40-52, 2016.
to give just a good approximate solution (the number of https://doi.org/10.1016/j.cie.2016.05.020
iteration must at least be linear in n and the [5] Allahverdi A., “The Third Comprehensive
computation of a solution neighbour costs O(n) . Survey on Scheduling Problems with Setup
Times/Costs,” European Journal of Operational
Research, vol. 246, no. 2, pp. 345-378, 2015.
5. Conclusions
https://doi.org/10.1016/j.ejor.2015.04.004
In this paper, a new algorithm was proposed then [6] Allahverdi A., Ng C., Cheng T., Kovalyov M.,
implemented for solving a specific class of unrelated “A Survey of Scheduling Problems with Setup
machine scheduling problem where we have to Times or Costs,” European Journal of
schedule a batch of same jobs on unrelated machines Operational Research, vol. 187, no. 3, pp. 985-
which we have called BSUM. The algorithm is 1032, 2008.
designed based on the potential properties of the https://doi.org/10.1016/j.ejor.2006.06.060
problem. We showed that this algorithm is quadratic [7] Allahverdi A., “The Third Comprehensive
complexity in worse case. For this, a mathematical Survey on Scheduling Problems with Setup
formulation is made and a lower bound is computed Times/Costs,” European Journal of Operational
based on the potential properties of the problem in Research, vol. 246, no. 2, pp. 345-378, 2015.
order to reduce the search space size and thus accelerate https://doi.org/10.1016/j.ejor.2015.04.004
the algorithm. Another property is also deducted to [8] Chen Z., “Parallel Machine Scheduling with
design our algorithm that solves this problem. The latter Time Dependent Processing Times,” Discrete
is considered as a particular case of Rm| |Cmax family Applied Mathematics, vol. 70, no. 1, pp. 81-93,
problems known as strongly NP-hard, therefore, a 1996. https://doi.org/10.1016/0166-
polynomial reduction should realize a significant 218X(96)00102-3
efficiency to treat these problems. As we will show, [9] Cheng T., Ding Q., and Lin B., “A Concise
BSUM is omnipresent in several kind of applications as Survey of Scheduling with Time-Dependent
manufacturing, transportation, logistic and routing. it is Processing Times,” Discrete Applied
of major importance in many company activities. The Mathematics, vol. 152, no. 1, pp. 1-13, 2004.
problem complexity and the optimality of the algorithm https://doi.org/10.1016/0166-218X(96)00102-3
are reported, proven and discussed. [10] Ebenlendr T., Kral M., and Sgall J., “Graph
Balancing: A Special Case of Scheduling
References Unrelated Parallel Machines,” in Proceedings of
the nineteenth Annual ACM-SIAM Symposium on
[1] Adan J., Adan I., Akcay A., Van den Discrete Algorithms, San Francisco, pp. 483-490,
Dobbelsteen R., and Stokkermans J., “A Hybrid 2008. DOI:10.1145/1347082.1347135
Genetic Algorithm for Parallel Machine [11] Fanjul-Peyro L. and Ruiz R., “Iterated Greedy
Scheduling At Semiconductor Back-End Local Search Methods for Unrelated Parallel
Production,” in Proceedings of the International Machine Scheduling,” European Journal of
Conference on Automated Planning and Operational Research, vol. 207, no. 1, pp. 55-69,
Scheduling,, vol. 28, pp. 298-302, 2018. 2010. https://doi.org/10.1016/j.ejor.2010.03.030
DOI: https://doi.org/10.1609/icaps.v28i1.13913 [12] Fanjul-Peyro L. and Ruiz R., “Scheduling
Exact Algorithm for Batch Scheduling on Unrelated Machine 623