Full text
On Solving the Assembly Line Worker Assignment and Balancing Problem via Beam Search✩ Christian Blum∗,a, Cristobal Mirallesb aALBCOM Research Group, Universitat Polit`ecnica de Catalunya, Barcelona, Spain bROGLE – Dpto. Organizaci´on de Empresas, Universidad Polit´ecnica de Valencia, Valencia, Spain Abstract Certain types of manufacturing processes can be modelled by assembly line balancing problems. In this work we deal with a specific assembly line balancing problem that is know as the assembly line worker assignment and balancing problem (ALWABP). This problem appears in settings where tasks must be assigned to workers, and workers to work stations. Task processing times are worker specific, and workers might even be incompatible with certain tasks. The ALWABP was introduced to model assembly lines typical for sheltered work centers for the Disabled. In this paper we introduce an algorithm based on beam search for solving the ALWABP with the objective of minimizing the cycle time when given a fixed number of work stations, respectively workers. The experimental results show that our algorithm is currently a state-of-the-art method for this version of the ALWABP. In comparison to results from the literature, our algorithm obtains better or equal results in all cases. Moreover, the algorithm is very robust for what concerns the application to problem instances of different characteristics. Key words: beam search, assembly line worker assignment and balancing 1. Introduction Assembly line balancing (ALB) [1] concerns the optimization of processes related to the manufacturing of products via assembly lines. The specific problem considered in this paper is a generalization of the so-called simple assembly line balancing problem (SALBP) [2], which is a well-studied scientific test case. ✩This work was supported by grant TIN2007-66523 (FORMALISM) of the Spanish government. Moreover, Christian Blum acknowledges support from the Ram´on y Cajal program of the Spanish Ministry of Science and Innovation. ∗Corresponding author Email addresses: [email protected] (Christian Blum), [email protected]v.es (Cristobal Miralles) Preprint submitted to Elsevier January 15, 2010
In SALBP, an assembly line consists of a set of work stations arranged in a straight line, and by a transport system which moves the product to be manufactured along the line. The product is manufactured by performing a given set of tasks, each of which has a processing time. A solution to a SALBP instance is obtained by the assignment of all tasks to work stations subject to precedence constraints between the tasks. The fact that all work stations are equally sized and the assembly line moves in constant speed, implies a maximum of Ctime units (the cycle time) for processing all the tasks assigned to a work station. Among several possible goals for optimization, the following two are the ones that were most studied in the literature. Given a fixed cycle time C, the optimization goal consists in minimizing the number of necessary work stations. This problem version is called SALBP-1 in the literature. Given a fixed number mof work stations, the goal is to minimize the cycle time C. The literature knows this second problem version as SALBP-2. In this paper we consider a generalization of SALBP-2: the so-called assembly line worker assignment and balancing problem (ALWABP). This problem was introduced in [3], motivated by the growing need and desire to incorporate the Disabled into the active workforce. The World Health Organization estimates that 10% of the global population, which amounts to around 610 million people worldwide, is disabled. Of these, 386 million people are within the active labor age range, but experience very high unemployment rates (fluctuating from 13% in the UK to 80% in many under-developed countries). This has led to various attempts of integrating these citizens into the working society. Indeed, under the concept of Corporate Social Responsibility (see, for example, [4]), an increasing number of companies are becoming concerned with this matter. In this context, the employment of disabled workers is seen as a way of including the interests of society in the company goals. One of the strategies most commonly adopted for facilitating the integration of disabled workers into the labor market is the creation of sheltered work centers for Disabled (henceforth SWDs). This model of socio-labor integration tries to move away from the traditional stereotype that considers disabled people as unable to develop continuous professional work. Just as in any other firm, a SWD competes in real markets and must be flexible and efficient enough to adapt to market fluctuations and changes, the only difference being that the SWD is a Not-For-Profit organization. Thus, the potential benefits that may be obtained from increased efficiency are usually invested into the growth of the SWD. This results in more jobs for the Disabled and the gradual integration of people with higher levels of disability, which are in fact the primary aims of every SWD. Miralles et al. [3] have shown how the adoptation of assembly lines provides various advantages for these centers. The traditional division of work into single tasks can become a perfect tool for making certain worker disabilities invisible. In fact, an appropriate task assignment can even become a good therapeutic method for the rehabilitation of certain disabilities. However, the employed 2
balancing procedure should be able to cope with some specific constraints relative to time variability that arise in this environment. Moreover, it should be able to reconcile the following objectives (that should no longer be seen as contradictory but complementary): (1) to maximize the efficiency of the line by balancing the workload assigned to each available worker in each station; (2) to satisfy and respect the existent constraints in this environment due the human factors when assigning tasks to workers. After analyzing several SWDs, the authors of [3] proposed the ALWABP, which is obtained from the SALBP-2 as follows. Instead of only considering the assignment of tasks to work stations, Miralles et al. introduced in addition a set of workers that execute the tasks and that have to be assigned to work stations. Moreover, processing times of tasks are made worker-dependent. In other words, in an attempt of modelling the disabilities of different workers, each task has a worker-dependent processing time. The first mathematical model of this problem was proposed in [5]. Note that a technical description of the ALWABP is given in Section 2 below. 1.1. Previous Work In [5], Miralles et al. presented a branch and bound algorithm for solving the ALWABP to optimality. They tested their algorithm on a range of benchmark instances. Unfortunately, only small instances (in terms of the number of tasks) could be solved. Additionally, the authors of [5] developed a simple constructive one-pass heuristic for obtaining approximate solutions to larger problem instances. The currently best performing algorithm for the ALWABP is a hybrid algorithm proposed by Chaves et al. in [6], where the authors hybridized a clustering search approach proposed in [7] with iterated local search. 1.2. Contribution of this Work In this work we present an algorithm based on beam search for solving the ALWABP. Beam search is a classical tree search method that was introduced in the context of scheduling [8]. The central idea behind beam search is the parallel and non-independent construction of a limited number of solutions with the help of a greedy function and a lower bound to evaluate partial solutions. Our choice of beam search was motivated by the fact that the crucial algorithmic component of one of the current state-of-the-art methods for the SALBP (a special case of the ALWABP) is strongly based on beam search [9]. By the application to a wide range of benchmark instances we show that our algorithm is currently a state-of-the-art method for the ALWABP. 1.3. Paper Outline In Section 2 we present a technical definition of the ALWABP. In Section 3 we outline the proposed algorithm. Finally, in Section 4 we present the computational results, and in Section 5 we offer conclusions and an outlook on future work. 3
2. The ALWABP A technical description of the ALWABP can be given as follows. An instance (T, S, W, G) of the ALWABP consists of four components. T={1,...,n}is a set of ntasks that must be processed by workers assigned to work stations. S={1,...,m}is an ordered line of mwork stations, where 1 is the index of the first work station and mis the index of the last one. W={1, . . . , m}is a set of mworkers. Each worker must be assigned to exactly one work station such that each work station is occupied by only one worker. Each task i∈Thas a worker-specific processing time. More specifically, for each tuple (i, h) where i∈Tand h∈Wa processing time tih >0 is given. If tih =∞, worker his incompatible with task i. Finally, given is a precedence graph G= (T, A), which is a directed graph without cycles whose nodes are the tasks. An arc li,j ∈A indicates that task imust be processed before task j. Given a task j∈T, we denote by Pj⊂Tthe set of tasks that must be processed before j. A solution is obtained by assigning workers to work stations and tasks to workers such that the precedence constraints between the tasks are satisfied. The objective function is to minimize the so-called cycle time. This problem can be expressed in the following way as an integer programming (IP) problem (see also [5]). min z(1) subject to: X h∈WX s∈S xihs = 1 ∀i∈T(2) X s∈S yhs ≤1∀h∈W(3) X h∈W yhs ≤1∀s∈S(4) X h∈WX s∈S sxihs ≤X h∈WX s∈S sxjhs ∀j∈T, i ∈Pj(5) X i∈T tihxihs ≤z∀h∈W, s ∈S(6) X i∈T xihs ≤Myhs ∀h∈W, s ∈S(7) yhs ∈ {0,1} ∀h∈W, s ∈S(8) xihs ∈ {0,1} ∀i∈T, h ∈W, s ∈S(9) z > 0 (10) This model makes use of the following variables and constants: yhs is a binary variable which is set to 1 if and only if worker h∈Wis assigned to work station s∈S. Moreover, xihs is a binary variable which is set to 1 if and only if task i∈Tis assigned to worker h∈W, which in turn is assigned to 4
work station s∈S. Finally, Mis a sufficiently large constant which should have a value larger than |T|·|W| · maxi∈T,h∈W{tih |tih <∞}. The objective function (1) minimizes the cycle time z.1The constraints (2) ensure that every task i∈Tis assigned to a single worker h∈W, respectively a single work station s∈S. The constraints (3) and (4) ensure that each worker can only be assigned to one work station, and that in each work station there is only one worker. Constraints (5) reflect the precedence relationships between the tasks. More specifically, in case a task j∈Tis assigned to a worker h∈W, which in turn is assigned to a work station s∈S, all tasks i∈Pjcan only be assigned to workers that are assigned to work stations s′∈Swith s′≤s. The constraints (6) and (7) ensure that the sum of the worker-specific processing times of the tasks assigned to a worker h∈Wdo not exceed the cycle time z. As both z and yhs are variables, constraints (6) and (7) are defined separately in order to maintain the linearity of the model. 2.1. Solutions to the Problem The following representation of solutions is used for the description of the algorithm in Section 3. A solution τ= (π, S) is a tuple consisting of a permutation πof length mthat stores the assignment of workers to work stations, and an ordered list S=hS1,...,Smiof msets of tasks, where Sidenotes the set of tasks that are assigned to the worker assigned to work station i. In an abuse of notation we will sometimes call Sia work station. More in detail, πidenotes the worker that is assigned to work station i, and for a solution τ= (π, S) to be valid it must fulfill the following conditions: 1. Sm i=1 Si={1,...,n}and Tm i=1 Si=∅. These conditions ensure that each task is assigned to exactly one worker. 2. For each task j∈Siit is required that Pj⊆Si k=1 Sk, which ensures that the precedence constraints between the tasks are respected. 2.2. Reversal of Problem Instances Given a problem instance (T, S, W, G), the corresponding reverse problem instance (T, S, W, Gr) is obtained by inverting all the arcs in the precedence graph G. Each solution τr= (πr,Sr) to the reverse problem instance (T, S, W, Gr) can be converted into a solution τ= (π, S) to the original problem instance (T, S, W, G) as follows: πi:= πr m−i−1for i= 1,...,m (11) Si:= Sr m−i−1for i= 1,...,m (12) It is known from the literature (see, for example, [2]) that tackling the reverse problem instance may lead an exact algorithm faster to an optimal solution, 1Note that we refer to the variable cycle time of the IP model as z, while given fixed cycle times are denoted by C. 5
respectively, may provide a better heuristic solution when tackled with the same heuristic as the original problem instance. 3. The Algorithm The basic component of our algorithm for the ALWABP is beam search (BS). Even though BS has proved to be a useful heuristic tool especially in the context of scheduling problems (see, for example, [10, 11, 12]), only very few applications to other types of problems exist (see, for example, [13, 14]). BS is an incomplete derivative of branch & bound that was introduced in [8]. In the following we briefly describe the working of one of the standard versions of BS. The central idea behind BS is to allow the extension of partial solutions in several possible ways. The algorithm keeps a set Bof at most kbw partial solutions. Hereby, Bis the so-called beam, and kbw is refered to as the beam width. At each step, the algorithm chooses at most kext feasible extensions of each partial solution in B. This choice of feasible extensions is done deterministically by means of a greedy function that assigns a weight to each feasible extension. At the end of each step, the algorithm creates a new beam Bby selecting up to kbw partial solutions from the set of chosen feasible extensions. For that purpose, BS algorithms calculate—in the case of minimization—a lower bound value for each chosen extension. Only the maximally kbw best extensions—with respect to the lower bound—are chosen to constitute the new set B. Finally, the best found complete solution (if any) is returned. Crucial components of BS are the underlying constructive heuristic that defines the feasible extensions of partial solutions and the lower bound function for evaluating partial solutions. In the following we first present a description of our implementation of BS for the ALWABP. Afterwards we describe the algorithmic scheme in which this beam search component is used for obtaining good solutions to the ALWABP. 3.1. Beam Search The BS component described in this section—and pseudo-coded in Algorithm 1—is the main component of our algorithm for the ALWABP. As input the algorithm requires a problem instance (T, S, W, G), a fixed cycle time C, a beam width kbw, and a maximal number of extensions kext. In short, BS tries to generate at least one feasible solution with mor less work stations, while respecting cycle time C. As mentioned before, the central idea behind BS is to allow the extension of partial solutions in several possible ways. At each step the algorithm extends each partial solution from beam Bin a maximum number of ways. An extension is generated by, first, assigning an unassigned worker to the next empty work station and, second, by assigning a set of so-far unassigned tasks to this worker such that the given cycle time Cis not surpassed and the precedence constraints between the tasks are respected (see lines 13-14 of Algorithm 1). More specifically, given a partial solution τ′with l−1< m work stations already filled, the algorithm generates for each unassigned worker a maximum of kext extensions. In order to avoid having to enumerate all possible 6
Algorithm 1 Beam search 1: input: an instance (T, S, W, G), a fixed cycle time C, a beam width kbw, and kext 2: l:= 0 3: τ:= (π, S) where πand Sare empty 4: B:= {τ} 5: Bcompl := ∅ 6: while B6=∅do 7: Bext := ∅ 8: l:= l+ 1 9: for all τ∈Bdo 10: for all unassigned workers wwith respect to solution τdo 11: for i= 1,...,kext do 12: τ′:= τ{copy partial solution τinto τ′} 13: π′ l:= w 14: S′ l:= ExtendPartialSolution(τ′, l, w, C){see Algorithm 2} 15: if solution τ′is complete (that is, all tasks are assigned) then 16: Bcompl := Bcompl ∪ {τ′} 17: else 18: if l < m then 19: Bext := Bext ∪ {τ′} 20: end if 21: end if 22: end for 23: end for 24: end for 25: B←SelectSolutions(Bext,kbw) 26: end while 27: output: If Bcompl 6=∅the output is true, otherwise false extensions of a partial solution, our algorithm produces extensions in a (partially) probabilistic way rather than in the usual deterministic manner. Each generated extension (partial solution) is either stored in set Bcompl in case it is a complete solution, or in set Bext otherwise (see lines 15-21 of Algorithm 1). However, a partial solution is only stored in set Bext in case less than mwork stations have been filled already. At the end of each step, the beam search algorithm creates a new beam Bby selecting up to kbw (called the beam width) solutions from the set of further extensible solutions Bext (see line 25 of Algorithm 1). This is done in function SelectSolutions(Bext,kbw) by means of a lower bound LB(·). In the following we outline in more detail the extension of partial solutions and the working of function SelectSolutions(Bext,kbw). 7
Algorithm 2 Function ExtendPartialSolution(τ′, l, w, C) of Algorithm 1 1: input: A partial solution τ′, the index lof the work station to be filled, the worker wassigned to work station l, and the cycle time C 2: S′ l:= ∅ 3: T′:= {i∈T|i /∈Sl j=1 S′ j, Pi⊆Sl j=1 S′ j, tiw <∞, tiw +crem ≤C} 4: crem := C 5: while T′6=∅do 6: j:=ChooseTask(T′, crem ) 7: crem := crem −tjw 8: T′:= {i∈T|i /∈Sl j=1 S′ j, Pi⊆Sl j=1 S′ j, tiw <∞, tiw +crem ≤C} 9: S′ l:= S′ l∪ {j} 10: end while 11: output: Filled work station S′ l 3.1.1. Generating Extensions of Partial Solutions The generation of an extension of a partial solution τ′= (π′,S′) with l−1 work stations already filled takes place in lines 13-14 of Algorithm 1. In this context, let us denote by W⊆Wthe set of workers that are not assigned to any of the first l−1 work stations of partial solution τ′. The generation of an extension works as follows. First, a worker w∈Wis assigned to work station lof τ′, that is, π′ l:= w. Second, unassigned tasks are iteratively assigned to worker π′ l—that is, added to S′ l—until the sum of their worker-dependent processing times is such that no other task can be added to S′ lwithout exceeding the given cycle time C. This procedure is pseudo-coded in Algorithm 2. At each step, T′denotes the set of so-far unassigned tasks that may be added to S′ lwithout violating any constraints. The definition of this set of available tasks is given in line 3, respectively 8, of Algorithm 2. It remains to outline the implementation of function ChooseTask(T′, crem )of Algorithm 2. For that purpose let us first define the following subset of T′: Tsat := {i∈T′|tiw +crem =C}(13) Hereby, remember that wwas the worker assigned to work station l. The definition in Eq. 13 is such that Tsat contains all tasks that saturate, in terms of processing time, work station l. Next, a sophisticated greedy function is employed for assigning a value ηi>0 to all tasks i∈T′. Note that the definition of these greedy values follows below. The first action for choosing a task from T′consists in flipping a coin for deciding if the choice is made deterministically, or probabilistically. In case of a deterministic extension, there are two possibilities. First, if Tsat 6=∅, the best task from Tsat is chosen, that is, the task with maximal greedy value among all tasks in Tsat. Otherwise, we choose the task with maximal greedy value from T′. In case of a probabilistic decision, a task from T′is chosen using the following 8
probability distribution: p(i) := ηi P j∈T′ ηj ,∀i∈T′(14) For completing the description of the working of function ChooseTask(T′, crem ), it remains to outline the definition of the greedy values ηi,∀i∈T′. The greedy value ηiof a task i∈T′is composed of a static term αiand a dynamic term βi: ηi:= αi·βi(15) For each application of BS, the static term αifor each i∈Tis pre-computed as follows: γi:= κ1·twi C+κ2· |Sucall i| max1≤j≤nSucall j!,∀i∈T(16) Remeber again, that wis the worker assigned to work station l. In Eq. 16, Sucall idenotes the set of all tasks that can be reached from iin the precedence graph Gvia a directed path. Moreover, κ1and κ2are parameters with values in [−1,1]. Given the γivalues, the static term αiis derived as αi:= γi−γmin + 1 γmax ∀i∈T , (17) where γmin, respectively γmax, denote the minimum, respectively maximum, values of all γi. Interestingly, for obtaining well-working αivalues, parameters κ1 and κ2have to be chosen in a problem-instance-dependent way. However, in preliminar experiments we have not been able to derive parameter values that work well over the whole range of problem instances. Therefore, both parameter values are chosen randomly from [−1,1] for each calculation of the αivalues, that is, for each application of beam search. In contrast to the static αivalues, values βiare dynamic, that is, they depend on the current partial solution. Given a partial solution τ′with l−1 work stations already filled, remember that W⊆Wwas defined as the set of workers that have not been assigned to any of the first l−1 work stations of τ′. Then, βmin i:= minh∈W{tih |tih <∞} ,∀i∈T′(18) βmax i:= maxh∈W{tih |tih <∞} ,∀i∈T′.(19) Given these definitions, and given that worker wis assigned to work station l of partial solution τ′, terms βiare defined as follows: βi:= βmax i−tiw + 1 βmax i−βmin i+ 1 ,∀i∈T′(20) 9
Table 5: Results for the Wee-mag family. Group best-known IBS CS best avrg time best avrg time 1∗28.7 28.7 29.71 104.91 29.0 32.7 94.3 2∗33.6 33.6 34.91 84.93 34.6 38.4 91.4 3∗50.1 50.1 51.6 160.33 50.8 56.7 96.0 4∗48.6 48.6 50.44 143.34 49.6 55.6 103.9 5∗10.3 10.3 10.67 57.05 13.1 20.9 141.2 6∗11.9 11.9 12.35 60.24 14.6 18.2 155.2 7∗18.2 18.2 18.96 71.36 21.2 27.1 148.0 8∗18.1 18.1 18.85 90.00 21.6 26.8 140.6 average ∗27.44 27.44 28.44 96.52 29.31 34.56 121.31 dures for simple assembly line balancing, European Journal of Operational Research 168 (3) (2006) 666–693. [3] C. Miralles, J. P. Garcia-Sabater, C. Andres, M. Cardos, Advantages of assembly lines in sheltered work centres for disabled, International Journal of Production Economics 110 (2007) 187–197. [4] P. Kotler, N. Lee, Corporate Social Responsibility: Doing the Most Good for Your Company and Your Cause, Wiley & Sons, Hoboken, NJ, 2005. [5] C. Miralles, J. P. Garcia-Sabater, C. Andres, M. Cardos, Branch and bound procedures for solving the assembly line worker assignment and balancing problem. application to sheltered work centres for disabled, Discrete Applied Mathematics 156 (2008) 352–367. [6] A. A. Chaves, L. A. Nogueira Lorena, C. Miralles, Hybrid metaheuristic for the assembly line worker assignment and balancing problem, in: M. J. Blesa, C. Blum, L. Di Gaspero, A. Roli, M. Sampels, A. Schaerf (Eds.), Proceedings of HM 2009 – Sixth International Workshop on Hybrid Metaheuristics, Vol. 5818 of Lecture Notes in Computer Science, Springer Verlag, Berlin, Germany, 2009, pp. 1–14. [7] A. A. Chaves, C. Miralles, L. A. Nogueira Lorena, Clustering search approach for the assembly line worker assignment and balancing problem, in: M. H. Elwany, A. B. Eltawil (Eds.), Proceedings of ICC&IE 2007 – 37th International Conference on Computers and Industrial Engineering, 2007, pp. 1469–1478. [8] P. S. Ow, T. E. Morton, Filtered beam search in scheduling, International Journal of Production Research 26 (1988) 297–307. [9] C. Blum, Beam-ACO for simple assembly line balancing, INFORMS Journal on Computing 20 (4) (2008) 618–627. 16
[10] I. Sabuncuoglu, M. Bayiz, Job shop scheduling with beam search, European Journal of Operational Research 118 (1999) 390–412. [11] M. Ghirardi, C. N. Potts, Makespan minimization for scheduling unrelated parallel machines: A recovering beam search approach, European Journal of Operational Research 165 (2) (2005) 457–467. [12] J. M. S. Valente, R. A. F. S. Alves, Filtered and recovering beam search algorithms for the early/tardy scheduling problem with no idle time, Computers & Industrial Engineering 48 (2) (2005) 363–375. [13] G.-C. Lee, D. L. Woodruff, Beam search for peak alignment of NMR signals, Analytica Chimica Acta 513 (2) (2004) 413–416. [14] C. Blum, M. J. Blesa, M. L´opez Ib´a˜nez, Beam search for the longest common subsequence problem, Computers & Operations Research 36 (12) (2009) 3178–3186. [15] T. R. Hoffmann, Assembly line balancing: A set of challenging problems, International Journal of Production Research 28 (1990) 1807–1815. 17
Appendix A Table 6: Values of optimal solutions for the Roszieg family. Group Instance number 12345678910 1 20 22 18 18 17 24 21 20 22 19 2 30 27 76 25 26 22 22 20 27 40 3 28 30 26 33 28 27 21 28 27 33 431 29 32 27 27 29 27 28 21 29 5 10 10 10 9 12 9 10 8 10 9 6 11 10 10 10 11 13 13 11 12 9 716 13 19 16 14 17 17 16 15 17 8 15 16 16 16 16 17 13 14 14 14 Table 7: Values of optimal solutions for the Heskia family. Group Instance number 12345678910 1 94 95 102 103 92 98 116 86 95 142 2 169 107 108 96 130 117 146 132 101 120 3200 147 186 181 142 194 149 191 170 165 4204 147 211 127 181 179 191 152 167 153 5 35 40 35 30 40 29 25 43 38 34 6 51 50 52 33 38 34 42 39 59 28 766 56 69 126 107 39 87 62 61 79 8 91 65 73 57 65 70 71 58 46 76 18
Table 8: Values of the best-known solutions for the Tonge family (as obtained by IBS). Group Instance number 12345678910 1 93 94 106 112 92 90 95 108 73 86 2 112 116 105 93 95 101 123 113 128 116 3 171 161 148 150 174 173 149 182 189 153 4175 180 157 181 152 169 167 153 183 183 5 29 33 33 34 31 38 32 35 34 32 638 43 36 40 40 40 42 42 37 42 763 68 69 97 65 69 52 63 55 63 8 57 61 72 68 69 59 62 67 66 66 Table 9: Values of the best-known solutions for the Wee-mag family (as obtained by IBS). Group Instance number 12345678910 1 28 28 27 33 32 26 27 31 27 28 2 32 33 32 33 34 32 34 37 33 36 350 48 48 52 49 47 56 51 45 55 451 49 52 58 47 49 42 47 50 41 5 10 10 10 12 11 10 11 10 9 10 612 10 11 12 12 13 12 12 14 11 7 16 18 19 17 18 18 20 15 20 21 8 19 16 17 21 19 16 18 18 20 17 19