Manuscript Offprint
arXiv:2610.32793Capacity Modification for Matching with Couples: An Integer Programming and Computational Study
Abstract
We study capacity modification in the Hospitals/Residents problem with Couples, in which hospital capacities and a stable matching are jointly determined. Exact and Cutoff integer programming formulations are developed for the resulting problem. We assume that, for each couple, either both members are matched or neither is. For arbitrary strict preferences, every instance admits a stable matching after changing each hospital capacity by at most two. Total capacity increases by at most one, and this bound is tight. Under sub-responsive and sub-complete couple preferences, a stable matching exists after adding at most one position to each hospital. The total number of additions is at most the number of couples, and this bound is also tight. Computational experiments show that Exact formulations are modestly faster at fixed capacities, whereas Cutoff formulations perform substantially better in the minimum repair experiments and attain higher completion rates in markets with up to 30,000 doctors. Across 96,000 synthetic and reconstructed markets, small capacity changes restore existence whenever no stable matching exists at the original capacities.
Keywords: Stable matching; Matching with couples; Capacity modification; Integer programming
1 Introduction
Most matching models treat capacities as exogenous, even though market organizers often determine them before or alongside the assignment process. This disconnect is especially consequential in residency matching and other centralized markets, where capacity decisions can determine whether a stable matching exists. Stability is a central design objective in these markets. It requires that no resident or couple can form a blocking coalition with one or more hospitals. In the classical Hospitals/Residents problem, deferred acceptance always yields a stable matching (Gale and Shapley, 1962). Couples invalidate this guarantee because they rank pairs of positions jointly. These complementarities are important in medical matching (Roth, 1984; Roth and Peranson, 1999), but they also create a fundamental difficulty: a stable matching may not exist, and deciding whether one exists is NP-complete (Ronn, 1990).
Capacity modification provides one way to restore existence. Nguyen and Vohra (2018) show that every market with couples admits a stable matching after changing each hospital capacity by at most two, while increasing total capacity by at most four. They also leave open whether the bound for each hospital can be reduced from two to one. Under sub-responsive and sub-complete couple preferences, Csáji et al. (2026) obtain this unit bound. Their stated guarantee permits both increases and reductions and does not provide an aggregate capacity bound. These results leave distinct questions when capacities may only increase or when total capacity must be preserved.
We study the Hospitals/Residents problem with Couples (HRC) under the stability concept of Biró et al. (2011), termed BIS-stability by Delorme et al. (2021). We distinguish three capacity policies. Under near feasible capacity modification, each hospital may gain or lose at most two positions while total capacity increases by at most one. Under balanced capacity modification, each hospital may gain or lose at most one position while total capacity
Corresponding author.
is preserved. Under unit capacity expansion, each hospital may gain at most one position and the total number of additions is limited by a budget. For all three policies, we ask whether stability can be restored and what the smallest modification is.
Our first contribution sharpens the near-feasibility guarantee of Nguyen and Vohra (2018). We assume that the two members of a couple are either jointly assigned to an acceptable hospital pair or both unmatched. Under this assumption, the result holds for arbitrary strict preferences. Each hospital capacity changes by at most two, as in their result, while total capacity increases by at most one rather than four. This bound is tight. A stable matching need not exist if total capacity must remain unchanged, even when each hospital capacity may change by at most two. The proof modifies their iterative-rounding argument at the step where the aggregate capacity constraint is discarded and uses the fact that every acceptable couple assignment occupies exactly two hospital positions. Capacity increases at some hospitals may be offset by reductions at others. We also provide a simple two-hospital counterexample showing that balanced unit modification does not guarantee the existence of a stable matching, even with a common master list and sub-responsive and sub-complete couple preferences.
Our second contribution is an existence guarantee for unit capacity expansion. Let denote the set of couples. Under sub-responsive and sub-complete couple preferences, stability can always be restored by adding at most one position to each hospital and at most positions in total. The aggregate bound is tight even when all hospitals share a common master list and every acceptable couple assignment uses distinct hospitals. By sharpening the analysis of the Stable Fixtures rounding of Csáji et al. (2026), the stable matching and the required expansions can be found in time linear in the compact input size.
Our third contribution is an integer programming framework for jointly determining a stable matching and hospital capacities under the three policies. Starting from the fixed capacity formulation of Delorme et al. (2021), we develop integer programs for deciding existence and minimizing the required capacity modification under each policy. We extend the bounded capacity linearization used by Bobbio et al. (2026a) for markets without couples to all three types of blocking coalition in the stability definition. We also adapt the cutoff approach of Ágoston et al. (2022) to allow capacities to be decision variables. We prove that the Exact and Cutoff formulations yield exactly the same stable matchings and capacity vectors, both for fixed capacities and under each modification policy. Table 1 summarizes the resulting existence boundary. Write and .
Table 1: Existence boundary under capacity modification
| Capacity limits | Preference domain | Existence boundary | |
|---|---|---|---|
| [-2, 2] | 0 | General HRC | Counterexample [Proposition 4.3 (BIS, KPR, MM, NV)] |
| [0, 1] | General HRC | Guaranteed [Theorem 4.2 (BIS); tight by Proposition 4.3] | |
| [0, 4] | General HRC | Guaranteed [Nguyen and Vohra (2018, Theorem 1) (BIS, NV)] | |
| [-1, 1] | 0 | General HRC | Counterexample [Counterexample 4.1 (BIS, KPR, MM, NV)] |
| Unrestricted | Sub-responsive and sub-complete | Guaranteed [Csáji et al. (2026, Theorem 3.1) (MM)] | |
| Unrestricted | General HRC | Open | |
| [0, 1] | [0, |C|] | Sub-responsive and sub-complete | Guaranteed [Theorem 4.5 (BIS); tight by Proposition 4.6] |
| Unrestricted | General HRC | Open | |
We complement these theoretical contributions with a computational study of formulation performance, scalability, and capacity modification. Our implementation reproduces all 360 archived outcomes reported by Delorme et al. (2021). Across 510 variants with strict preferences and fixed capacities, Exact and Cutoff return the same existence and maximum cardinality results, with Exact modestly faster. For minimum repair under balanced capacity modification and unit capacity expansion, Cutoff performs better under all four stability notions. Its advantage is largest under the MM and NV notions of stability, where mean running times fall by factors of 41 to 55. A separate scalability experiment considers 500 independently generated markets with 100 to 30,000 doctors. Under a 600-second limit shared by the fixed capacity and minimum repair stages, Cutoff completes of the balanced modification procedures and of the unit expansion procedures. The corresponding rates for Exact are and .
The capacity experiments consider 84,000 markets with and 12,000 reconstructed markets with . At the original capacities, 10,640 markets in the first sample and 2,190 markets in the second sample do not admit a stable matching. Unit expansion repairs all 12,830 markets, and one added position is sufficient in of them. Balanced modification repairs all but 19 markets, all of which belong to the sample. In these markets, allowing each hospital to gain or lose up to two positions restores stability in all 10,640 markets without changing total capacity. Among the 60,000 markets whose total capacity equals the number of doctors, all 6,087 markets without a stable matching at the original capacities are repaired by a single balanced transfer. For markets that are stable at the original capacities, unit expansion also increases maximum matching cardinality, although the improvement becomes smaller as the budget grows. These results do not provide a general guarantee, but they suggest first considering a small capacity reallocation when total capacity is sufficient and adding positions only when necessary.
The remainder of the paper is organized as follows. Section 2 reviews the related literature, and Section 3 introduces the HRC model. Section 4 presents the structural results, and Section 5 develops the integer programming models. Section 6 gives the cutoff formulations, and Section 7 reports the computational study.
The computational literature is closely connected to the operation of centralized medical matching. The redesign of the National Resident Matching Program combines market design theory, practical implementation, and computational experiments (Roth and Peranson, 1999). Subsequent work develops heuristics, methods based on Scarf's lemma, and exact integer programming formulations for HRC (Biró et al., 2011, 2016, 2014; Delorme et al., 2021). These approaches treat hospital capacities as fixed. Integer programming has also been applied to other matching and allocation problems (Delorme et al., 2019; Biró and Gudmundsson, 2021; Ágoston et al., 2022; Biró and Gyetvai, 2023). Our integer programming formulation builds directly on Delorme et al. (2021), while our main models make capacities part of the optimization.
The closest work uses near feasibility to recover stability in HRC. Nguyen and Vohra (2018) show that every instance admits a stable matching after changing each hospital's capacity by at most two, while aggregate capacity is never reduced and increases by at most four. Motivated by the open question of Nguyen and Vohra (2018) on unit individual changes, Csáji et al. (2026) reduce the individual bound to one for sub-responsive and subcomplete couple preferences. Their stated guarantee uses the MM-stability, permits both additions and removals, and does not provide an aggregate capacity bound. Cembrano et al. (2025) recover the Nguyen–Vohra guarantee in a multidimensional allocation framework and combine stability with approximate group fairness. Related rounding methods address proportionality, multidimensional constraints, and other complex matching structures (Nguyen and Vohra, 2019; Nguyen et al., 2021; Csáji, 2025).
Capacity expansion has also been studied in many-to-one markets without couples. One strand asks how a limited pool of additional seats should be allocated to improve assignments or obtain outcomes that respect priorities (Afacan et al., 2024; Bobbio et al., 2026a). Methodologically, Bobbio et al. (2026a) are closest to our work: they jointly optimize school expansions and a student-optimal stable assignment using exact formulations, cutting planes, and heuristics. A second strand minimizes the augmentation needed to obtain complete or efficient stable matchings, incorporates heterogeneous seat costs, or restores strong stability when hospital preferences contain ties (Chen and Csáji, 2023; Balasundaram et al., 2026; Ranjan et al., 2025).
A broader line studies capacity reductions as well as expansions and asks which outcomes can be implemented or sustained through capacity changes. Gokhale et al. (2024) examine capacity changes that ensure a designated worker and firm are matched or make a prescribed matching stable. They also compare capacity modification with preference manipulation by firms. Bobbio et al. (2026b) analyze resident welfare under separate expansion and reduction budgets. In Stable Fixtures, a nonbipartite model in which agents may have multiple partners, Glitzner (2026) studies minimal capacity changes together with deviation incentives relative to the original capacities. Most of the many-to-one studies start from markets in which a stable matching exists under the ordinary definition at the original capacities. In HRC, ordinary stability itself may fail, making restoration of existence the first capacity planning question.
3 Matching markets with couples
We consider the Hospitals/Residents problem with Couples (HRC). Let be the finite set of doctors and the finite set of hospitals. The doctors are partitioned into a set of single doctors and a set of couples. The two members of a couple are distinct, no doctor belongs to more than one couple, and a doctor who belongs to a couple is called linked. Each hospital has an integer capacity . Let denote the capacity vector. Throughout, a capacity vector has nonnegative integer components.
Each doctor has a strict preference order over a set of acceptable hospitals. Every hospital in is preferred to the unmatched outcome ; hospitals outside are unacceptable. Let be the set of acceptable doctor–hospital pairs. Each hospital has a strict priority order over the doctors who regard as acceptable.
For each couple , let be the set of acceptable ordered hospital pairs. The couple has a strict preference order over , and every pair in is preferred to . We assume that the two members of a couple are either jointly assigned to an acceptable hospital pair or both unmatched. This assumption captures complementarity in joint employment and relocation decisions, under which the value of one member's placement depends on the other member also receiving an acceptable position. An assignment that places only one member is therefore unacceptable to the couple.
A matching assigns each single doctor either to a hospital in or to . It assigns each couple either to one pair in or to . For a hospital , let . The matching is feasible under capacity vector if for every . Hospital is full when and undersubscribed when .
We use the stability definition of Biró et al. (2011), called BIS-stability by Delorme et al. (2021). It distinguishes deviations by a single doctor, a couple to two distinct hospitals, and a couple to two positions at the same hospital.
Definition 3.1. Let I be an instance of HRC and M be a feasible matching of I.
(S1) A single doctor and hospital block if is unmatched or , and either is undersubscribed or for some .
(S2) A couple and two distinct hospitals block if the couple is unmatched or , and both proposed assignments can be accommodated. Hospital can accommodate if , if is undersubscribed, or if for some . Hospital can accommodate under the analogous condition.
(S3) A couple and one hospital , with , block if the couple is unmatched or , and one of the following conditions holds:
(i) h has at least two free positions;
(ii) has exactly one free position and either , or hospital prefers both and to some member of ;
(iii) h is full and at least one of the following applies:
(a) , and hospital prefers both and to some member of ;
(b) hospital prefers both and to a linked doctor whose partner is also assigned to ;
(c) hospital h prefers both a and b to at least two distinct members of .
A feasible matching is stable if it admits no blocking coalition.
The way S3 treats deviations in which both members of a couple apply to the same hospital distinguishes BIS stability from other notions of stability for HRC (Delorme et al., 2021). For comparison, Appendix A summarizes the KPR and MM conditions and records the stronger condition satisfied by the Nguyen–Vohra construction (NV). Unless stated otherwise, a matching described as stable is BIS-stable throughout this paper.
4 Existence results
The following result of Nguyen and Vohra (2018, Theorem 1) provides a benchmark for our aggregate result and for the more restrictive forms of capacity modification studied below.
Theorem 4.1 (Nguyen and Vohra, 2018). Suppose that single doctors and couples have strict preferences over their feasible outcomes and that hospital preferences are responsive to strict priority orders over doctors. For any initial capacity vector q, there exist a capacity vector and a matching that is stable under such that
The Scarf construction of Nguyen and Vohra (2018) uses a technical order over the assignment columns incident to each hospital. In the proof of Theorem 4.2, we state this order explicitly and verify directly that domination excludes each of the three BIS blocking types. Thus their capacity guarantee, when specialized to our model, also yields a BIS-stable matching.
4.1 A tight near feasibility guarantee
When the two members of every couple must either be assigned to an acceptable hospital pair or both remain unmatched, a stable matching can be obtained by changing each hospital's capacity by at most two and increasing total capacity by at most one.
Theorem 4.2. Every HRC instance admits a stable matching under a capacity vector satisfying
The proof is given in Appendix B.1. It retains the Scarf domination and hospital-row rounding of Nguyen and Vohra (2018), but replaces their final deletion of the aggregate capacity row by a grouped constraint on the at most two remaining slack applicant rows. The argument is existential and does not assert a polynomial-time algorithm. Proposition 4.3 shows that the upper bound one is tight.
Proposition 4.3. There exists an HRC instance with three hospitals, four couples, and two single doctors that admits no stable matching under any capacity vector satisfying
The counterexample is given in Appendix B.2. Every acceptable couple assignment in the instance involves two distinct hospitals, so case S3 does not arise and all stability notions considered in this paper coincide for this instance.
4.2 Balanced capacity modification
The result in the previous subsection applies to arbitrary strict preferences. The theorem below assumes that couple preferences are sub-responsive and sub-complete. A couple is sub-responsive if there are strict individual preference orders for its two members such that, whenever two acceptable hospital pairs differ only in one member's assignment, the couple's ranking of those pairs agrees with that member's order. Sub-completeness requires every pair of individually acceptable hospitals to be acceptable to the couple. Thus, for a couple , .
Theorem 4.4 (Csáji et al., 2026). Suppose that every couple has sub-responsive and sub-complete preferences. For any initial capacity vector , there exist a capacity vector and an MM-stable matching under such that for every .
Theorem 4.4 allows capacity increases and reductions but does not bound the change in total capacity. The following counterexample shows that a stable matching need not exist when total capacity is unchanged.
Counterexample 4.1. Let , let , and consider one couple and three single doctors . The individual preference orders are , , , and . Both hospitals use the common priority order . The couple's sub-responsive and sub-complete ranking of the four hospital pairs is .
The three capacity vectors permitted by balanced capacity modification are , , and . If the couple is assigned, at least one single doctor is unmatched because total capacity is four. Every single doctor accepts both hospitals and has higher priority than . An unmatched single therefore forms an S1 block with the hospital to which is assigned, using an unfilled position if one is available and otherwise displacing . Hence a matching without an S1 block must leave the couple unmatched.
If the couple is unmatched, all three singles must be assigned; otherwise an unmatched single would block an acceptable hospital with an unfilled position. The assignments below are forced by the singles' preferences and the common priority order.
Under , must be assigned to ; otherwise would block , which would either have an unfilled position or be occupied by a lower priority single. Hence , are assigned to . The couple then forms an S2 block with , because can displace at and can use the unfilled position at .
Under (2, 2), assigning to creates an S1 block at , where can use an unfilled position or displace . If is assigned to , then either blocks , or is full with , , in which case blocks the unfilled position at . Thus is assigned to and , are assigned to . The couple forms an S2 block with , because can displace a single doctor at and can use the unfilled position at .
Under (3, 1), the position at must be assigned to . Leaving it unfilled gives an S1 block. If it is assigned to , then can displace ; if it is assigned to , then prefers the unfilled position at . Hence are assigned to . The couple again forms an S2 block with , because can displace at and can use the unfilled position at . Thus none of the three capacity vectors admits a stable matching.
Because S1 and S2 are identical under all four definitions, the counterexample applies to all four stability notions considered in this paper.
4.3 Unit capacity expansion
Under the same preference restrictions, the next result establishes BIS-stability using only capacity increases and bounds the total number of positions added. Let L denote the size of the input used by the algorithm, including hospital capacities, single doctors' preferences, hospital priorities, and the two individual orders for each couple that establish sub-responsiveness.
Theorem 4.5. Consider any HRC instance in which couple preferences are sub-complete and sub-responsive, and let q be its capacity vector. There exist a matching M and a capacity vector such that M is stable under and
The matching and capacities can be found in time.
The proof is given in Appendix B.3. For an instance I, let denote the smallest budget for which unit capacity expansion is feasible. The next result identifies the exact worst case budget of Theorem 4.5.
Proposition 4.6. For every integer , there exists an HRC instance with couples and sub-complete and sub-responsive couple preferences such that .
The lower bound construction is given in Appendix B.4. Thus is not only sufficient; it is the smallest budget that guarantees feasibility throughout this preference domain.
5 Integer programming formulations
This section presents integer programming formulations for stable matching at fixed capacities and with capacity modification. Section 5.1 gives the formulation for the fixed capacity vector q. Section 5.2 makes capacities decision variables and derives linear stability constraints for bounded capacity changes. Section 5.3 applies this formulation to the three capacity policies.
For each , let if doctor is assigned to hospital , and let otherwise. For each couple and pair , let if the couple is assigned to . The basic feasibility constraints are
Constraints (3)–(4) connect the individual and couple variables. If , the first member of couple is assigned to and the second member is assigned to . If for every , neither member is assigned.
5.1 IP with fixed capacities (IFC)
Under the capacity vector q, the hospital feasibility constraint is
Let and . The following inequalities exclude S1 blocks:
If doctor i is not assigned to h or to a hospital that i prefers to h, then h must be full with doctors to whom it gives at least as high a priority as to i.
Let . For every couple and option with , S2 is excluded by
When couple prefers to its current assignment, constraint (9) ensures that at least one of (7) and (8) remains active. The active constraint requires the corresponding hospital to be full with doctors it ranks at least as highly as the proposed member. It remains to exclude S3. Consider , and relabel the members of as so that . Define
Therefore, S3 is excluded by
When both members of a couple apply to the same hospital, the BIS constraint in Delorme et al. (2021, Eq. (18)) reduces to (10) under strict preferences.
IFC is given by
subject to ,
(11)
This is the specialization of the fixed capacity BIS-formulation in Delorme et al. (2021, Section 4) to strict preferences and couples that cannot be partially assigned. Consequently, IFC is feasible if and only if a stable matching exists under q. When IFC is feasible, its objective selects a stable matching with the maximum number of matched doctors.
5.2 IP with capacity modification (ICM)
ICM determines hospital capacities together with a matching that is stable under those capacities. For each hospital , let and be nonnegative integer variables for the numbers of positions added and removed, respectively. The modified capacity is
Hospital feasibility becomes
The stability constraints are obtained by replacing q with in (6)–(10). Thus the general ICM is
subject to (1)–(4), (12), (13),
(6)–(10) with q replaced by ,
(14)
Suppose that the modified capacities satisfy for every , where is a given upper bound. Each nonlinear stability inequality can be written as , where is a nonnegative integer expression in the assignment and auxiliary variables and . It is equivalent to . If , both inequalities require . If , both hold automatically because and . It extends the bounded capacity linearization of Bobbio et al. (2026a) to the three BIS blocking types.
For S1, the resulting inequality is
For S2, applying the same transformation to the two hospital constraints gives
For S3, consider , and relabel the members as so that . The linear constraint is
The condition is immediate for S1 and S2 because their right-hand sides count assignees. For S3, each positive term on the left of the following inequality identifies a distinct assignee whom ranks at least as highly as :
Moving these correction terms to the right in the S3 constraint therefore gives , as required for the transformation.
Under these bounds, the linear formulation is obtained from (14) by replacing the constraints corresponding to (6), (7), (8), and (10) with (15), (16), (17), and (18), respectively.
5.3 Capacity modification policies
The three policies below retain the assignment constraints, capacity feasibility, linear stability constraints, and variable domains from Section 5.2. They differ only in their capacity restrictions and objectives. The capacity upper bounds are for ICM-BC and ICM-UC, and for ICM-NF.
Balanced capacity modification (ICM-BC) preserves total capacity and allows each hospital to gain or lose at most one position. Add the restrictions
In the change variables, impose for every hospital and . The objective is , which minimizes the number of transfers . Each transfer removes one position from a hospital and adds it to another.
Unit capacity expansion (ICM-UC) instead prohibits reductions and allows each hospital to gain at most one position. Given an expansion budget , the capacity restrictions are
These restrictions are imposed by setting , , and . For a given , retain the cardinality objective of (14) to find a largest stable matching within the budget. To find the fewest additions needed for stability, omit the budget constraint and minimize instead.
Near feasible capacity modification (ICM-NF) permits each hospital to gain or lose at most two positions while total capacity is preserved or increases by one. Add the restrictions
The objective is . Its optimal value is zero if stability can be achieved while preserving total capacity, and one otherwise. The following theorem establishes the exactness of these formulations.
Theorem 5.1. ICM (14) is feasible if and only if the instance admits a stable matching under some capacity vector . The same equivalence holds for ICM-BC, ICM-UC, and ICM-NF when is restricted to (19), (20), and (21), respectively. If the cardinality objective is used, it maximizes the number of matched doctors over the corresponding stable matchings and capacity vectors.
The proof is given in Appendix B.5.
6 Cutoff formulations
This section gives cutoff formulations of IFC, ICM-NF, ICM-BC, and ICM-UC. For each hospital , assign consecutive positive integer scores to its acceptable doctors, with a larger score indicating higher priority. Thus, if and only if . Scores are compared only within the same hospital. Since , let . For every hospital, introduce a continuous cutoff and a binary variable . In IFC, and . In ICM-NF, is the modified capacity and ; in ICM-BC and ICM-UC, .
First, every doctor assigned to a hospital must meet its cutoff:
When , this constraint reduces to . When , it imposes no restriction beyond .
It remains to ensure that a hospital with an unfilled position cannot use a positive cutoff. We impose
If has an unfilled position, the first inequality forces , and the second then gives . Hence such a hospital cannot reject an acceptable doctor through a positive cutoff. When , the hospital has no position to fill, so and remain available.
For each single doctor , write the hospitals in as , and let be the position of in this list. Introduce continuous prefix variables and impose
At every integer solution, if and only if receives or a hospital that prefers to .
For a single doctor, S1 is imposed by
If doctor has not obtained or a better hospital, and the cutoff of must be higher than 's score. Otherwise, the constraint is automatically satisfied.
Write the options of couple as . Introduce continuous prefix variables and impose
At every integer solution, if and only if couple receives or a better option.
Now consider a couple and with . The two hospital conditions for S2 are
These inequalities are used together with (9). If the couple prefers to its current assignment, . Constraint (9) ensures that at least one of the two variables must then be zero, so the corresponding hospital must have a cutoff higher than the score of the proposed member. If that member is already assigned to the hospital, (22) prevents the hospital from rejecting the member.
For S3, list the acceptable doctors of each hospital according to its priority order, , and let be the position of doctor in this order. Introduce continuous tail variables satisfying
It follows that
This is the number of unfilled positions plus the number of assignees whom ranks below . If unfilled positions are viewed as zero-score positions, means that passes the th lowest marginal cutoff.
Consider , and relabel its members so that . The following condition excludes a blocking coalition through any of conditions (S3)(i), (S3)(ii), (S3)(iii)(a), and (S3)(iii)(c) in Definition 3.1:
The remaining condition, (S3)(iii)(b), depends on whether a doctor ranked below is assigned to together with that doctor’s partner. To exclude this condition, introduce a continuous variable for each hospital, with . For every couple having the option , let , and impose
Together with constraints (1)–(4), (9), (13), and (22)–(29), these constraints define the cutoff formulation. Setting gives IFC-CUT. Combining the same stability constraints with the near feasible capacity modification, balanced capacity modification, or unit capacity expansion constraints gives ICM-CUT-NF, ICM-CUT-BC, or ICM-CUT-UC, respectively.
Theorem 6.1. For each of IFC, ICM-NF, ICM-BC, and ICM-UC, the original and cutoff formulations admit exactly the same matching and capacity vector.
The proof is given in Appendix B.6. Appendix A.2 gives the formulations for the other three stability notions.
7 Computational study
We use Exact as the computational label for IFC and for ICM models using the exact linearization, and Cutoff for their cutoff counterparts. The timing and scalability comparisons cover fixed capacities, balanced capacity modification, and unit capacity expansion. Near feasible capacity modification is examined separately in Section 7.3.
We first validate IFC against the archive of Delorme et al. (2021) and compare Exact and Cutoff at fixed capacities, with Enumeration as an additional benchmark for minimum capacity modification. We also examine whether the formulation comparison changes under the other stability notions. Using Cutoff, we then study existence and the capacity modifications required to restore stability across market types, followed by the effect of expansion on maximum matching cardinality in initially stable markets. Finally, we compare the solution rates of Exact and Cutoff as market size increases.
All computations reported in this section were performed on a MacBook Pro with a 10-core Apple M2 Pro processor and 16 GB of memory, running macOS 26.5.2. The models were implemented in MATLAB R2026a and solved with Gurobi Optimizer 13.0.2 through its MATLAB interface.
7.1 Formulation comparison
We use the instances and computational records released by Delorme et al. (2021). The output archive covers twenty instance families with thirty instances each. Eight instance families permit a member of a couple to be assigned while the other remains unmatched and therefore fall outside our model. The remaining twelve instance families contain 360 source instances with .
We first validate our MATLAB implementation of IFC by comparing its results with the archived results generated by the original C++ implementation of . For all 360 instances, the numbers of variables, constraints, and nonzero coefficients match the archived records exactly. We reproduce all 334 reported optimal objective values. For the twelve archived runs with unresolved optimality gaps, our solution values lie within the reported bounds. We also prove infeasibility for exactly the fourteen instances recorded as in the archive.
For the timing comparison, hospital priorities that are already strict are retained unchanged. When the source data contain hospital ties, we obtain strict priorities in three ways. The first orders doctors within each tie by identifier. The second uses one random lottery consistently at every hospital, and the third uses an independent lottery at each hospital. Strict comparisons between tie classes are never changed.
The source instances construct each couple’s joint list as the Cartesian product of the two individual lists. Options with individual ranks and are ordered first by and then by , both in increasing order. Options equal on both criteria are tied. Families restricted to assignments at the same hospital retain only pairs . For the timing comparison, we break remaining couple ties in source order, preserving all strict comparisons in the original preferences. Duplicate source markets are counted only once in the timing sample. This leaves 240 instances with strict hospital priorities and 90 with hospital ties. Applying the three hospital tie treatments to the latter gives strict variants.
Before building either fixed capacity formulation for the Delorme instances, we apply the preference list reduction of Delorme et al. (2021). The hospital offer and resident application rules alternate until no further deletions occur, removing rejected doctor–hospital pairs and the couple options containing them. Enumeration repeats this reduction for each candidate capacity vector. This preprocessing is applied only when hospital capacities are fixed.
We compare IFC and IFC-CUT at fixed capacities, with both formulations maximizing the number of matched doctors. Reported times include preprocessing, model construction, and optimization. The formulations agree on the optimal value for each of the 484 feasible variants and prove the remaining 26 infeasible. Table 2 groups the results by hospital priorities in the source data, couple options, and the tie-breaking rule, with thirty variants per row. Master list means that hospitals share a ranking of doctors, whereas Hospital specific means that each hospital has its own ranking. One hospital means that each couple accepts only assignments placing both partners at the same hospital. Tie breaking specifies how ties in hospital priorities are resolved.
Compared with IFC, IFC-CUT uses, on average, 22.3% fewer variables and 1.9% fewer nonzero coefficients, but 9.9% more constraints. IFC is modestly faster overall, with a paired geometric mean ratio of IFC time to IFC-CUT time of 0.88. At the group level, IFC-CUT is faster in three of the four groups with n = 750, hospital specific priorities, and general couple options, with ratios of 1.03–1.10. IFC is faster in all remaining groups. Hospital tie breaking can affect existence. In the tied n = 750 family with hospital specific priorities, identifier ordering yields 28 variants with stable matchings, compared with 30 under either lottery. In the corresponding master list family with general couple options, the counts are 26 and 27, respectively.
The families ML_10_AS and ML_10 contain identical instance files, so their thirty instances are counted once.
Table 2: Fixed capacity comparison of IFC and IFC-CUT
| n | Hospital priorities | Couple options | Tie breaking | Stable/inf. | Mean total time (s) | IFC-CUT relative to IFC | ||||
|---|---|---|---|---|---|---|---|---|---|---|
| IFC | IFC-CUT | Ratio | Variables | Constraints | Nonzeros | |||||
| 20 | Master list | One hospital | None | 30/0 | 0.006 | 0.009 | 0.77 | +4.2% | +40.3% | +41.5% |
| 20 | Master list | One hospital | ID | 30/0 | 0.011 | 0.017 | 0.73 | +7.2% | +38.6% | +42.7% |
| 20 | Master list | One hospital | Common lottery | 30/0 | 0.013 | 0.016 | 0.80 | +5.3% | +39.5% | +41.6% |
| 20 | Master list | One hospital | Independent | 30/0 | 0.014 | 0.020 | 0.74 | +4.3% | +39.7% | +40.6% |
| 750 | Hospital specific | General | None | 24/6 | 2.118 | 2.016 | 1.05 | -22.9% | +9.9% | -2.2% |
| 750 | Hospital specific | General | ID | 28/2 | 2.181 | 1.983 | 1.10 | -22.9% | +9.9% | -2.2% |
| 750 | Hospital specific | General | Common lottery | 30/0 | 1.934 | 1.952 | 0.98 | -22.8% | +10.0% | -2.0% |
| 750 | Hospital specific | General | Independent | 30/0 | 2.044 | 1.937 | 1.03 | -22.8% | +10.0% | -2.1% |
| 750 | Master list | General | None | 30/0 | 1.417 | 1.727 | 0.84 | -22.7% | +10.1% | -1.9% |
| 750 | Master list | General | ID | 26/4 | 1.240 | 1.286 | 0.97 | -22.5% | +10.2% | -1.7% |
| 750 | Master list | General | Common lottery | 27/3 | 1.444 | 1.504 | 0.97 | -22.7% | +10.1% | -1.9% |
| 750 | Master list | General | Independent | 27/3 | 1.388 | 1.493 | 0.94 | -22.7% | +10.1% | -1.9% |
| 750 | Master list | One hospital | None | 30/0 | 0.264 | 0.306 | 0.86 | -7.3% | +40.9% | +26.3% |
| 1,500 | Hospital specific | General | None | 30/0 | 3.830 | 5.098 | 0.75 | -22.6% | +9.5% | -2.3% |
| 1,500 | Master list | General | None | 28/2 | 3.379 | 3.682 | 0.93 | -22.4% | +9.8% | -2.0% |
| 7,500 | Hospital specific | General | None | 29/1 | 30.081 | 35.997 | 0.84 | -22.4% | +9.3% | -2.4% |
| 7,500 | Master list | General | None | 25/5 | 25.728 | 32.672 | 0.79 | -22.3% | +9.5% | -2.1% |
| All 510 variants | 484/26 | 4.535 | 5.395 | 0.88 | -22.3% | +9.9% | -1.9% | |||
Stable/inf. gives the common existence classification. Ratio is the paired geometric mean of the IFC to IFC-CUT running-time ratio.
We next consider the 26 variants proved infeasible at the original capacities: 18 with n = 750, two with n = 1500, and six with n = 7500. The objective is to minimize the number of transfers under balanced modification and the number of added positions under unit expansion.
We compare Enumeration, Exact, and Cutoff. Enumeration searches capacity vectors in increasing order of the number of added positions or transfers. For unit expansion, it tests for every with , increasing B from one. For balanced modification, it tests for disjoint sets with and for all , increasing T from one. At each candidate vector, IFC is solved with a zero objective to test feasibility. Enumeration proceeds to a larger repair level only after all candidates at the current level are proved infeasible. The first independently verified stable matching therefore certifies the minimum repair.
Exact uses the linearized ICM-BC and ICM-UC models, whereas Cutoff uses ICM-CUT-BC and ICM-CUT-UC. Both use the same valid inequalities. Each method has a total time limit of 3,600 seconds per instance and policy. All runs use one Gurobi thread, Method 2, zero MIP gap, and the default Seed setting. Total time includes preprocessing, model construction, optimization, and verification.
We use penalized average runtime (Hutter et al., 2009), with a penalty factor of two (PAR-2). For each method and policy, this averages over all 26 runs, using the observed total time when the minimum repair is certified and 7,200 seconds otherwise. Table 3 summarizes the 156 runs. One balanced transfer suffices in every variant. Under unit expansion, 25 variants require one added position, and one n = 7500 master list variant requires two.
Table 3: Minimum capacity modification on the 26 fixed capacity infeasible variants
| Policy | Method | Optimal | Unknown | Minimum modification | Total time (s) | |||
|---|---|---|---|---|---|---|---|---|
| 1 | 2 | Mean | Median | PAR-2 | ||||
| ICM-BC | Enumeration | 24 | 2 | 24 | 0 | 193.40 | 6.07 | 732.37 |
| Exact | 25 | 1 | 25 | 0 | 80.08 | 40.57 | 353.92 | |
| Cutoff | 26 | 0 | 26 | 0 | 65.17 | 10.48 | 65.17 | |
| ICM-UC | Enumeration | 24 | 2 | 24 | 0 | 194.64 | 9.75 | 733.51 |
| Exact | 26 | 0 | 25 | 1 | 47.55 | 9.72 | 47.55 | |
| Cutoff | 26 | 0 | 25 | 1 | 35.86 | 5.85 | 35.86 | |
Optimal denotes a verified stable matching together with proof that no smaller modification is feasible.
Cutoff certifies the minimum repair in all 26 variants under both policies. Exact certifies 25 under balanced modification and 26 under unit expansion, while Enumeration certifies 24 under each policy. The ratios of mean PAR-2 time for Exact relative to Cutoff are 5.43 under balanced modification and 1.33 under unit expansion. For Enumeration relative to Cutoff, the corresponding ratios are 11.24 and 20.45. Unlike the fixed capacity comparison, these results favor Cutoff for minimum capacity modification on this benchmark, although it is not faster on every instance.
7.2 Existence and capacity modification across stability conditions
To examine how the stability notion affects existence and capacity modification, we use three types of markets released by Delorme et al. (2021). Each type contains 30 markets, for a total of 90. Each market has 750 doctors, 50 hospitals, and 75 couples. The first type uses hospital specific priorities and general joint couple lists. The second uses a master list and general joint lists. The third also uses a master list, but every acceptable couple option places both partners at the same hospital. Hospital priorities are strict in all three types. In the first two types, ties in couple preferences are broken in source order. The third type already has strict couple preferences.
Using the same markets, we compare existence and computational performance under BIS, KPR, MM, and NV stability. We first compare IFC and IFC-CUT at fixed capacities, examining how their relative performance varies with the stability notion and market type. When nonexistence is proved under a given notion, we compare Enumeration, Exact, and Cutoff in solving the corresponding capacity modification problems. The objectives minimize the number of balanced transfers under ICM-BC and the number of added positions under ICM-UC. We evaluate the methods by their ability to certify these minima and their running times.
All runs use one Gurobi thread, Method 2, zero MIP gap, and default Seed setting. Each method has a time limit of 3,600 seconds per problem. In the first stage, IFC and IFC-CUT maximize matching cardinality for each of the 90 markets under all four stability notions, yielding 720 runs and 360 paired comparisons. All runs end with a proof of optimality or infeasibility. The formulations agree on existence in every comparison and on maximum cardinality whenever a stable matching exists. Table 4 summarizes existence and running times.
Table 4: Fixed capacity existence and running times across stability conditions
| Stability | Hospital priorities | Couple options | Markets | Existence | Mean total time (s) | Ratio | ||
|---|---|---|---|---|---|---|---|---|
| Stable | Infeasible | IFC | IFC-CUT | |||||
| BIS | Hospital specific | General | 30 | 24 | 6 | 2.118 | 2.016 | 1.05 |
| Master list | General | 30 | 30 | 0 | 1.417 | 1.727 | 0.84 | |
| Master list | One hospital | 30 | 30 | 0 | 0.264 | 0.306 | 0.86 | |
| All | 90 | 84 | 6 | 1.266 | 1.349 | 0.91 | ||
| KPR | Hospital specific | General | 30 | 24 | 6 | 2.390 | 2.285 | 1.02 |
| Master list | General | 30 | 30 | 0 | 1.537 | 1.747 | 0.90 | |
| Master list | One hospital | 30 | 30 | 0 | 0.277 | 0.329 | 0.84 | |
| All | 90 | 84 | 6 | 1.401 | 1.454 | 0.91 | ||
| MM | Hospital specific | General | 30 | 24 | 6 | 4.111 | 2.366 | 1.08 |
| Master list | General | 30 | 30 | 0 | 1.583 | 1.862 | 0.86 | |
| Master list | One hospital | 30 | 0 | 30 | 0.257 | 0.312 | 0.83 | |
| All | 90 | 54 | 36 | 1.984 | 1.513 | 0.92 | ||
| NV | Hospital specific | General | 30 | 24 | 6 | 2.428 | 2.299 | 1.03 |
| Master list | General | 30 | 29 | 1 | 1.505 | 1.718 | 0.89 | |
| Master list | One hospital | 30 | 0 | 30 | 0.223 | 0.309 | 0.72 | |
| All | 90 | 53 | 37 | 1.385 | 1.442 | 0.87 | ||
The main difference in existence concerns the 30 master list markets where couples accept only assignments to the same hospital. All 30 admit a stable matching under BIS and KPR, but none does under MM or NV. One master list market with general joint lists is also infeasible under NV, but feasible under the other three notions. The same six markets with hospital specific priorities are infeasible under all four notions. Overall, BIS and KPR each admit a stable matching in 84 markets, compared with 54 under MM and 53 under NV.
Within each market type, the relative ranking of IFC and IFC-CUT is unchanged across the four stability notions. With hospital specific priorities, IFC-CUT is modestly faster, with paired geometric mean ratios of 1.02–1.08. Under a master list, IFC is faster, with ratios of 0.84–0.90 for general joint lists and 0.72–0.86 when couples accept only assignments to the same hospital. Across all 360 comparisons, the paired geometric mean ratio is 0.90, indicating a modest advantage for IFC under this measure.
In the second stage, we consider the 85 market and stability combinations for which both fixed capacity formulations prove infeasibility: six under BIS, six under KPR, 36 under MM, and 37 under NV. For each combination, we minimize the number of transfers under balanced modification and the number of added positions under unit expansion, using Enumeration, Exact, and Cutoff with a limit of 3,600 seconds per method and repair problem. Applying three methods to 85 combinations under two capacity policies gives computational runs.
Exact and Cutoff certify the minimum repair in all 170 problems and obtain identical minimum values. All returned matchings pass the independent stability check. Enumeration certifies 56 minima: all 24 under BIS and KPR, 15 of 72 under MM, and 17 of 74 under NV. The remaining 114 runs reach the time limit without finding a stable matching.

Figure 1: Mean PAR-2 running times for minimum capacity modification under ICM-BC (left) and ICM-UC (right).
For every selected BIS and KPR case, the minimum is one transfer under balanced modification and one added position under unit expansion. Under MM, the corresponding means are 2.56 transfers and 5.17 added positions. Under NV, they are 2.59 and 5.22. For both MM and NV, the largest minima are four transfers and ten added positions. Certifying these larger minima requires Enumeration to exclude all capacity vectors at smaller repair levels.
Figure 1 compares the three methods using mean PAR-2 times. Enumeration has the lowest mean PAR-2 time under BIS and KPR, finding a stable matching after testing at most three capacity vectors under balanced modification and four under unit expansion. Cutoff has the lowest mean PAR-2 time under MM and NV. For MM and NV, respectively, the Exact to Cutoff ratios are approximately 55 and 53 under balanced modification, and 46 and 41 under unit expansion. Given its more consistent computational performance, we adopt Cutoff as the primary formulation for subsequent experiments, all of which use BIS stability.
7.3 Existence and capacity modification across market types
This experiment examines how market structure affects the existence of stable matchings and the minimum capacity modification needed to restore stability. We vary hospital priorities, couple preferences, whether partners may be assigned to the same hospital, the couple proportion, and total capacity.
We generate 1,000 base profiles, each with 100 doctors and ten hospitals. Each doctor independently draws a uniformly random ordered list of six distinct hospitals and finds the remaining four unacceptable. The couple proportion, defined as the share of doctors who belong to a couple, takes target values of 5%, 15%, 25%, 50%, 75%, and 100%. Within each profile, couples are formed from a common sequence of disjoint doctor pairs. Increasing the proportion therefore adds couples without changing existing pairs.
For each couple proportion and replication, we construct eight market types with total capacity Q = 100. These types combine two hospital priority structures (hospital specific priorities or a master list), two couple preference rules (rank sum or random order), and two treatments of assignments to the same hospital (allowed or excluded). The eight types share a capacity vector constructed by giving each hospital one position and allocating the remaining 90 positions independently and uniformly across hospitals.
Each couple’s initial joint options are obtained by filtering the Cartesian product of the partners’ individual lists through a symmetric compatibility matrix. Every hospital is compatible with itself, and each unordered pair of distinct hospitals is independently declared compatible with probability 0.75.
The two preference rules order this same set of joint options. Under rank sum preferences, an option for couple is ranked by increasing , where ranks refer to the partners' individual lists. Equal sums are broken by the smaller value of . Any remaining tie favors the option giving the better individual rank to the partner with the higher independently generated auxiliary score. Under random preferences, each couple instead receives a uniformly random strict ordering of the same options. When assignments to the same hospital are excluded, all options are removed without changing the relative order of the remaining options.
The design is paired. Within each replication, individual preference lists are shared across all six couple proportions. For each proportion, the eight types differ only in the three experimental factors, with couple membership,
Table 5: Existence and minimum capacity modification across the fourteen instance types
| Type | Q | Hospital priorities | Couple preferences | (h, h) | IFC-CUT stable | ICM-CUT-BC Minimum transfers | ICM-CUT-UC Minimum added positions | |||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| T = 1 | T = 2 | T = 3 | T = 4 | T = 5 | Inf. | B = 1 | B = 2 | B = 3 | ||||||
| 1 | 100 | Hospital specific | Random order | No | 5,793 | 207 | 0 | 0 | 0 | 0 | 0 | 207 | 0 | 0 |
| 2 | 100 | Hospital specific | Random order | Yes | 5,817 | 183 | 0 | 0 | 0 | 0 | 0 | 179 | 4 | 0 |
| 3 | 100 | Hospital specific | Rank sum | No | 5,800 | 200 | 0 | 0 | 0 | 0 | 0 | 200 | 0 | 0 |
| 4 | 100 | Hospital specific | Rank sum | Yes | 5,834 | 166 | 0 | 0 | 0 | 0 | 0 | 165 | 1 | 0 |
| 5 | 100 | Master list | Random order | No | 5,152 | 848 | 0 | 0 | 0 | 0 | 0 | 834 | 14 | 0 |
| 6 | 100 | Master list | Random order | Yes | 5,011 | 989 | 0 | 0 | 0 | 0 | 0 | 976 | 13 | 0 |
| 7 | 100 | Master list | Rank sum | No | 5,380 | 620 | 0 | 0 | 0 | 0 | 0 | 610 | 10 | 0 |
| 8 | 100 | Master list | Rank sum | Yes | 5,316 | 684 | 0 | 0 | 0 | 0 | 0 | 672 | 12 | 0 |
| 9 | 90 | Master list | Rank sum | No | 4,902 | 1,051 | 36 | 5 | 3 | 0 | 3 | 1,013 | 85 | 0 |
| 10 | 90 | Master list | Rank sum | Yes | 4,865 | 1,070 | 47 | 10 | 5 | 0 | 3 | 1,000 | 135 | 0 |
| 11 | 95 | Master list | Rank sum | No | 4,708 | 1,182 | 100 | 10 | 0 | 0 | 0 | 1,264 | 28 | 0 |
| 12 | 95 | Master list | Rank sum | Yes | 4,480 | 1,309 | 167 | 24 | 6 | 1 | 13 | 1,484 | 35 | 1 |
| 13 | 99 | Master list | Rank sum | No | 5,198 | 789 | 12 | 1 | 0 | 0 | 0 | 794 | 8 | 0 |
| 14 | 99 | Master list | Rank sum | Yes | 5,104 | 883 | 12 | 1 | 0 | 0 | 0 | 878 | 18 | 0 |
| All types | 73,360 | 10,181 | 374 | 51 | 14 | 1 | 19 | 10,276 | 363 | 1 | ||||
The modification columns contain only instances for which IFC-CUT proves nonexistence. Inf. denotes proved infeasibility within the balanced unit modification region.
compatibility, capacities, and all other inputs held fixed. Types 1–8 in Table 5 therefore contain instances. Types 9–14 extend the master list and rank sum cases to total capacities , retaining both treatments of assignments to the same hospital. Each instance preserves all noncapacity inputs from its corresponding Q = 100 market. Each hospital still receives one initial position, and the remaining positions are allocated using the first Q - 10 draws from the same sequence of 90 hospital draws. Thus for every hospital. The three capacity levels, six couple proportions, two treatments, and 1,000 replications yield another 36,000 instances, bringing the total to 84,000.
We first solve IFC-CUT to maximize matching cardinality at the original capacities. For instances proved infeasible, we solve ICM-CUT-BC and ICM-CUT-UC to minimize the number of balanced transfers and added positions, respectively. Each model has a time limit of 600 seconds.
For the same 10,640 instances, we also allow each hospital to gain or lose up to two positions. Using the model in Section 5.3, we minimize , requiring this sum to be nonnegative but removing the aggregate upper bound of one. This determines whether stability can be restored while preserving total capacity. The Cutoff formulation, solver settings, and stability checks remain unchanged.
All 115,920 runs terminate with a proof of optimality or infeasibility. At the original capacities, IFC-CUT finds a maximum cardinality stable matching in 73,360 of the 84,000 instances and proves nonexistence in the remaining 10,640. Its mean running time is 2.169 seconds. For the 10,640 instances requiring repair, mean running times are 2.073 seconds for ICM-CUT-BC and 1.069 seconds for ICM-CUT-UC. The longest run takes 281.1 seconds.
Across the fourteen market types, the pooled nonexistence rate increases with the target couple proportion, from 2.18% at 5% to 21.61% at 100%. At Q = 100, nonexistence is more frequent under a master list than under hospital specific priorities, at 13.09% and 3.15%, respectively. The differences are smaller for the other two design factors: 9.28% under random couple preferences versus 6.96% under rank sum preferences, and 8.43% when assignments to the same hospital are allowed versus 7.81% when they are excluded.
The capacity comparison is nonmonotone. For the master list markets with rank sum preferences, the numbers of infeasible instances are 2,233, 2,812, 1,698, and 1,304 at , and 100, respectively. Each capacity level contains 12,000 paired instances. In particular, 2,166 instances admit a stable matching at but not at , while 1,587 exhibit the reverse.
Across the eight market types, one balanced transfer repairs all 3,897 instances infeasible at the original capacities. At the lower capacity levels, ICM-CUT-BC repairs 6,724 instances. One transfer suffices in 6,284, while the remaining 440 require two to five transfers. Balanced unit modification is proved infeasible in 19 instances: six at and thirteen at . By contrast, ICM-CUT-UC repairs all 10,640 instances while adding at most one position per hospital. The minimum number of added positions is one in 10,276 instances, two in 363, and three in one. Each of the 19 instances infeasible under balanced modification requires only one added position.
When each hospital may gain or lose up to two positions, the minimum increase in total capacity is zero in all 10,640 instances. Thus, every tested instance can be repaired while preserving total capacity, including the 19 instances infeasible under balanced unit modification.
Table 6: Fixed capacity outcomes and certified minimum capacity modifications in the reconstructed data500 markets
| Method and outcome | Number of couples | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| 12 | 25 | 50 | 75 | 100 | 125 | 150 | 175 | 200 | 225 | 250 | |
| Roth-Peranson | 952 | 897 | 701 | 547 | 395 | 277 | 170 | 83 | 41 | 9 | 3 |
| Best heuristics in B-I-S | 976 | 958 | 911 | 870 | 815 | 759 | 716 | 628 | 414 | 154 | 15 |
| Scarf (int. solution) | 895 | 813 | 649 | 532 | 426 | 356 | 316 | 261 | 202 | 174 | 158 |
| IFC-CUT | 975 | 959 | 911 | 869 | 821 | 781 | 755 | 725 | 695 | 672 | 647 |
| ICM-CUT-BC [T = 1] | 25 | 41 | 89 | 131 | 179 | 219 | 245 | 275 | 305 | 328 | 353 |
| ICM-CUT-UC [B = 1] | 25 | 41 | 89 | 121 | 169 | 211 | 231 | 264 | 294 | 316 | 335 |
| ICM-CUT-UC [B = 2] | 0 | 0 | 0 | 10 | 9 | 8 | 14 | 11 | 11 | 12 | 18 |
| ICM-CUT-UC [B = 3] | 0 | 0 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 0 | 0 |
Values from Table II of Biró et al. (2011); the Roth-Peranson variant used a time limit of 5 seconds.
Best single heuristic variant in each column of Table VIII of Biró et al. (2011); each variant used a time limit of 50 seconds.
Integral Scarf solutions in Table 1 of Biró et al. (2016).
The four capacity modification rows contain only markets for which IFC-CUT proves nonexistence.
7.4 Existence and capacity modification across methods
We next examine how the number of couples affects stable matching existence in larger markets and determine the minimum capacity modification required when stability fails. We use the archived data500 collection of Biró et al. (2011). Each market contains 500 doctors, 50 hospitals, and 500 positions. Every doctor lists six acceptable hospitals, and distinct doctor scores induce a common master list. The collection contains 1,000 instances for each of 0, 12, 25, 50, 75, 100, 125, 150, 175, 200, 225, and 250 couples, giving 12,000 markets. The authors generated 1,000 base markets with randomly allocated hospital capacities and progressively paired more doctors into couples. We retain the archived individual preferences, capacity vectors, and couple identities.
The archived files do not contain couples' joint preferences. We construct each couple's joint options from the Cartesian product of its members' individual lists, retaining a hospital pair only when its entry in the shared compatibility matrix is one. We order the retained options using the rank sum rule in Section 7.3. The final tie breaking uses the archived doctor scores. The main experiment uses a time limit of 600 seconds per model.
Table 6 reports our fixed capacity existence results and certified minimum repairs, alongside the published counts of markets in which a stable matching was found. The published counts provide context rather than a direct comparison, as the computational procedures and time limits also differ.
At the original capacities, IFC-CUT finds a maximum cardinality stable matching in 9,810 markets and proves nonexistence in the remaining 2,190. All markets without couples admit a stable matching. The nonexistence rate rises from 2.5% with 12 couples to 35.3% with 250 couples. Both capacity policies restore stability in all 2,190 markets. The minimum balanced repair is one transfer in every case. Under unit expansion, the minimum number of added positions is one in 2,096 markets, two in 93, and three in one.
Mean IFC-CUT time rises from 0.14 seconds without couples to 13.57 seconds with 250 couples. Across the 2,190 repair markets, mean PAR-2 times are 17.87 seconds for ICM-CUT-BC and 4.88 seconds for ICM-CUT-UC, giving a BC to UC ratio of 3.66. The UC model has a lower PAR-2 time in 2,172 of the 2,190 paired comparisons.
7.5 Matching cardinality with additional positions
The preceding experiment studies the minimum capacity modification needed to restore stability. We now examine how a bounded expansion budget can increase the maximum number of matched doctors in markets that already admit a stable matching. For market with initial capacity vector , define
The cumulative increase in matching cardinality is , and the marginal increase is for .
For 12 and 75 couples, the published heuristic counts are 976 and 870, compared with 975 and 869 in our reconstruction. These small differences may reflect the construction of couples' joint preferences, which are not recorded in the archived files. We use the rank sum rule described in Biró et al. (2011), whereas an accompanying MATLAB script orders hospital pairs primarily by the larger of the partners' individual ranks. These rules can produce different joint rankings and thus change whether a stable matching exists.
Three ICM-CUT-BC runs and one ICM-CUT-UC run, all with 250 couples, did not prove optimality within 600 seconds. Increasing the limit to 3,600 seconds with all other settings unchanged certified T = 1 for the three BC cases and B = 2 for the UC case. All timing statistics use the original 600-second runs.

Permitted expansion budget B
Permitted expansion budget B
Figure 2: Certified matching gains under unit capacity expansion in the 9,810 markets that admit a stable matching at the original capacities.
We retain the 9,810 markets that admit a stable matching at their original capacities, as established in Section 7.4. These markets cover all twelve couple count groups. We reuse the exact values at B = 0 and solve ICM-CUT-UC for , giving 98,100 new optimization runs. Each run has a time limit of 600 seconds.
The solver proves optimality in 97,999 runs, while 101 reach the time limit. We tighten the bounds using the fact that maximum matching cardinality cannot decrease as the budget increases. When all doctors belong to couples, we also use the fact that the number of matched doctors must be even. This certifies eight additional optima, leaving 93 values of known only within certified bounds. Mean and median running times are 7.61 and 0.60 seconds.
Figure 2 reports mean cumulative increases for four couple count groups and the full cohort in panel (a), and the pooled mean marginal increase in panel (b). The pooled means include all 9,810 markets across the twelve groups. Curves and bars show interval midpoints, while bands and error bars indicate certified bounds. The dashed lines mark and , respectively, with B denoting the permitted budget rather than actual additions.
The pooled mean marginal increase declines from 1.881–1.882 doctors for the first budget unit to 0.711–0.719 for the tenth. At B = 10, the mean cumulative increase reaches 11.342–11.348 doctors. Already at B = 1, 63.9% of markets gain more than one matched doctor. At B = 10, the mean cumulative increase is 9.031 doctors in markets without couples and 14.096–14.182 in markets with 250 couples.
Matching cardinality can increase by more than B because expansion may support a different stable matching that also fills previously unused positions at other hospitals. The results show diminishing average marginal benefits over the tested budget range. Choosing an optimal expansion budget requires weighing these benefits against capacity costs, which are not specified in this experiment.
7.6 Scalability of the Exact and Cutoff formulations
This experiment compares the scalability of Exact and Cutoff for fixed capacity optimization and, when necessary, minimum capacity repair. Balanced modification and unit expansion are evaluated separately.
We independently generate fifty markets for each size , giving 500 markets in total. Each market contains doctors, hospitals, and randomly formed couples, corresponding to a target share of 5% of doctors in couples. Each doctor independently draws a uniformly random ordered list of ten distinct hospitals. A shared symmetric compatibility matrix filters the Cartesian product of each couple's individual lists. Each draw makes an unordered pair of distinct hospitals compatible independently with probability 0.75, while every hospital is compatible with itself. The retained options follow the rank sum rule and tie breaking described in Section 7.3.
At each size, 25 markets use independently generated hospital priorities and 25 use a common master list. Within each group, twenty markets have total capacity and five have . Each hospital first receives one position. The remaining positions are allocated independently and uniformly across hospitals.
For each formulation, the fixed capacity model maximizes matching cardinality. Repair is attempted only if that model proves infeasibility. BC minimizes the number of transfers, and UC minimizes the number of added positions. Neither repair model uses matching cardinality as a secondary objective. Each formulation and capacity policy receives 600 seconds per market for the fixed capacity stage and any required repair. BC and UC each receive the time remaining after their formulation's fixed capacity stage, independently of the time used by the other repair model. A procedure is counted as complete if it certifies a maximum cardinality stable matching at the original capacities or, after proving infeasibility there, certifies a minimum repair or proves that no admissible repair exists.

Figure 3: Percentage of markets for which Exact and Cutoff complete fixed capacity optimization and any required repair within a shared 600-second limit, under balanced modification (left) and unit expansion (right).
Figure 3 shows that all four procedures achieve a completion rate of 100% for . At , Cutoff completes 92% of cases under balanced modification and 96% under unit expansion, compared with 50% under either policy for Exact. Across all 500 markets, the corresponding completion rates are 93.4% and 95.4% for Cutoff, and 71.4% and 72.2% for Exact.
The advantage of Cutoff arises primarily in the fixed capacity stage. It certifies maximum cardinality stable matchings in 458 markets and proves infeasibility in the remaining 42. Exact certifies maximum cardinality in 345 markets and proves infeasibility in eighteen, leaving 137 unresolved.
Among the 42 markets entering repair under Cutoff, minimum repairs are certified in nine under BC and nineteen under UC. For Exact, the corresponding counts are twelve and sixteen among eighteen markets. All other repair runs reach the time limit. Every certified minimum balanced repair uses one transfer, while the certified minimum expansion budgets are one or two. These repair results are not directly comparable because the formulations enter this stage on different market sets and with different remaining time limits. The completion rates therefore compare the complete solution procedures.
8 Conclusion
This paper shows how limited changes in hospital capacities can restore stability in markets with couples. For arbitrary strict preferences in our model, which excludes partially matched couples, a BIS-stable matching always exists when each hospital can gain or lose at most two positions and total capacity is preserved or increases by one. This net capacity bound is tight and allows additions at some hospitals to be offset by reductions elsewhere. Under sub-responsive and sub-complete couple preferences, reductions can be avoided: at most one additional position per hospital and no more positions added in total than there are couples suffice, with a tight aggregate bound. Balanced unit modification, however, can fail even within this restricted preference domain.
The equivalent Exact and Cutoff formulations allow the organizer to test whether an admissible capacity modification restores stability and to minimize its size. Their relative performance depends on the task. Exact is modestly faster in the fixed capacity variants derived from the archive, whereas Cutoff is more effective in the paired minimum repair experiments. Cutoff also certifies more outcomes in the scalability experiment with up to 30,000 doctors and 600 seconds for the fixed capacity and repair stages together. Much of this advantage arises before capacity modification is attempted, and solving the minimum repair problem remains difficult at larger scales.
The capacity experiments suggest that small modifications are often sufficient in the tested markets. Among the 96,000 synthetic and reconstructed markets, all 6,087 fixed capacity failures with initial total capacity equal to the number of doctors are repaired by a single balanced transfer. This regularity suggests considering a small reallocation before expansion in comparable markets, but provides no general existence guarantee. Expansion can also increase maximum matching cardinality in initially stable markets, although average marginal improvements decline over the tested budgets. Because the experiments do not model adjustment costs, they do not determine an economically optimal policy or expansion budget.
It remains open whether allowing each hospital to gain or lose at most one position guarantees a BIS-stable matching under arbitrary strict preferences in our model, without an aggregate capacity constraint. Whether expansion by at most one position per hospital suffices is also open. Further directions include identifying conditions that guarantee balanced modification and developing efficient constructions for the tight net capacity bound. Incorporating heterogeneous modification costs and uncertainty about preferences would connect these existence and optimization results more closely to capacity planning in practice.
Acknowledgements
Zexiao Wu and Genjiu Xu acknowledge support from the National Key R&D Program of China (Grant No. 2021YFA1000402), the National Natural Science Foundation of China (Grant No. 72571215), and the Guangdong Basic and Applied Basic Research Foundation (Grant No. 2024A1515011241).
Appendix A. Alternative stability conditions
A.1. Definitions and relationships
KPR-stability, MM-stability, and NV retain S1 and S2 from Definition 3.1; only the condition in S3 changes. Let be a feasible matching and consider a couple and an acceptable option , where the couple is unmatched or strictly prefers to . For a set of doctors , let denote the doctors in who are acceptable to and have the highest priority at , up to doctors.
KPR-stability. Both members must be retained when the hospital chooses from its incumbents and the two applicants:
MM-stability. Any proposing member already assigned to h retains that position. Each remaining member must be accommodated in a distinct position that is either vacant or occupied by a doctor outside whom that member outranks.
NV-stability. The hospital must select each member when that member is considered separately:
Unlike MM, the two individual acceptance conditions may rely on the same vacant position or the same displaced doctor. Under strict hospital priorities, the condition in Nguyen and Vohra (2018, Definition 2) coincides with the KPR condition. Nguyen and Vohra (2018, Online Appendix A.4) further show that the matching constructed for their Theorem 1 satisfies the stronger requirement that the hospital would select each member when that member is considered separately alongside its current assignees. We refer to this requirement as NV-stability.
For a fixed instance, let be the set of X-stable matchings. Then
The BIS, MM, and KPR relationships are established in Delorme et al. (2021, Section 3.2). Figure 4 and the examples below illustrate the relationships among all four stability notions.

Figure 4: Relationships among the four stability concepts.
Consider one hospital with . In all four examples, are single doctors, and and are couples. The singles find only acceptable, and each couple lists only . Table A.1 gives and the hospital's priority order.
Table A.1: Four examples for Figure 4.
| Example | Hospital priority | KPR | BIS | MM | NV | |
|---|---|---|---|---|---|---|
| A.1 | ✓ | ✓ | ✕ | ✕ | ||
| A.2 | ✓ | ✕ | ✓ | ✕ | ||
| A.3 | ✓ | ✓ | ✓ | ✕ | ||
| A.4 | ✓ | ✕ | ✕ | ✕ |
A.2. Exact and Cutoff formulations
Only the S3 constraints change across stability notions. For every and , relabel the members so that . For MM, let . This priority interval contains and excludes , so it is nonempty. Replace the S3 constraint by the appropriate constraint below:
At fixed capacities, the Exact formulations for KPR, MM, and NV are obtained from IFC (11) by replacing (10) with (30), (31), or (32), respectively. All other constraints and the objective are unchanged. The KPR and MM constraints are the strict preference specializations of constraints (17) and (20), respectively, in Delorme et al. (2021, Section 4). Proposition A.1 proves the exactness of the NV constraint.
Directly replacing by in the preceding constraints creates products of and the couple preference prefix. Using , the bounded linearization in Section 5.2 gives
At bounded variable capacities, the Exact formulations for KPR, MM, and NV are obtained from the linearized ICM by replacing (18) with (33), (34), or (35), respectively. All other constraints and variable domains are unchanged.
For MM and NV, consider every option , relabel its members so that , and impose, respectively,
All three Cutoff IPs retain (1)-(4), (9), (13), (22)-(26), and the prefix and tail recursions in Section 6. KPR additionally uses (27); MM uses (36); and NV uses (37).
A.3. Proofs for NV and Cutoff
Proposition A.1. Replacing (10) in IFC (11) by (32) yields feasible integer solutions that induce exactly the NV-stable matchings under . Under , replacing (18) by (35) in the linearized formulation obtained from
ICM (14) yields feasible integer solutions that induce exactly the pairs in which M is NV-stable under . Imposing (19), (20), or (21) restricts this correspondence to the capacity vectors permitted by the selected policy.
Proof. The S1 and S2 conditions are unchanged under NV. They are excluded by (6)–(9) under q, and by (15)–(17) together with (9) under . It remains to consider an option that assigns both members of a couple to the same hospital.
Fix and , and relabel the members as so that . Strict hospital priorities give, for either member ,
The subtraction of makes the equality valid also when . Hospital selects from exactly when this count is smaller than . Since , the set on the right for is contained in that for . Thus selects both members when each is considered separately exactly when .
At an integer solution, is zero exactly when couple is unmatched or receives an option worse than . Hence is an NV block exactly when this prefix sum is zero and the preceding strict inequality holds. Excluding the block is therefore equivalent to
Setting gives (32).
Under , the displayed inequality is equivalent to (35) at every integer solution. If the prefix sum is zero, the two inequalities coincide. If it is one, their left-hand sides are zero and , respectively, while the right-hand side is nonnegative; both are therefore redundant. The case is included, since the hospital then selects neither member.
Applying this argument to every excludes exactly the NV S3 blocks. Together with the S1 and S2 constraints identified above, this proves both statements.
Proposition A.2. For each of KPR-stability, MM-stability, and NV, the Exact and Cutoff formulations in Appendix A.2 admit exactly the same matchings and capacity vectors.
Proof. The S1 and S2 constraints do not depend on the choice among KPR, MM, and NV. At fixed capacities they are (6)–(9); with variable capacities they are (15)–(17) together with (9). The corresponding Cutoff constraints are (22)–(26), together with the prefix recursions and (9). The S1 and S2 arguments in the proof of Theorem 6.1 show that these constraints exclude exactly the same blocks. It remains to compare the S3 constraints.
Fix the binary assignment variables and an admissible integer capacity vector . Consider , and relabel the members so that . For this proof, write
The prefix and tail recursions imply
and
Here , by strict hospital priorities. Moreover, exactly when the couple is unmatched or receives an option worse than . Using the preceding identities, the Exact S3 constraints for KPR, MM, and NV are equivalent, respectively, to
The corresponding Cutoff constraints are
Suppose first that A = 0. The KPR inequalities coincide, as do the NV inequalities. For MM, the two inequalities reduce to
If , both hold because . Suppose . For either or , the preceding bounds give and . Since and are integers,
Indeed, conditional on , the difference bound gives ; if , the inequality also holds. Conversely, and make the left side at least . Applying this equivalence with and proves that the Exact and Cutoff MM constraints impose the same condition. This condition is the negation of the MM requirement that provide one admissible position for and a second, distinct admissible position for .
Now suppose that . All six inequalities are automatic. Because ,
This proves the KPR Cutoff inequality, and the Exact inequality is weaker. If , then
which proves the MM Cutoff inequality; the Exact MM inequality follows from . If , then . Finally, both NV inequalities reduce to .
Thus the Exact and Cutoff S3 constraints agree for every same hospital option. For fixed capacities, take . For any bounded variable capacity policy, the argument applies to every admissible . Together with the S1 and S2 equivalence and the identical assignment and capacity constraints, this proves that the two formulations admit the same matchings and capacity vectors.
Appendix B. Proofs
B.1. Proof of Theorem 4.2
We modify the iterative rounding procedure of Nguyen and Vohra (2018). We retain their dominating fractional assignment and constraint deletion rule, but keep every active hospital constraint as an equality and change the treatment of slack assignment constraints when the aggregate capacity constraint is removed. The modification uses our assumption that a couple is either assigned jointly or left entirely unmatched: every acceptable couple assignment uses exactly two hospital positions. We first recall the fractional construction and then prove that the modified iteration terminates with an increase in total capacity of at most one.
The fractional construction. Treat each single doctor and each couple as one agent and write . For , let be its set of acceptable assignment columns and set . Let if and zero otherwise, so is the assignment constraint for . For each and , let be the number of doctors assigned to by , and write . The fractional assignment polytope is
Order the columns in each agent row by that agent's reported preferences. For a column incident to hospital , let be the doctor assigned to by ; if assigns both members of a couple to , let be the lower-priority member at . Following Nguyen and Vohra (2018, Online Appendix A3), hospital orders its incident columns by according to , breaking a tie between columns of the same couple by that couple's preference. This is a technical row order for the domination argument, not a change in the hospital's priority over doctors.
With these row orders, Scarf’s lemma (Scarf, 1967) gives a dominating extreme point of . Let . The dummy doctor construction of Nguyen and Vohra (2018, Online Appendix B2) adds single doctors who find only the hospitals in acceptable and extends to a dominating vector that fills every hospital. Taking a vertex of the minimal face of the augmented polytope containing this vector preserves its support and all tight rows. We may therefore denote this vertex by and take it to be extreme, dominating, and such that for every hospital. From this point onward, the agent set and assignment columns include the dummy single doctors.
Lemma 3 and Online Appendix B1 of Nguyen and Vohra (2018) give the conditions that preserve domination during rounding. It suffices to obtain an integral vector that respects the individual assignment constraints and satisfies
With , these conditions make dominating in the augmented market. We verify BIS-stability directly below. Our task is to preserve these conditions while obtaining the stronger aggregate bound.
Set for a single doctor, including a dummy doctor, and for a couple, and define for . Every single column uses one hospital position. Because partial couple assignments are excluded, every couple column uses two, including a column that assigns both members to the same hospital. Thus the total capacity row has the identity
This identity is the restriction on which the improvement relies; it need not hold when a couple may accept an assignment of only one member. Let . Since every such hospital is full at , .
The modified iteration. Start from . Once a variable becomes zero or one, keep it fixed. Once an agent constraint becomes tight, retain it as an equality. Let initially, and add to whenever at a later extreme point. Thus is retained for , while the other agent constraints remain inequalities unless they are replaced below. This rule applies only to individual constraints still present in the system; a constraint replaced by the grouped row below is not reintroduced separately.
Let initially. Retain for until that hospital constraint is removed, and retain until the aggregate constraint is removed. After any removal or replacement, maximize over the resulting system and choose an extreme maximizer. The preceding point remains feasible after every change. Fix any newly integral variables and retain any newly tight agent constraint as an equality. Consequently, cannot decrease. Since , every current point satisfies while the aggregate constraint remains.
For a current point , let and . If is integral, stop. If some satisfies , remove its capacity equality.
Suppose no hospital constraint can be removed and the aggregate constraint is still present. Let . These agent constraints are slack. The token count in Nguyen and Vohra (2018, Online Appendix B3, Case 1), which remains valid when the active hospital constraints are kept as equalities, gives . The count uses only that the retained hospital rows are tight and that none satisfies , both of which hold here. Put for and .
If , remove the aggregate constraint. If , remove it and retain for . If and , replace these individual constraints by and remove the aggregate constraint. The current point satisfies the new constraint because . Moreover, nonnegativity gives for every and every feasible vector , so the replacement preserves individual assignment feasibility. Retain for the rest of the procedure. Unlike deletion alone, this replacement may restrict the feasible region, but the preceding point remains feasible. This is all that is needed for to remain nondecreasing.
Termination. The only new issue is termination after the grouped row has been introduced. Before the aggregate constraint is removed, progress follows from the Case 1 token count above. After its removal, the argument of Nguyen and Vohra (2018, Online Appendix B3, Case 2) applies if no constraint was introduced. It also applies when was introduced but , where and a subscript denotes restriction to the columns in . Indeed, and all entries are nonnegative, so implies for every . After restriction to and omission of these zero rows, the remaining fractional system is the one considered in their Case 2.
It remains to consider . Suppose, for a contradiction, that the current point is fractional and that no hospital constraint can be removed. Then for every . The rank argument in Nguyen and Vohra (2018, Online Appendix B3) gives a set of linearly independent tight rows after restriction to . These are active hospital rows, tight agent rows, and, if it is tight, the row .
Give each variable in J one token and use the distribution in Nguyen and Vohra (2018, Online Appendix B3). A couple column gives token to each hospital row h and the remaining 1/2 token to its couple row. A single column gives 1/4 token to its hospital row and 3/4 token to its single doctor row. For a column belonging to an agent in F, send the share intended for its agent row to G instead. Each fractional column still distributes exactly one token.
Every active hospital row receives at least one token because . Every nonzero tight couple row receives at least one token, since a tight agent row containing a fractional variable contains at least two such variables. A nonzero tight single row receives at least 3/2 tokens. If is tight, then . The condition rules out a variable fixed at one in this row, since nonnegativity would then leave no positive fractional variable in . At least two fractional variables are therefore needed to make the entries in the row sum to one. Thus also receives at least one token.
If is slack, the rows in receive at least tokens, while sends an additional positive amount to . This exceeds the total supply of tokens. Suppose instead that is tight. All tokens must then be sent to rows in , every such row must receive exactly one, and every nonzero tight row must belong to . No token can be sent to a slack row or to a hospital row that has been removed.
A fractional single column is impossible. If it does not belong to , its own row either is slack and receives a token outside , or is tight and receives at least tokens. If it belongs to , it gives token to ; another fractional column is needed for , so receives at least tokens. Hence every column in is a couple column.
Token exhaustion also implies that every hospital row used by such a column is active and that its agent incidence is represented either by or by a tight couple row. Let . Since every couple column uses two hospital positions, equality holds column by column in
Every nonzero row in this equality is tight and belongs to . The equality is therefore a nontrivial linear dependence among the rows of , contradicting their independence. Some hospital constraint must consequently satisfy and can be removed.
Every fractional iteration therefore removes a hospital constraint or, once, the aggregate constraint. Each hospital constraint is removed at most once, so the procedure terminates at an integral vector .
The aggregate bound. If the procedure terminates while the aggregate constraint remains, then . Otherwise, let be the point at which that constraint is removed. With , , and defined at that point, set and . The contribution of every agent outside is fixed from this point onward. An agent in continues to contribute . An agent outside has no fractional variable and has a slack constraint, so all of its variables are fixed at zero. Thus is an integer and remains unchanged. Since , . Hence is an integer. If , then for every , so is a positive integer.
Suppose . Since and each , contains exactly two agents. If both are couples, then , so , while their final contribution is at most four. If one is a couple and one is a single doctor, then , so , while their final contribution is at most three. Two single doctors would give , contradicting the integrality of . Thus the contribution of can increase by at most one.
If and , the combined constraint remains in the system. Since , its final contribution satisfies . The contribution of when the aggregate constraint is removed is the positive integer , so , and it can again increase by at most one. The case gives no increase. Therefore .
For the reverse inequality, the point has objective value K and remains feasible after the aggregate constraint is removed or replaced. At every subsequent iteration, ax is maximized over a system containing the preceding point, so it never decreases. Consequently,
Capacity changes and stability. Set in the augmented market. The hospital deletion estimate is the one in the proof of Nguyen and Vohra (2018, Theorem 1, p. 3167). If the row for is never removed, then . If it is removed at a point , then , , and . The two integer deviations from have sum at most three. If the row contains a fractional variable, both are positive and hence at most two; otherwise both are zero. Thus for every .
Every variable that is zero at remains zero, and every agent constraint that is tight at remains tight. Individual assignment feasibility also holds. The individual constraints for remain in the system when ; when they are replaced, nonnegativity gives for every . The support and tightness argument in Nguyen and Vohra (2018, Online Appendix B1) therefore shows that dominates every assignment column in the augmented market under the capacity vector .
Remove the dummy doctors from , but keep unchanged, and let be the resulting matching of the original doctors. No original column was initially dominated at a hospital in ; its domination certificate was instead at its original agent row or at a hospital outside . The support condition prevents a dummy doctor from being assigned outside , so all such certificates survive the removal of the dummy doctors, as in Nguyen and Vohra (2018, Online Appendix B2). Hence every original assignment column remains dominated under and .
We now verify BIS-stability directly. Suppose that admits a blocking coalition and let be its assignment column. The proposing single doctor or couple strictly prefers to its assignment under , so its agent row does not dominate . For an S1 block, the hospital row is slack if the target hospital is undersubscribed. Otherwise, the proposing doctor has higher priority than some incumbent . The selected column containing is represented at that hospital by , or by a doctor with still lower priority when both members of an incumbent couple are assigned there. It is therefore ranked below , so the hospital row does not dominate .
For an S2 block, apply the same argument at each target hospital. If a proposed member is already assigned to that hospital, the selected column and either have the same representative doctor, in which case the couple's strict preference ranks first, or the selected column assigns both members there and has a weakly lower representative. Thus neither target hospital row dominates .
Finally, consider an S3 block by a couple at hospital . In cases (S3)(i) and (S3)(ii), hospital is undersubscribed, so its row is slack. In case (S3)(iii), the blocking condition provides an incumbent below both and in 's priority order. The selected column containing is represented at by , or by a still lower-priority doctor, whereas is represented by the lower-priority member of . Consequently, is ranked above that selected column and the hospital row does not dominate it. In every case, is dominated at none of its incident rows, contradicting its surviving domination certificate. Therefore is BIS-stable under .
Therefore, (38) and (39) give . Together with the individual capacity bound, this proves the theorem.
B.2. Proof of Proposition 4.3
Let , , and let the doctors comprise four couples , , , , and two singles . The preference lists and the common hospital priority order are as follows.
| Agent(s) | Preference list or priority order |
|---|---|
| Common hospital priority order: | |
All unlisted pairs are unacceptable. Thus every acceptable pair assigns the members of a couple to distinct hospitals.
Write for the th listed option of couple . A hospital rejects doctor if it is full and every current assignee precedes in the master list. Thus, when a couple does not receive a preferred option, at least one of the two proposed doctors must be rejected at the corresponding hospital. As every acceptable pair uses distinct hospitals, an S3 deviation cannot occur.
Both singles must be assigned in any matching without an S1 block. If were unmatched, every hospital would have to be full with doctors preceding , which would require nine positions to be occupied by only five such doctors. The corresponding argument for would require nine positions to be occupied by the seven doctors preceding .
Assume, for a contradiction, that has neither an S1 nor an S2 block. We now apply the rejection condition successively to the preferred options of the couples. At each step, an option that is not assigned must be rejected at one of its two hospitals. The resulting cases are as follows.
Suppose first that . At (1, 3, 5), the rejection conditions force to , to , to , to , and to , leaving unmatched. Couple then blocks through : displaces at , and fills a vacant position at . At , the forced assignment sends to , to , to , to , and to , leaving unmatched. Couple blocks through , since fills a vacancy at and displaces at . At , the rejection conditions force , to , to , to , and to , leaving unmatched. Again blocks through : displaces at , and fills a vacancy at .
Let . At , the no-block conditions force to , to , to , to , and to , leaving unmatched. Couple blocks through : displaces at , and is accepted at a vacant position of . At , the forced assignment sends to , to , to , to , and to , leaving unmatched. Couple then blocks through , with displacing at and filling a vacancy at . At , the assignment is , to , to , to , and to , leaving unmatched. Couple blocks through , as displaces at and fills a vacancy at . At , the same assignment is forced, but now fills a vacancy at and displaces at . Thus is again an S2 block for .
Let . At , the assignment is to , to , to , to , and to , leaving unmatched. Couple blocks through , because displaces at and fills a vacancy at . At , the corresponding assignment has at , with all other assignments unchanged. The same option of blocks: displaces at , while is accepted at . At , the rejection conditions force to , to , to , to , and to , leaving unmatched. Couple blocks through , with displacing at and filling a vacancy at . At , the same assignment is forced; now displaces at , so still blocks. At , the forced assignment sends to , to , to , to , and to , leaving unmatched. Couple blocks through : fills a vacancy at , and displaces at .
Let . At , the rejection conditions force , to , to , to , and to , leaving unmatched. Couple blocks through , because fills a vacancy at and displaces at . At , the forced assignment sends to , to , to , to , and to , leaving unmatched. Couple blocks through : displaces at , while fills a vacancy at . At , the same assignment is forced; here fills a vacancy at and displaces at , so blocks. At , the assignment is , to , to , to , and to , leaving unmatched. Couple blocks through , since fills a vacancy at and displaces at .
Finally, let . At , the assignment is , to , to , to , and to , leaving unmatched. Couple blocks through : displaces at , and fills a vacancy at . At , the forced assignment sends , to , to , to , and to , leaving unmatched. Couple blocks through , with filling a vacancy at and displacing at . At , the forced assignment sends , to , to , to , and to , leaving unmatched. Couple blocks through , because fills a vacancy at and displaces at .
Every capacity vector satisfying the stated bounds appears in one of these five cases. In every case, the presumed matching has an S2 block, a contradiction. Hence no admissible capacity vector admits a stable matching.
B.3. Proof of Theorem 4.5
We use the construction in the proof of Csáji et al. (2026, Theorem 3.1). Under the sub-completeness assumed here, our requirement that both members be assigned or both remain unmatched places every couple. The reduction and rounding rule are unchanged. We show that their output never reduces a hospital capacity, bound its total expansion, and verify BIS stability.
The inherited construction. We recall the part of the reduction needed for our analysis. In the auxiliary Stable Fixtures instance , each doctor has capacity one and each hospital has capacity . Add an edge for every acceptable doctor–hospital pair . Hospitals and single doctors retain their respective preference orders. For each couple , use the individual orders supplied in the input to establish sub-responsiveness.
The connected couple gadget of Csáji et al. (2026) adds four vertices , , , , each of capacity one, and the six edges
Doctor ranks first, the hospitals in according to next, and last. Doctor similarly ranks first, her hospitals according to next, and last. The connector preferences are
Let be the stable half-integral matching used in their construction, obtained by the Stable Fixtures procedure based on Tan (1991); Fleiner (2010). Thus , vertex capacities are respected, and every edge with
is dominated at an endpoint. More precisely, write for the edges incident to a vertex of capacity . An edge is dominated at if
In particular, v is saturated and no edge below e has positive weight there.
We also recall the orientation argument in Csáji et al. (2026, Observation 3.2). Call an edge with value a half-edge and orient it towards an endpoint where it is dominated. At most one half-edge enters any vertex: domination of a better incoming edge would exclude positive weight on a worse one. A vertex with an incoming half-edge is saturated and, because its capacity is integral, has at least one further half-edge. This further edge must leave the vertex. The outdegree is therefore at least the indegree at every vertex. Equality of their global sums gives equality at each vertex. Consequently, every vertex incident to a half-edge is saturated and has exactly one incoming and one outgoing half-edge. The half-edges form vertex-disjoint cycles.
The original rounding rule assigns each doctor to her most preferred hospital in , leaving her unmatched if this set is empty. Denote the assignment by , and retain the original capacity rule
The feasibility argument in Csáji et al. (2026, Claim 3.3) ensures that this rounding respects connected couples. We recall why. If a vertex of capacity one ranks another such vertex first, the latter is saturated: their edge either has value one or must be dominated at the latter endpoint. Each vertex of a connected couple gadget is the first choice of another gadget vertex, so all six are saturated. Suppose now that has a positive hospital edge but does not, and put . The saturation equations give
Hence , leaving no capacity at for a positive hospital edge, a contradiction. The other case is symmetric. Thus both members are assigned or neither is assigned. Sub-completeness makes the assigned hospital pair acceptable.
Capacity bounds. We now strengthen the capacity guarantee for this same output. Every doctor–hospital edge of value one is retained by the rounding rule. An unsaturated hospital has no half-edge and retains its original capacity, so its assignment is feasible. A saturated hospital with no half-edge receives exactly doctors and also has unchanged capacity.
Consider a hospital incident to half-edges. It is saturated and has exactly two such edges and edges of value one. Let be the half-edge entering . The other half-edge at enters and is dominated there. If it joins to another hospital , domination implies , so the rounding selects . If it joins to a connector, it cannot be the first choice connector: an edge of value one half cannot be dominated at a vertex of capacity one that ranks it first. It is therefore the last choice connector, and is the only hospital with positive weight at . The rounding again selects . Thus retains at least one of its two fractional doctors, in addition to all doctors on edges of value one. It follows that . Since , this proves for every hospital. In particular, the capacity rule in the original construction makes no reductions on the instances considered here.
To bound the total expansion, let and count doctor vertices incident to exactly one and exactly two hospital half-edges, respectively. The rounding retains hospital half-edges. Each hospital incident to half-edges has exactly two of them, so there are such hospitals. Their total load on half-edges is , whereas the rounding retains corresponding assignments. All doctor–hospital edges of value one are unchanged. Therefore,
A single doctor is adjacent only to hospitals. If incident to a half-edge, she has two hospital half-edges and cannot contribute to . Hence , giving the required bound .
BIS stability. We make explicit why the same output is BIS-stable. For any acceptable alternative preferred by a single doctor or a couple, we show that one proposed doctor i and her target hospital r satisfy and that ir is dominated at r.
For a single doctor, a hospital preferred to has by the rounding rule. All positive edges at lead to less preferred hospitals, so is not dominated at and must be dominated at .
For a matched couple that prefers to , at least one member strictly prefers her proposed hospital to her current hospital. Otherwise, sub-completeness permits changing the two coordinates one at a time, and sub-responsiveness gives , a contradiction. For such a member and target , the rounding rule again gives , with every positive hospital edge at below . The only connector ranked above is the first choice connector. Its weight is at most , because has a positive hospital edge. Thus is not dominated at , so dominates that edge.
For an unmatched couple , neither member has a positive hospital edge. If both proposed edges and were dominated at their doctor endpoints, then , since only the first choice connector is ranked above an acceptable hospital. These two edges force both edges incident to to have value zero. Then is dominated at neither endpoint: prefers to , and is unsaturated. This contradicts stability of . Hence at least one proposed edge is dominated at its hospital endpoint.
In every case, domination of ir at r makes r saturated in x, so . Every assignee in has a positive edge to r. Because and hospital priorities are strict, all these assignees rank above i. Thus r is full, i is not already assigned there, and no incumbent can be displaced by i. This excludes S1 and S2. For a proposed pair , the same rejection also excludes S3: its vacancy cases cannot hold, and every remaining case requires both proposed doctors to rank above at least one incumbent. Consequently, M is BIS-stable under .
Running time. The linear running time is inherited from the construction in Csáji et al. (2026, Theorem 3.1). The auxiliary graph has vertices and edges, and its ordered adjacency lists have size . The stable half-integral matching and the rounding can therefore be computed in time. The orientation and counting arguments above require at most a further linear scan and do not change the algorithm. It uses the supplied individual orders, without constructing or scanning the potentially quadratic lists of joint options. As in the theorem's input convention, checking that an explicitly supplied joint ranking satisfies the two preference restrictions is not part of the construction. Every expanded hospital is full by the definition of .
B.4. Proof of Proposition 4.6
The universal upper bound follows directly from Theorem 4.5. It remains to show that this bound is attained. For each , create three hospitals with capacities , respectively. Component contains the couple and two singles . The couple accepts only . The singles' preferences are
The relevant hospital priorities are
There are no acceptable assignments between different components. A common master list is obtained by placing all first, then all , then all , and finally all ; the order within each group is arbitrary. The couple list is both sub-complete and sub-responsive, and its members are assigned to distinct hospitals. Each component has four doctors and total capacity four.
Consider a component in which neither nor is expanded. If the couple is assigned, is unmatched and blocks with , which prefers to . If the couple is unmatched, an unmatched blocks with an unfilled hospital; assigning to creates the couple block , while assigning to creates the single-doctor block . Thus a stable matching requires an expansion at or in every component. Because components have disjoint acceptable assignments, any stable solution uses at least added positions.
Conversely, increase the capacity of every from one to two. Assign , to , to , and to . Every doctor receives a most preferred acceptable assignment and every couple receives its only acceptable pair, so the union of these component matchings is stable. Hence , proving that the universal bound is tight.
B.5. Proof of Theorem 5.1
Consider any feasible integer solution of ICM (14). The assignment and linking constraints define a matching M, and (12) defines a nonnegative integer capacity vector . Conditional on this vector, the matching, capacity, and stability constraints are precisely those of IFC (11) evaluated at . The fixed capacity equivalence in Section 5.1 therefore implies that M is BIS-stable under .
Conversely, let M be a BIS-stable matching under a nonnegative integer capacity vector . Set x and y to the indicators of the assignments in M, and define
These variables satisfy (12). By the same fixed capacity equivalence, the assignment variables can be extended with binary S2 auxiliary variables to satisfy IFC at . Together they give a feasible solution of ICM.
Restricting to (19), (20), or (21) gives the corresponding equivalence for ICM-BC, ICM-UC, or ICM-NF, respectively. Under balanced modification, the construction above satisfies and . Under unit expansion, it satisfies , , and . Under near feasible modification, the signed changes lie between -2 and 2, and their sum lies between 0 and 1. Conversely, these restrictions imply their respective capacity regions.
The bounds for ICM-BC and ICM-UC, and for ICM-NF, are valid throughout these regions. Hence the linearization in Section 5.2 preserves the integer feasible solutions in each case. Finally, counts the matched doctors, so maximizing it selects a largest stable matching over the admissible capacity vectors. Changing the objective to a capacity measure does not alter this feasibility correspondence.
B.6. Proof of Theorem 6.1
Consider first a feasible integer solution of the cutoff formulation. Suppose a single doctor has not obtained or a better hospital. The single-doctor prefix recursion gives , so (24) gives . Constraint (23) then implies that is full. Moreover, (22) gives for every doctor assigned to . Thus ranks every current assignee above , and is not an S1 block.
Next consider a couple that prefers , where , to its current assignment. The couple-prefix recursion gives . Constraint (9) requires at least one of and to be zero. Suppose, without loss of generality, that . Constraint (25) gives . The same argument as for S1 shows that is full and ranks every assignee above . Hence cannot accommodate the proposed member, so the couple does not form an S2 block.
Finally, consider an option that the couple prefers to its assignment, so , and relabel its members so that . The hospital-tail recursion gives , where and . Because , the two proposed members are not both assigned to . The right-hand side is at least two if and only if one of conditions (S3)(i), (S3)(ii), (S3)(iii)(a), or (S3)(iii)(c) in Definition 3.1 holds. Constraint (27) therefore excludes precisely these cases. If a couple is assigned to , constraint (28) gives , whereas (29) gives . Thus cannot prefer both proposed members to the lower-priority member of that assigned couple, excluding condition (S3)(iii)(b). The induced matching is stable.
Conversely, fix a stable matching under a capacity vector. Set and using the displayed single-doctor and couple prefix recursions. If hospital has an unfilled position, set . If it is full and , set and let be the lowest score among its assignees. If , set and . These choices satisfy (22) and (23).
If , constraint (24) is automatic. If it is zero, the absence of an S1 block implies that is full and every assignee has a score of at least ; hence the chosen cutoff satisfies the constraint. For an option with , set both variables to zero when the couple has obtained or a better option. In that case , so both cutoff inequalities are automatic. Otherwise , and the absence of an S2 block means that at least one proposed hospital cannot accommodate its member. Set the corresponding variable to zero. Set the other to one if its cutoff inequality would otherwise fail, and to zero otherwise. Then (25)–(26) and (9) hold.
Set using the hospital-tail recursion. If , the absence of conditions (S3)(i), (S3)(ii), (S3)(iii)(a), and (S3)(iii)(c) gives (27). When ,
so the same constraint is automatic. Set to the smallest lower-member score among the couples assigned to , or to if there is none. Constraint (28) holds by construction. When , the preceding inequality together with the absence of condition (S3)(iii)(b) implies that is ranked below the lower-priority member of every couple assigned to . If there is no such couple, . Otherwise, the consecutive integer scores give . Hence (29) holds; when , that constraint is automatic. Thus the stable matching extends to the cutoff formulation. Theorem 5.1 gives the same set of matchings and capacity vectors for the original formulation.
References
Afacan, M.O., Dur, U.M., Van der Linden, M., 2024. Capacity design in school choice. Games and Economic Behavior 146, 277–291.
Ágoston, K.C., Biró, P., Kovács, E., Jankó, Z., 2022. College admissions with ties and common quotas: Integer programming approach. European Journal of Operational Research 299, 722–734.
Ashlagi, I., Braverman, M., Hassidim, A., 2014. Stability in large matching markets with complementarities. Operations Research 62, 713–732.
Balasundaram, H., Limaye, G., Nasre, M., Raja, A., 2026. Generalized capacity planning for the hospital–residents problem. Theoretical Computer Science 1067, 115760.
Biró, P., Fleiner, T., Irving, R.W., 2016. Matching couples with scarf's algorithm. Annals of Mathematics and Artificial Intelligence 77, 303–316.
Biró, P., Gudmundsson, J., 2021. Complexity of finding Pareto-efficient allocations of highest welfare. European Journal of Operational Research 291, 614–628.
Biró, P., Gyetvai, M., 2023. Online voluntary mentoring: Optimising the assignment of students and mentors. European Journal of Operational Research 307, 392–405.
Biró, P., Irving, R.W., Schlotter, I., 2011. Stable matching with couples: An empirical study. ACM Journal of Experimental Algorithms 16, 1.2:1–1.2:27.
Biró, P., Klijn, F., 2013. Matching with couples: A multidisciplinary survey. International Game Theory Review 15, 1340008.
Biró, P., Manlove, D.F., McBride, I., 2014. The hospitals/residents problem with couples: Complexity and integer programming models, in: Gudmundsson, J., Katajainen, J. (Eds.), Experimental Algorithms, Springer, Cham. pp. 10–21.
Bobbio, F., Carvalho, M., Lodi, A., Rios, I., Torrico, A., 2026a. Capacity planning in stable matching. Operations Research 74, 1562–1580.
Bobbio, F., Carvalho, M., Lodi, A., Torrico, A., 2026b. Capacity variation in the many-to-one stable matching. Operations Research Letters 66, 107416.
Cembrano, J., Moraga, A., Verdugo, V., 2025. Near-feasible fair allocations in two-sided markets, in: Ashlagi, I., Roth, A. (Eds.), Proceedings of the 26th ACM Conference on Economics and Computation, Association for Computing Machinery, New York, NY. pp. 898–915.
Chen, J., Csáji, G., 2023. Optimal capacity modification for many-to-one matching problems, in: Ricci, A., Yeoh, W., Agmon, N., An, B. (Eds.), Proceedings of the 22nd International Conference on Autonomous Agents and Multiagent Systems, International Foundation for Autonomous Agents and Multiagent Systems, Richland, SC. pp. 2880–2882.
Csáji, G., 2025. Near-feasible solutions to complex stable matching problems. arXiv:2502.02503.
Csáji, G., Manlove, D., McBride, I., Trimble, J., 2026. Couples can be tractable: New algorithms and hardness results for the hospitals/residents problem with couples. Algorithmica Accepted for publication.
Delorme, M., García, S., Gondzio, J., Kalcsics, J., Manlove, D., Pettersson, W., 2019. Mathematical models for stable matching problems with ties and incomplete lists. European Journal of Operational Research 277, 426–441.
Delorme, M., García, S., Gondzio, J., Kalcsics, J., Manlove, D., Pettersson, W., 2021. Stability in the hospitals/residents problem with couples and ties: Mathematical models and computational studies. Omega 103, 102386.
Fleiner, T., 2010. The stable roommates problem with choice functions. Algorithmica 58, 82–101.
Gale, D., Shapley, L.S., 1962. College admissions and the stability of marriage. The American Mathematical Monthly 69, 9–15.
Glitzner, F., 2026. Near-feasible stable matchings: Incentives and optimality, in: Amato, C., Dennis, L.A., Mascardi, V., Thangarajah, J. (Eds.), Proceedings of the 25th International Conference on Autonomous Agents and Multiagent Systems, International Foundation for Autonomous Agents and Multiagent Systems, Richland, SC. pp. 3558–3560.
Gokhale, S., Singla, S., Narang, S., Vaish, R., 2024. Capacity modification in the stable matching problem, in: Alechina, N., Dignum, V., Dastani, M., Sichman, J.S. (Eds.), Proceedings of the 23rd International Conference on Autonomous Agents and Multiagent Systems, International Foundation for Autonomous Agents and Multiagent Systems, Richland, SC. pp. 697–705.
Hutter, F., Hoos, H.H., Leyton-Brown, K., Stützle, T., 2009. Paramils: An automatic algorithm configuration framework. Journal of Artificial Intelligence Research 36, 267–306.
Klaus, B., Klijn, F., 2005. Stable matchings and preferences of couples. Journal of Economic Theory 121, 75–106.
Klaus, B., Klijn, F., 2007. Paths to stability for matching markets with couples. Games and Economic Behavior 58, 154–171.
Kojima, F., Pathak, P.A., Roth, A.E., 2013. Matching with couples: Stability and incentives in large markets. The Quarterly Journal of Economics 128, 1585–1632.
McDermid, E.J., Manlove, D.F., 2010. Keeping partners together: Algorithmic results for the hospitals/residents problem with couples. Journal of Combinatorial Optimization 19, 279–303.
Nguyen, H., Nguyen, T., Teytelboym, A., 2021. Stability in matching markets with complex constraints. Management Science 67, 7438–7454.
Nguyen, T., Vohra, R., 2018. Near-feasible stable matchings with couples. American Economic Review 108, 3154–3169.
Nguyen, T., Vohra, R., 2019. Stable matching with proportionality constraints. Operations Research 67, 1503–1519.
Ranjan, K., Nasre, M., Nimbhorkar, P., 2025. Optimal capacity modification for stable matchings with ties, in: Kwok, J. (Ed.), Proceedings of the Thirty-Fourth International Joint Conference on Artificial Intelligence, International Joint Conferences on Artificial Intelligence Organization. pp. 4023–4031.
Ronn, E., 1990. NP-complete stable matching problems. Journal of Algorithms 11, 285–304.
Roth, A.E., 1984. The evolution of the labor market for medical interns and residents: A case study in game theory. Journal of Political
Economy 92, 991–1016.
Roth, A.E., Peranson, E., 1999. The redesign of the matching market for american physicians: Some engineering aspects of economic design. American Economic Review 89, 748–780.
Scarf, H.E., 1967. The core of an N person game. Econometrica 35, 50–69.
Tan, J.J.M., 1991. A necessary and sufficient condition for the existence of a complete stable matching. Journal of Algorithms 12, 154–178.