790
Views
1
CrossRef citations to date
0
Altmetric
Research Article

A semi-Lagrangian relaxation heuristic algorithm for the simple plant location problem with order

ORCID Icon & ORCID Icon
Pages 2391-2402 | Received 20 Oct 2021, Accepted 15 Nov 2022, Published online: 05 Dec 2022

Abstract

The Simple Plant Location Problem with Order (SPLPO) is a variant of the Simple Plant Location Problem (SPLP) where the customers have preferences over the facilities that will serve them. In particular, customers define their preferences by ranking each of the potential facilities from the most preferred to the least preferred. Even though the SPLP has been widely studied in the literature, the SPLPO, which is a harder model to deal with, has been studied much less and the size of instances that can be solved is very limited. In this article, we study a Lagrangian relaxation of the SPLPO model and we show that some properties previously studied and exploited to develop efficient SPLP solution procedures can be extended for their use in solving the SPLPO. We propose a heuristic method that takes a Lagrangian relaxation solution as the starting point of a semi-Lagrangian relaxation algorithm. Finally, we include some computational studies to illustrate the good performance of this method, which quite often ends with the optimal solution.

1. Introduction

The Simple Plant Location Problem with Order (SPLPO) is a variant of the Simple Plant Location Problem (SPLP) where the customers have preferences over the facilities that will serve them. In particular, customers define their preferences by ranking each of the potential facilities from the most preferred to the least preferred. This kind of model is highly relevant in situations where the locator, the agent that decides where to locate the facilities, has no control over the customers to force them to attend the facility that is the most convenient from the optimised point of view of the locator. Therefore, this kind of problem can also be seen as a Stackelberg game or as a bilevel model (Kochetov et al., Citation2022). Both of them are different approaches for the SPLPO to the one used in this article and will not be discussed here.

In the public sector, some types of service centers must be located in strategic locations to distribute goods and make them available to target populations. The objective of the decision maker is to maximise some measure of the social welfare that consumers will after having access to the resources whereas users are interested in minimising things such as total distance travelled. As a consequence, the goals of the locator and the goals of the users may point to different directions. Another application can be found in the context of business-to-consumer (B2C) e-commerce. As mentioned in H. Zhang et al. (Citation2019), e-commerce has logistics advantages over traditional B2C. However, although costs can be reduced considerably due to the integration of operations with smart technologies, there is still the problem of distributing the demanded goods to the customers from the distribution centers. Sometimes customers collect the products from these centers and therefore may have preferences about where to go. Ease of access or travel times are examples of variables that can influence this decision.

1.1. Literature review, gap, and contributions

The SPLPO was first introduced by Hanjoul and Peeters (Citation1987), where the authors provided a linear formulation for this problem and suggested a heuristic procedure for very small instances. The main results found in the literature are on valid inequalities to strengthen the original formulation. Cánovas et al. (Citation2007) provided a new family of valid constraints that were used in combination with a preprocessing analysis. Vasil’yev, Klimentova, and Kochetov (Citation2009) studied a bilevel formulation and considered several reductions of the bilevel problem to integer linear programs. A branch-and-cut method was proposed by Vasilyev and Klimentova (Citation2010). Another more general family of valid inequalities can be found in Vasilyev et al. (Citation2013) with a polyhedral study. More recent works are Calvete et al. (Citation2020), Casas-Ramírez & Camacho-Vallejo (Citation2017), and B. Zhang et al. (Citation2022), where very closely related problems that included preferences are studied.

Since most of these papers use exact methods that struggle to solve large instances, there is a clear gap in the literature regarding methods to solve the SPLPO more efficiently. One of the main contributions of this article is to develop a procedure to solve the SPLPO efficiently in a heuristic way by using Lagrangian and semi-Lagrangian relaxation techniques. This idea was inspired by the success of these methods in solving the SPLP, but it had never been used before to solve the SPLPO, a much more complex and difficult problem. For example, already in Cornuéjols et al. (Citation1977) an application of Lagrangian relaxation was presented to solve the SPLP in the context of the location of bank accounts. They proposed a heuristic algorithm and studied the Lagrangian dual to obtain lower and upper bounds. They also provided a bound for the relative error of these methods. Beltrán, Tandoki, and Vial (Citation2006) suggested, defined, and applied the technique of semi-Lagrangian relaxation to the p-median problem. Some years later, the study was extended to the SPLP obtaining very good results (Beltrán et al., Citation2012). The methodology takes advantage of the linear formulation of the problem. First, it splits equality constraints Ax = b into Axb and Axb, and then relaxes the latter. The new model has the same objective value as the original problem (it closes the duality gap), but at the cost of making the new problem more difficult to solve. However, it has some good properties that can be exploited. Details will be given later in the article. Another reduced form of this method was proposed by Monabbati (Citation2014), who called it a surrogate semi-Lagrangian relaxation. A new algorithm for the dual problem using Lagrangian heuristics for both the original and the surrogated version of the semi-Lagrangian relaxation can be found in (Jörnsten & Klose, Citation2016). Lagrangian and semi-Lagrangian approaches have been successfully used in other problems such as the optimal diversity management problem (ODMP) (Masone et al., Citation2019), the quadratic assignment problem (H. Zhang et al., Citation2016) and more recently for determining the locations of uncapacitated distribution centers for B2C e-commerce (H. Zhang et al., Citation2019). A literature review summarising the theoretical and practical advances for the SPLP, SPLPO, and other related problems with our work is shown in .

Table 1. Literature review table.

The SPLP has been widely studied in the literature and even today its study is intensive due to the different applications that can be considered, see for example (Souto et al., Citation2021). However, the SPLPO has been studied much less and the size of the instances that can be solved is much more limited. One of the reasons for this is that models that incorporate preferences are more difficult to deal with: the usual approaches are either to include a quadratic number of constraints that incorporate the preferences or to use bilevel optimisation. As the success of the second methodology has been even more limited than for the first one, our research takes the standard SPLPO formulation as the starting point (see Section 2). In this work, we follow the line of research given in (Cornuéjols et al., Citation1977) and (Beltrán et al., Citation2006) for the SPLP and the p-median problem, respectively, by studying for the first time in the literature some properties and advantages of using a Lagrangian and semi-Lagrangian approach for the SPLPO. This is exploited later when we propose to use the solution of a Lagrangian relaxation algorithm as the starting point of a semi-Lagrangian relaxation method, and then to apply a variable fixing heuristic to find good feasible solutions (often the optimal solution).

The rest of the article is organised as follows: The formulation for the SPLPO is given in Section 2. Section 3 provides a review of the Lagrangian and semi-Lagrangian relaxation methods. Our contributions explaining how to apply them to the SPLPO are explained in Sections 4 and 5. The complete method that we propose is presented in Section 6, where all the algorithms proposed in previous sections will be combined to build a heuristic procedure. In Section 7, we run a computational study that shows the good performance of our method. Finally, some conclusions are given in Section 8.

2. SPLPO formulation

Let I={1, m} be a set of customers, and let J={1, n} be a set of sites where facilities can be opened. We have costs cij0 for supplying the demand of customer i from facility j and costs fj0 for opening a facility at site j. Each customer ranks fully the list of sites where facilities can be located from the most preferred to the least preferred and no ties are allowed in this ranking. We say that facility k is i-worse than facility j if customer i prefers facility j to facility k and it is written as k<ij. We define Wij={kJ|k<ij} as the set of facilities strictly i-worse than j, its complement as W¯ij (i-better than or equal to j,) and Wij:=Wij{j}.

Let xij be a decision variable that represents the fraction of the demand required by customer i and supplied by facility j. Since no capacities are considered, this demand can always be covered completely by one single facility. Therefore, we can guarantee that there is an optimal solution where the values for variables xij are in {0, 1}. Let yj be a binary variable such that yj = 1 if a facility is open at location j and yj = 0 otherwise.

The SPLPO formulation is as follows: (1) Min.iIjJcijxij+jJfjyjs.t.jJxij=1,iI,(1) (2) xijyj,iI,jJ,(2) (3) kW¯ijxikyj,iI,jJ,(3) (4) xij0,iI,jJ,(4) (5) yj{0,1},jJ.(5)

Constraint Equation(1) is the assignment constraint and ensures that every customer i will be supplied by exactly one facility. Constraint Equation(2) imposes that customers can only be serviced by open facilities. This family of constraints is usually called variable upper bounds (VUBs). Inequality Equation(3) models the customers’ preferences, that is, if a facility j is open, every customer i will be served by either j or by a facility which i prefers to j (an i-better facility in the terms that we defined earlier).

3. Lagrangian and semi-Lagrangian relaxation background

Let P be a problem of the form: min{f(x)=ctx/Axb,Cxd,xX}, where:

  • cRn,xRn,ARm1×n and CRm2×n.

  • Set X may contain integrality constraints.

  • The family of constraints Axb is assumed to be complicated, that is, problem P without them is much easier to solve.

Constraint Axb can be moved to the objective function with coefficients vector (Lagrangian multipliers) λ that work as penalties when they are violated. It yields the Lagrangian relaxation problem LR(λ) related to P with multipliers λ0 and with optimal value v(LR(λ)): v(LR(λ)):=min{f(x)+λt(Axb)/Cxd,xX}.

We have also the associated Lagrangian dual problem LD with optimal value v(LD): v(LD):=maxλ0min{f(x)+λt(Axb)/Cxd,xX}=maxλ0v(LR(λ)).

Let v(P) be the optimal objective value for problem P. It is well-known that v(PL)v(LD)v(P), where PL is the linear relaxation of problem P. Consider now the problem P: min{f(x)=ctx/Ax=b,Cxd,xX}, where

  • cRn,xRn,ARm1×n, and CRm2×n.

  • Set X includes the integrality constraints.

  • A, b, and c are nonnegative.

The semi-Lagrangian relaxation problem SLR(λ) related to P and its optimal value v(SLR(λ)) are defined as follows: v(SLR(λ)):=min{f(x)+λt(bAx)/Axb,Cxd,xX}.

After having split Ax = b into the two inequalities Axb and Axb, inequality Axb has been relaxed with a vector of multipliers λ0 and inequality Axb has been kept as a constraint. Its semi-Lagrangian dual problem and optimal value are then v(SLD):=maxλ0v(SLR(λ)).

It is clear that v(LR(λ))v(SLR(λ)) since LR(λ) is a relaxation of SLR(λ). Thus, v(PL)v(LD)v(SLD)v(P). Beltrán et al. (Citation2006) proved that the semi-Lagrangian dual problem has the same optimal value as P, that is, v(P)=v(SLD). They also proved that the objective function of SLR(λ) is concave, non-decreasing on its domain, and that bAx is a subgradient at point λ. Moreover, there is a λ with each component i in an interval [λi*,+), where we obtain the optimal solution of SLR(λ). For details, see Geoffrion (Citation1974), Fisher (Citation2004), Beltrán et al. (Citation2006), and Beltrán et al. (Citation2012).

4. A Lagrangian relaxation method for the SPLPO

In this section, we consider a Lagrangian relaxation for the SPLPO. Our first result shows that the proposed model is easy to solve.

If we relax constraints Equation(1) and Equation(3), then they are moved to the objective function with penalty coefficients (multipliers) when they are violated, thus obtaining the following Lagrangian relaxation problem LR(μ,λ): min(x,y)i,jcijxij+jfjyj+iμi(1jxij)+i,jλij[yjkW¯ijxik]=min(x,y)i,j(cijμi)xiji,jλijkW¯ijxik+j(fj+iλij)yj+iμis.t.(2),(4),(5).

The multiplier vectors μ and λ are unrestricted and nonnegative, respectively.

To obtain the best possible lower bound with this relaxation, we need to solve the following Lagrangian dual problem: LD=maxμfree,λ0LR(μ,λ).

Suppose that each customer i ranks each facility j with a number pij{1,,n} with 1 and n the most and the least preferred facilities, respectively. Since each multiplier λij in ijλijkW¯ijxik in LR(μ,λ) will be multiplied by a sum of pij variables xik with kij, then each xij will be multiplied by a sum of npij+1 values λik with kij. Therefore, |Wij|=npij+1 and i,jλijkW¯ijxik=i,j(kWijλik)xij.

Then LR(μ,λ) can be written as follows: min(x,y)i,j(cijμikWijλik)xij+j(fj+iλij)yj+iμis.t.(2),(4),(5).

This problem is easy to solve analytically for fixed vectors μ and λ. If we define Λij as Λij:=kWijλik, then we have the following result:

Theorem 4.1.

An optimal solution for LR(μ,λ) can be obtained as follows:yj={1, if imin(0,cijμiΛij)+fj+iλij<0,0,otherwise,andxij={1,if yj=1 and cijμiΛij<0,0,otherwise.

Proof.

The solution to LR(μ,λ) is straightforward. □

An issue with this model is that LR(μ,λ) has the integrality property, that is, its optimal value is equal to the value of the linear relaxation of the original problem. Furthermore, the solutions obtained for LR(μ,λ) during the search for a solution to LD may be infeasible for the SPLPO formulation. So, as an alternative, we propose to use the solution of this problem as a starting point for a semi-Lagrangian procedure that allows us to find feasible solutions to the SPLPO. Before introducing this method, we provide first the details of the subgradient method used to solve the Lagrangian problem that has been formulated.

4.1. Subgradient method for the Lagrangian dual

The subgradient method was originally proposed by Held and Karp (Citation1971) and validated by Held et al. (Citation1974). Given vectors of multipliers λ and μ, this method tries to optimise the Lagrangian dual problem LD by taking steps along a subgradient of LR(μ,λ). A sketch of the whole procedure is given in Algorithm 1.

Algorithm 1:

Subgradient Method (SGM)

1 begin

   input: An SPLPO problem.

   output: A lower bound for SPLPO, multipliers (μ,λ).

2  iter:=0;

3  MAXiterN;

4  Compute an upper bound LRub for LR(μ,λ) by applying a heuristic procedure;

5  β:=2;

6  kN;

7  q(0,1)R;

8  [μiter,λiter]:=[minj{cij+fj},0];

9  LRbestiter:=LR(μiter,λiter);

10  repeat

11   Find a subgradient siter=(sμiter,sλiter) for LR(μiter,λiter);

12   if siter106 then

13    αiter:=βLRubLR(μiter,λiter)siter||22;

14   end

15   [μiter+1,λiter+1]:=[μiterαitersμiter,max(0,λiterαitersλiter)];

16   LRbestiter+1:=min{LRbestiter,LR(μiter+1,λiter+1)};

17   iter:=iter+1;

18   if LR(μiter,λiter) does not improve after k iterations then

19    β=β×q;

20   end

21until Either siter<106 or iter=MAXiter;

22 end

In our computational experiments, which will be showed later, an upper bound LRub for LR(μ,λ) on line 1 of Algorithm 1 is found with another heuristic (see Algorithm 2). As seen on line 1 of Algorithm 1, at each iteration we need to solve an instance of LR(μ,λ), which we know how to do (see Theorem 4.1).

It is possible, due to an overestimation of LRub, that the value LR(μ,λ) does not improve for several iterations. This can be overcome by setting the parameter β to an initial value (e.g., 2) and reducing it slowly by a factor q(0,1). Details on the step size formula on line 1 can be found in Poljak (Citation1967), Conforti et al. (Citation2014), or Guignard (Citation2003).

Regarding Algorithm 2, the heuristic to find a feasible solution to the original problem, first we open a facility j* that supplies all customers with the lowest operating cost, and it is removed from set J:=J. Then, we do iteratively the following greedy procedure. Among the closed facilities, we open the one that would lead to the best objective function value (smallest cost) when we open that facility and reallocate customers to that facility if it is more preferred than their current allocation. That facility is removed from J and we repeat the procedure, now with one less facility in J, until J is empty. As can be seen from computational experiments in Section 7, the heuristic in Algorithm 2 works quite well in terms of efficiency and effectiveness.

Algorithm 2:

Upper Bound Heuristic for SPLPO (UBH)

1 begin

  input: A bipartite graph G(IJ,E:={}) and costs cij.

   output: An upper bound for the SPLPO.

2  Find j*J such that icij*=min{ici1,,icin};

3  J:=J{j*};

4  Ej*:={(i,j*)/iI};

5  Er:=Ej*;

6  TCj*:=icij*;

7  repeat

8   for jJ do

9    Ej:={};

10    for iI do

11     Find kpref such that pikpref=min{{pij}{pik/(i,k)Er}};

12     Ej:=Ej{(i,kpref)};

13    end

14    Compute TCj:=(i,j)Ejcij;

15   end

16   Find jr such that TCjr=min{TCj/jJ};

17   J:=J{jr},Er:=Ejr;

18   If TCjr<TCj* then TCj*:=TCjr and j*:=jr

19   E:=Ej*;

20  until Either J={} or E = Er;

21 end

5. A semi-Lagrangian relaxation for the SPLPO

Now we use the technique of semi-Lagrangian relaxation, as this allows to close the duality gap. The equality constraints Equation(1) have been split into two inequalities jJxij1 and jJxij1 to obtain the following model: v(SLR(γ)):==min(x,y)ijcijxij+jfjyj+iγi(1jxij)=min(x,y)ij(cijγi)xij+jfjyj+iγi=min(x,y)j(i(cijγi)xij+fjyj)+iγi subject to:(2),(3),(4),(5), and jJxij1. Every component of the multipliers vector γ is nonnegative.

As mentioned in Section 3, the objective function is concave and non-decreasing in its domain. Therefore, its semi-Lagrangian dual problem v(SLD):=maxγ0v(SLR(γ)) can be solved with an ascent method. Also, as pointed out earlier, there are values γi* for all component i of γ and a set Q={γ/γi[γi*,+)} such that for any γQ the optimum of SLR(γ) is met.

For the SPLP (no preferences), Beltrán et al. (Citation2012) proved that there is a closed interval where the search of the multipliers could be done. We provide the next two results for the SPLPO.

Theorem 5.1.

Let cpi:=maxj{cij+fj} and cp:=(cp1,,cpm)t be the maximum of the costs for each costumer i associated to each facility j and the vector of these costs, respectively. If γcp (component wise), then γQ.

Proof.

As we know, the semi-Lagrangian relaxation closes the duality gap if jJxij=1 for all i. By hypothesis, cpiγi0 for all iI. If we choose j such that cpi=cij+fj, then (cijγi)+fj0, and this inequality is true for any j since j gives the maximum among all cij+fj. Therefore, it cannot happen that jJxij=0 at an optimal solution. □

The result of Theorem 5.1 for the SPLPO is weaker than that obtained by Beltrán et al. (Citation2012) for the SPLP in the following sense. They choose cpi equal to minj{cij+fj}, but with this, there is no guarantee that the preference constraints hold. We can set xij=1 and yj=1 for the particular j such that minj{cij+fj}=cij+fj, but in this way not all the possible combinations of xij and yj that take into account all customers’ preferences are considered. Therefore, we are taking the risk of obtaining a nonoptimal solution.

Let ci1cin be the sorted costs cij for each iI. The superindex represents the index jJ corresponding to the ascending order. That is, ci1 is the smallest value, and so on.

Theorem 5.2.

If γ<c1, then γQ.

Proof.

By hypothesis ci1γi>0. Then cijγi>0 for all jJ. In that case, xij*=0 for all jJ for any optimal solution. Therefore, it cannot happen that jJxij=1 for an optimal solution and we conclude that γQ.

The interval of search for the components of γ is defined as B=γ/c1<γcp+ϵ,ϵ>0Rm, since, as mentioned in Beltrán et al. (Citation2012) for the SPLP case, BQ.

Using the sorted costs ci1,cin, each component γi of γ can be either in an interval of the form Ij=(cij,cij+1] where j{1,,m1}, or out of it. For the first case, there is an infinity number of values of γi that can belong to a single interval (cij,cij+1]. But each of them has the same effect on the optimal value of SLR(γ) since only a change from xij=1 to xi,j+1=1 implies a change on the solution. Hence, we just need a single γi representative for the interval. As γ goes to infinity all combined costs (cijγi)+fj become negative, and hence the semi-Lagrangian relaxation problem can be as difficult to solve as the original SPLPO problem. Then it is always convenient to choose a value γiIj as small as possible, that is, at distance ϵ from the lower bound of the interval. Also, it is easy to check that cin is always less than cpi if fj>0. These facts will be applied in the ascent method used later.

5.1. Dual ascent method for the semi-Lagrangian dual

A dual ascent method (that we have named DAM) modifies the current values of the multipliers in order to achieve a steady increase on SLR(γ) (see Bilde & Krarup, Citation1977). In our case this is possible due to the aforementioned properties (see Algorithm 3).

Algorithm 3:

Dual Ascent Method (DAM)

1 begin

input: Problem SLR(γ0).

output: A lower bound for SLR(γ), multipliers γ.

2  For all iI sort cij as ci1cin;

3  ϵ>0;

4  iter:=0;

5  MAXiterN;

6  for iI do

7   cpi:=maxj{cij+fj};

8   if γi0<ci1 then

9    γi0:=ci1+ϵ;

10   else if γi0>cin then

11    γi0:=cin;

12   else

13    Find a ji such that γi(ciji,ciji+1];

14    γi0:=ciji+ϵ;

15   end

16  end

17  repeat

18   Solve SLR(γiter);

19   Find a subgradient siter for SLR(γiter);

20   if siter0 then

21    for iI do

22     if siiter=1 then

23      ji:=ji+1;

24      γiiter+1:=min{ciji+ϵ,cpi};

25     end

26    end

27    iter:=iter+1;

28   end

29  until Either siter=0 or iter=MAXiter;

30 end

An important issue is the starting point for the DAM. We have tested three different starting vectors:

  1. γ = 0.

  2. γ=μ, where μ is a vector of multipliers that are found using SGM for LD associated to the relaxed constraints Equation(1).

  3. Since LR(λ,μ) has the integrality property, another option is to use the dual values of the linear relaxation of these problems as a starting point for DAM.

Although solving the linear relaxation takes less time than solving SGM (less than 6 s in the largest instance tested and less than 1 s in the smallest one), we noticed that, under the same parameter settings, DAM was slower. We obtained better results with the second approach, that is, solving the Lagrangian problem on a first stage in order to obtain multipliers far enough from zero but not too large so that the problems to be solved on the next stage are more tractable.

On line 3 of Algorithm 3, we find the maximum of the costs cpi for each costumer i associated to each facility j. On line 3, the procedure needs to solve a sequence of problems SLR(γ), but due to the preference constraints, they are not as easy to solve as in the Lagrangian relaxation case LR(μ,λ) proposed before. However, if cijγi>0, some variables xij can be set to 0.

A subgradient for SLR(γ) is computed on line 3 of Algorithm 3 as s=[1jJxiji]=[sγ]Rm, where each component of s belongs to {0, 1} as jJxij1 must be satisfied.

Finally, the multipliers are updated (increased) on line 3 by moving from the current interval Ij to the next one for each component i in γ.

6. Speeding up the search for the optimal solution

After a certain number of iterations of DAM that have been fixed beforehand, we apply a variable fixing heuristic VFH. This procedure takes the set of variables yj that are equal to 1 for a given solution. It chooses a subset of them, and the variables in this subset are fixed to 1. Then the subproblem with these fixed variables is solved. This is a smaller problem and easier to solve. The method is described in Algorithm 4.

Algorithm 4:

Variable Fixing Heuristic (VFH)

1 begin

  input: A vector γ from a solution obtained with DAM.

  output: A feasible solution for SPLPO.

2  Yγ:={yj/yj=1,jJ};

3  ps[0,1] (a percentage 100×ps% of elements from Yγ);

4  sort Yγ such that yjyk if i(cij+fj)<i(cik+fk);

5  choose the first ps×100% smallest elements from the sorted Yγ to create set Yγsubset;

6  fix yj:=1 for all yjYγsubset;

7  solve the SPLPO problem with an exact method;

8 end

Line 4 of Algorithm 4 shows the criterion that we used to sort variables yj. We also tried to sort it by writing yjyk if ipij<ipik, where values pij are the preferences as described earlier. We obtained similar results, but the option proposed in Algorithm 4 performed slightly better.

6.1. Accelerated dual ascent procedure (ADA)

The procedure we propose to solve the SPLPO is summarised in Algorithm 5, which is basically made up of three stages, each involving one algorithm. First, SGM (Algorithm 1, explained in Section 4). Then, DAM (Algorithm 3, explained in Section 5). Finally, VFH (Algorithm 4, explained in Section 6).

Algorithm 5:

Accelerated Dual Ascent Algorithm (ADA)

1 begin

  input: An SPLPO problem.

  output: A feasible solution for SPLPO.

2  μi0:=minj{cij+fj} for all iI,λij:=0 for all i,jJ;

3  run SGM(μ0,λ0) during sgm_iter iterations and find the iteration best_sgm_iter where is the best value of LR(μ,λ);

4  γ0:=μbest_sgm_iter;

5  run DAM with multipliers vector γ0 during dam_iter iterations;

6  run DAM during vfh_iter iterations. In each iteration run VFH;

7  keep the best solution in the search process as the solution of this heuristic.

8 end

7. Computational results

In this section, we present the computational results obtained after having applied the algorithms introduced in the previous sections. The experiments have been carried out on a desktop computer with Intel® Xeon® 3.40 GHz processor and 16 Gb of RAM under a Windows® 10 operating system. When an MIP problem needed to be solved we used FICO Xpress® version 8.0. Part of the instances were taken from Cánovas et al. (Citation2007), which are based on Beasley’s OR-Library, see Beasley (Citation1990). These are:

  • 131, 132, 133, 134: m = 50 and n = 50.

  • a75_50, b75_50, c75_50: m = 75 and n = 50.

  • a100_75, b100_75, c100_75: m = 100 and n = 75.

Additional larger data sets were generated using the same algorithm proposed in (Cánovas et al., Citation2007, Section 4, p. 145, Appendix A p. 149):

  • a125_100, b125_100, c125_100: m = 125 and n = 100.

  • a150_100, b150_100, c150_100: m = 150 and n = 100.

The headers of the tables have the following meanings:

  • Prob: Name of the problem.

  • Opt: Optimal objective function value of the problem Prob.

  • y: Number of opened facilities.

  • bestUB: Best upper bound.

  • v(PL): Linear relaxation value for a problem.

  • v(SGM): Best value using the subgradient method for LD (Algorithm 1).

  • GAPo=bestUBOpt: Absolute gap between bestUB and Opt of a problem.

  • GAPo%=GAPoOpt×100%: Relative gap between bestUB and Opt of a problem.

  • GAPLP:v(PL)v(SGM)v(PL)×100%. The relative gap between the linear relaxation and the best lower bound v(SGM).

  • GAPX=Optv(PL)Opt×100%: Relative gap between Opt and the linear relaxation value v(PL) of a problem by using Xpress.

  • iter (itbsol): Number of iterations (iteration where best solution was found).

  • t (Tt): CPU time in seconds (total time).

  • sol10%: First solution found that is within 10% or less from the optimal solution.

  • LB: Lower bound.

  • impt: Percentage of time improved measuring Xpress versus ADA.

  • GAPV=bestUBLBbestUB×100%: Relative gap between bestUB and LB of a problem by using DAM with VHF.

First we show in the results for UBH (Algorithm 2) for the first 40 instances. It finds the optimal solution for 6 of the first 16 problems and in the rest of the instances it is not too far from the optimal with an average gap of 4.65%. All runs performed took less than 1 s whereas Xpress needed between 3 and 12 s to solve these instances to optimality. The value obtained by UBH was used as an upper bound LRub for SGM (Algorithm 1).

Table 2. Computational results for heuristic algorithm UBH.

shows the performance of the subgradient method SGM (Algorithm 1) over the first 40 data sets. The algorithm was stopped when the parameter β was equal to 0 with a starting value of 2, and it was decreasing linearly at a rate of 0.005 if the solution would not change for 30 iterations. We also show the results for the first solution within a 10% from v(PL). The decrease in the average number of iterations and execution time for this case is considerable, 65 and 69%, respectively. This shows that SGM can be stopped early to obtain good objective function values.

Table 3. Computational results for subgradient method.

After the time reported, SGM did not obtain the value v(PL) for any of the problems. However, as mentioned before, method SGM is useful to find initial multipliers for the dual ascent DAM.

Finally, we can see the results for algorithm ADA in . The routine uses the following parameters:

Table 4. Computational results for ADA.

  • sgm_iter: Maximum number of iterations for subgradient algorithm SGM,

  • dam_iter: Maximum number of iterations for dual ascent algorithm DAM,

  • vfh_iter: Maximum number of iterations for variable fixing heuristic VFH.

The values for the parameters were empirically set with a calibration process based on the results from computational experiments obtained with the given problems. We note that the number of iterations needed in each procedure in ADA is related to the size of the problem. The best results were obtained when sgm_iter took a value of at least the number of customers n and dam_iter no more than 10% of n. It must also be noted that only a very small number of VFH iterations are necessary. Different values for sgm_iter, dam_iter y vfh_iter were used for the four groups of data sets tested, see .

Table 5. Parameter settings of the ADA algorithm for the indicated method.

The good performance of UBH is maintained for larger instances (m=125,n=100) and (m=150,n=100), where the gap with respect to the optimum is less than 10%. UBH reached the optimum in five of these problems a125_100_3, a125_100_4, a150_100_1, a150_100_2, and a150_100_4. Except for the first group (m = 75, n = 50) and a few instances in the rest, the times obtained with ADA when it finds the optimal solution are considerably lower than those obtained with Xpress. It can be observed particularly in the last group. For example, instance c_150_100_2 had a reduction of 95% on the total time. A summary of the improvement on the CPU times when ADA reached the optimal solution is shown in .

Table 6. Average improved times Xpress vs ADA when the optimal solution is met.

From the columns associated with DAM and VFH, we observe the impact that the acceleration heuristic has on the process of searching for the optimum. Before applying VFH, DAM provides a lower bound (LB), which is approximately 21% away from the optimum obtained by Xpress. ADA is always close to the optimal values, in fact, the average GAP is only 0.43%. Only in the smallest instances ADA does not work so well, but those times are negligible anyway.

In , we show a rough comparison between the times obtained by ADA and those reported in Vasilyev et al. (Citation2013) for the formulation and method proposed by the authors and by Cánovas et al. (Citation2007). Even though we are aware that the comparison is not fair due to the difference in hardware used and the fact that ADA is a heuristic procedure, we have included this summary so that the reader has at least an idea of how much time can be reduced using our approach considering the fact that ADA either finds the optimum (rows in boldface) or is very close to it in the reported cases.

Table 7. Times comparison.

The headers for the time columns are:

  • XPR: Xpress with settings and formulation from Cánovas et al. (Citation2007).

  • C&B: Cut-and-Branch method with the setting from Vasilyev et al. (Citation2013).

  • ADA: The ADA algorithm with the setting given in .

The hardware used for the experiments in columns XPR and C&B was a PC with Intel Core 2 Duo 1.8 GHz processor and 1 Gb of RAM. We have highlighted those cases where ADA reached the optimum.

8. Conclusions

In this article, we have showed for the first time in the literature how semi-Lagrangian relaxation can be a promising technique to solve the SPLPO. We have proposed an algorithm (ADA) that exploits these ideas and that performed very well on large instances, finding the optimal solution in most of the tested cases.

In the heuristic method ADA the assignment and VUBs constraints in the SPLPO were relaxed to formulate a Lagrangian problem. We solved its dual with a subgradient method and used the resulting multiplier vector as the starting point of an ascent algorithm for the dual of a semi-Lagrangian formulation. A better starting point for the dual ascent algorithm would be the multipliers obtained in the subgradient algorithm by relaxing only the assignment constraints, the same family of constraints relaxed in our proposed SPLPO semi-Lagrangian problem. However, the sequence of linear subproblems that need to be solved in the subgradient method are not as easy to solve as those when our proposed relaxation is used. We used the variable fixing heuristic VFH to speed up the search for the optimum since the subproblems in ADA become more and more difficult as the number of iterations grows.

In summary, this article reports the following findings:

  1. A theoretical analysis of properties of Lagrangian and semi-Lagrangian formulations for the SPLPO is done.

  2. A heuristic UBH to obtain fast reasonably good solutions for the SPLPO.

  3. We combine the results obtained in the theoretical analysis in a heuristic procedure that finds good solutions, often an optimal solution.

  4. The computational experiments carried out show that ADA performs very well on large instances.

A limitation of our study, which could be improved in future works, is that, since the last stage of ADA is a heuristic, finding an optimal solution is not guaranteed, and, as in any heuristic procedure, the parameter setting of the algorithms is an issue that needs special attention. In our case, the relationship between the size of a particular instance and the proposed values is clear.

Disclosure Statement

No potential conflict of interest was reported by the author(s).

References

  • Beasley, E. (1990). OR-library: Distributing test problems by electronic mail. Journal of the Operational Research Society, 41(11), 1069–1072. https://doi.org/10.2307/2582903
  • Beltrán, C., Tadonki, C., & Vial, J. P. (2006). Solving the p-median problem with a semi-Lagrangian relaxation. Computational Optimization and Applications, 35(2), 239–260. https://doi.org/10.1007/s10589-006-6513-6
  • Beltrán, C., Vial, J., & Alonso, A. (2012). Semi-Lagrangian relaxation applied to the uncapacited facility location problem. Computational Optimization and Applications, 51(1), 387–409. https://doi.org/10.1007/s10589-010-9338-2
  • Bilde, O., & Krarup, J. (1977). Sharp lower bounds and efficient algorithms for the simple plant location problem. Annals of Discrete Mathematics, 1, 79–97.
  • Calvete, H. I., Galé, C., Iranzo, J. A., Camacho-Vallejo, J.-F., & Casas-Ramírez, M.-S. (2020). A matheuristic for solving the bilevel approach of the facility locationproblem with cardinality constraints and preferences. Computers & Operations Research, 124, 105066. https://doi.org/10.1016/j.cor.2020.105066
  • Cánovas, L., García, S., Labbé, M., & Marín, A. (2007). A strengthened formulation for the simple plant location problem with order. Operations Research Letters, 35(2), 141–150. https://doi.org/10.1016/j.orl.2006.01.012
  • Casas-Ramírez, M.-S., & Camacho-Vallejo, J.-F. (2017). Solving the p-median bilevel problem with order through a hybrid heuristic. Applied Soft Computing, 60, 73–86. https://doi.org/10.1016/j.asoc.2017.06.026
  • Conforti, M., Cornuéjols, G., & Zambelli, G. (2014). Integer programming. Springer.
  • Cornuéjols, G., Fisher, M., & Nemhauser, G. (1977). Location of bank accounts to optimize float: An analytic study of exact and approximated algorithms. Management Science, 23(8), 789–810. https://doi.org/10.1287/mnsc.23.8.789
  • Fisher, M. (2004). The Lagrangian relaxation method for solving integer programming problems algorithms. Management Science, 50(12_supplement), 1861–1871. https://doi.org/10.1287/mnsc.1040.0263
  • Geoffrion, A. (1974). Lagrangian relaxation for integer programming. Mathematical Programming Study, 2, 82–114.
  • Guignard, M. (2003). Lagrangean relaxation. A tutorial. Top, 11(2), 151–200. https://doi.org/10.1007/BF02579036
  • Hanjoul, P., & Peeters, D. (1987). A facility location problem with clients’ preference orderings. Regional Science and Urban Economics, 17(3), 451–473. https://doi.org/10.1016/0166-0462(87)90011-1
  • Held, M., & Karp, R. (1971). The traveling salesman problem and minimum spanning trees: Part II. Mathematical Programming, 1(1), 6–25. https://doi.org/10.1007/BF01584070
  • Held, M., Wolfe, P., & Crowder, H. (1974). Validation of subgradient optimization. Mathematical Programming, 6(1), 62–88. https://doi.org/10.1007/BF01580223
  • Jörnsten, K., & Klose, A. (2016). An improved Lagrangian relaxation and dual ascent approach to facility location problems. Computational Management Science, 13(3), 317–348. https://doi.org/10.1007/s10287-015-0244-z
  • Kochetov, Y., Plyasunov, A., & Panin, A. (2022). Bilevel discrete optimisation: Computational complexity and applications. In S. Salhi, & J. Boylan (Eds.), The Palgrave handbook of operations research (pp. 3–42). Palgrave Macmillan.
  • Laguna, M., & Martí, R. (2006). Scatter search. In E. Alba & R. Martí (Eds.), Metaheuristic procedures for training neutral networks (pp. 139–152). Springer US.
  • Masone, A., Sterle, C., Vasilyev, I., & Ushakov, A. (2019). A three-stage p-median based exact method for the optimal diversity management problem. Networks, 74(2), 174–189. https://doi.org/10.1002/net.21821
  • Monabbati, E. (2014). An application of a Lagrangian-type relaxation for the uncapacitated facility location problem. Japan Journal of Industrial and Applied Mathematics, 31(3), 483–499. https://doi.org/10.1007/s13160-014-0149-1
  • Poljak, B. T. (1967). A general method for solving extremum problems. Soviet Mathematics Doklady, 8, 593–597.
  • Resende, M. G. C., & Ribeiro, C. C. (2016). GRASP: The basic heuristic. In Optimization by GRASP: Greedy randomized adaptive search procedures (pp. 95–112). Springer.
  • Souto, G., Morais, I., Mauri, G. R., Ribeiro, G. M., & González, P. H. (2021). A hybrid matheuristic for the two-stage capacitated facility location problem. Expert Systems with Applications, 185, 115501. https://doi.org/10.1016/j.eswa.2021.115501
  • Vasil’ev, I. L., Klimentova, K. B., & Kochetov, Y. A. (2009). New lower bounds for the facility location problem with clients’ preferences. Computational Mathematics and Mathematical Physics, 49(6), 1010–1020. https://doi.org/10.1134/S0965542509060098
  • Vasilyev, I. L., & Klimentova, X. B. (2010). The branch and cut method for the facility location problem with client’s preferences. Journal of Applied and Industrial Mathematics, 4(3), 441–454. https://doi.org/10.1134/S1990478910030178
  • Vasilyev, I. L., Klimentova, X. B., & Boccia, M. (2013). Polyhedral study of simple plant location problem with order. Operations Research Letters, 41(2), 153–158. https://doi.org/10.1016/j.orl.2012.12.006
  • Zhang, H., Beltrán-Royo, C., Wang, B., Ma, L., & Zhang, Z. (2016). Solution to the quadratic assignment problem using semi-Lagrangian relaxation. Journal of Systems Engineering and Electronics, 27(5), 1063–1072. https://doi.org/10.21629/JSEE.2016.05.14
  • Zhang, H., Beltrán-Royo, C., Wang, B., & Zhang, Z. (2019). Two-phase semi-Lagrangian relaxation for solving the uncapacitated distribution centers location problem for B2C Ecommerce. Computational Optimization and Applications, 72(3), 827–848. https://doi.org/10.1007/s10589-019-00061-5
  • Zhang, B., Zhao, M., & Hu, X. (2022). Location planning of electric vehicle charging station with users’ preferences and waiting time: Multi-objective bi-level programming model and HNSGA-II algorithm. International Journal of Production Research, 1–30. https://doi.org/10.1080/00207543.2021.2023832