Research Article | Open Access
Eiman J. Alenezy, "Solving Capacitated Facility Location Problem Using Lagrangian Decomposition and Volume Algorithm", Advances in Operations Research, vol. 2020, Article ID 5239176, 7 pages, 2020. https://doi.org/10.1155/2020/5239176
Solving Capacitated Facility Location Problem Using Lagrangian Decomposition and Volume Algorithm
In this research, we will focus on one variant of the problem: the capacitated facility location problem (CFLP). In many formulations of the CFLP, it is assumed that each demand point can be supplied by only one open facility, which is the simplest case of the problem. We consider the case where each demand point can be supplied by more than one open facility. We first investigate a Lagrangian relaxation approach. Then, we illustrate in the problem decomposition how to introduce tighter constraints, which solve the CFLP faster while achieving a better quality solution as well. At the same time, we apply the volume algorithm to improve both the lower and the upper bound on the optimum solution of the original problem for the large problem size.
There are a limited number of test case problems for the CFLP that we know of in the literature, which can be used to evaluate the results of our main goal of this research, the Lagrangian decomposition algorithm. Most of the algorithms developed in the literature have been tested on simulated data.
Lagrangian relaxation or Lagrangian decomposition was introduced in the early 70’s through the work of Held and Karp [1, 2] and Held et al. . They realized that the relationship between the systematic traveling-salesman problem and the minimum spanning tree problem gives a sharp lower bound on the optimum solution. Thereafter, they used a procedure called subgradient optimization  and showed that it is effective for approximating the maximum of certain piecewise linear concave functions. The concept of Lagrangian relaxation is that we relax some constraints and then penalize their violation, and the motivation for the relaxation of these constraints is that many combinatorial optimization problems consist of an easy problem with some additional complicating constraints. Applying the Lagrangian relaxation to these problems will relax these complicating constraints and absorb them into the objective function. The resulting relaxed problem becomes much easier to solve.
Barahona and Anbil  presented an extension to the subgradient algorithm that will produce an approximation cost per iteration; they called it the volume algorithm. In general, it produces a primal vector as well as a dual vector that can be used as a starting point for a more exact method. They were able to present a successful experiment with linear programming problems.
Alenezy and Khalaf in  discussed the Lagrangian decomposition and volume algorithm procedures in detail. In this article, we use variants of it in solving our CFLP for large size problems. The results obtained in this work were compared with the results of best greedy and greedy weak solutions.
In order to evaluate the performance of our Lagrangian decomposition algorithm, we develop a number of greedy heuristics (filters) that provide good solutions for known problems in the literature . This is to illustrate the effectiveness of these heuristics for comparative purposes when evaluating our Lagrangian decomposition approach on large problem instances.
In the extreme case of very large problems, it is not possible to have any strong constraints. However, we take a dynamic approach to the model representation, whereby an effective tightening constraint is dynamically added to the model representation.
In particular, in this paper, we illustrate all the results and the analysis of our experiments for both the greedy heuristics and the Lagrangian decomposition algorithm. We also include tests on the performance of our algorithm compared to a number of benchmark models.
2. Capacitated Facility Location Problem
The facility location problem (FLP) seeks to locate a number of facilities to serve a number of customers; thus, there is a set of potential facility locations F; opening a facility at location has an associated nonnegative fixed cost and has either a limited or unlimited capacity of available supply. There is a set of customers (clients) or demand points D that require service; customer has a demand that must be satisfied by the open facilities. If a facility at location is used to satisfy part of the demand of client , then there is a service or transportation cost incurred, which is often proportional to the distance from i to j, denoted by .
Let F = a set of potential facility locations, D = a set of customers or demand points, m = the number of potential locations of the facilities; , n = the number of customer; , = the demand of customer (where ), = the unit cost of supplying the demand of customer from facility (where ), = the capacity of facility i (i.e., the upper limit on the total demand that can be supplied from facility i, where ), p = the desired number of open facilities, = the fixed cost associated with opening facility i (where ), = the fraction of the demand of customer j supplied from facility i (where ), and = .
Then, the formulation of the CFLP as a mixed-integer programming problem, which is referred to as found in , is as follows.
The objective equation:
This equation ensures that the demand of each customer is satisfied:
To ensure that the closed facility does not supply any customer and that the demand supplied from the facility does not exceed the capacity of the facility,
This is the integrality constraint:
This constraint tightens the lower bound representation of the CFLP. The value of p is determined as follows; we sort all of the facilities in descending order of capacity. Then, p is such that, in the sorted order of facilities,
Although the right-hand side of the constraint (5) need not be bounded, as a consequence of our experiments using speeds up considerably the computational time with no detriment to the solution quality,
The last inequality provides bounds on the allocation variables .
In order to develop a Lagrangian heuristic for the CFLP, first we need to consider a linear programming relaxation for the problem, which is the same formulation (), except we replace inequalities (4) by
We will denote the relaxation by P.
3. Lagrangian Decomposition and Volume Algorithm (LD and VA)
In this part, we first consider a Lagrangian relaxation of the above problem (P). Then, we describe how to use the volume algorithm , which is an extension to the subgradient optimization.
In order to investigate the solution of large-sized problems, we followed the methods of Alenezy and Khalaf , That is, by decomposing CFLP into independent problems, which are easier to solve. Motivated by this method, let be the dual multiplier for the equation j in (1) and let . Then, a lower bound is given by solving the following problem:
3.1. The Lagrangian Decomposition (LD)
It was widely reported that solving the above provides a good lower bound on the integer optimum solution. This is improved by using the volume algorithm. Motivated by this and by the fact that it is difficult to solve the for large size problems, we decompose the problem into m independent subproblems for each to compute a lower bound, we also at this point relax constraint (13), and we will return to these later in this section. The generic forms of each subproblem are
Solving this to get a lower bound (LB) is easy, and it is easy too for the upper bound (UB). First, we set to 0 any variable with . Then, we assume that the rest of the variables are ordered such that
Now, let k be the largest index such that , and let
If , then we set and for all j. Otherwise, we set for and .
Having solved these m independent subproblems, we next consider the minimum number of facilities that are needed to supply all the demand. In this way, we enhance the LB here by comparing the number of opened facilities denoted by h, after having solved the m subproblems, to the minimum needed p. If , then we sort the unopened facilities by their fixed costs and open the cheapest facilities until we have p opened. The LB is suitably increased to account for these extra fixed costs.
3.2. The Volume Algorithm (VA)
To improve the lower bound we obtained from solving the decomposition of the problem above, we use the VA developed in  and the same algorithm found in , which stopped by a number of passes = 200, and next, we extend it to 2000. This algorithm can be formulated by the following steps: Step 1. Start with a vector and solve (8)–(13) to obtain and and set . Step 2. Compute , where and , for a step size s given by (20) below. Solve (8)–(13) with . Let be the solution obtained. Then, is updated as where α is a number between 0 and 1. In order to set the value of α, we solve the following one-dimensional problem: The value b was originally set to 0.1, and then every 100 iterations we check if had not increased by at least 1%, in which case, we divide b by 2; otherwise, we keep it as it is. When b becomes less than , we keep it constant at this value. Step 3. If , then update as . Notice that in, step 3, we update only if . Step 4. Stopping criteria.(1)(2)(3)The number of passes equals 2000
The algorithm terminates when one of the previous criteria is met. If stopping rules are not satisfied, then set , and go to step 2.
The formula of the step size s is as the one used in the subgradient method :where λ is a number between 0 and 2. In order to set its value, we define three types of iterations:(i)Iteration E, which is the iteration with no improvement on the lower bound. A sequence of E iterations requires the need for a smaller step size. Therefore, after a sequence of 20 E iterations, we multiply λ by 0.66.(ii)If , we compute , for all j and . If , this means that a larger step size would have given a smaller value for , and we call this iteration Y.(iii)If , we call this iteration T; a T iteration suggests the need for a larger step size, so we multiply λ by 1.1.
3.3. Computing LB
In , we found that there are two approaches to solve the formulation of the problem above to obtain a LB. To keep this paper self-contained, we list the following approaches:
The first approach is to decompose into m independent subproblems. Solve them as explained above. Then, update this LB using the VA as mentioned previously, but in two ways for step 1. One way is to set the value of the vector to 0 and continue using the VA to improve the LB. The other way is to set the vector to values that is denoted by “warm start duals.” The warm start duals are the values of the duals of the relaxed constraints (1), obtained from solving the greedy weak representation of the CFLP as a solution.
The second approach is first to remove constraints (11) from the formulation to reduce the size of the problem to make it possible to solve. Then, solve it without the decomposition technique above, to obtain a LB. To improve this LB again, we apply the VA with the same two ways we discussed above.
Notice that the constraints (13) are included in the formulation, but only the part is applicable in obtaining the LB as we explained before. The other part is redundant here since it only has an impact on obtaining the UB in the next approaches. The lower bound in this approach does not always have integer values y, while this is not the case in the decomposition approach; hence, the LB from this approach is often worse than the LB from the decomposition approach.
3.4. Computing UB
To compute the UB, one way is to first remove constraints (3). Solve the P formulation for a LP solution. Then, use a technique called randomized rounding (RR) with a new technique called the unit cost technique below, to treat the fractional solutions of y as a probability distribution and keep opening them randomly to get enough capacity. We keep updating this UB using the VA every 50 passes, until we meet one of the stopping criteria. We choose the passes to be 50 because the UB changes slowly, and from our experiments, 50 passes usually show some improvement in the UB. This is one way of obtaining the UB.
The other way is similar to the above, except after we solve the P problem; we call the upper bound of the greedy weak representation. We call this strategy the “warm start UB.” This UB results in a smaller step size of the VA. Therefore, both the LB and the UB have converged faster in our experiments. Then, after 50 passes, we call the RR technique below as before. We keep using the VA and the RR technique until we meet one of the stopping criteria.
A third technique called the “unit cost technique” (UC) selects the s to open according to their costs. It chooses the ones with the minimum unit cost. We call this technique once at the beginning before calling the RR. Then after 50 passes, we switch to call the RR and keep calling the RR every 50 passes to update the UB until one of our stopping criteria is met. Next, we discuss these techniques in more detail.
Combining the approaches discussed above, which were used to obtain the LB and the UB, we got eight different approaches to solve the CFLP. Figure 1 below is a tree chart to simplify these eight approaches that are denoted by methods LR1–LR8.
These methods are used in solving different sizes of the CFLP. To decide which methods are used to solve which problem, we classify the problems into three classes: the small, the medium, and the large.
4. Computational Results
The selected model collection was drawn from Beasley , and we selected two instances where they fail to find feasible solutions when they use the factor = 1.5. The factor value is defined as , which is used to rescale the capacity values. They used heuristics that produce a feasible integer solution and used a Lagrangian relaxation and the volume algorithm to obtain a lower bound on the optimal value. For the CFLP, they were able to solve instances up to .
We use instances generated as in the work of Beasley  and the work of Ravi and Sinha , which are as follows:(i)We generate the demand points j and the facility points i uniformly at random in a (ii)The demand values are generated from a uniform distribution with mean 35 and standard deviation 5, (iii)The capacities are generated from a distribution and are then rescaled so that was set equal to the parameter factor; this was either set at 10 and in some cases 1.5(iv)The fixed cost of each site was set using the formula (v)The unit transportation costs correspond to the Euclidean distance scaled by 10
Next, we report the results of our experiments for two algorithms using a number of approaches denoted by methods LR1–LR8. The first are the approaches of the Lagrangian relaxation algorithm without decomposition (LR1–LR4), and we denote this algorithm by LR and VA. The second are the approaches of the Lagrangian relaxation with the decomposition algorithm (LR5–LR8), and we denote this algorithm by LD and VA.
Recall that, we classify the problems into three classes according to the size. The classes are small, medium, and large. In the next subsections, we report the results and the analysis of each class of the problems.
4.1. The Small Size Problems
In Table 1 below, we report the solutions for solving the small problems of size 100–300. By comparing the solutions of the two algorithms explained above, we notice that both the LB and the UB of the Lagrangian decomposition with the volume algorithm LR5–LR8 are much better in both quality and running time. There is a big difference in the LB between the two algorithms, and the reason is that one of the advantages of the LD algorithm is forcing to be 1. In addition, we were able to obtain a closed LB as greedy’s of the strong representation of the problem, but a better UB and running time. Also, the error values are less than greedy’s in some of our methods LR5–LR8.
In the next tables, the column “passes” presents the number of times we go through the algorithm looking for a better LB and UB. The last row corresponds to the best greedy solution we were able to obtain; we include it in these tables for comparison purposes. The last column corresponds to the error percentage values, which can be obtained by . This value shows the percentage gap between the lower and the upper bounds of the problem. We use this value as a stopping criterion if it is less than . Also, the stopping criteria here in most of the results are the number of passes, and in the rest, they are the error values.
4.2. The Medium Size Problems
Table 2 below lists all the results of solving the medium problems sized 400–900. We used the Lagrangian decomposition algorithm only because the size of the problem is too large to solve without decomposing them. The results of problem sized shows that we were able to obtain a better LB and UB compared to those of greedy’s solution. Also, the gap between them is less than the gap of greedy’s solution. In problems sized 500–900, we were able to obtain a feasible integer solution (UB) within a gap of less than of the lower bound LB in most of our solutions and in others less than . The stopping criterion was the error value in most of the results.
4.3. The Large Size Problems
In Table 3, we illustrate all the results of solving large-sized problems using the Lagrangian decomposition with the volume algorithm, which is the goal of this research. We were able to solve large instances of the CFLP. The largest problem solved was of size . In some of the problems, we were able to compare the solution with the greedy’s solution. Table 3 shows that we obtained a better LB and UB than the greedy’s. Also, the gap between them is much less than the gap between the UB and the LB of the greedy’s. In all of the problem solution, the gap is less than .
In this article, we have investigated solving very large instances of the CFLP. We first presented a general algebraic model for the CFLP. In addition, the created Lagrangian decomposition representation solves large instances of the CFLP. We have improved the lower bound of this technique by both exploiting the decomposition approach as well as introducing a tightening constraint, which is a new positive addition to the Lagrangian decomposition approach for solving the CFLP.
In the case of very large problems, we have applied a randomized rounding technique along with our unit cost technique, which provided a good UB in a reasonable computational time.
The thrust of this paper research was to be able to solve very large instances of the CFLP. We have illustrated that our algorithm scales up. Our results show that increasing the problem size leads to a small relative error between the LB and the UB without too much burden on the computational time. In order to process such large model instances, we have exploited a sparse technology technique in implementing our algorithm. Thus, we have developed a sparse data structure that we exploit in our algorithm implementation.
The data used to support the findings of this study are available from the corresponding author upon request.
Conflicts of Interest
The author declares that there are no conflicts of interest.
- M. Held and R. M. Karp, “The traveling-salesman problem and minimum spanning trees,” Operations Research, vol. 18, no. 6, pp. 1138–1162, 1970.
- M. Held and R. M. Karp, “The traveling-salesman problem and minimum spanning trees: part II,” Mathematical Programming, vol. 1, no. 1, pp. 6–25, 1971.
- M. Held, P. Wolfe, and H. P. Crowder, “Validation of subgradient optimization,” Mathematical Programming, vol. 6, no. 1, pp. 62–88, 1974.
- F. Barahona and R. Anbil, “The volume algorithm: producing primal solutions with a subgradient method,” Mathematical Programming, vol. 87, no. 3, pp. 385–399, 2000.
- K. Aardal, “Capacitated facility location: separation algorithms and computational experience,” Mathematical Programming, vol. 81, pp. 149–175, 1998.
- K. Aardal, “Reformulation of capacitated facility location problems: how redundant information can help,” Annals of Operations Research, vol. 82, pp. 289–308, 1998.
- J. E. Beasley, “An algorithm for solving large capacitated warehouse location problems,” European Journal of Operational Research, vol. 33, no. 3, pp. 314–325, 1988.
- J. E. Beasley, “Lagrangean heuristics for location problems,” European Journal of Operational Research, vol. 65, no. 3, pp. 383–399, 1993.
- R. Ravi and A. Sinha, “Approximation algorithms for problems combining facility location and network design,” Operations Research, vol. 54, no. 1, pp. 73–81, 2006.
- M. T. Hajiaghavi, M. Mahdian, and V. S. Mirrokni, “The facility location problem with general cost function,” Networks, vol. 42, no. 1, pp. 42–47, 2002.
- M. Mahdian, E. Markakis, A. Saberi, and V. Vazirani, “A greedy facility location algorithm analyzed using dual fitting,” Approximation, Randomization, and Combinatorial Optimization: Algorithms and Techniques, vol. 2129, Springer- Verlag LNCS, Berlin, Germany, 2001.
- E. J. Alenezy and R. F. Khalaf, “Implementing lagrangean decomposition technique to acquire an adequate lower boundon the facility location problem solution,” Applied Mathematics, vol. 4, no. 8, pp. 1168–1172, 2013.
- D. Serra, S. Ratick, and C. Revelle, “The Maximum Capture problem with uncertainty,” Environment and Planning B: Planning and Design, vol. 23, no. 1, pp. 49–59, 1996.
- J. E. Beasley, “OR-Library: distributing test problems by electronic mail,” The Journal of the Operational Research Society, vol. 41, no. 11, pp. 1069–1072, 1990.
Copyright © 2020 Eiman J. Alenezy. 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.