Manuscript Offprint
arXiv:2611.04094A Constant-Factor Approximation for Capacitated Facility Location with Outliers
Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.
Abstract
We give a deterministic polynomial-time -approximation for metric capacitated facility location with outliers, with arbitrary opening costs and nonuniform hard capacities. The algorithm respects both capacities and the outlier budget. Its guarantee, approximately 5.455, is close to the best known factor for capacitated facility location without outliers. The main ingredient is a local-search comparison for a common rejection penalty that retains the signed difference between the algorithm's and the comparator's rejection counts. Ordinary approximation guarantees for the penalty objective do not provide this comparison. We extend the exchange-forest accounting of Bansal, Garg, and Gupta [5] so that a nonnegative assignment remainder pays for rejection and cancels in the final bound. We then merge two penalty assignments whose served counts bracket the outlier quota. Grouping alternating paths by their terminal facility preserves capacities and shares opening costs. These ingredients give a -approximation; starting each penalty run from the preceding solution improves the guarantee to .
1 Introduction
In the classical facility location problem, we are given a set of clients and a set of potential facilities in a metric space. Each facility has an opening cost, and the cost of serving a client is its distance to the facility serving it. The objective is to choose which facilities to open and assign every client to an open facility so as to minimize the total opening and service cost.
Several extensions of this problem have been studied. In capacitated facility location (CFL), each facility also has a capacity that bounds the number of clients it can serve. We consider hard capacities: a facility may be opened at most once, and its capacity cannot be exceeded. These constraints make the problem substantially more difficult. For example, the natural linear programming relaxation has an unbounded integrality gap, even when capacities are uniform [2]. Local search has been particularly successful for CFL. Starting with the work of Pál, Tardos, and Wexler [20], successive improvements led to a -approximation by Bansal, Garg, and Gupta [4].
Another extension allows a small number of clients to remain unserved. Serving every client can be expensive when a few clients are far from the facilities serving the rest. Allowing these clients to be omitted can substantially reduce the cost. Charikar, Khuller, Mount, and Narasimhan [6] introduced facility location with outliers (FLO), in which the input includes a budget on the number of clients that may remain unserved. The objective is to minimize the opening and service cost of serving the remaining clients.
Combining these two extensions gives capacitated facility location with outliers (CFLO). A feasible solution must respect both the facility capacities and the outlier budget. These requirements have been studied on its own. Their combination creates an additional difficulty: choosing the outliers changes where capacity is needed, while choosing facilities changes which clients are inexpensive to serve. An algorithm must therefore coordinate facility openings, assignments, and the choice of outliers.
We study CFLO with arbitrary facility opening costs and nonuniform hard capacities. Our main result is a deterministic polynomial-time -approximation that respects both capacities and the outlier budget. The factor is approximately 5.455, close to the best known factor for capacitated facility location (with arbitrary opening costs) without outliers [4, 5]. We first define the problem formally.
Problem and result. Let be a set of facilities and a set of unit-demand clients in a finite metric space with distances . Facility has opening cost and integer capacity . An input quota specifies the minimum number of clients to serve; equivalently, at most clients may be outliers. A solution consists of open facilities , served clients , and an assignment with for every facility. Capacities are hard: each facility can be opened at most once. Let
and let . The objective is to minimize subject to . Denote the optimum by OPT. Nonnegative costs allow an optimum serving exactly clients.
Theorem 1.1. For every , metric capacitated facility location with outliers admits a deterministic -approximation. The running time is polynomial in the binary input length and , for explicitly represented unit-demand clients.
The closest preceding exact-feasible result is the -approximation of Gupta, Dabas, and Garg [11], which requires uniform facility opening costs and permits arbitrary hard capacities. More recently, Friggstad and Wu [13] improved the factor to for the same uniform-cost problem. Our result removes the uniform cost restriction. Arbitrary costs require controlling the cost of each newly opened facility: bounding only the number of openings cannot prevent repeated charges to an expensive facility.
For -median with outliers, Chen [7] gave the first constant approximation respecting both the number of centers and the outlier budget. Krishnaswamy, Li, and Sandeep [19] developed an iterative-rounding framework giving factor , subsequently improved to by Gupta, Moseley, and Zhou [15]. Bicriteria algorithms provide another approach. Friggstad et al. [14] give a local-search guarantee that preserve the outlier budget while allowing centers. They also show that bounded-size multiswap local search can have an unbounded locality gap when both bounds must be respected. This is an obstruction to that local-search neighborhood, rather than an inapproximability result for the problem. Dabas, Gupta, and Inamdar [12] obtain a -approximation for capacitated -median with outliers in time fixed-parameter tractable in the number of centers, the number of outliers, and .
There is also work on capacitated objectives with outliers for facility location. For uniform hard capacities and arbitrary opening costs, Dabas and Gupta [10] obtain a constant cost approximation allowing small violations of both capacities and the outlier budget; with uniform opening costs they eliminate the capacity violation. For uniform opening costs and hard capacities, Gupta, Dabas, and Garg [11] obtained a -approximation which was recently improved to by Friggstad and Wu [13].
1.2 Technical ideas and their relation to prior work
We apply local search to a penalty variant of CFLO, in which instead of a hard bound on number of outliers, each unserved client incurs a penalty and our goal now is to minimize the sum of facility costs, service costs and penalty costs. This problem is popularly known as capacitated facility location with penalties or the capacitated prize-collecting facility location problem.
Our algorithm replaces the outlier quota by a common rejection penalty and searches for improvements to
It gradually increases , starting each run from the preceding solution, until the number of served clients reaches . The proof has three ingredients.
A stronger guarantee than approximation of the penalty objective. Local search has already been studied for capacitated facility location with penalties [16]. Dabas and Gupta [9] also give an approximation-preserving reduction from the capacitated prize-collecting problem to CFL, obtaining factor five by using CFL as a black box. Thus approximating the penalty objective is already possible at the CFL factor but this guarantee does not provide the comparison that we require. Against a quota optimum serving clients, it gives only
Averaging solutions to served count cancels the penalty term on the left, but leaves the uncontrolled term on the right. We instead prove
where is a controlled local-search tolerance. The same coefficient multiplies the target count and the actual served count, so the penalty cancels at the required average. This signed comparison is the property that an ordinary penalty approximation cannot supply as a black box.
The exchange forest, its up/down organization, and its coefficient-three accounting come from Bansal, Garg, and Gupta [5]. The obstacle introduced by rejection is that penalties need not be metric distances. Gupta and Gupta [16] already recognize this obstacle and use rejection as path endpoints. Our extension must additionally retain the signed count comparison through the forest analysis. We isolate a nonnegative remainder from paths ending at rejection. Metric transfers and rejections together cost at most , while the assignment comparison contributes a negative multiple of . The final bound leaves , so paying for rejection causes no loss in (1). We also give polynomial procedures for searching the comparison assignments used by this analysis.
Merging assignments and sharing opening costs. Penalty search gives assignments and serving fewer than and at least clients, respectively. Lagrangian search and combinations of solutions have a long history in facility location [6, 17]; our contribution is the particular integral merge needed for hard capacities and arbitrary opening costs. Representing facility capacities by labeled slots turns the two assignments into matchings. An augmenting path admits one additional client, preserves every previously served client, and can require opening only its terminal facility. Grouping paths by that facility lets many admissions share one opening charge. Selecting whole groups and at most one partial group produces a feasible solution within its fractional service budget, plus the cost of one additional facility. A maximum-opening-cost guess absorbs that charge. Combined with (1), this already yields factor .
Using descent across consecutive penalty runs. The two assignments contain more information than their separate approximation guarantees. Because the second run starts from the first, its potential at the new penalty cannot increase. Thus a large increase in ordinary cost must be supported by a correspondingly large increase in the number of clients served. The signed bound then forces the first solution to be inexpensive. Combining these two relations with the same merge improves the rounding loss from to , giving .
This separates the quota-recovery argument from the penalty analysis. Future improvements to CFL techniques could improve the CFLO guarantee if they can be extended to provide a suitable signed penalty comparison. An improved approximation for the ordinary CFL or penalty objective alone does not imply such a transfer; the signed inequality is the additional property that must be established.
Organization. Section 2 presents quota recovery and the warm-start refinement. Section 3 describes the local-search algorithm, and Section 4 proves its signed guarantee. The appendices provide the complete merge proof, parameter choices, exchange construction, and search procedures.
2 The approximation framework
We first explain how the algorithm meets the service quota. The local-search algorithm used inside this framework is described in Section 3. Fix an instance with quota , and let be an optimal solution serving exactly clients, of cost OPT. For a common penalty , the algorithm searches for improvements to . Its guarantee is the following.
Theorem 2.1. For improvement threshold , every terminal solution of the penalty local search in satisfies
The equal coefficients on and are essential. An ordinary factor-five guarantee for would give . Averaging solutions to served count would leave the uncontrolled term . In contrast, the penalty term in (2) cancels exactly at that average. The local search algorithm and the proof of Theorem 2.1 appears in Sections 3 and 4 respectively.
2.1 Combining two penalty solutions
Increase the penalty on a grid of step , starting each local-search run from the preceding solution. Stop at the first run whose solution serves at least clients. Let be the preceding solution and the current solution, obtained at penalties and , respectively. Since we stop the first time a solution serves at least q clients, the immediately preceding solution serves fewer than q clients. Thus,
serves too few clients, while the cost of can be high, therefore, we try to combine the two solutions to obtain a solution of bounded cost serving at least q clients and respecting the capacities. Let
Thus , and .
Lemma 2.2. Suppose bounds the opening cost of every facility open in and closed in . In polynomial time, one can construct a capacity-feasible solution serving at least q clients and costing at most
The lemma requires nonnegative costs but does not require a metric.
Construction and proof outline. Returning gives the first bound. For the second, represent every facility by labeled capacity slots and view the assignments as matchings between clients and slots. Their symmetric difference consists of alternating paths and cycles. There are at least g augmenting paths, each of which admits one client to while preserving all clients already served. Any subset can be switched simultaneously because the paths are vertex-disjoint. Only a path's terminal facility may need to be opened: every internal slot has an edge from the assignment of .
Group these paths by terminal facility. Charge a group for its plus edges, which bound the service-cost increase, and for its facility's opening cost if necessary. The total charge of all groups is at most . Fractionally selecting paths therefore costs at most . Ordering groups by charge per path gives a selection with full groups and at most one partial group. In the partial group, take the required number of paths with smallest service charge and pay its entire opening cost. Service cost stays within its fractional budget, and the extra opening charge is at most . Keeping the facilities of open gives cost at most . The full proof is in Appendix A.
2.2 A basic bound from penalty cancellation
By the definition of , we have, and . Applying (2) to and gives
Multiply the first inequality by and the second by . Adding and using , we obtain
where the last inequality uses and .
Lemma 2.2 returns a feasible solution whose cost is at most
(using 4)
(5)
The second inequality uses
Absorbing the opening charge. Try every facility as a guess for a facility of maximum opening cost in an optimal solution. In that branch, set , discard facilities costing more than M, and temporarily make free. All remaining opening costs are at most M, so the merge lemma applies. For a correct guess, an optimal original solution remains feasible and its cost decreases by M. Hence the modified optimum satisfies
Choose the improvement threshold and grid step so that . The merged solution then has modified cost at most . Restoring the guessed facility's opening cost adds at most another , so its original cost is at most
The last inequality uses and . Trying all guesses and returning the cheapest feasible candidate, measured under the original costs, therefore gives a -approximation.
We next use the preceding penalty run to obtain the advertised factor.
2.3 The warm-start bound
Define
The signed comparison for , together with and , gives . The next search starts from and cannot increase its potential at the new penalty. Hence
or . The two endpoint bounds are therefore
If , they give , so suffices. For , the alternatives in the merge bound, before the additional opening charge, satisfy
Figure 1 illustrates these bounds for the worst-case value . The first upper bound increases with and the second decreases. They meet at , where both equal . On either side of the intersection, one bound is no larger than this value. Since
normalized cost bounds,

Figure 1: The additional information supplied by warm starting. Here , and H includes the signed-comparison and grid errors. Combining with gives an increasing upper bound on b and a decreasing upper bound on . The thick curve is the smaller of the two bounds. For the worst-case value , its maximum is , attained at . In general the intersection value is . The possible opening surcharge M is added separately.
Lemma 2.2 gives, in all cases, a feasible solution of cost at most
The leading term is (60/11) OPT. Guessing a maximum-opening-cost facility of an optimum absorbs ; objective-scale guesses allow and to be chosen without knowing OPT. Appendix B specifies the objective scales and penalty parameters and completes the approximation and running-time analysis.
3 The penalty local search
Fix a common rejection penalty and an improvement threshold . For a current open set , we always compute an assignment minimizing
under the original capacities. This is an integral minimum-cost flow problem: a unit of flow for a client either uses an open facility or pays for rejection. Consequently the open set determines the value of the current solution, although the optimal assignment need not be unique. Write for its load at facility , with if is closed, and put .
3.1 Operations and the values used to search them
We use the standard add, open, and close operations of the local-search framework of Bansal, Garg, and Gupta [5]. Initially suppose that recipients are closed facilities. An add(t) operation opens a facility . An open operation opens and closes a set whose total current load fits at . A close operation closes one facility and opens a set of recipients ; rejection remains allowed. These descriptions specify changes to the open set. After any change we compute the best penalty assignment under the original capacities; the algorithm need not retain any particular routing used to analyze the operation.
Already-open recipients. An open or close operation may also use an already-open recipient. It has zero additional opening cost and only its currently unused capacity is available for a transfer. For uniform notation define
A recipient cannot also be a facility being closed. Thus an open operation has and . In a close operation the recipient set is a subset of ; only its closed members need to be opened. Closing saves its original opening cost .
There are exponentially many possible sets and . We search these operations through explicit, efficiently computable upper bounds on their cost changes. The following assignment-improvement values make those bounds precise.
For a recipient and an integer , let be the minimum change in when facilities in are available, the load at is at most , and every other current facility has load at most . Opening costs are excluded. Minimum-cost flow computes these values, and optimality of the current assignment gives
If is already open, all these values are zero: the restricted flow region lies within the original feasible region and contains the current assignment.
For an open operation we use the certificate
For a close operation choose integers for its recipients , with , and let . Its certificate is
The minimum is zero when is empty.
Both certificates upper-bound the actual potential change. To see the role of , first perform its assignment improvement while reserving the places required by the transfer. Move the clients still at the closing facilities into those places, or reject the allowed number. Their remaining loads do not exceed their original loads. Moving a client from to increases its service cost by at most , by the triangle inequality, regardless of which clients the assignment improvement leaves at . Rejecting a client increases its penalized service cost by at most . Appendix D justifies these certificates and gives polynomial procedures for minimizing them. Only one term is used in a close certificate; the analysis will not assume that several independent assignment improvements can be realized together.
3.2 The local-search procedure
Given a starting solution , the procedure Local() repeatedly does the following. First it computes the optimal penalty assignment on the current open set. It then finds the best exact add change and the minimum open and close certificates. If all are at least , it returns the current solution. Otherwise it applies a change with value below and recomputes the optimal assignment under the original capacities.
We call an output terminal. Every searched certificate is at least at a terminal solution, and every accepted change decreases by more than . An exact add change is computed by minimum-cost flow. The certificate searches are polynomial in and the binary encoding length, as proved in Appendix D; the framework's implementation analysis bounds the total number of accepted changes over all penalty runs.
4 The signed penalty comparison
Theorem 2.1. For improvement threshold , every terminal solution of the penalty local search in satisfies
We prove the theorem by comparing assignments and then opening costs. The exchange forest and its up/down organization come from Bansal, Garg, and Gupta [5]. The additions needed here are to keep rejection outside metric routes, retain a nonnegative remainder that pays for rejection, and preserve the signs of the assignment improvements when the exchange inequalities are summed. Write , so .
4.1 Assignment paths and rejection
Give a rejected client the formal assignment . For each client , direct arcs from to and from to . At each real facility pair incoming and outgoing arcs as far as possible, and leave arcs at unpaired. These pairs decompose the arcs into paths and cycles, with every client in exactly one component. Internal real facilities belong to both open sets. Maximal pairing leaves unmatched arcs in at most one direction at each real facility. Figure 2 shows the four possible endpoint types and their penalty changes.
Let and be the service costs of in the two solutions, using zero if it is rejected. For a component set
Shifting a path assigns each of its clients to its next facility. Internal real loads do not change. For a path from to , the change in service cost and rejection penalties is
Thus admission contributes and rejection contributes . The symbol has no metric distance.
Let be the paths ending at a real facility , and let contain those facilities with a nonempty such set. For , define

Figure 2: The four endpoint types in the assignment-path decomposition. Arcs alternate between a client's assignment in and its assignment in ; the omitted interior continues this alternation. Squares are clients, circles are real facilities, and shaded circles are receiving endpoints. Internal facilities are open in both solutions. Shifting a path changes the rejection penalty only at its endpoints. The symbol denotes rejection and has no metric distance.
Every remaining path ends at . Its shift is feasible using only current open facilities and increases no real load. Optimality of the current penalty assignment makes each such shift nonnegative. Let be their total penalized shift. Cycles have zero shift: their shift is feasible for , and the reverse shift is feasible for and preserves its served count. Optimality of the two assignments gives the two opposite inequalities. Summing over all components therefore yields
The groups include all incoming paths, including paths starting at rejection or at a facility common to the two solutions.
We next extract transfer routes for the sources . Every client at a source starts a path. Let count its paths to real target , and let count its paths to rejection. Then
For a real route, the triangle inequality gives . For a path from to rejection,
Its penalized shift is a nonnegative term of . The paths are client-disjoint, so the total transfer and rejection charge satisfies
This is the accounting that replaces a fictitious metric edge to rejection. Metric lengths pay for real routes; the same lengths together with pay for rejected units.
4.2 Savings in unused capacity
Put . If extra places are available at , shifting a fraction of every incoming path is a feasible fractional assignment. Every other real facility has load at most its current load. When , the penalized change is ; when , use the unchanged assignment.
Minimum-cost-flow integrality turns the fractional comparison into an integral assignment with no larger cost. In particular, for an integer ,
Indeed, leaves at least places for these shifts. This inequality connects the assignment-path analysis to the certificates actually searched by the algorithm.
An exact add comparison, or assignment optimality when t is already open, gives
For a closed , the exact add change is at most , so terminality proves the claim.
Suppose an open comparison sends a group of total load to . Apply (14) to (9). Since the searched certificate is at least , we obtain
The close comparison has an averaged form. Give every formal disposal recipient a positive integer analysis capacity and set . Routing a unit to means rejecting a client at charge ; no metric distance is used. If is a set of real or disposal recipients with positive analysis capacities and integers satisfy , then
(17)
Here route is the direct metric transfer charge to real recipients plus the rejection charge. To prove the inequality, express the prescribed allocation as an average of allocations with at most one partly filled recipient. Each such allocation uses at most one assignment improvement from (10); add comparisons supply the terms for unused real recipients. Appendix C.1 gives the complete argument. Thus (17) does not require independent improvements at several recipients in one operation.
4.3 A bounded family of exchanges
Cancel cycles in the real transport y by alternating integral flow adjustments of nonincreasing cost. Its row sums, column sums , and disposal quantities remain unchanged. Attach a private disposal leaf of quantity and analysis capacity to every source with . The support is a forest, and (13) still holds. Root each component containing a real target at such a target. A source with only disposal, or with zero load, can be closed directly.
As in [5], call a nonroot node up if its parent-edge quantity is at least the sum of its child-edge quantities, and down otherwise; roots are down. Write and for its up-children and down-children. Up-source children fit into a bounded number of open comparisons at their parent, with at most one exceptional source closed separately. A down-source first routes to its children. If its down-children have enough spare allowance, they absorb its parent quantity. Otherwise, ordering the positive remainders increasingly allows each remainder to use the next source's up-children; the final source uses its original row. A disposal leaf is only an allowance for rejection. Appendix C verifies the extension of the standard forest construction to rejection and proves the following bounds.
Lemma 4.1. There is a family of open and averaged close comparisons that closes every source in with total weight one. Each real target appears in at most five comparisons and receives total quantity at most . The total transfer and rejection charge is at most . The total weight of the primitive open and close comparisons is at most .
For clarity, the recipient count has the following form; all comparisons start from the same solution .
| target | descendant comparisons | outside comparisons | total |
|---|---|---|---|
| up | one open group; one final close | parent; predecessor | ≤ 4 |
| down | two groups; exception; final close | parent only | ≤ 5 |
4.4 Summing the inequalities with their signs
Let count the uses of real target , and let be the total quantity it receives. In the sum of (16) and (17), the coefficients of and are and , respectively. Add copies of (15), including for targets with . The opening coefficient is now five and the improvement coefficient is
Since , the direction of the resulting inequality is
This is the step requiring sign control: a lower bound on a coefficient would not yield this inequality for unrestricted signed shifts.
The primitive comparisons contribute at most . The extra add tolerances in averaged closes and the final padding contribute at most : each real recipient occurrence in a close is already included in its uses. Lemma 4.1, followed by adding back facilities common to the two solutions, therefore gives
Substitute (13) and (12):
Adding and dropping the nonpositive remainder proves (2), because and . The same remainder that paid for rejection in (13) thus appears with coefficient in the final comparison.
A Proof of Lemma 2.2
Returning gives cost b. We construct the second solution promised by the lemma, keeping the facilities of open and admitting exactly additional clients.
Represent facility i by labeled slots, each of capacity one. Assign its clients to distinct slots in each solution. The two assignments are matchings between clients and slots, with opening costs still charged once per facility. Keep common matching edges fixed and decompose the remaining edges into alternating paths and cycles. Call an edge from a minus edge and one from a plus edge.
Let be the paths with one more plus edge than minus edge, and let . Each starts at a client unserved in and ends at a slot unused in . Switching a path deletes its minus edges and inserts its plus edges. Every internal client remains served, every internal slot remains occupied, and exactly one new client becomes served. The paths are vertex-disjoint, so any subset can be switched simultaneously without using a slot twice. Capacities remain feasible. There are enough paths because
each path in contributes +1 to the difference in matching sizes, while every other component contributes 0 or -1.
Every internal slot has a minus edge, so its facility is already open in . Only the terminal facility may need to be opened. Group the paths by terminal facility. For a nonempty group , put , and define
Deleting minus edges only saves service cost, so bounds the service-cost increase from switching P. The paths have disjoint plus edges, and every new terminal facility is open in . Therefore
Allow a fraction of group to supply paths at charge . Taking fraction of every group supplies exactly paths at cost at most
Order groups by and take them in that order until the required number of paths is reached, using only the needed fraction of the last group. Exchanging fractional paths from a group with a higher charge per path for paths from a cheaper group cannot increase cost. Thus this choice minimizes fractional cost and has at most one partial group. Its fractions satisfy
Switch every path in each full group. If there is a partial group , the remaining number of paths is an integer because and all full-group sizes are integers; also . Switch its paths with smallest . Their total service charge is at most
Thus the resulting service cost is at most .
Open each newly used terminal facility. Full groups pay exactly their opening charge. In the sole partial group, paying the entire opening cost instead of its fraction adds at most . Keeping all facilities of open, the total cost is consequently at most
Every client served in remains served, and exactly others are admitted. Returning the cheaper of this solution and proves Lemma 2.2.
Capacities may be truncated to , giving at most slots. Finding the matching decomposition, grouping its augmenting paths, sorting the groups, and selecting paths from the partial group all take polynomial time. This also proves the algorithmic assertion of the lemma.
B The complete quota algorithm and its running time
We specify the parameters used in Section 2 and prove polynomial running time. Assume ; otherwise return the empty solution. Use the facility-cost branches of Section 2.2: for each facility , set , discard facilities costing more than , and make free. Skip infeasible branches. In each branch, first test for a zero-cost solution by flow restricted to zero-cost facilities and zero-cost connections. Record any such solution after restoring the original opening costs, and skip that branch.
Scales and parameters. Consider a remaining branch with modified optimum . Let be its smallest positive modified opening cost or retained connection cost, and let be the cost of opening all retained facilities and assigning clients by minimum-cost flow. Then . Try from through the first scale at least ; one such scale satisfies
For every scale, choose
where is the original number of facilities. Starting with the empty solution at penalty zero, run
reoptimizing the starting assignment at each new penalty. At the first with , merge and using Lemma 2.2, restore original opening costs, and record the candidate. Discard scales with no crossing, and return the cheapest recorded candidate under the original costs.
Approximation guarantee. Fix a branch and a scale satisfying (20). If no crossing occurred, Theorem 2.1 and would imply
a contradiction. Thus consecutive solutions bracket the quota, and their warm-start relation permits the bound (7). Its error satisfies
All retained opening costs are at most , so the resulting modified cost is at most . The opening-cost restoration argument in Section 2.2 applies to any factor at least two, and therefore gives the claimed bound for the correct facility guess. If that branch has , its recorded zero-cost solution has restored cost at most . The same error estimate also validates the basic bound in Section 2.2.
Running time. There are at most facility branches and scales per branch. Each grid has points. Raising the penalty by increases the preceding solution's potential by at most , whereas every accepted operation decreases it by more than . Since the initial potential is zero and potentials remain nonnegative, telescoping over the grid bounds the number of accepted operations by
There is also at most one terminal search per grid point. Assignment and certificate searches are polynomial by Appendix D, as is the merge in Lemma 2.2. The number of scales and the encoding lengths of all generated rational quantities are polynomial in the binary input length. Hence the entire algorithm runs in time polynomial in the input length and , completing the proof of Theorem 1.1.
C The exchange forest in detail
We prove (17) and Lemma 4.1, using the notation of Section 4. All comparisons start from the same terminal solution S. We use the combinatorial forest construction of Bansal, Garg, and Gupta [5, Sections 4–5], and verify the additional accounting needed for rejection.
C.1 Averaging close comparisons
Fix a source , a recipient set with positive integer analysis capacities, and an integral allocation satisfying and . For disposal recipients set and charge per unit. Consider
Every vertex has at most one coordinate strictly between its bounds, since two such coordinates could be perturbed in opposite directions. The remaining coordinate is integral because the total and all bounds are integral. Express the prescribed allocation as a convex combination of these vertices.
At a vertex, close s, use its positive real recipients, and reject the total allocated to disposal. If a real recipient t is partial, use the single assignment improvement supplied by (14), of value at most
Otherwise use no improvement. This is a feasible comparison under (10): the improvement reserves the required places, and the remaining clients fit into these places and rejection allowances.
For each unused real recipient add (15). The coefficients of and are then respectively one and for every real recipient, including full and unused ones. Averaging preserves these affine coefficients and the routing charge, proving (17) with tolerance at most . The primitive close comparisons have total weight one; each uses at most one assignment improvement.
C.2 The forest with disposal leaves
Use the cycle-free transport and rooting convention from Section 4. In the combinatorial construction of [5], the source sizes are , the real target sizes are , and a private disposal

Figure 3: A down-source in the exchange forest. White circles are sources and shaded circles are real targets. Its optional private disposal leaf has quantity and analysis capacity ; it is always an up-child and represents rejection at cost per unit. The omitted child targets may have further descendants. Down-child targets can absorb up to one extra copy of their edge quantity. If , they absorb the parent quantity locally; if , the remaining quantity is sent to a successor's up-children, except for the final source. Disposal is charged directly and is never an intermediate point of a metric route.
leaf has size . Thus incident quantities sum to the corresponding node sizes. Roots are down and disposal leaves are up. Sources with zero load or only disposal are closed directly.
The up-source grouping is exactly that of [5, Section 4.1]: an up target uses one open comparison, while a down target uses at most two, after removing the up-source child with largest parent-edge quantity. Close this exceptional source separately using its original forest row and (17).
For a down-source child of , write
If , send each child its original quantity and distribute the parent quantity among down-children, adding at most at each. There is enough allowance by the definition of , and for every down-child. For the positive remainders, use the successor construction of [5, Section 4.2]: order . For , send original quantities to up-children and doubled quantities to down-children, and send the remaining units to up-children of . The final source uses its original row. Successor capacity suffices because
The forest ensures that a source's children and its successor's children are disjoint. All quantities can be chosen integrally. A quantity sent to a disposal leaf means rejection at cost per unit, regardless of its source. Apply (17) to each close allocation.
Occurrences and quantities. The recipient counts are those of [5, Lemma 4]: an up target has at most two descendant uses and two outside uses; a down target has at most four descendant uses and one outside use. The nonpositive-remainder case uses only children and creates no additional parent or successor uses. The same edge-quantity count gives
Each source is closed with total weight one. Each open group closes at least one source, and each averaged close has primitive weight one, so the total primitive-comparison weight is at most .
Transfer and rejection charges. For real transfers, use the twice-per-edge charging of [5, Sections 4.1–4.2, Lemma 3]. In particular, a successor transfer to a real up-child is bounded by
The nonpositive-remainder case uses each child edge at most twice and no parent edge, so it respects the same bound. For disposal, charge directly and use no metric route. Each disposal allowance is used by its owner and at most one predecessor, each to at most , and hence contributes at most . Disposal leaves are never intermediate metric vertices. Consequently the total transfer and rejection charge is at most
Together with the occurrence and quantity bounds, this proves Lemma 4.1.
D Implementing the local-search certificates
We justify the certificates in Section 3 and give polynomial procedures for minimizing them. Truncate capacities to , since clients have explicitly represented unit demands.
Feasibility and assignment values. For either certificate, first perform its single auxiliary assignment improvement, if any, while reserving the specified transfer capacity. The loads remaining at facilities to be closed do not exceed their original loads. Moving a client from to increases its service cost by at most , and rejection increases its penalized service cost by at most . These bounds, together with the opening-cost changes, prove (9) and (10). Unused transfer or rejection allowances only reduce the charge. Reoptimizing the assignment after the open-set change cannot increase its cost.
Compute by minimum-cost flow on with current-facility bounds , recipient bound for closed , and rejection cost , subtracting the current penalized service cost. Flow integrality gives integral assignments [1]. For already-open , assignment optimality gives . Assignment optimality and nested feasible regions give (8). All assignment tables require at most flow computations; exact add changes use further flows with the original capacities.
Open exchanges. Fix a recipient . For each , create a knapsack item of weight and profit . A standard 0-1 knapsack dynamic program computes the maximum profit for each exact total load . The minimum open certificate is
Backtracking recovers the closing set. This takes arithmetic operations per recipient, or overall after computing the assignment tables.
Close exchanges. Fix a source and an auxiliary recipient . Charge separately, including when no client is transferred to , since it may be used solely for assignment improvement. Define, for and ,
An allocation dynamic program computes
Process recipients one at a time, trying each allowable quantity at each total-load state. The best value for this pair is
Also search the zero auxiliary option: use for every recipient and omit the separate charge. Backtracking recovers the allocation and the recipients to open.
Every close certificate is represented by choosing a recipient attaining its minimum auxiliary term, or the zero option; all other unused recipients may be omitted without increasing its value. Thus the search finds the minimum certificate without enumerating recipient subsets. Each source–auxiliary-recipient pair takes arithmetic operations, giving overall. All load indices are at most , so these procedures run in polynomial time.
AI methodology
The author had obtained the -approximation before the warm-start refinement. GPT-6.1 Sol, with ultra reasoning, was used to obtain the warm-start improvement to and to improve the presentation of the paper.
References
[1] Ravindra K. Ahuja, Thomas L. Magnanti, and James B. Orlin. Network Flows: Theory, Algorithms, and Applications. Prentice Hall, 1993.
[2] Hyung-Chan An, Mohit Singh, and Ola Svensson. LP-based algorithms for capacitated facility location. In 55th IEEE Annual Symposium on Foundations of Computer Science, pages 256–265. IEEE Computer Society, 2014. doi: 10.1109/FOCS.2014.35.
[3] Hyung-Chan An, Aditya Bhaskara, Chandra Chekuri, Shalmoli Gupta, Vivek Madan, and Ola Svensson. Centrality of trees for capacitated k-center. Mathematical Programming, 154(1–2): 29–53, 2015. doi: 10.1007/s10107-014-0857-y.
[4] Manisha Bansal, Naveen Garg, and Neelima Gupta. A 5-approximation for capacitated facility location. In Algorithms – ESA 2012, volume 7501 of Lecture Notes in Computer Science, pages 133–144. Springer, 2012. doi: 10.1007/978-3-642-33090-2_13.
[5] Manisha Bansal, Naveen Garg, and Neelima Gupta. A 5-approximation for universal facility location. In 38th IARCS Annual Conference on Foundations of Software Technology and Theoretical Computer Science, volume 122 of LIPIcs, pages 24:1–24:12. Schloss Dagstuhl – Leibniz-Zentrum für Informatik, 2018. doi: 10.4230/LIPIcs.FSTTCS.2018.24.
[6] Moses Charikar, Samir Khuller, David M. Mount, and Giri Narasimhan. Algorithms for facility location problems with outliers. In Proceedings of the Twelfth Annual ACM-SIAM Symposium on Discrete Algorithms, pages 642–651, 2001. URL https://www.cs.umd.edu/users/samir/grant/outlier.pdf.
[7] Ke Chen. A constant factor approximation algorithm for k-median clustering with outliers. In Proceedings of the Nineteenth Annual ACM-SIAM Symposium on Discrete Algorithms, pages 826–835, 2008. URL http://dl.acm.org/citation.cfm?id=1347082.1347173.
[8] Marek Cygan and Tomasz Kociumaka. Constant factor approximation for capacitated k-center with outliers. In 31st International Symposium on Theoretical Aspects of Computer Science, volume 25 of LIPIcs, pages 251–262, 2014. doi: 10.4230/LIPIcs.STACS.2014.251.
[9] Rajni Dabas and Neelima Gupta. Locating charging stations: Connected, capacitated and prize-collecting, 2022. URL https://arxiv.org/abs/2202.06262.
[10] Rajni Dabas and Neelima Gupta. Uniform capacitated facility location with outliers/penalties. Discrete Optimization, 55:100878, 2025. doi: 10.1016/j.disopt.2025.100878.
[11] Rajni Dabas, Naveen Garg, and Neelima Gupta. Capacitated facility location with outliers and uniform facility costs. In Jens Vyggen and Jaroslaw Byrka, editors, Integer Programming and Combinatorial Optimization - 25th International Conference, IPCO 2024, Wrocław, Poland, July 3-5, 2024, Proceedings, volume 14679 of Lecture Notes in Computer Science, pages 85–98. Springer, 2024. doi: 10.1007/978-3-031-59835-7_\7. URL https://doi.org/10.1007/978-3-031-59835-7_7.
[12] Rajni Dabas, Neelima Gupta, and Tanmay Inamdar. FPT approximation for capacitated clustering with outliers. Theoretical Computer Science, 1027:115026, 2025. doi: 10.1016/j.tcs.2024.115026.
[13] Zachary Friggstad and Pengfei Wu. Multiple swap local search approximations for uniform-cost capacitated facility location with extensions to outliers, 2026. URL https://arxiv.org/abs/2610.41187.
[14] Zachary Friggstad, Kamyar Khodamoradi, Mohsen Rezapour, and Mohammad R. Salavatipour. Approximation schemes for clustering with outliers. ACM Transactions on Algorithms, 15(2), 2019. doi: 10.1145/3301446.
[15] Anupam Gupta, Benjamin Moseley, and Rudy Zhou. Structural iterative rounding for generalized k-median problems. In 48th International Colloquium on Automata, Languages, and Programming, volume 198 of LIPIcs, pages 77:1–77:18, 2021. doi: 10.4230/LIPIcs.ICALP.2021.77.
[16] Neelima Gupta and Shubham Gupta. Approximation algorithms for capacitated facility location problem with penalties, 2014. URL https://arxiv.org/abs/1408.4944.
[17] Kamal Jain and Vijay V. Vazirani. Approximation algorithms for metric facility location and k-median problems using the primal-dual schema and lagrangian relaxation. Journal of the ACM, 48(2):274–296, 2001. doi: 10.1145/375827.375845.
[18] Samir Khuller and Yoram J. Sussmann. The capacitated K-center problem. SIAM Journal on Discrete Mathematics, 13(3):403–418, 2000. doi: 10.1137/S0895480197329776.
[19] Ravishankar Krishnaswamy, Shi Li, and Sai 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, pages 646–659, 2018. doi: 10.1145/3188745.3188882.
[20] Martin Pál, Éva Tardos, and Tom Wexler. Facility location with nonuniform hard capacities. In 42nd IEEE Symposium on Foundations of Computer Science, pages 329–338, 2001. doi: 10.1109/SFCS.2001.959907.