Electronic version of an article published as [International Journal of Production Economics, 2008, Vol. 113, No. 2, p. 957-968] [DOI: http://dx.doi.org/10.1016/j.ijpe.2007.11.009] © [copyright Elsevier]
1 A MULTISTAGE SCENARIO OPTIMISATION PROCEDURE TO PLAN ANNUALISED WORKING HOURS UNDER DEMAND UNCERTAINTY* Amaia Lusa†1, Albert Corominas1 and Norberto Muñoz2 1 Institute of Industrial and Control Engineering (IOC), School of Industrial Engineering of Barcelona (ETSEIB), Technical University of Catalonia (UPC), Barcelona, Spain. E-mail:
[email protected], albert.coromi[email protected] 2 Institute of Industrial and Control Engineering (IOC), Technical University of Catalonia (UPC), Barcelona, Spain. E-mail: [email protected]du Abstract The annualisation of working hours (i.e., the irregular distribution of the total number of working hours over the course of a year) makes it possible to adapt production capacity to fluctuations in demand. The required capacity, which is an essential data for the optimal planning of working time, usually depends on several complex factors. Often, it is impossible to reliably predict the required capacity or it is unrealistic to adjust it to a probability distribution. In some cases, it is possible to determine a set of required capacity scenarios, each with a related probability. This paper presents a multistage stochastic optimisation model that provides a robust solution (i.e., feasible for any possible scenario) and minimises the expected total capacity shortage. Keywords: planning, uncertainty, optimisation, scenario analysis. * ACKNOWLEDGMENTS: Supported by the Spanish Ministry of Science and Technology (MCyT), project DPI2004-05797 , co-financed by the ERDF. The authors are grateful to Alberto García-Villoria for his help in performing the computational experiments. † CORRESPONDING AUTHOR: Amaia Lusa, IOC, Av. Diagonal 647 (edif. ETSEIB), p.11, 08028 Barcelona, Spain. Tel. + 34 93 401 17 01; Fax. + 34 93 401 66 05; e-mail:
[email protected]
2 1. Introduction The annualisation of working hours (AH) involves the irregular distribution of the total number of working hours over the course of a year. AH enables companies that operate in fluctuating markets to adapt capacity to demand and thus avoid expenses related to overtime, temporary workers or inventory. In services, AH prevents capacity from being wasted and workers from being fired during low-demand periods. In fact, according to a survey carried out by Oke (2000), most companies prefer AH over other flexibility schemes such as overtime, temporary workers or rejecting orders. However, irregular working hours may cause working conditions to decline by making it harder for workers to plan their free time. Hence, an AH system must be the result of a bargaining process in which the company offers workers some kind of compensation (e.g., reduction in working time, salary increase, etc.) in exchange for the flexibility they provide. Furthermore, to avoid a significant decline in working conditions, laws and bargaining agreements often include bounds and rules that affect the distribution of working time. For example, the French law (see www.35h.travail.gouv.fr) states that the average number of working hours for any group over twelve consecutive weeks must not exceed 44 h/week. To take full advantage of the flexibility allowed by AH, the company must consider a sufficiently broad horizon (one year) when planning working time. Furthermore, it is very difficult to guarantee that the conditions are satisfied without carrying out the plan. Finally, working time planning is able to provide quantitative information (about savings, for example) that can be very useful when deciding to adopt an AH system, and when the company and the workers negotiate specific conditions. AH gives rise to new problems that have hitherto been given little attention in the literature. For instance, Hung (1999a), Hung (1999b), Grabot and Letouzey (2000) and Azmat and Widmer (2004) pointed out that the concept of annualised hours is surprisingly absent from the literature on planning and scheduling. Due to the great variety of existing production systems, AH entails a considerable range of problems. Corominas et al. (2004a) discussed the characteristics of the planning problem and proposed a classification scheme, which gave rise to thousands of different cases. Moreover, AH often implies the need to solve a complicated working-time planning problem. Several authors have dealt with different versions of the
3 problem (e.g., Hung, 1999a, Hung, 1999b, Gonçalves and Marçola, 2001, Corominas et al., 2002, Corominas et al., 2004b, Azmat and Widmer, 2004 and Azmat et al., 2004), but most papers (e.g., Lynch, 1995, MacMeeking, 1995 and Mazur, 1995) only discuss AH from a qualitative point of view. To plan annualised working hours, it must be considered the demand for the products or services provided by a company. All of the procedures for planning working time proposed in the aforementioned papers are based on deterministic data sets or average values. However, demand (and hence the required capacity) usually depends on several complex factors. Furthermore, it is often impossible to reliably predict demand or it is unrealistic to adjust it to a probability distribution. In some cases, it is possible to determine a set of demand scenarios, each with its own related probability value. Failure to consider demand as a random variable may result in significant costs due to a capacity shortage or surplus when reality does not coincide with the forecast. Furthermore, by considering demand as a deterministic data, we may even obtain a solution that may be unfeasible depending on the real demand values. To plan working time under demand uncertainty, stochastic programming (see Wets, 1989, Birge and Louveaux, 1997 and Ruszczynski and Shapiro, 2003)—in particular, scenariobased optimisation (see Rockafellar and Wets, 1987)—is an appropriate tool. The objective may be to optimise the expected value of a certain utility function (e.g., cost). It is also possible to include constraints that guarantee that the solution will be feasible for any possible scenario. This paper presents a multistage scenario stochastic optimisation model that takes into consideration demand uncertainty when planning working time under annualised hours (AH). The rest of this paper is organised as follows: Section 2 introduces multistage scenario stochastic optimisation as a procedure for dealing with uncertain demand when planning working time under annualised hours; Section 3 describes the planning problem; Section 4 explains the stochastic optimisation model; Section 5 describes the computational study; finally, Section 6 presents the conclusions.
4 2. Multistage scenario stochastic optimisation Scenario-based optimisation has been used successfully in several cases to make decisions while taking into consideration possible future scenarios (see, for example, Ramos, 1992, Morton, 1996, Pallotino et al., 2002, Li et al., 2003, Mulvey et al., 2004 and Beraldi et al., 2006). Most papers deal with two-stage programs (see the references listed at http://mally.eco.rug.nl/spbib.html for an updated survey on stochastic programming). However, multistage stochastic linear programs are the most studied and most frequently applied scenario-based stochastic models. In the literature, there are few models for production-planning problems with demand uncertainty and, to the best of our knowledge, none of them consider working time as a variable to be planned (see Mula et al., 2006 for a review of production-planning models with uncertainty). For example, Eppen et al. (1989) model the strategic capacity-planning problem of a major automobile manufacturer using a stochastic programming approach based on demand scenarios; Escudero and Kamesam (1995) solved a scenario-based stochastic production-planning problem with demand uncertainty; Karabuk and Wu (1999) formulated a multistage stochastic program for a capacity-planning problem for a major semi-conductor manufacturer in which demand and capacity uncertainties were incorporated via a scenario structure. When considering the problem of planning working time with annualised hours, the scenarios represent various possible capacity demands. In a multistage problem, at the beginning of each stage, a decision is made based on an uncertain future. By the end of the stage, some of the uncertain aspects for the future become apparent and the number of possible scenarios is reduced. Figure 1 represents this process. In the example (Figure 1), three stages are considered. At the beginning of the first stage (node e0), we do not know which of the 12 possible scenarios will occur. At the beginning of the second stage (node e1, e2 or e3), additional information is available (i.e., the actual demand for the periods corresponding to the first stage). This allows us to reduce the range of possible scenarios. For example, let us assume that, in scenarios 6 to 12, the demand is low for all periods corresponding to the first
5 stage. If the demand has in fact been high, we can conclude that we are at node e1 and we can discard scenarios 6 to 12. Figure 2 shows an example of the demand (or required capacity) for each scenario. Some scenarios have the same demand for a particular set of weeks. For example, if we reach node e1, we cannot distinguish between scenarios 1 to 5 because the demand for these scenarios is the same as that for the weeks in the first stage (before reaching node e1). [INSERT FIGURE 1] Figure 1. Scenario tree [INSERT FIGURE 2] Figure 2. Required-capacity scenarios The planning model must indicate which decision must be made at each node. Thus, at the beginning, at node e0, the model must provide all the decisions to be made at each of the rest of the nodes. The number (or length) of stages may depend on several factors. When planning working time, the agreement between the company and the workers (collective bargaining agreement) must be taken into consideration. For example, the agreement may establish a frozen period for the working hours so that the workers may plan their free time without being subjected to continuous changes in schedule. Thus, if the frozen period is one month, we cannot consider stages shorter than that because it would be impossible to maintain the working hours of a full month without changes. We do not know how many working hours will be assigned to the workers in a particular week of a stage until we know from which node we will start the stage. There may also be a notice period. This means that workers must be notified in advance of the working hours they are assigned for a certain stage (e.g., from nodes e2, e3 or e4). The notice period affects neither the scenario tree (Figure 1) nor the model presented in Section 4.
6 Nonetheless, the information to be taken into account to plan a new stage (e.g., nodes e2, e3 or e4) is actually available some time (notice period) before the beginning of that stage. Figure 3 shows an example of the planning process. The length of the stages is equal to that of the frozen period. At time t2, a new schedule for the weeks corresponding to Stage 2 and the following ones is determined and announced to the workers; at t3, if new information is available, a new schedule for the weeks corresponding to Stage 3 and the following ones is determined and announced to the workers, and so forth. [INSERT FIGURE 3] Figure 3. Planning process It is meaningless to consider nodes for which there is no additional information. In Figure 1, this is the case for node e9. At node e3, based on the available information, we know for certain that the real scenario is either 11 or 12. At node e9, it is still impossible to distinguish between scenarios 11 and 12. Thus, starting at node e9, all the planning carried out for the periods in the last stage will be the same as that which can be carried out at the beginning of the second stage (at node e3). This means that the number of stages between two consecutive nodes is not constant. In fact, the tree shown in Figure 1 could be considered a general graph in which the arcs do not represent periods of time but rather just connections between nodes. In this case, it is necessary to know which instant corresponds to each node. 3. Problem statement Given the scenario tree (with the probabilities associated with each scenario and the required capacity for each scenario), the problem consists in determining the number of working hours for each worker, for each node and for each week corresponding to the stage beginning at that node. The conditions that the solution must satisfy may come from a legal resolution or from a collective bargaining agreement between the management and the workers. As it is
7 impossible to establish an exhaustive list of conditions a priori, we have considered the most common conditions in order to build a basic model for the problem. To adapt this model to a specific case, constraints can be added or deleted. As an example, under the French law, the weekly number of working hours must fall within an interval defined by upper and lower bounds, the total number of annual working hours must be upper-bounded, and the average of the weekly working hours for any set of twelve consecutive weeks must be upper-bounded (this condition is assumed to apply to sets of twelve consecutive non-holiday weeks only). The characteristics of the problem can be summarised as follows: − Different workers may have different working hours. − The number of annual working hours is upper-bounded (e.g., 1,750 hours). − The number of weekly working hours is upper- and lower-bounded (e.g., [30-50] hours). − The average number of working hours for any group of L (e.g., twelve) consecutive working weeks may not exceed a certain value (e.g., 44 h/week). − Workers take two holiday periods (two consecutive weeks in winter and four consecutive weeks in summer), which are arranged in advance. − The expected value of the total capacity shortage must be minimised. 4. Multistage scenario optimisation model We developed a linear program model based on the scenario-based optimisation scheme. The solution, which will be feasible for all scenarios, provides the decisions that must be made at each possible node and minimises the expected value of the total capacity shortage. The notation used in this paper is defined as follows: Data: T Number of periods (usually weeks) in the planning horizon (usually T=52 weeks, which corresponds to one year).
8 E Set of nodes (e0, e1, … , e0 being the root node). − Γe Immediate precedent node of node e (∀e ∈ E\eo). e + Γ Set of direct descendant nodes for node e (∀e ∈ E). ED Set of nodes at which a decision must be made (i.e., all nodes but the last ones); { } |e ED e E + =∈ ≠∅ Γ. S Set of scenarios, where each one is characterised by a path of the scenario tree (the root node, e0, is not included). A path is a totally ordered set of nodes. In the example shown in Figure 1, the twelve scenarios are: S={{e1,e4,e10}, {e1,e4,e11}, {e1,e5,e12}, {e1,e6,e13}, {e1,e6,e14}, {e2,e7,e15}, {e2,e7,e16}, {e2,e8,e17}, {e2,e8,e18}, {e2-e8-e19}, {e3,e20}, {e3,e21}}. As explained above, node e9 has been deleted. qs Probability that the scenario s will occur (∀s ∈ S), with 1 ∀∈ = ∑ s sS q. , fl ee TT First and last period, respectively, corresponding to the stage beginning at node e (∀e ∈ ED). Obviously, 1, + =−∀∈Γ f l ee kk TT pe Probability of reaching node e (∀e ∈ E\eo); | es sSes p q ∀∈ ∈ = ∑ . P Set of paths, where each path is characterized by a totally ordered set of nodes at which a decision must be made. In the example shown in Figure 1 (but deleting node e9), the six elements of the set are: P={{e0,e1,e4}, {e0,e1,e5}, {e0,e1,e6}, {e0,e2,e7}, {e0,e2,e8}, {e0,e3}}. Ctek Required capacity (in working hours), in period t, for the scenarios that include nodes e and k ( ; ; ,..., + ⎡ ⎤ ∀∈ ∀∈ ∀∈ Γ ⎣ ⎦ fl eee eED k t TT ). W Set of workers. Ai Set of working (available) periods for worker i,iW ∀ ∈. Hi Upper bound for the annual number of working hours for worker i,iW∀∈ . hmit Lower bound for the number of working hours for worker i in period t (;∀∈ ∀∈ i iW t A). hMit Upper bound (>hmit) for the number of working hours for worker i in period t (;∀∈ ∀∈ i iW t A). L, hL For each worker, the average number of working hours in a set of L consecutive working periods must not exceed hL (with L = 12 and hL = 44 hours).
15 6. Conclusions The annualisation of working hours allows companies to adapt their capacity to the required capacity. Linear programming tools, which have been tested in previous studies, are appropriate and efficient for planning working time and optimising the use of production resources (e.g., minimising costs due to capacity shortages) whilst satisfying a set of conditions. The required capacity, which is an essential piece of data for planning working time, usually depends on several complex factors. Often, it is impossible to reliably predict the required capacity or it is unrealistic to adjust it to a probability distribution. In some cases, however, it is possible to determine a set of required capacity scenarios, each with its own related probability value. This paper proposes a scenario-based optimisation approach for dealing with uncertain demand and presents a linear programming model that gives a robust solution (i.e., feasible for any scenario) and optimises the expected value of the total capacity shortage. The results of a computational experiment demonstrate that the model can be efficiently solved to optimality even for very large instances. Finally, the expected value of the total capacity shortage obtained with the scenario-based model was compared with that obtained using the expected value of the required capacity with a deterministic model (i.e., the values of the stochastic solutions or VSS, in %, were computed). Using the proposed stochastic model gives an average VSS of 17.45%. We therefore conclude that the proposed model is an appropriate and useful tool for dealing with demand uncertainty when planning working time with annualised hours.
16 References Azmat, C. ; Widmer, M. (2004). A case study of single shift planning and scheduling under annualized hours: A simple three step approach, European Journal of Operational Research, Vol. 153, pp. 148-175. Azmat, C.; Hürlimann, T.; Widmer, M. (2004). Mixed integer programming to schedule a single-shift workforce under annualized hours, Annals of Operations Research, Vol. 128, pp. 199-215. Beraldi, P.; Ghiani, G.; Guerriero, E.; Grieco, A. (2006). Scenario-based planning for lotsizing and scheduling with uncertain processing times. International Journal of Production Economics, Vol. 101, No. 1, pp. 140-149. Birge , J.R.; Louveaux, F. (1997). Introduction to Stochastic Programming. Springer-Verlag, New York. Corominas, A.; Lusa, A.; Pastor, R. (2002). Using MILP to plan annualised hours, Journal of the Operational Research Society , Vol. 53, pp. 1101-1108. Corominas, A.; Lusa, A.; Pastor, R. (2004a). Characteristics and classification of annualised working hours planning problems, International Journal of Services Technology and Management, Vol. 5/6, pp. 435-447. Corominas, A.; Lusa, A.; Pastor, R. (2004b). Planning Annualised Hours with a Finite Set of Weekly Working Hours and Joint Holidays. Annals of Operations Research, Vol. 128, No. 1- 4, pp. 217-233. Eppen, G.D.; Martin, R.K.; Schrage, L. (1989). A scenario approach to capacity planning, Operations Research, Vol. 37, pp. 517-527. Escudero, L.F.; Kamesam, P.V. (1995). On solving stochastic production planning problems via scenario modelling. TOP, Vol. 3, pp. 69-95. Gonçalves, E.V.; Marçola, J.A. (2001). Annualized hours as a capacity planning tool in make-to-order or assemble-to-order environment: an agricultural implements company case. Production Planning & Control, Vol. 12, pp. 388-398. Grabot, B., Letouzey, A., 2000. Short-term manpower management in manufacturing systems: new requirements and DSS prototyping, Computers in Industry, Vol. 3, pp. 11-29.
17 http://mally.eco.rug.nl/spbib.html Hung, R., 1999a. Scheduling a workforce under annualized hours, International Journal of Production Research, Vol. 37, pp. 2419-2427. Hung, R., 1999b. A multiple-shift workforce scheduling model under annualized hours, Naval Research Logistics, Vol. 46, pp. 726-736. Karabuk, S.; Wu, D. (1999). Coordinating strategic capacity planning in the semiconductor industry, Technical Report 99T-11, Department of IMSE, Lehigh University. Li, S.; Lolou, R.; Rahman, A. (2003). Technological progress and technology acquisition: Strategic decision under uncertainty. Production and Operations Management, Vol. 12, No. 1, pp. 102-119. Lynch P., 1995. Annual Hours: An idea whose time has come, Personnel Management November, pp. 46-50. MacMeeking J., 1995. Why Tesco’s new composite distribution needed annual hours, International Journal Retail Distribution Management, Vol. 23, pp. 36-38. Mazur L., 1995. Coming: the annual workweeks, Across the Board, Vol. 32, pp. 42-45. Morton, D. P. (1996). An enhanced decomposition algorithm for multistage stochastic hydroelectric scheduling. Annals of Operations Research, Vol. 64, No. 0, pp. 211-235. Mula, J.; Poler, R.; García-Sabater, J.P.; Lario, F.C. (2006). Models for production planning under uncertainty: A review. International Journal of Production Economics, Vol. 103, pp. 271-285. Mulvey, J.; Shetty, B. (2004). Financial planning via multi-stage stochastic optimization. Computers and Operations Research, Vol. 31, No. 1, pp. 1-20. Oke, A. (2000). Linking human resource flexibility with manufacturing flexibility: enablers of labour capacity flexibility in manufacturing plants. Proceedings of the First World Conference on Production and Operations Management (POM), Sevilla, August 27- September 1. Pallotino, P; Sechi, G.M.; Zuddas, P. (2002). A DSS for water resources management under uncertainty. Proceedings of the International Environmental Modelling and Software Society, Vol. 2.
18 Ramos, A. (1992). Integrated model for capacity planning for manufacturing systems. Technical Report IIT-92-022, Universidad Pontificia de Comillas, Madrid. Rockafellar, R.T.; Wets, R.J.-B. (1987). The principle of scenario aggregation in optimization under uncertainty, Manuscript, University of Washington, May 1987. Ruszczynski, A.; Shapiro, A. (2003). Stochastic Progamming Models. In A. Ruszczynski and A. Shapiro Eds., Handbooks in OR & MS, 10: Stochastic Programming, Chapter 1. Wets, R.J.-B. (1989). Stochastic Programming, in Nemhauser, G.L. et al. (Eds.), Handbooks in OR&MS, Vol. 1. Elsevier. pp. 573-629. www.35h.travail.gouv.fr/ Ministére de l’Emploi et de la Solidarité, France, 15/09/2006.
19 LIST OF FIGURES Figure 1. Scenario tree Figure 2. Required-capacity scenarios Figure 3. Planning process Figure 4. Types of scenario tree Figure 5. Number of workers, scenarios and nodes for each instance Figure 6. Number of variables and constraints for each instance Figure 7. Computing times (in seconds) by number of nodes, scenarios, workers, variables and constraints Figure 8. Dotplot of savings (VSS, in %) Figure 9. Scenario tree for the example Figure 10. Solution for an example with four scenarios. Case 1: qs1=qs2>qs3=qs4 Figure 11. Solution for an example with four scenarios. Case 2: qs1=qs2<qs3<qs4 Figure 12. Solution of the deterministic model for an example with four scenarios. Case 2: qs1=qs2<qs3<qs4
20
21 Figure 1. Scenario tree Scenario 12 Scenario 11 Scenario 10 Scenario 9 Scenario 8 Scenario 7 Scenario 6 Scenario 5 Scenario 4 Scenario 3 Scenario 2 Scenario 1 e0 e1 e2 e4 e5 e6 e7 e8 e 10 e 11 e 12 e 13 e 14 e 15 e 16 e 17 e 18 e 19 e3 e9e 20 e 21
22 Figure 1. Scenario tree
23 Example of scenarios Time Required capacity S1 S2 S3 S4 S5 S6 S7 S8 S9 S10 S11 S12 e1 e2 e3 e4 e5 e6 e7 e8 e9 Figure 2. Required-capacity scenarios
24 Figure 2. Required-capacity scenarios
31 Number of variables Number of constraints 350000300000250000200000150000100000500000 500000 400000 300000 200000 100000 0 Figure 6. Number of variables and constraints for each instance
32 Figure 6. Number of variables and constraints for each instance
33 Computing time (sec) 400020000200010000100500 3000 2000 1000 0 3000001500000 3000 2000 1000 0 4000002000000 Number of nodes Number of scenarios Number of workers Number of variables Number of constraints Figure 7. Computing times (in seconds) by number of nodes, scenarios, workers, variables and constraints
34 Figure 7. Computing times (in seconds) by number of nodes, scenarios, workers, variables and constraints
35 Saving 988470564228140 Figure 8. Dotplot of savings (VSS, in %)
36 Figure 8. Dotplot of savings (VSS, in %)
37 Figure 9. Scenario tree for the example Scenario 3 Scenario 2 Scenario 1 Scenario 4 e0 e1 e2 e3 e4 e5 e6
38 Figure 9. Scenario tree for the example
39 Stochastic model. |W|=avg. required+1; qs1=qs2>qs3=qs4 0 200 400 600 800 1000 1 3 5 7 9 11 13 15 17 19 21 23 25 27 29 31 33 35 Time Required capacity and planned capacity PCe0 PCe1 PCe2 S1 S2 S3 S4 Figure 10. Solution for an example with four scenarios. Case 1: qs1=qs2>qs3=qs4
40 Figure 10. Solution for an example with four scenarios. Case 1: qs1=qs2>qs3=qs4