arXiv:2611.00604cs.DSOct 2026

Manuscript Offprint

arXiv:2611.00604

Facility Location with Customer Incompatibilities

Zachary Friggstad, Pengfei Wu

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 M\mathcal{M} over the clients and the set of clients assigned to an open facility must be an independent set in M\mathcal{M}. We develop a polynomial-time (1+2+ε)(1+\sqrt{2}+\varepsilon)-approximation algorithm for this setting. We further obtain a polynomial-time (15+ε)(15+\varepsilon)-approximation algorithm for the case of non-uniform facility-opening costs when M\mathcal{M} is a partition matroid that only permits bgb_g clients to be assigned to a facility for each group gg 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 ii has its own matroid Mi\mathcal{M}_i 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 Mi\mathcal{M}_i are partition matroids that have the same partition of clients, just different group bounds bgb_g.

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 VCV_C, a set of facilities VFV_F, metric distances d(i,j)d(i,j) for i,j∈VC∪VFi,j \in V_C \cup V_F, and opening costs fi≥0f_i \geq 0 for i∈VFi \in V_F. Additionally, we are given a matroid M=(VC,I)\mathcal{M} = (V_C, \mathcal{I}) describing feasible assignments of clients to a facility.

Given S⊆VFS \subseteq V_F, we say an assignment π:VC→S\pi: V_C \to S is feasible if π−1(i)∈I\pi^{-1}(i) \in \mathcal{I} for each i∈Si \in S. We similarly say S⊆VFS \subseteq V_F is feasible if there is a feasible assignment π:VC→S\pi: V_C \to S.

The goal is to open a feasible subset S⊆VFS \subseteq V_F and find a feasible π:VC→S\pi: V_C \to S minimizing the opening cost and connection cost: ∑i∈Sfi+∑j∈VCd(j,π(j))\sum_{i \in S} f_i + \sum_{j \in V_C} d(j, \pi(j)).

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 RR. Each client jj has a subset Rj⊆RR_j \subseteq R of resources that could be used to serve it. A subset of clients X⊆VCX \subseteq V_C can then be served at a facility if there is a one-to-one mapping ρ:X→R\rho: X \to R such that ρ(j)∈Rj\rho(j) \in R_j for each client j∈Xj \in X, i.e. the clients in XX can be matched to resources.

  • Laminar matroids: Here we have a laminar family L\mathcal{L} over VCV_C, each A∈LA \in \mathcal{L} has a bound bA≥0b_A \geq 0. A subset XX of clients can be assigned to a facility only if ∣X∩A∣≤bA|X \cap A| \leq b_A for each A∈LA \in \mathcal{L}. 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 X⊆VCX \subseteq V_C we are able to tell if X∈IX \in \mathcal{I} in time that is polynomial in ∣VC∣|V_C| 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 VC,VFV_C, V_F and the number of bits required to encode rational distances dd. We also assume the whole set VFV_F itself is feasible, as otherwise no feasible solution could exist.

We remark that given S⊆VFS \subseteq V_F, we can determine if it is feasible and, if so, find a minimum-cost feasible assignment π:VC→S\pi: V_C \to S in polynomial time by computing a minimum-cost way to partition VCV_C into ∣S∣|S| independent sets, assigning a cost of d(j,π(j))d(j, \pi(j)) for assigning jj to the independent set corresponding to facility σ(j)\sigma(j). We say an instance of FL-MI has uniform opening costs if all opening costs fi,i∈VFf_i, i \in V_F are the same value ff. 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 M\mathcal{M} is a partition matroid. That is, the clients are partitioned into groups, each group gg has a bound bg≥0b_g \geq 0, and a subset X⊆VCX \subseteq V_C is independent if for each group gg we have at most bgb_g clients from group gg in XX.

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 n1−εn^{1-\varepsilon}-approximation for any fixed ε>0\varepsilon > 0 unless P=NPP = NP, where nn 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 (1−η)(1-\eta) ln nn-approximation for any fixed 0<η<10 < \eta < 1 unless P=NPP = NP, where nn is the number of clients [DS14]. In particular, no polynomial-time constant-factor approximation exists unless P=NPP = NP.

References (34)