Full text
UPCommons Portal del coneixement obert de la UPC http://upcommons.upc.edu/e-prints Aquesta és una còpia de la versió author’s final draft d'un article publicat a la revista Computer and Operations Research. URL d'aquest document a UPCommons E-prints: http://hdl.handle.net/2117/134363 Article publicat / Published paper: Albareda-Sambola, M.; Martínez-Merino, L.; Rodríguez-Chía, A.M. The stratified p-center problem. Computers & operations research , 1 Agost 2019, vol. 108, p. 213-225. DOI: <10.1016/j.cor.2019.04.013>. © <2019>. Aquesta versió està disponible sota la llicència CC-BY- NCND 4.0 http://creativecommons.org/licenses/by-nc-nd/4.0/
The stratified p-center problem Maria Albareda-Sambola1, Luisa I. Mart´ınez-Merino2, Antonio M. Rodr´ıguez-Ch´ıa2 1Departament d’Estad´ıstica i Investigaci´o Operativa, Universitat Polit`ecnica de Catalunya-BarcelonaTech, Terrassa, Spain 2Departamento de Estad´ıstica e Investigaci´on Operativa, Universidad de C´adiz, Spain Abstract This work presents an extension of the discrete p-center problem. In this new model, called Stratified p-Center Problem (SpCP), the demand is concentrated in a set of sites and the population of these sites is divided into different strata depending on the kind of service that they require. The aim is to locate pcenters to cover the different types of services demanded minimizing the weighted average of the largest distances associated with each of the different strata. In addition, it is considered that more than one stratum can be present at each site. Different formulations, valid inequalities and preprocessings are developed and compared for this problem. An application of this model is presented in order to implement a heuristic approach based on the Sample Average Approximation method (SAA) for solving the probabilistic p-center problem in an efficient way. Keywords: Location, p-center, discrete optimization, Sample Average Approximation. 1 Introduction Discrete location problems have been widely studied since the seminal paper Balinski (1965), where the first MILP formulation for such a problem was proposed. Among the fundamental problems in this area, the p-Center Problem (pCP) aims at selecting, from ngiven sites, the locations of pservice centers that minimize the maximum distance between any of the sites and its closest service center. This model, in contraposition to the p-median problem, was motivated by the need not to discriminate spatially dispersed clients when locating essential or emergency centers (see Garfinkel et al., 1977; Calik et al., 2015, for more details). 1
Both, continuous and discrete versions have already been addressed by several authors. Examples of works concerning the continuous version are Callaghan et al. (2017) and Elshaikh et al. (2016) where the planar version is analyzed. This paper focuses on an extension of the discrete pCP. The discrete pCP, also known as vertex pCP, has been proven to be NP-hard (Kariv and Hakimi, 1979). However, many efficient exact and heuristic algorithms have been introduced for this problem. See for instance, Contardo et al. (2019); Calik and Tansel (2013) or Irawan et al. (2016). In the last decades, several extensions of the discrete pCP have been introduced in the literature. These include variants considering capacities (¨ Ozsoy and Pınar, 2006; Albareda- Sambola et al., 2010; Quevedo-Orozco and R´ıos-Mercado, 2015) or pre-existing centers, as in the conditional p-center problem (Drezner, 1989). Other extensions, such as the α-neighbor p-center problem, consider the largest distance of a demand point to its αclosest centers, see Chen and Chen (2013). In addition, the pCP with uncertain parameters has been addressed both, from the perspective of robust optimization (Averbakh and Berman, 1997; Lu and Sheu, 2013) and of stochastic programming (Revelle and Hogan, 1989; Espejo et al., 2015; Mart´ınez-Merino et al., 2017). In particular, in Mart´ınez-Merino et al. (2017) the probabilistic p-center problem (PpCP) is introduced. In this problem, the goal is to minimize the expected largest distance between any demand point and its corresponding center. The PpCP considers that the demand can occur independently at each demand site with a certain known probability. Observe, that the pCP is a particular case of this problem where all sites have demand with probability one. In this paper, we will introduce a heuristic method for the PpCP making use of the formulations of the pCP extension that will be proposed. A common characteristic of most of the considered problem variants is that customers are assumed to be homogeneous in the sense that they are all considered in the same way in the objective function. The only exception would be the weighted pCP, where the distances between each site and its closest center are affected by site-dependent weights. See, for instance, Jeger and Kariv (1985) where the particular case of this problem defined on trees is addressed. In this paper, we consider situations where, for instance, the population of a region is divided into different strata, and people of different strata can live together in the same 2
cities. The goal of the problem is to locate centers in such a way that the weighted sum of the largest distance associated with each stratum is minimized. This problem is called the Stratified p-Center Problem (SpCP) and it could be applied when the evaluation of the service is measured separately for each stratum due to social or political reasons. The idea of analyzing demands distributed in a spatially different way has been used in covering problems (Schilling et al., 1979) but, up to the best of our knowledge, it has not been applied in the context of the pCP. A possible real life application could be the location of centers in an humanitarian relief planning framework. The purpose is to locate centers that provide different essential services and where not all demand points need all the services. This is the case of underdeveloped countries where humanitarian aid centers offering assistance (medical supplies, basic goods, clothes, etc.) need to be located. Note that in this context, the opening of many aid centers could be very costly, for instance, due to safety reasons. The model that we propose takes into account the largest distance associated with each of the provided services in contrast with the pCP, where only the largest distance is considered. Consequently, the SpCP evaluates the performance of each of the services. Another application of this model could be the location of warehouses for different perishable items (fruits, vegetables, seafood) whose demand sites are not the same for all the items. In this case, the warehouses should be located in such a way that the clients of each kind of item could be served as soon as possible to avoid the damage of the products. Besides, this model could also be useful to locate social service centers that offer support to different social minorities needing assistance. The SpCP model allows to minimize the weighted sum of the largest distance associated with each minority. In all the above mentioned applications, the weight associated with each stratum could be related to its importance or its associated cost. The paper is organized as follows. In Section 2, a formulation for the SpCP based on the Daskin (1995) and Calik and Tansel (2013) formulations for the pCP is introduced. In Section 3, some alternative formulations together with some valid inequalities are proposed. Section 4 applies the results in previous sections for an efficient implementation of a Sample Average Approximation heuristic for the probabilistic p-center problem (see Mart´ınez-Merino et al., 2017). Section 5 reports the computational results comparing all the proposed formulations 3
and the results of using Sample Average Approximation. Finally, Section 6 gathers the conclusions of the paper. 2 Notation and classical formulation Let N={1, . . . , n}be a given set of sites and p⩾2 the number of facilities to be located. For each pair i, j ∈N, let dij be the distance from location ito j. Besides, dii = 0 for i∈Nand dij >0 for i6=j. In the following we use the next notation. The sorted distances associated with pairs of sites are denoted by 0 = d(1) < d(2) < . . . < d(G). The sorted distances from a site i∈Nto the remaining sites are denoted by 0 = di(1) < di(2) < . . . < di(Gi). In the previous notation Gand Giare the number of different distances between pairs of sites and between iand any other site, respectively (removing possible multiplicities). Moreover, the population of each site 1, . . . , n is partitioned into a set of strata, taking into account that more than one stratum can be present in a site iand not always all the strata are present in a site. Given Sthe set of strata in which the population is divided, we consider a family of subsets {Ns}s∈S such that Ns⊆Nis the set of sites where stratum s is present for s∈ S. Then, the sorted distances from a stratum, i.e., the sorted sequence of family {dij}i∈Ns,j∈Nis denoted by 0 = ds (1) < ds (2) < . . . < ds (Gs), where Gsis the number of different distances of the family {dij}i∈Ns,j∈N. The problem addressed in this work is based on the classical pCP. However, in contrast with the pCP, this new problem considers that population of the sites is divided in different strata depending on the kind of service that they require. For a given stratum s, this problem takes into account the largest distance from the sites where stratum sis present and their corresponding closest service facility. Recall that in the same site there can be inhabitants belonging to more than one stratum. 4
For each site j∈N, and each stratum s∈ S, the following binary parameter is defined: ξs j= 1,if j∈Ns, 0,otherwise. Besides, each stratum has an associated weight, (ws, s ∈ S) that is used to balance the cost related to the different strata in the objective function. The weights can be interpreted in different ways. For instance, they can measure the importance given to a certain stratum. Given the former parameters, the aim of this problem is to locate pservice facilities minimizing the weighted sum of the largest assignments within each stratum. Therefore, the problem can be expressed synthetically in the following way: min P⊆N |P|=pX s∈S wsd(P, Ns),(1) where Pis a subset of facilities to open and d(P, Ns) = max j∈Nsmin i∈Pdij. For a given site j∈N, we will refer to min i∈Pdij as the allocation distance of site j, so d(P, Ns) is the maximum allocation distance among the sites with presence of stratum s, or equivalently within stratum s. The problem previously described can be formulated using the classic p-center formulation (see Daskin, 1995). With this purpose, the following variables are defined: xij = 1,if site jis assigned to center i, 0,otherwise, for i, j ∈N. (2) θs= largest allocation distance for the sites where stratum sis present, s∈ S. (3) Using these variables, the derived formulation is, (F1) min X s∈S wsθs(4) s.t. X i∈N xii =p, (5) X i∈N xij = 1, j ∈N, (6) xij ⩽xii, i, j ∈N, (7) θs⩾X i∈N dijxij , s ∈ S, j ∈Ns,(8) 5
xij ∈ {0,1}, i, j ∈N, (9) θs⩾0, s ∈ S.(10) Constraint (5) restricts that there are pcenters. Constraints (6) indicate that each site is associated with only one center. Constraints (7) restrict that sites must be assigned to an open center. Constraints (8) ensure that the largest allocation distance within stratum sis not smaller than the allocation distance of any site where stratum sis present. As mentioned before, the objective function is the weighted sum of the largest distances within each stratum. To the best of our knowledge, the most recent formulation for the p-center problem was given by Calik and Tansel (2013) providing very good results. We propose a formulation of our problem inspired in Calik and Tansel (2013) using the following families of variables. ¯usr = 1,if d(r)is the largest allocation distance among the sites in Ns, 0,otherwise, s∈ S, r = 1, . . . , G. yi= 1,if a center is placed at i, 0,otherwise, for i∈N. Using these families of variables, the new formulation is given by (F2) min X s∈S G X k=1 wsd(k)¯usk (11) s.t. X i∈N yi=p, (12) G X k=1 ¯usk = 1, s ∈ S,(13) k−1 X k0=1 ¯usk0⩽X i∈N dij <d(k) yi, s ∈ S, j ∈Ns, k = 2, . . . , G, (14) yi∈ {0,1}, i ∈N, (15) ¯usk ∈ {0,1}, s ∈ S, k = 1, . . . , G. (16) 6
Constraint (12) restricts that there are pcenters. Constraints (13) ensure that for each stratum, only one of the distances is the largest allocation distance. Constraints (14) determine that the largest allocation distance within a stratum swill be among the first k distances if there is a center with a distance smaller than or equal to d(k)with respect to any site in Ns. Observe that ¯u-variables determine the largest allocation distance among the sites where each stratum s∈ S is present. As a consequence, only the distances associated with sites in Nswill be necessary to obtain the largest distance with respect to s. Therefore, the number of variables can be reduced defining ˜u-variables in the following way, ˜usk = 1,if ds (k)is the largest allocation distance for the sites in Ns 0,otherwise, s∈ S, k = 1, . . . , Gs. Observe that in the original formulation F2, the number of ¯u-variables is |S|G. However, by doing this reduction, the obtained number of variables is X s∈S Gs. Taking advantage of this reduction of the number of variables, the new objective function for the model is X s∈S Gs X k=1 wsds (k)˜usk,(17) and constraints (14) can be replaced by k−1 X k0=1 ˜usk0⩽X i∈N dij <ds (k) yi, s ∈ S, j ∈Ns, k = 2, . . . , Gs.(18) Therefore, this new family of ˜u-variables allows us to provide a new formulation with a smaller number of variables and constraints. Moreover, the following result allows to strengthen this new formulation. Proposition 2.1 For s∈ S and j∈Ns, let ls jr ∈ {1, . . . , Gs}be such that dj(r)=ds (ls jr). Considering formulation F2 with ˜uvariables (instead of ¯uvariables), the objective function (17) and replacing (14) by ls jr−1 X k0=1 ˜usk0⩽X i∈N dij <ds (ls jr) yi, s ∈ S, j ∈Ns, r = 2, . . . , Gj,(19) results in a valid equivalent formulation F2’ with a smaller number of constraints. 7
Proof: We prove that constraint families (18) and (19) are equivalent. Let ˜s∈ S,˜ ∈Nsand ˜r∈ {2, . . . , G˜}. Consider the following subset of constraints of family (18), k−1 X k0=1 ˜u˜sk0⩽X i∈N di˜<d˜s (k) yi, k ∈ {l˜s ˜,˜r−1+ 1, . . . , l˜s ˜˜r}.(20) Observe that X i∈N di˜<d˜s (l˜s ˜,˜r−1+1) yi=. . . =X i∈N di˜<d˜s (l˜s ˜˜r) yi, then since l˜s ˜˜r−1 X k0=1 ˜u˜sk0⩽. . . ⩽ l˜s ˜˜r−1 X k0=1 ˜u˜sk0, the family of constraints (20) is dominated by l˜s ˜˜r−1 X k0=1 ˜u˜sk0⩽X i∈N di˜<d˜s (l˜s ˜˜r) yi. Therefore, the obtained formulation F2’ is equivalent to F2 with less constraints. In fact, the number of constraints (18) is X j∈NX s∈S ξs jGsand the number of constraints (19) is X j∈NX s∈S ξs jGj. It is straightforward that for each pair, s∈ S, j ∈Ns,Gj⩽Gssince, at least, the distances associated with location jmust be among the distances related to stratum s. 3 Formulation using covering variables In this section we introduce three formulations making use of stratum-covering and sitecovering variables. The idea behind these formulations is to take advantage of the information provided by considering the ordered sequence of possible assignment distances. In particular, the variables defined for these formulations determine whether the largest assignment distance associated with a stratum sis at least the one in a certain position of the sorted vector ds (stratum-covering variables) and whether the allocation distance associated with a site iis at least the one in a certain position of the sorted vector di(site-covering variables). In this section we will see that the use of these variables associated with sorted vectors allows to propose new efficient formulations. 8
Besides, another aggregated version of constraints (36) is: X s∈S:ξs i=1 ls ir⩾2 us,ls ir ⩾ X s∈S ξs i!zir i∈N, r = 2, . . . , Gi.(44) Some computational studies have been carried out with formulation F5-(36)+(44). However, it provides worse running times that formulations presented in Proposition 3.5. Proposition 3.6 Formulation F5 and all its variants (F5-(36)+(40), F5-(36)+(41), F5- (36)+(42), F5-(36)+(43), F5-(36)+(44)) remain valid if integrality of variables zir is relaxed for i∈N,r= 3, . . . , Gi. Proof: Let (˜u, ˜z) be an optimal solution of the model relaxing zir for i∈N,r= 3, . . . , Gi. If (˜u, ˜z) are all binary, we are done. Otherwise, there is at least one 0 <˜zi0r0<1 with i0∈N,r0∈ {3, . . . , Gi}. For this variable, Constraint (30) reduces to zi0r0⩾0, since zi2are binary for i∈N. Hence ˜zi0r0value can be replaced by 0 without violating these constraints. Besides, constraints (36), (40), (41), (42), (43) or (44) (depending on the variant of F5) are not violated if ˜zi0r0takes value 0 and the objective value is not worse. Computational results in Section 5 show that this relaxation improves the times of formulation F5-(36)+(43). Proposition 3.7 Formulations F5, F5-(36)+(40) and F5-(36)+(41), remain valid if we relax the integrality condition of usk variables for s∈ S,k= 2, . . . , Gsand zir variables for i∈N, r∈ {3, . . . , Gi}. Proof: Since z-variables take integer values as observed in Proposition 3.6 and since usk for s∈ S, k= 2, . . . , Gspenalize the objective function, it holds that usk take integer values due to constraints (36) (or equivalently, due to constraints (40) or (41)). Preliminary computational results show that the relaxations introduced in Proposition 3.7 do not improve the running times of the corresponding models. 15
3.4 Reducing the number of covering variables Observe that some of z-variables described in formulations of subsections 3.2 and 3.3 could be fixed. Since pcenters are located in the SpCP, then the distance associated with a client iwill not be among the p−1 worst possible ones. Then, the following constraints allow to fix some variables. Let ˜ di(1) ⩽˜ di(2) ⩽. . . ⩽˜ di˜ Gibe the sorted distances of all possible assignments of site i (observe that this sequence of distances can contain repeated values), then zir = 0 ∀i∈N, r ∈ {2, . . . , Gi}such that di(r)>˜ di(n−p+1).(45) Consequently, for each i∈Nit is only necessary to define zir for r= 2, . . . , Gisuch that di(r)⩽˜ di(n−p+1) . Regarding u-variables appearing in formulations F3 and F5, observe that these are binary variables indicating for each stratum s∈ S whether the largest distance associated with stratum sis at least ds (k)or not, where k= 2, . . . , Gs. The number of u-variables for each stratum s∈ S is Gs−1, i.e, the number of different distances from sites in Nsto all candidate locations (excluding distance 0). In this subsection, we analyze if the number of u-variables can be reduced for each stratum. In fact, the number of u-variables could be reduced if tighter bounds on the largest allocation distance associated with each stratum for the SpCP were known. The following proposition exploits this argument. Proposition 3.8 For each stratum s∈ S, let v(pCPs)be the optimal value of a p-center problem where the set of candidates centers is Nand the set of demand points is Ns, from now on, denoted with pCPs. Then, the largest allocation distance associated with sis at least v(pCPs)in the optimal solution of the SpCP. Proof: Observe that the solution of the SpCP is feasible for the pCPs. Then, given a solution of SpCP, its objective value for pCPswill be greater than or equal to v(pCPs). As a result, if a lower bound or the optimal value of pCPsis obtained, then the number of u-variables associated with stratum scan be reduced. To reduce the number of variables we can follow the next scheme for each s∈ S: 16
•Obtain a lower bound on the pCPsor its optimal objective value. This value can be denoted as LBs. •Define usk variables for all k∈ {h: 2 ⩽h⩽Gsand ds (h)> LBs}. •For each s∈ S, given that ds (ks)is the largest distance associated with stratum ssuch that ds (ks)⩽LBs, the considered objective function will be: X s∈S ws Gs X k=ks+1 ds (ks)+ (ds (k)−ds (k−1))usk Observe that this is equivalent to fix usk = 1 for k⩽ks, s ∈ S. Several criteria can be used to obtain an adequate bound LBsfor each stratum. In particular, in the computational experiments of this work we present two ways for obtaining these bounds. The first one uses the linear relaxation of the pCPsusing the classic formulation of Daskin (1995). The second one consists in using the binary algorithm proposed in Calik and Tansel (2013). Observe that the argument described in constraints (45) for z-variables could be also useful to fix some of the u-variables. In particular, the following variables can be fixed: usk = 0,(s, k)∈ K,(46) where Kis the set of pairs (s, k)∈ S×{2, . . . , Gs}such that for every i∈Ns,ds (k)>˜ di(n−p+1). Summing up, u-variables can be reduced using the scheme described before and constraints (46). In section 5 we study the percentage of z- and uvariables fixed by applying the former criteria. 3.5 Valid inequalities for F5 Some constraints related to closest assignments could be applied for this problem. Some of the constraints appearing in Espejo et al. (2012) have been adapted for formulation F5 (the most promising formulation as we will see in Section 5). However, the only valid inequality that presents good results is the one described below: zir ⩽zj2i, j ∈N, r = 2,...Gi:di(r−1) =dij,(47) 17
These constraints could be considered as derived from the ones proposed by Dobson and Karmarkar (1987). As observed, given i, j ∈Nthese constraints restrict the distance associated with ito be smaller than or equal to the distance dij if a center is located at j. In the following we introduce other valid inequalities that take advantage of the relationship between two different strata. Gs1 X k=2 (ds1 (k)−ds1 (k−1))us1k⩽ Gs2 X k=2 (ds1 (k)−ds1 (k−1))us2k, s1, s2∈S:Ns1⊆Ns2.(48) These constraints state that the largest allocation distance associated with stratum s1will be smaller than or equal to the one associated with stratum s2if stratum s2is present in each site of Ns1. Similarly the next constraints follow: us1k⩽us2l, s1, s2∈S, k = 2, . . . , Gs1, l = 2, . . . , Gs2:Ns1⊆Ns2, ds1 (k)=ds2 (l),(49) Constraints (49) hold since if the largest allocation distance associated with s2is smaller than ds2 (l)and Ns1⊆Ns2, then the largest allocation distance within s1cannot be greater than or equal to ds2 (l)=ds1 (k). The accumulated version of these valid inequalities is: Gs1 X k=2 us1k⩽ Gs2 X k=2 us2k, s1, s2∈S:Ns1⊆Ns2.(50) Other valid inequalities are those ensuring that zvariables are sorted in non-increasing order for each i∈N, i.e., zir ⩾zi,r+1, i ∈N, r = 2, . . . , Gi−1.(51) All these valid inequalities will be analyzed in Section 5. 4 Using SpCP to implement a SAA for solving the PpCP Recall from Mart´ınez-Merino et al. (2017) that the Probabilistic pCP (PpCP) is defined as the variant of the pCP where sites represent potential demand points, and the locations of the pcenters have to be decided before the actual subset of sites that need to be served is revealed. In this problem, the goal is to minimize the expected maximum distance between a site with demand and its closest center. Here, expectation is computed with respect to the 18
probability distribution of the binary random vector defining the subset of sites that have demand. Notice that, in fact, when uncertainty is modeled by means of a set of scenarios, the PpCP can be cast as a SpCP. In this case, each stratum would represent the set of sites having demand at a given scenario, and the stratum weight would correspond to the corresponding scenario probability. This suggests exploiting the SpCP formulations presented in this paper to solve the PpCP using the well-known Sample Average Approximation method (SAA). SAA is based on using Monte Carlo Sampling in the probability space defined by the random variables involved in a problem definition (see Homem-de-Mello and Bayraksan, 2014). Although this idea was already used before for solving stochastic programming problems (Rubinstein and Shapiro, 1990; Robinson, 1996), the term SAA was formally defined in Kleywegt et al. (2002). We next provide a sketch of this methodology; for more details, see Shapiro (2013) or Linderoth et al. (2006). Consider the two stage program (P) z∗= minx∈Xf(x)+Q(x), where the recourse function is defined as Q(x) = Eξ[v(x, ξ)] and, given a solution xand a realization of the random vector ξ,ξ0, the so-called second stage problem is v(x, ξ0) = miny∈Y(x,ξ0)q(y;x, ξ0). Note that if ξ is a discrete random vector with a finite support, Ω, and each scenario s∈Ω has a known probability ps, then, by replicating the variables of the second stage problem, (P) can be equivalently expressed as: (P0)z∗=minf(x) + X s∈Ω psq(ys;x, ξs) (52) s.t. x∈X, ys∈Y(x, ξs), s ∈Ω. Accordingly, using a random sample ΩM⊂Ω, with M=|ΩM|,Pcan be approximated as (PM)zM=min f(x) + 1 MX s∈ΩM q(ys;x, ξs) (53) s.t. x∈X, ys∈Y(x, ξs), s ∈ΩM. Problem PMis often referred to as sample average approximation problem. It is well known that given M, the expected value of this problem, E(zM), is a lower bound on z∗and 19
it converges to z∗as Nincreases. Moreover, under some mild conditions on Xand v, the random vector xM,∗representing the optimal solution to PMbecomes arbitrarily close to the set of optimal solutions to Pwith probability 1. A common way to estimate E(zM) is to solve a sequence of realizations of PMfor a given sample size M, and use the average of the corresponding optimal values as an estimate of E(zM). The sequence is evaluated iteratively, and the termination criterion is most often related with the convergence of this average. The best of the solutions obtained in that sequence of problems is kept as a good approximation of the optimal solution. Compared to other heuristics, the main advantage that SAA provides is the theoretical results that ensure the convergence of the method. In the case of the PpCP, we propose a classical SAA method in which the novelty is that the resulting problem in each iteration is a SpCP. Consequently, we can exploit the characteristics of the best formulations for the SpCP to enhance the performance of the SAA method. The pseudocode given in Algorithm 1 describes the SAA for case of the PpCP. In the next section we will show some computational results of SAA using random samples of size M= 10. Besides, we will see how the use of different formulations of SpCP can affect the performance of the SAA. 5 Computational results This section is devoted to the computational studies of the formulations described along the paper for the SpCP. The instances used in this computational experience are based on the p-median instances from the ORLIB1. For the smallest instances (n= 6,...,75), the used matrices are submatrices of instances pmed1, pmed2, pmed3, pmed4 and pmed5 from the ORLIB data. For instances with n= 100,200,300,400, the matrices are those corresponding to instances pmed1-pmed20. In all cases, several pvalues are considered ranging between p= 2 (for the smallest instances) to p= 60 (for the largest instances). Finally, in Table 7 all the ORLIB distance matrices together with their corresponding pvalues are studied. 1Electronically available at http://people.brunel.ac.uk/~mastjjb/jeb/orlib/files/ 20
Algorithm 1: SAA for the PpCP. /* Kis a maximum number of iterations and, Avlast and Avnew are the average of the objective value solutions related to the last iterations (conveniently initialized to 1and 2, respectively). */ k:= 1, Avlast := 1, Avnew := 2, K := 500. while k < K and |Avnew −Avlast|>0.0005 ·Avlast do /* Step 1:Generation of a random sample Ωk∈Ω. */ for k0= 1 to k0=Mdo for i= 1 to i=ndo Create a random number r∈[0,1). Let qibe the probability of client ito have demand. if r < qithen ξk0 i:= 1, end else ξk0 i:= 0. end sk0:= (ξk0 1, ξk0 2, . . . , ξk0 n) end end Ωk={s1, . . . , sM}. /* Step 2: Solving of the sample average approximation problem. */ Solve the SpCP where S= Ωkand wsk0=1 Mfor k0= 1, . . . , M. Use one of the formulations in sections 2 or 3. Denote by val the optimal objective value of this problem. /* Step 3: Evaluation of the solution. */ /* Avlast and Avnew allow to compare the average of objective values after a number of iterations: */ Avlast := Average of the optimal objective values in the last k−1 iterations. Avnew := Average of the optimal objective values in the last kiterations. Fix the solution of the SpCP in the objective function of the PpCP obtaining an upper bound for the PpCP. (UB) if k= 1 then UBbest := UB end else if UB < UBbest then UBbest := UB. end end end 21
For each instance, a total of |S| = 10 strata are generated. Besides, each stratum (s) is independently created. First, a number qi∈(0,1) is associated with each i∈N. Then a random number in r∈[0,1) is created. If r < qi, then ξs i= 1. Otherwise, ξs i= 0. The formulations are implemented in the commercial solver Xpress 8.0 using the modeling language Mosel. All the runs are carried out on the same computer with an Intel(R) Core(TM) i7-4790K processor with 32 GB RAM. We remark that the cut generation of Xpress is disabled to compare the relative performance of formulations cleanly. First, we report a comparison of all proposed formulations in sections 2 and 3. In this study, we observe that the best results are provided by a variant of formulation F5. After that, we analyze if valid inequalities and the reduction of variables improve the computational times. Finally, Sample Average Approximation for PpCP is implemented using some of the SpCP formulations presented before. 5.1 Comparison of formulations Before the comparison of the different formulations, we include an example along with its data that illustrates a solution of the SpCP for a specific instance. Example 5.1 Let Nbe a set of sites with |N|= 10 in which the distances between each pair of sites are given by the next distance matrix: d= 0 77 139 135 157 174 193 204 206 209 77 0 62 107 129 146 161 150 146 149 139 62 0 90 112 129 117 106 102 105 135 107 90 0 22 39 58 69 73 76 157 129 112 22 0 17 36 47 51 54 174 146 129 39 17 0 19 30 34 37 193 161 117 58 36 19 0 11 15 18 204 150 106 69 47 30 11 0 4 7 206 146 102 73 51 34 15 4 0 3 209 149 105 76 54 37 18 7 3 0 . Besides, the demand is divided into ten strata. Each stratum is present in a subset of sites as shown in Table 1. This table also includes the weight associated with each stratum. 22
Table 1: Strata data for Example 5.1. sites weight sites weight s1:{1,2,3,6,7,9}w1: 0.05 s6:{2,3,6,8,10}w6: 0.05 s2:{6,8}w2: 0.1 s7:{3,4,5,6,8,9,10}w7: 0.05 s3:{6,9}w3: 0.1 s8:{2,5,7}w8: 0.05 s4:{6,7}w4: 0.1 s9:{5,7,8,10}w9: 0.1 s5:{2,5,10}w5: 0.3 s10:{2,6,7,8}w10: 0.1 The solution for this example is to open the facilities at sites 2, 5 and 10 with an objective value of 19.75. Consequently, demand points 1, 2 and 3 will be served by the center in 2, points 4, 5 and 6 will be covered by the facility in 5 and the remaining sites will be served by facility opened in 10. The largest distances associated with each stratum will be the ones given in the first row of Table 2. Table 2: Largest distance associated with each stratum for the optimal solution (first row) and another feasible solution (second row) in Example 5.1. Solution\stratum s1s2s3s4s5s6s7s8s9s10 {2,5,10}77 17 17 18 0 62 62 18 18 18 {1,2,6}62 30 34 19 37 62 62 19 37 30 Observe that this solution for the Stratified p-center problem is not an optimal solution for the p-center problem. Particularly, the optimal solution for the p-center is the location of centers in sites 1, 2 and 6. The second row of Table 2 shows the largest distance associated with each stratum when using the optimal solution of the p-center problem. Note that the maximum distances in the strata with larger weights (s2,s3,s4,s5,s9and s10) are reduced if the Stratified p-center solution is used. We can conclude that SpCP is worth it in order to obtain a better average performance among the strata. Table 3 reports the results of the SpCP formulations proposed in sections 2 and 3. As can be observed, some formulations include several variants replacing some of the constraints by others. With these new constraints, the aim is to improve the running times of some of 23
these formulations. Table 3 reports two columns for each formulation. The first one shows the average running time for solving the model and the second column reports the average LP gap (in percentage, %). The LP gap is calculated as OP T −LP OP T ·100, where OP T is the optimal objective value and LP is the objective value of its linear relaxation. Observe that OPT is known for all the instances used in Table 3 since F5-(36)+(43)* model allows to solve them in less than two hours. Note that each entry corresponds to the average over five instances of the same size and that the reported average running time is the average among the instances that are solved in less than two hours. The number of unsolved instances after two hours is reported in parentheses. In the LP gap column, the average final gaps for those instances that were not solved in two hours is shown in parentheses. This final gap is obtained as UBbest−LBbest UBbest ·100 where UBbest is the objective value of the best feasible solution obtained in two hours and LBbest is the best lower bound obtained in two hours. Besides, observe that formulation F5-(36)+(43)* corresponds to formulation F5 replacing constraints (36) by constraints (43) relaxing variables zir for i∈N,r∈ {3, . . . , Gi}. In terms of running times, observe that for n= 100 some of the instances cannot be solved in less than two hours if formulations F1, F2 or F3 are used. However, the reported results of F2’ and F3-(23)+(26)+(27) are much better than those corresponding to F2 or F3. Note that times of F4 are similar in many of the cases to those required by F3-(23)+(26)+(27) and all the instances can be solved in less than two hours. Observe also that F5 seems to provide better results than F4. Furthermore, it is clear that the best formulation is F5 replacing constraints (36) by constraints (43) and relaxing the integrality of variables zir for i∈N,r∈ {3, . . . , Gi}. By using this variant of formulation F5, the results show that running times are (in average) not bigger than 65 seconds in any of the cases. In contrast, the LP gaps of F2, F2’, F3, F3-(23)+(26)+(27), F5 and F5-(36)+(41), which always coincide, are the smallest ones. Although F5-(36)+(43)* is the formulation that provides the best computational times, the reported LP gaps are the largest ones if we compare them with the remaining formulations. Since F5-(36)+(43)* is the best formulation in terms of times, next subsection is devoted to the computational study of this formulation reducing the number of variables and using 24
Table 7: Results for ORLIB data n p solving prepro Total LP Gap # Nodes Obj. Val. n p solving prepro Total LP Gap # Nodes Obj. Val. pmed1 100 5 46.00 1.12 47.66 8.75 8041 116.8 pmed21 500 5 120.12 334.01 466.05 4.86 1387 38.9 pmed2 100 10 26.08 1.14 28.13 9.91 4783 95.3 pmed22 500 10 253.44 307.79 597.42 7.78 1713 36.9 pmed3 100 10 11.51 1.09 12.98 8.05 1271 92.2 pmed23 500 50 7200.19 229.07 7447.45 18.36(3.9) 29644 21.6 pmed4 100 20 28.27 0.92 29.48 18.50 9463 72.6 pmed24 500 100 1068.26 320.28 1392.83 22.16 18441 15 pmed5 100 33 18.61 0.72 19.52 37.80 5843 40.6 pmed25 500 167 1591.44 199.79 1793.49 40.16 81497 10.6 pmed6 200 5 75.99 10.02 92.17 6.95 2621 80.5 pmed26 600 5 259.63 677.29 959.90 4.58 1331 36.9 pmed7 200 10 89.48 8.24 99.64 8.59 4737 60.6 pmed27 600 10 427.28 593.22 1056.32 8.91 2315 31.1 pmed8 200 20 279.66 8.63 290.36 13.40 10471 52.4 pmed28 600 60 1784.88 572.43 2371.33 13.53 6377 17.3 pmed9 200 40 48.49 8.75 57.95 17.09 4737 34.5 pmed29 600 120 487.86 425.46 918.56 22.71 10189 12 pmed10 200 67 47.67 6.26 54.21 33.24 10931 18.3 pmed30 600 200 188.01 505.15 696.21 32.72 5877 9 pmed11 300 5 30.98 44.26 78.77 5.05 353 54.6 pmed31 700 5 132.35 1318.46 1470.65 2.73 393 29.2 pmed12 300 10 57.64 41.64 105.20 6.77 1215 50.9 pmed32 700 10 4250.54 788.62 5104.98 7.09 19239 28 pmed13 300 30 786.58 33.21 829.07 17.75 13347 35.1 pmed33 700 70 2666.15 1024.91 3729.87 13.66 7367 14.9 pmed14 300 60 338.51 38.84 380.14 19.62 9919 23.4 pmed34 700 140 305.98 752.26 1067.68 16.55 3559 10.3 pmed15 300 100 60.15 40.86 101.79 27.72 6159 16.1 pmed35 800 5 180.27 1429.91 1647.11 4.18 935 28.5 pmed16 400 5 47.96 114.38 165.70 3.88 599 45.9 pmed36 800 10 2376.87 1837.73 4283.38 6.03 4411 26.4 pmed17 400 10 184.14 115.38 309.41 6.19 2399 38.5 pmed37 800 80 5553.53 1353.61 6987.60 14.52 9285 14.7 pmed18 400 40 384.20 86.96 480.31 9.80 4275 26.7 pmed38 900 5 207.01 2844.10 3109.63 5.43 289 27.5 pmed19 400 80 3354.26 119.21 3476.32 21.85 64273 17.4 pmed39 900 10 2993.05 2981.84 6021.92 7.82 6587 22.9 pmed20 400 133 137.76 93.43 232.63 39.05 10437 12.7 pmed40 900 90 7205.28 3780.23 11033.40 13.07(3.9) 10222 12.7 31
Table 8: SAA results PpCP F1 SAA Binary* SAA n p Time Gap Time Gap Time 6 2 0.01 0.00 0.10 0.00 0.45 10 3 0.03 0.00 0.54 0.00 0.87 10 5 0.03 0.00 0.49 0.03 1.49 13 3 0.07 0.00 0.91 0.00 1.53 13 5 0.07 0.00 1.10 0.24 2.21 13 8 0.05 0.00 1.32 0.00 2.20 15 3 0.10 0.00 1.77 0.00 1.88 15 7 0.13 0.00 1.73 0.10 3.56 15 10 0.07 0.00 1.84 0.56 2.65 20 3 0.32 0.00 3.40 0.00 4.18 20 7 0.63 0.64 3.67 0.00 8.49 20 10 0.49 0.10 4.28 0.14 5.62 25 3 0.84 0.00 6.73 0.00 7.42 25 7 3.48 0.05 8.96 0.23 9.50 25 10 5.13 0.02 9.48 0.01 14.34 30 3 2.01 0.00 13.90 0.00 11.27 30 7 13.61 0.14 12.78 0.15 9.40 30 10 22.99 0.00 16.24 0.00 16.54 40 3 8.28 0.00 40.90 0.00 19.94 40 7 148.22 0.01 98.39 0.20 19.45 40 10 295.52 0.01 96.68 0.01 19.52 50 5 243.17 0.03 162.76 0.00 44.68 50 10 4083.75 0.01 462.26 0.12 67.74 50 15 21782.53 0.21 794.07 0.01 71.63 75 5 4108.22 0.03 1386.77 0.03 150.28 32
Table 9: SAA results for larger instances. n p PpCP Time GapBS SAA Time 75 10 >86400 -2.55 200.57 75 15 >86400 -5.67 258.32 100 10 >86400 -10.25 491.73 100 15 >86400 -15.31 449.02 100 25 >86400 -20.40 850.55 6 Conclusions This paper presents an extension of the p-center problem called the Stratified p-Center Problem (SpCP). This extension could be applied in cases where the population is divided into different strata and the evaluation of the service must be separately measured for each stratum. In the model, it is assumed that more than one stratum can be present at each demand point. Different formulations were introduced together with a detailed study of variants, variable reduction processes and valid inequalities. Regarding the computational results, the best performance was obtained using a formulation based on covering variables. The SpCP allows to implement a heuristic approach based on the Sample Average Approximation (SAA) method to obtain good feasible solutions for the probabilistic p-center problem. This heuristic approach provides good upper bounds in acceptable times. Acknowledgements A.M. Rodr´ıguez-Ch´ıa and Luisa I. Mart´ınez Merino acknowledge that research reported here was supported by the European Regional Development’s funds (FEDER) and Agencia Estatal de Investigaci´on (AEI) under project MTM2016-74983-C2-2-R. Luisa I. Mart´ınez Merino was also supported by Universidad de C´adiz PhD grant UCA/REC02VIT/2014 and Programa de Fomento e Impulso de la actividad Investigadora UCA (2018). The research of Maria Albareda has been partially funded by Spanish Ministry of Economy and Competitiveness end EDRF funds through project MTM2015-63779-R. 33
References M. Albareda-Sambola, J. D´ıaz, and E. Fern´andez. Lagrangean duals and exact solution to the capacitated p-center problem. European Journal of Operational Research, 201(1): 71–81, 2010. I. Averbakh and O. Berman. Minimax regret p-center location on a network with demand uncertainty. Location Science, 5(4):247–254, 1997. M. Balinski. Integer programming: methods uses, computation. Management Science, 12: 253–313, 1965. H. Calik and B. C. Tansel. Double bound method for solving the p-center location problem. Computers and Operations Research, 40(12):2991–2999, 2013. H. Calik, M. Labb´e, and H. Yaman. p-center problems. In Location Science, pages 79–92. Springer, 2015. ISBN 978-3-319-13110-8. B. Callaghan, S. Salhi, and G. Nagy. Speeding up the optimal method of Drezner for the pcentre problem in the plane. European Journal of Operational Research, 257(3):722–734, 2017. D. Chen and R. Chen. Optimal algorithms for the α-neighbor p-center problem. European Journal of Operational Research, 225(1):36–43, 2013. C. Contardo, M. Iori, and R. Kramer. A scalable exact algorithm for the vertex p-center problem. Computers & Operations Research, 103:211 – 220, 2019. M. Daskin. Network and Discrete Location: Models, Algorithms, and Applications. Wiley, New York, 1995. G. Dobson and U. Karmarkar. Competitive location on a network. Operational Research, 35: 565–574, 1987. Z. Drezner. Conditional p-center problems. Transportation Science, 23(1):51–53, 1989. S. Elloumi, M. Labb´e, and Y. Pochet. A new formulation and resolution method for the p-center problem. INFORMS Journal on Computing, 16(1):84–94, 2004. 34
A. Elshaikh, S. Salhi, J. Brimberg, N. Mladenovi´c, B. Callaghan, and G. Nagy. An Adaptive perturbation-based heuristic: An application to the continuous p-centre problem. Computers & Operations Research, 75:1–11, 2016. I. Espejo, A. Mar´ın, and A. M. Rodr´ıguez-Ch´ıa. Closest assignment constraints in discrete location problems. European Journal Operational Research, 219:49–58, 2012. I. Espejo, A. Mar´ın, and A. M. Rodr´ıguez-Ch´ıa. Capacitated p-center problem with failure foresight. European Journal of Operational Research, 247(1):229–244, 2015. S. Garc´ıa, M. Labb´e, and A. Mar´ın. Solving large p-median problems with a radius formulation. INFORMS Journal on Computing, 23(4):546–556, 2011. R. Garfinkel, A. Neebe, and M. Rao. The m-center problem: Minimax facility location. Management Science, 23(10):1133–1142, 1977. T. Homem-de-Mello and G. Bayraksan. Monte carlo sampling-based methods for stochastic optimization. Surveys in Operations Research and Management Science, 19(1):56–85, 2014. C. Irawan, S. Salhi, and Z. Drezner. Hybrid meta-heuristics with VNS and exact methods: application to large unconditional and condicional vertex p-centre problems. Journal of heuristics, 22(4):507–537, 2016. M. Jeger and O. Kariv. Algorithms for finding p-centers on a weighted tree (for relatively small p). Networks, 15(3):381–389, 1985. O. Kariv and S. Hakimi. An algorithmic approach to network location problems I: The p-centers. SIAM Journal on Applied Mathematics, 37(3):513–538, 1979. A. Kleywegt, A. Shapiro, and T. Homem-de Mello. The sample average approximation method for stochastic discrete optimization. SIAM Journal on Optimization, 12(2):479– 502, 2002. J. Linderoth, A. Shapiro, and S. Wright. The empirical behavior of sampling methods for stochastic programming. Annals of Operations Research, 142(1):215–241, 2006. 35
C.-C. Lu and J.-B. Sheu. Robust vertex p-center model for locating urgent relief distribution centers. Computers & Operations Research, 40(8):2128–2137, 2013. A. Mar´ın, S. Nickel, J. Puerto, and S. Velten. A flexible model and efficient solution strategies for discrete location problems. Discrete Applied Mathematics, 157(5):1128–1145, 2009. L. I. Mart´ınez-Merino, M. Albareda-Sambola, and A. M. Rodr´ıguez-Ch´ıa. The probabilistic p-center problem: Planning service for potential customers. European Journal of Operational Research, 262(2):509–520, 2017. F. A. ¨ Ozsoy and M. C¸. Pınar. An exact algorithm for the capacitated vertex p-center problem. Computers & Operations Research, 33(5):1420–1436, 2006. D. R. Quevedo-Orozco and R. Z. R´ıos-Mercado. Improving the quality of heuristic solutions for the capacitated vertex p-center problem through iterated greedy local search with variable neighborhood descent. Computers & Operations Research, 62:133–144, 2015. C. Revelle and K. Hogan. The maximum reliability location problem and α-reliablep-center problem: Derivatives of the probabilistic location set covering problem. Annals of Operations Research, 18(1):155–173, 1989. S. M. Robinson. Analysis of sample-path optimization. Mathematics of Operations Research, 21(3):513–528, 1996. R. Y. Rubinstein and A. Shapiro. Optimization of static simulation models by the score function method. Mathematics and Computers in Simulation, 32(4):373–392, 1990. D. Schilling, D. J. Elzinga, J. Cohon, R. Church, and C. ReVelle. The team/fleet models for simultaneous facility and equipment siting. Transportation Science, 13(2):163–175, 1979. A. Shapiro. Sample average approximation. In Encyclopedia of Operations Research and Management Science, pages 1350–1355. Springer, 2013. 36