Lotsizing in capacitated pure flow shop with sequence-dependent setups has been considered in this paper. An exact formulation of the problem is provided as a mixed-integer program. It is well known that the capacitated lotsizing and scheduling problem (CLSP) is NP-hard. The introduction of serially arranged machines and sequence-dependent setups makes the problem even more complicated. Five MIP-based heuristics based on iterative procedures are provided. The first three heuristics are based on the original model but to solve non-small instances of problem, the last two heuristics are based on permutation flow shop problem which ignores the majority of combinations. To test the accuracy of heuristics, two lower bounds are developed and compared against the optimal solution. The trade-offs between solution quality and computational times of heuristics are also provided.
Keywords: lotsizing and scheduling; pure flow shop; sequence-dependent; MIP-based algorithm; relax-and-fix
Smooth and cost-efficient running of a factory often depends on its manager's ability to select appropriate lot sizes and production schedules (Gupta and Magnusson [
Simultaneous lotsizing and scheduling is essential if sequence-dependent setup costs and setup times occur during production (Fandel and Stammen-Hegene [
Models of lotsizing and scheduling are divided in the literature into small bucket and big bucket problems (Eppen and Martin [
The multi-level capacitated lotsizing problem (MLCLSP), a big bucket problem, does not have this disadvantage, but it cannot fix lotsizes and schedules simultaneously. To attempt to unite the advantages of the MLPLSP and MLCLSP, Fandel and Stammen-Hegene ([
The challenging problem of efficient lotsizing on the pure flow shop with sequence-dependent setups is modelled using a new mixed integer programming (MIP) formulation in this paper.
Solving the single-level multi-period CLSP with sequence-dependent setups is equivalent to solving multiple dependent TSPs. Hence, like the TSP, the CLSP also belongs to a set of problems that are called NP-hard. That means it is very difficult to optimally solve large instances of the problem. The introduction of serially arranged machines makes the problem even more complicated. Therefore, it is necessary to find reasonable heuristic solutions for medium and large instances. Also it is important to develop a computable lower bound in order to test the accuracy of the heuristics.
The paper has the following structure. Section 2 introduces a detailed description of the problem and its underlying assumptions, Section 3 deals with the development and comparison of lower bounds in detail and Section 4 provides the heuristics. Section 5 reports the numerical experiments and finally Section 6 discusses the concluding remarks and recommendations for future studies.
The following assumptions are made for the problem of multi-product multi-level capacitated lotsizing with sequence-dependent setups:
- • Several products are produced on serially arranged machines in a pure flow shop structure.
- • Each machine can only produce one product type. Machine m can only process the mth level intermediary products that are required for production of the product type of level m + 1.
- • Each machine is constrained in capacity.
- • When the machines are setup, sequence-dependent setup costs and times accrue.
- • Setup costs have the form W
ijm = fw · Sijm where fw is opportunity cost per unit of setup time. - • The setting-up of a machine must be completed in a period.
- • There must be precisely N (number of products) setups in each period on each machine, even if a setup is just from a product to itself. Setups follow the so-called triangular inequalities, i.e. it is never faster to change over from one product to another by means of a third product: otherwise over N setups in a time period could be obtained. Since a setup time (and cost) from a product to itself is zero, note that the model does not force a machine to have exactly N positive-time (and cost) setups but rather up to N such setups. The remaining zero-time (cost) setups are modelling phantoms and do not exist in reality (Clark and Clark [
6 ], Clark [5 ]). This feature makes possible for a lotsize, or production run, to continue over consecutive time periods without incurring real setup for later period (setup carry over). - • The required resources and parts must be ready for production.
- • External demand exists for final products and is satisfied at the end of each period.
- • There are no lead times between the different production levels for transportation or cooling the products.
- • Shortages are not permitted.
- • A component cannot be produced earlier in a period than the production of its required component is finished, this assumption remains true even if there is inventory of the required component. In other words, production on a production level can only start if all products from the previous production level are available; this is called vertical interaction.
- • To guarantee the vertical interaction, idleness between each setup and its production is defined with the help of shadow product (Fandel and Stammen-Hegene [
12 ]). - • There are no demand and no storage costs for shadow products.
- • At the beginning of the planning horizon each machine is setup for a defined product.
In order to formulate the model, we rely on the following data:
Indices
- i , j , k Product type.
- Designation for a specific setup number.
- m Level of production.
- t Period.
Parameters
- T Planning horizon.
- N Number of different products.
- M Number of production levels/number of machines.
- BigM A large real number.
- C m , t Available capacity of machine m in period t (in time units).
- d j , t External demand for product j at the end of period t (in units of quantity).
- h j , m Storage costs unit rate for product j in level m.
- b j , m Capacity of machine m required to produce a unit of product (or shadow product) j (in time units per quantity units).
- p j , m , t Production costs to produce one unit of product j on machine m in period t (in money unit per quantity unit).
- S i , j , m Sequence-dependent setup time for the setup of the machine m from production of product i to production of product j (in time units); for i ≠ j , S i , j , m ≥ 0 and for i = j , S i , j , m = 0.
- W i , j , m Sequence-dependent setup cost for the setup of the machine m from production of product i to production of product j (in money units); for i ≠ j , W i , j , m ≥ 0 and for i = j , W i , j , m = 0.
- j 0 m The starting setup configuration on machine m.
Decision variables
- I j , m , t Stock of product j at level m at the end of period t.
- Binary variable, which indicates whether the n th setup on machine m in period t is from product i to product j (= 1) or not (= 0).
- Quantity of product j produced after n th setup on machine m in period t.
- Shadow product: the gap (in quantity units) between n th setup (to product j) on machine m in period t and its related production in order to ensure that direct predecessor of this product (production of product j on machine m − 1 in period t) has been completed. In other words, idle time (in quantity units) before production of product j on machine m in period t in order to guarantee vertical interaction.
Graph
Subject to
Graph
Graph
Graph
Graph
Graph
Graph
Graph
Graph
Graph
Graph
Graph
Graph
Graph
In this model, Equation (
Equation (
The left side of Equation (
Equation (
To illustrate the model, a small problem has been presented. Consider a production line with two serially-arranged machines that produces three products in two periods (N = 3, M = 2, T = 2). At the beginning of the planning horizon, machines are setup to produce product 1. Product demands are shown in Table 1. Unit production times and costs are shown in Table 2. Holding cost unit rates are shown in Table 3. Setup times and costs required by products in machines are shown in Table 4. Table 5 shows the capacity of machines.
Table 1. Demand of products.
Product 1 Product 2 Product 3 Period 1 100 50 150 Period 2 100 150 50
Table 2. Unit production times and costs.
Machine 1 Machine 2 Product 1 Product 2 Product 3 Product 1 Product 2 Product 3 Period 1 1.5 2 2 1.5 2 2 Period 2 1.5 2 2 1.5 2 2
Table 3. Holding cost unit rate.
Product 1 Product 2 Product 3 Machine 1 0.4 0.3 0.2 Machine 2 0.4 0.3 0.2
Table 4. Sequence-dependent setup times and costs.
Machine 1 Machine 2 Product 1 Product 2 Product 3 Product 1 Product 2 Product 3 Product 1 0 35 50 0 35 50 Product 2 70 0 35 70 0 35 Product 3 40 50 0 40 50 0
Table 5. Capacity of machines.
Machine 1 Machine 2 Period 1 750 1150 Period 2 750 1150
Based on the data shown in Tables 1 to 5, the generalised algebraic modelling system (GAMS) is utilised to find the optimal solution. The optimal sequence in both machines in period 1 is 1-2-3 and lotsizes in both machines are 100, 50 and 200. It means that demand of product 3 in period 2 is produced in period 1. The sequence of both machines in period 2 is 1-2 and lotsizes in both machines are 100 and 150. The optimal objective function is 2510. Table 6 shows all non-zero variables in the optimal solution.
Table 6. Non-zero decision variables.
So far, we have successfully formulated the problem. However, the formulation presented in the previous section is not a practical approach to solve large instances of the problem.
In this section we obtain two lower bounds on the problem. The first lower bound is achieved by solving model M1 that is obtained from the initial model by relaxing all binary variables. After relaxing the binary variables, Equation (
Graph
a
Equation (
Graph
In Equation (
Graph
by summing over all n.
Equation (
Suppose that Equation (
Graph
Suppose that
Graph
and = 1 (k ≠ j). For n = n′ to N, in all setups to product j, j would be replaced by k. By this modification, in triple (j, m, t),
Graph
According to the fact that setup costs from a product to itself is zero and considering the triangle inequality:
Graph
Therefore, by assuming that Equation (
Rolling-horizon heuristics are usually used in dynamic lotsizing and scheduling problems, where demands are gradually revealed during the planning horizon and part types have to be allocated to machines in an on-going fashion as new orders arrive. On the other hand, a rolling-horizon approach is still suitable when all parameters are perfectly known (Clark and Clark [
Each iterative procedure decomposes the planning horizon into three sections (Merce and Fontan [
- • The first section (beginning section) is composed of the (k − 1) first periods. Within this section, the decisions have been partially or completely frozen by previous iterations according to a selected freezing strategy.
- • The second section (central section) includes the kth period. In this section the whole problem is considered.
- • The third section (ending section) includes the last periods (from period k + 1 to period T). There, the model is simplified according to a selected simplification strategy.
At the end of iteration k, all sections roll one period and a new iteration can then be performed. The procedure stops when there is no longer any ending section. The last iteration defines decision variables over the entire horizon. Figure 1 demonstrates the iterative procedure.
Graph: Figure 1. Demonstration of the iterative procedure.
Beginning section: All decisions related to the beginning section are completely frozen.
Central section: Consists of one period, the whole problem is considered.
Ending section: Binary variables and Equation (
Using a simplified representation for the ending section in the rolling horizon is less difficult to solve and hence permits the solution of larger problems.
The solution approach initially adopted decomposes the model into a succession of T smaller MIPs, each with a more tractable number of binary variables.
Beginning section: Only binary variables related to the beginning section are frozen.
The central section and the ending section of this heuristic are similar to the former heuristic (H1).
The only difference between H3 and H2 is in their ending section. Even more computational time is economised by eliminating the majority of variables from the ending section. (n > 1), (n > 1) and are eliminated from the ending section. Except Equations (
For the ending section, b
Graph
Suppose the optimal policy were to meet the demand of every period on a lot-for-lot basis with no between-periods stocks. By ignoring setup costs and using this modified unit production costs and times, the objective function would be equal to the second lower bound.
Each iteration of former heuristics (H1, H2 and H3) has N
In this heuristic (H4) the search is limited to the permutation flow shop problem, a restricted problem where products have similar sequences in all machines.
Assuming that in each period products have similar sequences in all machines, the number of binary variables in each iteration reduces from N
Permutation flow shop problem
is used instead of because sequencing of products in all machines are the same. Other variables and parameters are similar to those of the model explained in Section 2.2. We also assume that the starting setup configuration of all machines are the same.
Graph
Subject to
Graph
Graph
Graph
Graph
Graph
Graph
Graph
Graph
Graph
Graph
Graph
Graph
Graph
The iterative procedure used in this heuristic is similar to H3.
Heuristic 4 (related to the modified model) could solve some instances that former heuristics (H1, H2 and H3) are not able to solve in limited time, but by increasing the size of the problem, the time taken to solve a MIP in H4 tends to explode exponentially.
An approach to find feasible solutions for larger instances is using fix and relax method (Dillenberger et al.[
Solve the partial linear programming relaxation, where the values of {y
For n = 2, ..., N, solve the partial linear programming relaxation, with the {y
For t = 2, ..., T, repeat steps 1 and 2 for {y
Note that each cycle of steps 1 and 2 involves solving N problems with just N
In order to ascertain the accuracy of the mentioned lower bounds, we performed some numerical tests. Tables 7 and 8 respectively show the results of such tests in some instances of the problem with (N = 3, M = 2, T = 3) and (N = 3, M = 3, T = 3).
Table 7. Comparison of lower bounds and exact optimal solutions in problem size N = 3, M = 2 and T = 3. The values inside the brackets are the computational time in seconds and the percentage values are the difference between the objective values of the lower bound against the original model.
No. Original problem First lower bound Second lower bound 3055.12 2731.28 2946.14 1 10.6% 3.57% (157.2) (0.019) (0.441) 3424.44 2825.163 3295.62 2 17.5% 3.76% (180.7) (0.029) (0.539) 3105.71 2708.18 3008.53 3 12.8% 3.13% (202.27) (0.031) (0.37) 3287.53 2743.3 3156.03 4 16.55% 4% (140.23) (0.027) (0.491) 3279.95 2755.2 3129.95 5 16% 4.57% (163.94) (0.029) (0.397)
Table 8. Comparison of lower bounds and exact optimal solutions in problem size N = 3, M = 3 and T = 3. The values inside the brackets are the computational time in seconds and the percentage values are the difference between the objective values of the lower bound against the original model.
No. Original Problem First lower bound Second lower bound 4497.01 3732.76 4334.21 1 16.99% 3.62% (5592.14) (0.055) (2.58) 4905.74 4212.92 4718.83 2 14.12% 3.81% (4694.40) (0.048) (1.89) 5032.93 4224.49 4871.39 3 16.06% 3.21% (6574.83) (0.046) (2.12) 4704.84 4006.19 4511.47 4 14.85% 4.11% (5139.91) (0.063) (2.45) 5191.18 4413.04 4952.90 5 14.99% 4.59% (5834.14) (0.041) (2.46)
Comparing the results of the second columns of Tables 7 and 8 shows that computation time grows exponentially by increasing the dimension of the problem. According to Table 7, average computational time for problems with (N = 3, M = 2, T = 3) is 168.87s. According to Table 8, average computational time for problems with (N = 3, M = 3, T = 3) is 5567.08s. It means that by increasing one level to production levels, average computational time increases more than 32 times. Tables 7 and 8 confirm the advantages of the second lower bound, therefore it has been used to compare heuristics.
To apply the exact model, lower bounds and heuristics, GAMS models are provided using GAMS IDE (ver 2.0.19.0) and solved using OSL 2. GAMS models are run on a personal computer with a Pentium 4 processor running at 3.4 GHZ. The required parameters for all numerical experiments are extracted from the following uniform distributions:
Graph
C
To evaluate and compare the performance of developed heuristics, 20 problems with different sizes are selected to test. For each problem size, five problem instances are randomly generated and the required parameters for these problems are extracted from the mentioned uniform distributions.
In order to evaluate the quality of heuristics in an equal amount of time, the computational time of each MIP is limited to (7200/T) seconds for H1 to H4 and to (7200/T · N) seconds for H5.
Table 9 compares the solution times and objective values of heuristics and the second lower bound.
Table 9. Comparison of the second lower bound and heuristics. The values inside the brackets are the computational time in seconds.
Problem size (N.M.T) The second lower bound H1 H2 H3 H4 H5 3.3.3 (2.33) (8.32) (4.49) (2.31) (0.036) (0.70) 16.50% 8.50% 10.02% 12.77% 18.11% 5.3.3 (46.36) (758.76) (922.43) (711.11) (9.44) (2.98) 17.51% 8.11% 9.60% 12.98% 18.90% 3.5.3 (18.22) (117.28) (168.78) (98.34) (1.38) (1.42) 15.71% 8.90% 10.39% 14.25% 19.88% 3.3.5 (8.11) (23.23) (51.31) (26.2) (0.21) (0.91) 18.01% 9.98% 10.60% 13.26% 19.59% 5.5.5 (117.73) (7200) (7200) (7200) (146.67) (24.51) 19.34% 10.96% 11.18% 14.74% 20.33% 7.5.5 (481.77) – (2147.43) (208.22) – – – 12.81% 23.88% 5.7.5 (218.12) – – – (735.58) (58.31) – – – 14.24% 25.23% 5.5.7 (105.12) – – (7200) (318.33) (38.81) – – 18.66% 13.19% 25.08% 7.7.7 (3413.14) – – – (4038.80) (1437.27) – – – 12.97% 25.48% 10.5.5 (2190.52) – – – – (2095.89) – – – – 22.95% 5.10.5 (1616.31) – – – (1846.93) (127.51) – – – 12.77% 24.38% 5.5.10 (365.11) – – – (734.66) (96.31) – – – 14.34% 26.48% 10.7.7 >7200* – – – – (3807.97) – – – – 25.43% 7.10.7 >7200* – – – (7200) (1411.13) – – – 13.76% 24.26% 7.7.10 >7200* – – – (7200) (1983.31) – – – 12.62% 25.22% 10.10.10 >7200* – – – – (5711.96) – – – – 27.03% 15.10.10 >7200* – – – – – – – – – – 10.15.10 >7200* – – – – (6854.35) – – – – 25.39% 10.10.15 >7200* – – – – – – – – – – 15.15.15 >7200* – – – – – – – – – – *Means that finding the optimum value for the second lower bound requires more than 7200 seconds and the objective value at this time has been considered.–Means that a feasible solution has not been found after 7200 seconds of computing time. The percentage values are the difference between the objective values of the heuristics against the second lower bound.
In accordance to experiments, it is obvious that problems with dimensions greater than 5 * 5 * 5 can not be solved with H1 and H2. H3 is able to solve problems with dimensions of 5 * 5 * 7. H4 can solve problems with 7 * 7 * 10 and greater problems can be solved using H5.
The contribution of the paper has been to derive and test one exact formulation and five MIP-based heuristics all relied on successive resolutions of reduced size MIPs for lotsizing in capacitated pure flow shop with sequence-dependent setups.
Heuristics H1, H2 and H3 are based on the original model and are able to solve only small-size problems. Heuristics H4 and H5 are based on the restricted model that assumes similar sequences of products in all machines. H4 is able to solve medium-size problems, and H5 is recommended to solve larger problems.
In equal limited computational time, for small-size problems, the tests showed that H2 is superior. For medium-size problems, H4 is good and large problems can only be solved throuht H5.
One straightforward area for future research to extend the capabilities of H1, H2, H3 and H4 is to develop setup state selection rules to find production sequences in each period instead of solving an MIP.
Because of the expanding role of meta-heuristic approaches to solve complicated lotsizing problems (Jans and Degraves [
By M. Mohammadi; S.M.T. Fatemi Ghomi; B. Karimi and S.A. Torabi
Reported by Author; Author; Author; Author