Manuscript Offprint
arXiv:2611.00604Facility Location with Customer Incompatibilities
Abstract
We study metric facility location with customer incompatibilities, where the clients assigned to each facility must satisfy prescribed independence constraints. We first consider the setting of facility-opening costs and where there is a single matroid over the clients and the set of clients assigned to an open facility must be an independent set in . We develop a polynomial-time -approximation algorithm for this setting. We further obtain a polynomial-time -approximation algorithm for the case of non-uniform facility-opening costs when is a partition matroid that only permits clients to be assigned to a facility for each group in the partition. Both settings are substantial generalizations of Capacitated Facility Location with uniform capacities.
Our algorithms are based on local search using add, delete, and single-swap operations. As with CFL, bounding the connection cost is reasonably straightforward using supermodularity of the minimum connection-cost function. However, bounding the facility opening costs requires novel arguments in both cases. We use a “compression” argument based on matroid exchange principles to identify a subset of the locally opened facilities whose size is no larger than that of an optimal facility set. The opening costs of facilities outside this subset can be bounded using supermodularity, while bounding the costs of the remaining facilities requires different arguments.
It is natural to consider a variant where each possible facility has its own matroid defining the subsets of clients it can feasibly serve. We also show problem is at least as hard to approximate as Set Cover even if all are partition matroids that have the same partition of clients, just different group bounds .
1 Introduction
Facility location is a classical problem in combinatorial optimization, with applications to distribution-system design and customer allocation [KD05]. In the approximation-algorithms literature, several classical variants have been extensively studied, including Uncapacitated Facility Location [Li13], k-Median [AGKMMP04], Capacitated Facility Location [ASS17], Capacitated k-median [DL16], Capacitated Facility Location with uniform capacities [Agg+13], and Capacitated Facility Location with uniform opening costs [Kao23].
Customer incompatibilities have been studied in the operations-research literature under the name Simple Plant Location Problem with Incompatibilities. Marín and Pelegrín [MP19] studied a model in which specified pairs of clients cannot be served by the same facility. They developed a set-packing formulation, derived facet-defining inequalities, and evaluated separation procedures in a computational study. Pelegrín [Pel23] subsequently revisited this model together with co-location variants and discussed applications in telecommunication network design. Related capacitated variants with customer incompatibilities have also been studied using metaheuristics, including multi-neighborhood simulated annealing [Mai+23; CS24].
We study metric Facility Location with Customer Incompatibilities, where additional constraints restrict which clients may be served by the same facility. The objective is to minimize the total facility-opening and connection costs while assigning every client to an open facility and respecting these constraints.
The model of customer incompatibilities where we specify pairs of clients that cannot be assigned to the same facility is clearly a very hard problem to approximate since we could only schedule independent sets from the incompatibility graph at facilities, we make this hardness more formal in Appendix. So we consider other incompatibility notions in this paper that admit efficient constant-factor approximations.
Specifically, the core problem we study is the following.
Definition 1. In Facility Location with Matroid-based Incompatibilities (FL-MI), we are given a set of clients , a set of facilities , metric distances for , and opening costs for . Additionally, we are given a matroid describing feasible assignments of clients to a facility.
Given , we say an assignment is feasible if for each . We similarly say is feasible if there is a feasible assignment .
The goal is to open a feasible subset and find a feasible minimizing the opening cost and connection cost: .
When the matroid is a uniform matroid, this is exactly the Capacitated Facility Location problem with uniform capacities. Other matroids capture settings of interest in operations resesarch.
-
Transversal matroids: Here, at each facility there is also a set of resources . Each client has a subset of resources that could be used to serve it. A subset of clients can then be served at a facility if there is a one-to-one mapping such that for each client , i.e. the clients in can be matched to resources.
-
Laminar matroids: Here we have a laminar family over , each has a bound . A subset of clients can be assigned to a facility only if for each . This is a significant generalization of Capacitated Facility Location with uniform capacities; it captures a more hierarchical structure of constraints beyond simply bounding the total number of clients being served.
Throughout this paper, we assume the matroids are given via efficient independence oracles: given a subset we are able to tell if in time that is polynomial in and, perhaps, other additional structures given to present the matroid. Essentially, our algorithms make a polynomial number of calls to independence oracles and all other steps run in time that is polynomial in and the number of bits required to encode rational distances . We also assume the whole set itself is feasible, as otherwise no feasible solution could exist.
We remark that given , we can determine if it is feasible and, if so, find a minimum-cost feasible assignment in polynomial time by computing a minimum-cost way to partition into independent sets, assigning a cost of for assigning to the independent set corresponding to facility . We say an instance of FL-MI has uniform opening costs if all opening costs are the same value . We sometimes use the term non-uniform opening costs to emphasize when we are not specializing to the uniform opening cost setting [Sch03].
Finally, we also focus the following important special case.
Definition 2. FL-MI with group constraints is the case where is a partition matroid. That is, the clients are partitioned into groups, each group has a bound , and a subset is independent if for each group we have at most clients from group in .
Note FL-MI with group constraints is still a substantial generalization of Capacitated Facility Location with uniform capacities, since that is the case where the partition matroid has only one group (i.e. is a uniform matroid).
The partition assumption is a key structural restriction of our group-constrained model. If clients are allowed to belong to multiple groups without further restrictions, the problem already captures Graph Coloring through a simple approximation-preserving reduction (see Appendix B.1). Consequently, the more general problem with overlapping groups of clients admits no polynomial-time -approximation for any fixed unless , where is the number of clients [Zuc07].
The requirement that all facilities share the same client matroid is a similarly important structural restriction of our matroid-constrained model. Allowing facility-specific client matroids already captures Set Cover, even with uniform opening costs and zero connection costs, through a simple approximation-preserving reduction (see Appendix B.2). Consequently, the problem admits no polynomial-time ln -approximation for any fixed unless , where is the number of clients [DS14]. In particular, no polynomial-time constant-factor approximation exists unless .
Two important special cases are CFL with uniform capacities and CFL with uniform opening costs. For uniform capacities, Aggarwal et al. [Agg+13] obtained a 3-approximation, even with non-uniform opening costs. For uniform opening costs, Kao [Kao23] obtained a 4-approximation, which was subsequently improved to a -approximation by Gupta et al. [GDG26] using local search. Both variants are special cases of our model: uniform capacities correspond to a partition matroid with a single group, while our general matroid constraints allow more complicated restrictions on client assignments.
Matroid Median and Capacitated k-Median. Another related problem is matroid median, which generalizes k-median by requiring the set of opened facilities to be independent in a given matroid. Krishnaswamy et al. [KKNSS11] introduced this problem and obtained a 16-approximation. Swamy [Swa16] improved the guarantee to 8, and Krishnaswamy et al. [KLS18] subsequently obtained a 7.081-approximation using iterative rounding. Unlike our model, where the matroid restricts the clients assigned to each facility, matroid median imposes constraints on the set of opened facilities.
A natural extension of our problem would be to impose matroid constraints on both the opened facilities and the client assignments. This extension already captures uniform capacitated k-median, where at most k facilities may be opened and each facility may serve at most u clients. These two restrictions correspond to rank-k and rank-u uniform matroids on the facility and client sets, respectively, with zero facility-opening costs. Despite progress on constant-factor approximations allowing violations of either the facility bound or the capacities [Li15; DL16], no polynomial-time constant-factor approximation satisfying both constraints is known [DLP26]. Thus, extending our results to include matroid constraints on opened facilities would already encompass this longstanding open problem, even when both matroids are uniform.
1.2 Our Results and Techniques
Our algorithms are based on local search over sets of open facilities. We consider the following three local search operations. Given a feasible , we consider the following operations:
-
add(i):For some , replace by . -
delete(i):For some , replace by , provided the resulting facility set is feasible. -
swap(s, i):For some and , replace by .
Let be all possible feasible subsets of that can be obtained by applying one of these operations.
Algorithm 1 Local Search for FL-MI
while cost() < cost() for some do
return
In the uniform-opening-cost setting, we only need to consider add and delete moves to define ; for non-uniform opening costs, we also use swap moves. Say is a local minimum if every has cost() cost(), i.e. the algorithm would stop if it reached this set .
Each iteration can be executed in polynomial time because and calculating cost() can be done efficiently. Our analysis will only use test swaps, so the standard technique of only updating if cost() cost() applies to show that the approximation guarantee of the final set is at most a -factor worse than the approximation guarantee for true locally-minimum solutions . But now the algorithms run in polynomial time (for rational distances and opening costs) for every constant since cost() decreases by a constant factor every iterations. We ignore this detail from now on and focus on analyzing the approximation guarantee of a locally-minimum solution.
Theorem 3. There exists -approximation algorithm for FL-MI with uniform opening costs.
Turning to non-uniform opening costs, we are able to prove that local search yields a good approximation in the case of group constraints.
Theorem 4. There exists -approximation algorithm for FL-MI with group constraints and non-uniform facility-opening costs.
A key ingredient in our analysis is the supermodularity of the minimum connection-cost function . This property allows us to derive connection cost inequalities from local optimality under add and delete moves, without explicitly constructing feasible client reassignments for each test move.
Bounding the facility opening cost is the more challenging task. Letting denote a locally-optimum solution and a globally-optimum solution, we first choose a feasible assignment minimizing
We show that using appropriate tie-breaking criteria when some costs are equal, the image satisfies and, further, that where is the minimum-cost of a feasible assignment using if is not feasible. Proving is subtle and uses properties similar to exchange paths in matroid intersection algorithms.
For the case of FL-MI, supermodularity of and the above bound on allow us to bound the opening cost by in another relatively straightforward manner.
For non-uniform opening costs, our bound on from the case of uniform opening costs essentially continues to hold. However, the bound is no longer sufficient to control the total opening cost. We therefore introduce swap moves to compare the opening costs of facilities in with those in .
However, this creates a new difficulty: we need to ensure each facility in is not swapped in too many time to avoid charging its cost too many times in the analysis. In the case of group constraints, we overcome this difficulty, by first adding to and then finding mapping such that each is mapped to at most 8 times to bound the number of times it is opened in the corresponding test swaps. This mapping will be very carefully constructed so that
for every , where is the minimum total distance of an injection from to , and . The simultaneous distance bound controls reassignment costs in feasible test swaps and allows us to handle reassignments for each group separately. Of course, care needs to be taken to complete the analysis, but this is the key contribution of our approach.
2 Preliminaries and Common Results
In this section, we establish some notation used throughout the paper and establish supporting results that will be used to prove Theorems 3 and 4.
2.1 Notation
Recall that for is the optimum connection cost over all feasible assignments , using if there is no feasible assignment. Also recall is the opening cost of .
We let be some fixed locally optimal solution and be some fixed globally optimal solution. For brevity, we use denote the connection and opening costs of and be the connection and opening costs of . We also let and be optimal feasible assignments for the respective sets of facilities .
For any mapping , recall we defined and, from now on, we let be a feasible assignment minimizing . If , we have to add one more condition to the definition of . First, let be a minimum-distance injection, we will show one exists for which for each . In the case , among all optimal choices for we further choose one that minimizes . If , no extra conditions beyond minimizing are needed for .
Let , i.e. the image of . We bound by separately bounding and . The bound on works for both FL-MI with uniform opening costs and for FL-MI with group constraints, however the analysis of the two cases differ significantly in how they bound .
2.2 Supermodularity of and Bounding Connection Costs
The purpose of this section is the following.
Lemma 5.
This bound would hold even in the more general case FL-MI with non-uniform opening costs. Note, this is essentially the same sort of bound used in nearly all local search algorithms for facility location. In our case, as with Capacitated Facility Location, it follows from a notion of supermodularity of , where we recall is the optimum connection cost of a feasible assignment to .
That is, we prove the following:
Lemma 6. For all we have .
In particular, this implies whenever is feasible, , and that we have
We also note the proof of Lemma 6 we present would also work to prove the generalization to where each had its own matroid and was the optimal way to map to ensuring each facility in receives an independent set in . But this generality is not needed for our results.
For now, we show how this is used to bound the opening costs in a standard way.
Proof of Lemma 5. For every , add-move local optimality gives . Summing these inequalities over all , and using Lemma 6 in a standard way, we obtain
Here, the first bound is justified by adding to one at a time. That is, write and let for . Applying (1) with , , and gives . Summing over and telescoping establishes the first inequality.
The optimal assignment remains feasible on the larger facility set , so . Substituting this into the inequality above gives , as required.
We remark this bound only used the add moves of the local search procedure.
Supermodularity
The rest of this section is dedicated to proving Lemma 6. We assume is feasible, otherwise the right-hand side of the supermodularity bound is and there is nothing else to show. Note, this implies and are also feasible.
Our strategy is the following:
-
Use duality for matroid intersection to give a dual characterization of the optimal assignment cost , see Lemma 7 immediately below.
-
Use properties of the greedy algorithm for matroids to characterize how the term that maximizes over independent sets can be viewed as a layering of the costs, i.e. Lemma 8.
-
Finally, we point out how the corresponding integrals for the calculations of and satisfy an appropriate supermodularity condition (Equation (7)) which directly translates to proving itself is supermodular.
To that end, recall that is the matroid on the client set. Let denote the rank function of . A feasible assignment requires the set of clients assigned to each open facility to be independent in . We begin with a dual representation of for an arbitrary feasible facility set .
Lemma 7. For every feasible facility set ,
Many similar min-max relationships for weighted matroid intersection and union problems can be found in literature, e.g. [Sch03]. We were unable to find a match for our exact setting, so we provide a proof here.
Proof. Using the rank function of , the LP formulation for the assignment problem on a fixed facility set is as follows:
The constraints define a face of the intersection of the client partition matroid and the direct sum of one copy of for each facility in . By Edmonds' matroid-intersection polytope theorem [Sch03], this formulation is integral. Since its integral feasible solutions are exactly the feasible assignments to , its optimum is .
Let be the dual variable for the equality corresponding to client , and let be the dual variable for the rank constraint indexed by . The dual of (3) is
Fix . For each facility , maximizing the dual objective requires minimizing subject to (), . The dual of this minimization problem is
By the matroid independent-set polytope theorem, the rank-inequality system is integral, and its integral points are exactly the characteristic vectors of independent sets of . Hence the maximum is attained by the incidence vector of an independent set and equals . Replacing the -variables from (4) therefore yields (2).
We next express the facility contribution directly through the rank function. For any vector , the layer-cake representation, together with the matroid greedy theorem, yields the following lemma
Lemma 8 (Theorem 40.2 in [Sch03]).
Note that [Sch03] states it in terms of discrete sums weighted by gaps between different -values, our statement is equivalent.
Applying (5) to gives
In particular, the quantity on the left is coordinatewise nondecreasing in . Indeed, if coordinatewise, then for every ,
The term layer-cake representation is standard in mathematical analysis and refers to expressing a nonnegative function as an integral of indicators of its superlevel sets. See [LL01] section 1.13.
and rank monotonicity in (6) gives
We can now combine the dual representation with the layer-cake identity and the supermodularity of the matroid rank function to prove supermodularity of the connection-cost function.
Proof of Lemma 6. Let and be optimal dual vectors in (2) for and , respectively. For each , define . For a facility set and a vector , let
Thus, by (2), and .
We first compare the two facility terms associated with a common facility . For every threshold , define , . Because and ,
For each fixed , supermodularity of the matroid rank function gives . Therefore, integrating both sides preserves the inequality:
Using (6) and the two threshold-set identities above, for every we obtain
For every , we have coordinatewise, so the coordinatewise monotonicity established above gives . Similarly, for every , since , .
Combining these inequalities with (8) and summing over all facilities gives
Also, for every client j. Therefore,
Since the dual variables in (2) are unrestricted, and are also feasible dual vectors. Hence, , and .
2.3 Bounding
The preceding section showed . To complete analysis of the local search algorithms, we need to bound . The primary difficulty is bounding , we provide that bound in future sections dedicated to the particular cases of FL-MI with uniform opening costs and FL-MI with group constraints. Bounding is much more straightforward and can be done in a way that is common to all FL-MI problems.
We begin with the following observation.
Lemma 9. .
Proof. Since is a feasible assignment to S and minimizes W, the triangle inequality gives
Then, since is a feasible assignment supported on ,
From this, we complete our analysis.
Lemma 10. Let . If S is locally optimal with respect to delete moves, then
Proof. Recall . For every , the set is feasible, since it still contains the feasible facility set . Hence, delete-move local optimality gives . Summing over all , and applying supermodarity of in a standard way we obtain
The first inequality is because is a locally optimum solution, so deleting facilities does not result in a cheaper solution. To justify the second inequality, write and put , . Every is feasible because it contains the feasible set . Since , applying (1) with , gives
. Summing over and telescoping from to established the bound.
Since and , it follows that , which proves the claim.
We remark this bound only used the delete moves in the local search procedure.
2.4 Properties of
To help bound , there are further properties useful for the proofs of both Theorems 3 and 4. It will be helpful to recall the definition of and the manner in which we constructed and from the start of Section 2, we rely heavily on their descriptions here. The main result of this section is to show the following.
Theorem 11. If , then .
In Section 2, we mentioned the minimum-cost injection can be selected so that for each . We now prove it.
Lemma 12. Suppose . There exists a minimum-cost injection such that for every .
Proof. Let be a minimum-cost injection, chosen to maximize the number of facilities satisfying .
If for some , we can update as follows: if we can change from to , which does not increase the cost as . Otherwise, if for some we can swap and so that and . The cost changes by by the triangle inequality.
In either case, we have another minimum-cost mapping with more fixed points than before, contradicting our initial choice of . So already holds for each .
We also require the following supporting result.
Lemma 13. Let be an injection minimizing . For every unmatched facility and every sequence , with repetitions allowed,
Proof. First suppose that are distinct. Define a new injection by
and let for all other . Since and the 's are distinct, is an injection. By the minimality of , , which is exactly (9).
Now consider a sequence with repetitions. Choose with such that are distinct. Cyclically shift their images under by setting
and leaving all other images unchanged. This is again an injection, so the minimality of gives
where .
Thus the closed segment contributes a nonnegative amount to the difference between the two sides of (9). We may therefore remove this closed segment from the sequence. Repeating this operation eliminates all repetitions, after which the first part of the proof applies. Hence (9) holds for every sequence, including those with repetitions.
Finally, we prove the main result of this section.
Lemma 14. If , then .
Proof. Suppose, for contradiction, that . Then there exists a client such that .
We construct a chain of reassignments starting from , using an exchange argument similar to those in combinatorial matroid intersection algorithms. As illustrated in Figure 1, the idea is to move each client to its target facility . If inserting a client violates independence, we use a fundamental circuit to displace another client and continue the chain. Unlike a general search for an exchange sequence, the target facility of each displaced client is prescribed, although we may choose which client to displace. The process terminates when a client can be inserted without displacing another client.

Figure 1: Illustration of the reassignment chain. For each client , let and . Solid edges represent the mappings and , while dashed edges represent the assignment , where and for . The facilities need not be distinct.
For each , define
Thus is the set of clients whose target is . Since is injective, if , then , which is independent in by the feasibility of .
We begin by removing from . At step , let be the client currently being reassigned, and write
We maintain the following invariants at the beginning of each step:
(i) is the only unassigned client, and the clients currently assigned to each facility form an independent set in .
(ii) Every previously processed client , is assigned to its target facility . All clients outside retain their original assignments under .
Both invariants hold initially for .
Let be the current set of clients assigned to . If is independent, we assign to and terminate.
Otherwise, since is independent, contains a unique fundamental circuit . Since and is independent, cannot be contained in . Hence we may choose
In particular, , so . By the fundamental-circuit property,
is independent.
Moreover, cannot be one of the previously processed clients, since those clients are already at their target facilities and hence belong to the corresponding sets . Thus has not been moved before, and
We replace by at and continue with . Both invariants are preserved.
This process must terminate. At each step, is placed at its target facility, while any displaced client lies outside and therefore was not at its target. Furthermore, a client already at its target can never be displaced, since each displaced client is chosen outside the corresponding set . Hence the number of clients assigned to their target facilities strictly increases at each step. Since there are finitely many clients, the process terminates after finitely many steps.
Let be the resulting chain, where is inserted into without displacing another client. By invariant (ii), these clients are distinct and
Let be the resulting assignment. Equivalently,
while all other clients retain their assignments under .
By invariant (i) and the final insertion, is feasible. This remains true even if the same facility is visited more than once, since each exchange uses the fundamental circuit of the current independent set at that facility.
The contribution of the affected clients to is
whereas their contribution to is
By Lemma 13,
Finally, moves from to a facility in , while every other client in the chain starts and ends at a facility in . Hence
If , this contradicts the minimality of . If equality holds, it contradicts the tie-breaking minimality of .
Therefore, , and hence .
3 FL-MI With Uniform Opening Costs
Given (Lemma 5) and (Lemma 9), we only have to bound . But this is quite straightforward in this case.
Lemma 15. For FL-MI with uniform opening costs, a local minimum solution satisfies .
Proof. We claim , from which it follows . If this is immediate because . On the other hand, by Lemma 14 if then . Since is a one-to-one mapping, this also means . In either case, we are finished.
Overall, we have that and , which combines to show . The standard rebalancing trick works here to improve the ratio. The local search analysis does not actually require optimality of the solution , it shows for any feasible solutions where is a local minimum that and .
Let be a value to be decided soon and run local search except with uniform facility costs . Let denote the connection and facility costs of the local optimum solution and the connection and facility costs of the global optimum solution (to the instance before scaling). Then we have and showing
Setting shows .
This proves Theorem 3. Note, to ensure the algorithm runs using rational values, we can set to be a fraction arbitrarily close to . This, and the adaptation of local search to ensure it uses a polynomial number of steps are the cause of the introduction of in the approximation guarantee.
4 FL-MI with Group Constraints and Non-uniform Opening Costs
In this section, we consider FL-MI with group constraints and non-uniform facility-opening costs. Recall that is a partition matroid over . We call its parts groups and denote the clients in group by . The matroid constraint requires that each facility serves at most clients from .
As in the uniform-opening-cost case, the results from Section 2 allow us to bound by . The main difficulty is bounding . Unlike the uniform-cost case, the bound is no longer sufficient to control the total opening cost.
We therefore construct a bounded-congestion mapping and consider test swaps that replace facilities in with their images under . The mapping will be chosen so that each non-common facility in has at most eight preimages. This allows us to control the total opening-cost contribution when summing the inequalities associated with these swaps. The more challenging part is controlling the cost of reassigning clients.
We first construct the mapping independently of the group capacities. To analyze the test swaps, we begin with the simpler case where for every group. In this case, each facility serves at most one client from each group, allowing us to bound the reassignment costs separately for each group and construct the injections needed for our analysis. We then extend the result to arbitrary group capacities in Subsection 4.3 by refining each group into capacity-one groups.
4.1 Bounded-congestion mapping
Recall from Section 2 that we chose a feasible assignment minimizing . When , we first choose a minimum-cost injection as in Lemma 12, which satisfies for every . We then choose among the -minimizing assignments as in Lemma 14.
Write
The set need not contain every facility in . To handle these common facilities, we slightly enlarge it by defining
Since , we have
We also have . If , this follows from . Otherwise, Lemma 14 gives . Since for every , we also have . Consequently,
and hence
We now construct a mapping
Unlike the injection used in the uniform-opening-cost analysis, this mapping is not required to be injective or surjective. Instead, each facility in is allowed to receive up to eight elements of .
The constants 3 in the potential (11) and 8 in the congestion bound are chosen to optimize the approximation ratio obtained from our analysis. More generally, one may replace them by parameters and , respectively, and optimize the resulting bound. We omit the straightforward calculation.
Fix for every . These common facilities will not be used as targets for other points. We refer to as targets and give each target eight available slots.
Repeatedly select a globally shortest pair among unassigned and targets with an available slot. Set and consume one slot. Ties may be arbitrary. There are enough slots because
For any , let denote the family of injections from to . Since , this family is nonempty. Define
We emphasize that the greedy construction fixes the map before any subset is selected. This is important because we will use the same mapping for all group-specific subsets in the test-swap analysis. The following is our main technical bound on the reassignment costs.
Lemma 16 (Simultaneous subset bound). The single map constructed above satisfies, for every subset ,
where . Moreover, for every , no other point maps to Q, and every has at most eight preimages.
Proof. The properties of on Q and the congestion bound follow directly from the construction. We focus on proving (10).
Fix a nonempty ; the empty case is immediate. For every ,
Consider the following potential function: for any point x,
The function is nonnegative and 1-Lipschitz, since it is the pointwise maximum of the zero function and a family of 1-Lipschitz functions. Moreover, for every ,
For any injection ,
(12)
The first inequality follows from the 1-Lipschitz property . The second follows because is injective and is nonnegative. Thus, the last expression in (12) is a lower bound on .
If , then
for every , and hence . The contributions from cancel in (12). Consequently,
We next bound the total potential of the targets. We only need to consider targets with , since targets with zero potential do not contribute to the sum. Fix such a target and choose attaining the positive maximum in (11). For such an ,
In particular, .
The target must already have had all eight slots filled when was assigned. Otherwise, the pair would have been eligible and strictly shorter than , contradicting the greedy choice.
Let be the eight points assigned to . They were all assigned before , while was still unassigned. At each such assignment, the pair was eligible. Global shortest-pair selection therefore gives
In particular,
Thus every lies in , and is noncommon by construction.
Furthermore,
Therefore,
If is empty, the same conclusion follows directly from .
The potential now supplies two inequalities:
Adding the second inequality to three times the first yields
There are eight points in , so
The sets are disjoint for distinct targets. Since every in this argument lies in , we obtain
Substituting into (13) gives
Since the summand is zero for ,
This proves (10).
The map is fixed independently of , so the preceding inequality holds simultaneously for all group-specific subsets . Moreover, the bound of eight preimages per non-common target controls the total opening-cost contribution across the test swaps. We now use these properties to bound .
4.2 Feasible test swaps and the opening-cost bound
We first consider the special case where every group has capacity one, i.e., for all . Thus, each facility serves at most one client from each group. This allows us to analyze the reassignment costs separately for each group. We will extend the result to arbitrary group capacities in Subsection 4.3.
Recall that
Hence, for every ,
so is not open in the local solution S.
For each group g, define the local facilities inside P serving a client from by
For the test swap , keep all clients outside unchanged. For the unique client of a group at , choose whichever of the following has smaller facility-to-facility distance:
(i) the newly opened facility ;
(ii) a nearest facility in , when this set is nonempty.
The second facility is open and currently unused by group g. Since there is at most one client from each group at s, either reassignment respects the capacity-one constraint. Different groups may use the same backup facility or the same newly opened facility. Hence the reassignment is feasible and moves only clients of the closed facility.
The connection-cost increase from this swap is at most
The triangle inequality justifies this bound separately for every moved client. Local optimality implies
For each group , the clients locally served at the facilities in induce an injection from into : map each to the optimal facility of its unique group- client.
This mapping is injective because also satisfies the capacity-one constraint. Therefore,
The same mapping works for all groups, so Lemma 16 and another triangle inequality give
(17)
There is no separate opening-cost charge per group.
Summing (16) and charging common facilities directly yields
(18)
The preceding add- and delete-move bounds continue to apply in the non-uniform-opening-cost setting. Since , Lemma 9 gives
Moreover, since contains , it supports the feasible assignment . Therefore, the proof of Lemma 10 applies and gives
Lemma 5 gives
Combining these bounds with (18), we obtain
We can now complete the analysis for capacity-one group constraints.
Lemma 17. Suppose every group has capacity one. Under arbitrary nonnegative facility-opening costs, every solution S that is locally optimal with respect to add, delete, and single-swap moves satisfies
where O is an optimal solution.
Proof. Using the bounds above,
where the second inequality follows from .
The capacity-one assumption is used in the test-swap analysis above. It ensures that each affected group contributes at most one client to the reassignment cost at a facility, and that the mapping from to O is injective.
For general capacities , these properties need not hold directly. However, we can reduce the analysis to the capacity-one case by refining each group, as we show next.
4.3 Extension to General Partition Matroids
We now extend the preceding result to general partition matroids, where each group may have capacity .
The idea is to refine each group into smaller groups of capacity one. We choose this refinement so that the minimum-cost assignments of both the local and optimal solutions remain feasible. The analysis from Subsection 4.2 can then be applied to the refined instance.
Proof of Theorem 4. Let S be a locally optimal solution and O an optimal solution. Fix minimum-cost feasible assignments and for S and O, respectively.
For each group , construct a bipartite multigraph on disjoint copies of and . For every client , add an edge joining and .
Since both assignments respect the capacity , the multigraph has maximum degree at most . By König's edge-coloring theorem for bipartite multigraphs, its edges can be properly colored using at most colors. Each color class is a matching, since no two edges of the same color share an endpoint.
The corresponding client sets therefore partition into at most refined groups. Under both and , every facility serves at most one client from each refined group.
Applying this construction independently to every original group gives a refinement of the partition of , where all refined groups have capacity one.
Consider the facility-location instance defined by these refined groups, with the same metric and facility-opening costs. Let denote the minimum connection cost for a facility set X in this refined instance, taking if X is infeasible.
Every assignment feasible for the refined instance also respects the original group capacities. Hence
Moreover, and remain feasible under the refined capacity-one constraints. Since they were minimum-cost assignments in the original instance, we have
We first show that S remains locally optimal in the refined instance. Suppose, for contradiction, that some add, delete, or single-swap move from S to X improves the cost in the refined instance. Then
contradicting the local optimality of S in the original instance.
Thus, S remains locally optimal in the refined instance.
Similarly, O remains optimal in the refined instance. Indeed, for every facility set ,
where the second inequality follows from the optimality of O in the original instance.
We can therefore apply Lemma 17 to the refined instance, obtaining
Finally, the standard improvement-threshold argument discussed in Subsection 1.2 gives a polynomial-time local search algorithm with an arbitrarily small additional loss in the approximation ratio. This proves the claimed -approximation guarantee.
4.4 Challenges for Arbitrary Matroids and Non-uniform Opening Costs
It is natural to ask whether the same local search algorithm gives a constant-factor approximation for FL-MI with an arbitrary common client matroid and non-uniform facility-opening costs.
Our analysis for partition matroids relies on the fact that their independence constraints decompose across groups. This allows us to refine each group into capacity-one groups and analyze the client reassignments separately.
This approach does not directly extend to an arbitrary matroid. In a general matroid, two sets of clients may each be independent while their union is dependent. Therefore, constructing feasible reassignments for different subsets of clients separately does not necessarily yield a feasible assignment when those reassignments are combined.
In particular, the test-swap argument from Subsection 4.2 relies on treating the affected groups independently. Without the partition-matroid structure, we cannot directly apply the same reassignment construction to control the connection-cost increase of the swaps.
However, this difficulty concerns our analysis rather than the local search algorithm itself. The failure of the preceding argument to extend to arbitrary matroids does not rule out a constant locality gap. We propose the following conjecture.
Conjecture 18. There exists an constant such that, for every instance of FL-MI with an arbitrary common client matroid and nonnegative facility-opening costs, every solution S that is locally optimal with respect to add, delete, and single-swap moves satisfies
where O is an optimal solution.
We note that our proofs of Lemmas 5 and 10 hold in this general setting, so to prove Conjecture 18 it suffices to show is bounded by as we did in Sections 3 and 4 to prove Theorems 3 and 4, respectively.
References
[Agg+13] A. Aggarwal, A. Louis, M. Bansal, N. Garg, N. Gupta, S. Gupta, and S. Jain. "A 3-Approximation Algorithm for the Facility Location Problem with Uniform Capacities". In: Mathematical Programming 141.1–2 (2013), pp. 527–547. DOI: 10.1007/s10107-012-0565-4 (cit. on pp. 1, 2).
[AGKMMP04] V. Arya, N. Garg, R. Khandekar, A. Meyerson, K. Munagala, and V. Pandit. "Local Search Heuristics for k-Median and Facility Location Problems". In: SIAM Journal on Computing 33.3 (2004), pp. 544–562. DOI: 10.1137/S0097539702416402 (cit. on p. 1).
[ASS17] H.-C. An, M. Singh, and O. Svensson. "LP-Based Algorithms for Capacitated Facility Location". In: SIAM Journal on Computing 46.1 (2017), pp. 272–306. DOI: 10.1137/151002320 (cit. on pp. 1, 2).
[BGG12] M. Bansal, N. Garg, and N. Gupta. "A 5-Approximation for Capacitated Facility Location". In: Algorithms – ESA 2012. Lecture Notes in Computer Science. Springer, 2012, pp. 133–144. DOI: 10.1007/978-3-642-33090-2_13 (cit. on p. 2).
[CS24] S. Ceschia and A. Schaerf. "Multi-neighborhood simulated annealing for the capacitated facility location problem with customer incompatibilities". In: Computers & Industrial Engineering 188 (2024), p. 109858. DOI: 10.1016/j.cie.2023.109858 (cit. on p. 1).
[DL16] G. Demirci and S. Li. "Constant Approximation for Capacitated k-Median with (1 + ε)-Capacity Violation". In: 43rd International Colloquium on Automata, Languages, and Programming (ICALP 2016). Vol. 55. LIPIcs. 2016, 73:1–73:14. DOI: 10.4230/LIPIcs.ICALP.2016.73 (cit. on pp. 1, 3).
[DLP26] H. Dai, S. Li, and S. Peng. "On Tight FPT Time Approximation Algorithms for k-Clustering Problems". In: 53rd International Colloquium on Automata, Languages, and Programming (ICALP 2026). Vol. 374. Leibniz International Proceedings in Informatics (LIPIcs). Schloss Dagstuhl – Leibniz-Zentrum für Informatik, 2026, 72:1–72:23. DOI: 10.4230/LIPIcs.ICALP.2026.72 (cit. on p. 3).
[DS14] I. Dinur and D. Steurer. "Analytical Approach to Parallel Repetition". In: Proceedings of the 46th Annual ACM Symposium on Theory of Computing (STOC). ACM, 2014, pp. 624–633. DOI: 10.1145/2591796.2591884 (cit. on pp. 2, 25).
[Fei98] U. Feige. "A Threshold of ln n for Approximating Set Cover". In: Journal of the ACM 45.4 (1998), pp. 634–652. DOI: 10.1145/285055.285059 (cit. on p. 25).
[FK98] U. Feige and J. Kilian. "Zero Knowledge and the Chromatic Number". In: Journal of Computer and System Sciences 57.2 (1998), pp. 187–199. DOI: 10.1006/jcss.1998.1587 (cit. on p. 24).
[GDG26] N. Gupta, R. Dabas, and N. Garg. "Capacitated Facility Location with Outliers and Uniform Facility Costs". In: Mathematical Programming 216.1-2 (2026), pp. 275–294. DOI: 10.1007/s10107-025-02243-y (cit. on p. 2).
[Hås99] J. Håstad. "Clique is Hard to Approximate Within ". In: Acta Mathematica 182.1 (1999), pp. 105–142. DOI: 10.1007/BF02392825 (cit. on p. 24).
[Kao23] M.-J. Kao. "Improved Approximation Algorithm for Capacitated Facility Location with Uniform Facility Cost". In: 34th International Symposium on Algorithms and Computation (ISAAC 2023). Vol. 283. Leibniz International Proceedings in Informatics (LIPics). Schloss Dagstuhl – Leibniz-Zentrum für Informatik, 2023, 45:1–45:14. DOI: 10.4230/LIPIcs.ISAAC.2023.45 (cit. on pp. 1, 2).
[KD05] A. Klose and A. Drexl. "Facility location models for distribution system design". In: European Journal of Operational Research 162.1 (2005), pp. 4–29. DOI: 10.1016/j.ejor.2003.10.031 (cit. on p. 1).
[KKNSS11] R. Krishnaswamy, A. Kumar, V. Nagarajan, Y. Sabharwal, and B. Saha. "The Matroid Median Problem". In: Proceedings of the Twenty-Second Annual ACM-SIAM Symposium on Discrete Algorithms. SIAM, 2011, pp. 1117–1130. DOI: 10.1137/1.9781611973082.84 (cit. on p. 3).
[KLS18] R. Krishnaswamy, S. Li, and S. Sandeep. "Constant Approximation for k-Median and k-Means with Outliers via Iterative Rounding". In: Proceedings of the 50th Annual ACM SIGACT Symposium on Theory of Computing. ACM, 2018, pp. 339–352. DOI: 10.1145/3188745.3188882 (cit. on p. 3).
[Li13] S. Li. "A 1.488 Approximation Algorithm for the Uncapacitated Facility Location Problem". In: Information and Computation 222 (2013), pp. 45–58. DOI: 10.1016/j.ic.2012.01.007 (cit. on pp. 1, 2).
[Li15] S. Li. "On Uniform Capacitated k-Median Beyond the Natural LP Relaxation". In: Proceedings of the Twenty-Sixth Annual ACM-SIAM Symposium on Discrete Algorithms. SIAM, 2015, pp. 696–707. DOI: 10.1137/1.9781611973730.47 (cit. on p. 3).
[LL01] E. H. Lieb and M. Loss. Analysis. Vol. 14. American Mathematical Soc., 2001 (cit. on p. 7).
[Mai+23] M. R. H. Maia, M. Reula, C. Parreño-Torres, P. P. Vuppuluri, A. Plastino, U. S. Souza, S. Ceschia, M. Pavone, and A. Schaerf. "Metaheuristic techniques for the capacitated facility location problem with customer incompatibilities". In: Soft Computing 27 (2023), pp. 4685–4698. DOI: 10.1007/s00500-022-07600-z (cit. on p. 1).
[MP19] A. Marín and M. Pelegrín. "Adding incompatibilities to the Simple Plant Location Problem: Formulation, facets and computational experience". In: Computers & Operations Research 104 (2019), pp. 174–190. DOI: 10.1016/j.cor.2018.12.018 (cit. on p. 1).
[Pel23] M. Pelegrín. "New variants of the simple plant location problem and applications". In: European Journal of Operational Research 306.3 (2023), pp. 1094–1108. DOI: 10.1016/j.ejor.2022.10.027 (cit. on p. 1).
[Sch03] A. Schrijver. Combinatorial Optimization: Polyhedra and Efficiency. Vol. 24. Algorithms and Combinatorics. Berlin, Heidelberg: Springer, 2003. ISBN: 978-3-540-44389-6 (cit. on pp. 2, 6, 7).
[Swa16] C. Swamy. "Improved Approximation Algorithms for Matroid and Knapsack Median Problems and Applications". In: ACM Transactions on Algorithms 12.4 (2016), 49:1–49:22. DOI: 10.1145/2963170 (cit. on p. 3).
[Zuc07]
D. Zuckerman. "Linear Degree Extractors and the Inapproximability of Max Clique and Chromatic Number". In: Theory of Computing 3.1 (2007), pp. 103–128 (cit. on pp. 2, 24).
A AI Methodology
We used ChatGPT (OpenAI) to help identify the potential function used in Section 4.1, as well as to improve the grammar, clarity, and readability of the manuscript. Its mathematical contribution was limited to suggesting this potential; the subsequent mathematical analysis, derivation of the bounds, and proofs were developed independently by the authors. The authors verified the correctness and originality of all content, including references, and take full responsibility for the final manuscript.
B Hardness Beyond the Structural Assumptions
B.1 Overlapping Group Constraints
Consider a variant of FL-MI with group constraints where the groups need not necessarily partition the set of clients. That is, the constraints dictating what is feasible are given by possibly overlapping groups of clients and we can take a most clients from each group. Essentially, this variant captures graph colouring.
Theorem 19. For every fixed , facility location with unrestricted overlapping group constraints admits no polynomial-time -approximation unless , where is the number of clients.
Proof. We give an approximation-preserving reduction from Graph Coloring.
Let be an undirected graph with . Construct a facility-location instance as follows. Create one client for each vertex and one group for each edge . Create facilities and colocate all clients and facilities at a single location, so that every connection cost is zero. Assign the same opening cost to every facility.
Under the group constraints, each facility may serve at most one client from each group. Therefore, the clients assigned to any facility must form an independent set in .
We first show that admits a proper coloring with at most colors if and only if the constructed instance admits a feasible assignment using at most facilities.
Suppose that has a proper coloring with at most colors. Open one facility for each color class and assign every client to the facility corresponding to its color. Since each color class is an independent set, no facility receives both endpoints of any edge. Hence all group constraints are satisfied.
Conversely, suppose that the constructed instance admits a feasible assignment using at most facilities. Assign to each vertex the color corresponding to the facility serving its client. For every edge , the clients and belong to the same group and therefore cannot be assigned to the same facility. Thus, adjacent vertices receive different colors, yielding a proper coloring with at most colors.
It follows that the minimum number of facilities required by a feasible solution is exactly , the chromatic number of . Since all connection costs are zero and every facility has opening cost , the optimal facility-location cost is
Moreover, any feasible facility-location solution opening facilities has cost and induces a proper coloring using at most colors. Therefore, if a polynomial-time algorithm achieved approximation ratio for the constructed facility-location instance, it would yield a polynomial-time coloring algorithm satisfying
The reduction is polynomial-time and preserves approximation ratios.
By the -inapproximability of Chromatic Number for every fixed [FK98; Hâs99; Zuc07], the claimed hardness follows unless .
B.2 Facility-Specific Client Matroids
In this section, we show that if instead of a common matroid describing feasibility at a facility, each possible facility has its own matroid over the clients describing the subsets of clients that can be assigned to in a feasible solution. Essentially, we show this generalization captures the difficulty of approximating set cover.
Theorem 20. For every fixed , facility location with facility-specific client matroids admits no polynomial-time -approximation unless , even when all opening costs are uniform and all connection costs are zero, where is the number of clients.
Proof. We give an approximation-preserving reduction from Set Cover.
Consider a Set Cover instance with universe , where , and a collection of sets . We may assume that these sets cover . Let denote the minimum number of sets whose union is .
Construct a facility-location instance with one client for each element of and one facility for each set . Colocate all clients and facilities at a single location, so that every connection cost is zero. Give every facility the same opening cost one.
For each facility , define a client matroid with
This is the matroid that is free on and has every element of as a loop. Consequently, a set of clients can be assigned to facility if and only if it is a subset of .
We show that the Set Cover instance admits a cover of size at most if and only if the constructed facility-location instance admits a feasible assignment using at most facilities.
Suppose that there exists a set cover . Open the corresponding facilities and assign each client to any opened facility satisfying . Such a facility exists because the selected sets cover . Moreover, every facility receives only clients belonging to , so its assigned client set is independent in . Thus the assignment is feasible.
Conversely, suppose that a feasible facility-location solution opens at most facilities, indexed by a set . Every client must be assigned to some facility . By the definition of , this is possible only if . Therefore,
and the corresponding sets form a set cover of size at most .
Hence the minimum number of open facilities is exactly . Since all connection costs are zero and each facility has opening cost one, the optimal facility-location cost satisfies
Furthermore, any feasible solution opening facilities has cost and directly induces a set cover of size at most . Therefore, a polynomial-time -approximation for facility location would yield a polynomial-time Set Cover algorithm satisfying
The construction is polynomial-time and preserves approximation ratios.
By the -inapproximability of Set Cover for every fixed [Fei98; DS14], the claimed hardness follows unless .