---
title: Unbalanced Assignment Problem with Constraints
url: https://www.emergentmind.com/topics/unbalanced-assignment-problem-with-constraints-uap-c
type: topic
---

# Unbalanced Assignment Problem with Constraints

Unbalanced Assignment Problem with Constraints (UAP-C) denotes a family of assignment models in which the cardinalities of the two sides need not coincide, not every entity must be matched, and feasibility is governed by additional hard constraints beyond classical one-to-one matching. In the formulations collected under this label, the assignment variables remain binary, but the constraint system may include multidimensional capacities, bin-activation budgets, worker eligibility and time capacities, distributional quotas, type–block diversity caps, or pairwise conflicts among assignments. The resulting models subsume several distinct research directions: generalized budgeted assignment in transportation [2208.11832], capacitated assignment with dynamic state and action masking in reinforcement learning [2106.02856], assignment mechanisms under distributional constraints [1810.04331], assignment with type constraints and diversity quotas [1711.10241], and assignment with conflicts solved by CP-SAT [2506.04274].

## 1. Formal models and the meaning of “unbalanced”

The defining structural feature of UAP-C is that feasibility is not tied to a perfect matching. In the generalized budgeted assignment formulation, there are $L$ bins and $P$ items, each item is assigned to at most one open bin, and items need not all be assigned. The canonical integer program is
\[
\max \sum_{l=1}^L \sum_{p=1}^P v_{lp} x_{lp}
\]
subject to
\[
\sum_{p=1}^P r_{lp}^{(i)} x_{lp} \le C_l^{(i)} \quad \forall l,\forall i,
\]
\[
\sum_{l=1}^L x_{lp} \le 1 \quad \forall p,
\]
\[
\sum_{l=1}^L c_l y_l \le B,
\]
\[
x_{lp} \le y_l \quad \forall l,\forall p,
\]
with $x_{lp},y_l \in \{0,1\}$. Here unbalancedness means that $|P|$ may differ from $|L|$ and the item constraints are “$\le 1$” rather than equality [2208.11832].

A second recurrent form is capacitated many-to-one assignment. In the reinforcement-learning formulation, workers $W=\{1,\dots,m\}$ and tasks $T=\{1,\dots,n\}$ are linked by binary variables $x_{ij}$, with objective
\[
\min_x \sum_{i\in W}\sum_{j\in T} c_{ij} x_{ij},
\]
worker capacities
\[
\sum_{j\in T} \tau_j x_{ij} \le C_i \quad \forall i\in W,
\]
task coverage
\[
\sum_{i\in W} x_{ij} = 1 \quad \forall j\in T,
\]
and eligibility constraints
\[
x_{ij} \le E_{ij} \quad \forall i\in W,\forall j\in T.
\]
Although the paper requires every task to be assigned, it uses $m=n+2$ in experiments and many workers remain unused, so the mapping is still unbalanced on the worker side [2106.02856].

Distributional and diversity-constrained formulations express unbalancedness differently. In assignment mechanisms under distributional constraints, an outside option $\phi$ absorbs unmatched agents, and the objective is to assign as many agents as possible to regular objects subject to lower and upper quotas over types or subsets of types [1810.04331]. In assignment with type constraints, agents are assigned to items or slots with capacities $c_j$, each agent receives at most one item, and type–block pairs are capped by quotas $q_{t,k}$:
\[
\max \sum_{i\in A}\sum_{j\in B} w_{ij}x_{ij}
\]
subject to
\[
\sum_{j\in B} x_{ij} \le 1,\quad
\sum_{i\in A} x_{ij} \le c_j,\quad
\sum_{i\in A_t}\sum_{j\in B_k} x_{ij} \le q_{t,k}.
\]
This directly encodes unmatched agents and unused capacity [1711.10241].

The conflict-constrained assignment formulation starts from the classical complete bipartite setting, but adapts naturally to unbalanced variants by replacing perfect-matching equalities with “at most one” constraints. With feasible assignment edges $E \subseteq I\times J$ and conflict set $F \subseteq E\times E$, the unbalanced model uses
\[
\sum_{j:(i,j)\in E} x_{ij} \le 1 \quad \forall i\in I,
\qquad
\sum_{i:(i,j)\in E} x_{ij} \le 1 \quad \forall j\in J,
\]
plus pairwise disjunctions
\[
x_{i_1j_1}+x_{i_2j_2}\le 1 \quad \forall ((i_1,j_1),(i_2,j_2))\in F
\]
and a linear cost objective [2506.04274].

| Variant | Optimization core | Distinctive constraints |
|---|---|---|
| GBAP | Maximize $\sum_{l,p} v_{lp}x_{lp}$ | Multidimensional capacities, activation budget, $x_{lp}\le y_l$ |
| RL capacitated AP | Minimize $\sum_{i,j} c_{ij}x_{ij}$ | Worker capacities, task assignment, eligibility |
| Distributional assignment | Maximize regular-object assignments | Lower/upper quotas by type or category, outside option $\phi$ |
| Type-constrained assignment | Maximize $\sum_{i,j} w_{ij}x_{ij}$ | Item capacities, type–block quotas |
| Assignment with conflicts | Minimize $\sum c_{ij}x_{ij}$ | Pairwise conflict inequalities on assignment edges |

Taken together, these models suggest that UAP-C is better understood as a constrained assignment umbrella than as a single standardized formulation. The common kernel is binary assignment under nonclassical feasibility structure; the principal variations lie in whether constraints are resource-based, distributional, strategic, or logical.

## 2. Constraint structure and modeling primitives

The budgeted capacitated model introduces a particularly rich resource structure. Each bin $l$ has an $n_l$-dimensional capacity vector, and each item $p$ has a binary weight vector $r_{lp}\in\{0,1\}^{n_l}$ whose ones, if present, appear in consecutive positions. The consecutive ones property is application-driven—especially for route segments on a line—but it also has algorithmic consequences, because it facilitates single-bin feasibility and separation in the configuration LP [2208.11832]. A plausible implication is that interval structure is not merely a modeling convenience; it is part of what makes the stronger relaxation computationally usable.

The reinforcement-learning formulation emphasizes operational constraints rather than budget activation. Capacities are worker-side time units $C_i$, task efforts are $\tau_j$, and feasibility is filtered by eligibility indicators $E_{ij}$. The paper states that “time” in the network input indexes decision stage rather than scheduling start/end times, so true temporal scheduling constraints are not part of the AP experiments [2106.02856]. This distinction matters because UAP-C is often conflated with scheduling; in this formulation, capacities are cumulative resource limits, not interval scheduling windows.

Distributional formulations replace scalar capacities with quota systems over types or subsets of types. In the distributional-constraints framework, for each object $j$ and subset $R \in Z(j)$ there are lower and upper quotas,
\[
\underline{q}_{R,j} \le \sum_{t\in R} x_{t,j} \le \bar{q}_{R,j},
\]
and related category constraints can aggregate over sets of objects. The objective is not cardinal utility maximization but maximizing the number of agents assigned to regular objects subject to these quota systems [1810.04331]. This shifts UAP-C from pure combinatorial optimization toward constrained allocation and mechanism design.

Type–block diversity constraints impose a simpler but still hard quota family. Agents are partitioned into types, items into blocks, and each type–block pair has an upper quota $q_{t,k}$. The paper notes that this already makes the problem NP-hard, even though the unconstrained assignment problem is polynomial-time computable [1711.10241]. A common misconception is that quota systems are a modest extension of capacity constraints; the hardness results indicate that even one additional quota dimension can fundamentally change the problem class.

Conflict constraints are logically different from capacities and quotas. Here the hard constraints prohibit selecting certain pairs of assignment edges simultaneously. The resulting feasible set can be interpreted as an assignment polytope intersected with a set-packing structure induced by conflicts [2506.04274]. This matters because pairwise incompatibility is not reducible to simple capacity accounting: two individually feasible assignments may become jointly infeasible for purely combinatorial reasons.

Several formulations also describe standard adaptations for partial coverage. The reinforcement-learning paper states that if tasks could be left unassigned, one would introduce a dummy worker $d$ with large cost $c_{dj}$ and capacity $C_d=\infty$, or slack variables with penalties; the conflict-constrained formulation analogously introduces unassigned indicators $u_i,v_j$ or dummy nodes to balance the bipartition [2106.02856; 2506.04274]. These constructions make explicit that UAP-C includes both “hard coverage” and “soft coverage” regimes.

## 3. Algorithmic frameworks, relaxations, and guarantees

The generalized budgeted assignment model uses two LP relaxations. The simple relaxation lets $x_{lp},y_l\in[0,1]$ and scales capacities by $y_l$, but the paper notes that it can be loose. The stronger formulation is a configuration LP with variables $X_{lS}\in[0,1]$ for feasible item sets $S\in I_l$, where
\[
I_l := \left\{S \subseteq \{1,\dots,P\} : \sum_{p \in S} r_{lp}^{(i)} \le C_l^{(i)} \;\forall i,\; S \neq \emptyset \right\}.
\]
The LP can be solved in polynomial time via the ellipsoid method using the single-bin separation oracle, and the consecutive ones structure enables dynamic programming or min-cost flow style separation in polynomial time [2208.11832].

Its rounding scheme has two phases. First, for each bin, at most one configuration is sampled independently from the configuration LP solution. Second, budget feasibility is enforced by an online fractional knapsack accept/reject rule, while item-at-most-once is enforced by a generalized $1/2$-conservative magician with one unit of mana and $\gamma=1/2$. Defining $k:=B/\max_l c_l$, the paper proves that for $k\ge 3$,
\[
\mathbb{E}[\text{reward}] \ge \left(\frac{k-1}{2k}\right)\left(1-\frac{1}{\sqrt{k}}\right)\cdot \text{OPT},
\]
and for $k<3$,
\[
\mathbb{E}[\text{reward}] \ge \frac{1}{8}\cdot \text{OPT}.
\]
It also states that the algorithm returns a feasible solution with probability $1$, and for $k\ge 3$ the lower bound exceeds $1/8$ [2208.11832]. The contrast drawn with the prior RLPP randomized rounding is specific: RLPP attains ratio $1-\frac{1}{e}-\epsilon$ but may violate budget with probability at most $\exp\left(-\frac{k}{3}\epsilon^2\right)$.

A very different algorithmic line is reinforcement learning with hard feasibility masks. The capacitated assignment paper formulates the problem as an MDP whose state includes remaining capacities, remaining task efforts, eligibility, the current decision time index, and the last completed task id. The actor outputs a distribution over workers, but infeasible workers are removed by masking, including workers with $E_{ij_t}=0$ or insufficient capacity [2106.02856]. Because infeasible actions are removed from the action space, the sampled action is feasible by construction.

The RL method uses proximal policy optimization with clipped surrogate loss, value loss, and entropy bonus. The reported hyperparameters are $\epsilon=0.2$, $\gamma=0.99$, learning rate $1e\!-\!4$ with decay $0.001$, batch size $256$, $20$ epochs per episode, and experience buffer length $1000$. The feature extractor combines a 1D convolution with $128$ filters over dynamic features, dense layers of $128$ units, and separate actor and critic heads; “current time” and “last task” are included so that an RNN/LSTM decoder is unnecessary [2106.02856]. The paper reports that masking yields faster training and convergence than penalty-based methods, although it does not provide a formal proof.

For type-constrained assignment with diversity caps, the paper gives a polynomial-time $1/2$-approximation by reduction to Bounded Color Matching, where colors correspond to type–block pairs and color capacities correspond to the quotas. It also identifies two tractable cases: type-uniform utilities and block-uniform utilities, both reducible to min-cost flow [1711.10241]. These results place part of UAP-C in the approximation-and-special-case tradition rather than the LP-rounding or RL traditions.

For conflict-constrained assignment, the computational approach is direct MILP encoding solved with Google OR-Tools CP-SAT. The model uses BoolVar variables, linear assignment constraints, pairwise conflict inequalities, and a linear cost objective. The paper reports solving the MILP directly with CP-SAT version 9.12, a time limit of $3600$ seconds per instance, and default settings [2506.04274]. This approach is notable because it relies on general-purpose propagation and search rather than a bespoke combinatorial approximation algorithm.

## 4. Distributional constraints, diversity quotas, and mechanism design

Under distributional constraints, the assignment problem acquires strategic and fairness dimensions that are absent from pure optimization models. The mechanism-design framework introduces agents with publicly known types and private ordinal preferences over objects, plus an outside option $\phi$. Feasibility is defined through lower and upper quotas over types or subsets of types, and the optimization benchmark is the maximum number of agents assigned to regular objects in LP1 or LP3 [1810.04331].

The Generalized Serial Dictatorship (GSD) mechanism processes agents sequentially and uses an auxiliary LP, denoted LP2 in the synthesis, to determine whether an agent can be assigned to a preferred school while preserving eventual attainment of at least $\text{OPT}$. The mechanism maintains an incomplete type-assignment vector $y$, relaxation variables $\Delta$, and a set of partially assigned agents. Its formal guarantees are strong but approximate on constraints: it is strategyproof, allocatively efficient in the sense of assigning at least $\text{OPT}$ agents to regular schools, Pareto efficient with respect to the relaxed constraints, and satisfies
\[
|\Delta_{R,j}| \le |T| \quad \text{for all } j,R,
\]
with sharper per-type bounds
\[
-1 \le \Delta_{t,j} \le 1 \quad \forall t,j.
\]
In laminar cases with integer quotas, the paper states that exact integral feasibility is achievable without violations via a reduction to max-flow with lower/upper bounds [1810.04331].

The Generalized Probabilistic Serial (GPS) mechanism is the fractional counterpart. It maintains extendability: the current fractional vector must remain extendable to an LP3-optimal feasible solution. The output is ordinally efficient and within-type envy-free, and the paper states that every LP3-optimal fractional assignment can be implemented as a lottery over integral allocations that violate any quota by at most $|T|$ and assign at least $\lfloor \text{OPT} \rfloor$ agents to regular schools [1810.04331].

The central controversy in this line is not empirical but impossibility-theoretic. The paper shows that no mechanism is simultaneously ordinally efficient, within-type envy-free, and weakly strategyproof under distributional constraints [1810.04331]. This result rules out a frequent expectation that fairness, efficiency, and nonmanipulability can all be retained under quota systems.

The type–block diversity framework studies a related but welfare-oriented question: the loss induced by quota-based diversity. It defines the price of diversity
\[
\mathrm{PoD}(u) := \frac{\mathrm{OPT}(u)}{\mathrm{OPT}_C(u)},
\]
and proves the quota-only upper bound
\[
\mathrm{PoD}(u) \le \frac{1}{\min_{(t,k)} \alpha_{t,k}},
\qquad \alpha_{t,k}:=\frac{q_{t,k}}{|B_k|},
\]
which is stated to be tight. It also proves a disparity-aware bound
\[
\mathrm{PoD}(u) \le \frac{1/\beta(X^*)}{\sum_p \nu_p \min_k \alpha_{p,k}},
\]
and summarizes them as
\[
\mathrm{PoD}(u) \le \min\left\{\frac{1}{\min_{(p,k)} \alpha_{p,k}},\ \frac{1/\beta(X^*)}{\sum_p \nu_p \min_k \alpha_{p,k}}\right\}.
\]
These bounds formalize the trade-off between diversity caps and welfare under hard quota systems [1711.10241].

## 5. Applications and empirical behavior

The motivating application for generalized budgeted assignment is transit line planning. The paper maps bins to candidate transit lines with operating costs, capacity vectors to per-edge passenger capacities on a line, items to passenger trips, and the binary consecutive-ones vectors $r_{lp}^{(i)}$ to the edges used by a trip on a line. Rewards quantify welfare gain or coverage, and the global budget is the operating budget [2208.11832]. This is a particularly clear instance of UAP-C because it combines unbalanced assignment, multidimensional capacities, and activation decisions in one model.

The empirical study reported for that application uses NYC data with candidate lines $|\mathcal{L}|=1000$, $13{,}851$ trip requests, bus capacity $30$, and several budgets. The proposed GBAP algorithm is reported to find higher-quality solutions than the prior RLPP rounding algorithm, especially at larger budgets such as $8\times 10^4$ and $10^5$. The paper also states that for typical $k$ values $25$, $50$, and $100$, the bound exceeds $0.39$, $0.40$, and $0.44$ respectively [2208.11832].

The reinforcement-learning assignment framework targets dynamic many-to-one task allocation and reports experiments on AP10, AP20, AP30, AP40, and AP50, with workers $m=n+2$, worker capacities $C_i=15$, and task efforts sampled in $[1,15]$. The paper states that the RL framework outperforms Google OR-Tools using MIP and CP-SAT solvers on large problem instances in solution quality and computation time. The most specific timing summaries given are: for AP50, Google OR-Tools solution time is approximately $103$ minutes, while RL inference time is approximately $0.00158$ minutes; for AP30 with $5$ tasks updated, OR-Tools requires approximately $12.327$ minutes to rebuild, while the RL framework adapts in approximately $0.00109$ minutes without retraining [2106.02856]. The same framework is also demonstrated on bin packing and capacitated vehicle routing.

Diversity-constrained assignment is studied empirically in Singapore public housing and Chicago school choice. In the Singapore HDB simulations, the paper uses $9$ HDB blocks, $1350$ flats, ethnicity quotas $\alpha_{\text{Chinese}}=0.87$, $\alpha_{\text{Malay}}=0.25$, and $\alpha_{\text{Indian/Others}}=0.15$, with applicant pools $n=1350$ and $3000$. It reports that the price of diversity is approximately $1$ across several utility models, while lottery performance varies: under distance-based utilities, a simple lottery with quotas yields at least about $84\%$ of OPT when $n=m=1350$, but around $65\%$ at $\sigma^2=1$ when $n$ increases to $3000$; under price-based utilities with high variance, lottery performance can be around $35\%$ of OPT at $\sigma^2=50$ when $n=1350$ [1711.10241].

In Chicago school choice, the paper considers $37$ schools, approximately $2261$ seats for grade $1$, four tiers with equal fractional quotas $\alpha=0.25$ per tier per school, and applicant pools $n=2261$ and $5000$. It reports that the price of diversity decreases with higher $\sigma^2$, but the lottery has high welfare loss across settings and performs worse when $n>m$ [1711.10241]. These observations suggest that welfare loss from quotas and welfare loss from lottery-based implementation are distinct empirical phenomena.

Conflict-constrained assignment is evaluated on literature instances with $|V_A|=|V_B|$ ranging from $15$ to $500$, conflict pairs $|C|$ ranging from $5{,}000$ to $200{,}000$, and $130$ usable instances out of the original $135$. The compared methods are LS, RDS, BIP, B\&B, and CP-SAT, each run up to $3600$ seconds. The paper’s summary is that LS is fastest for very quick solutions, CP-SAT is the best option for quickly finding optimal solutions when more computation time is allowed, BIP is generally the most robust and fastest exact method overall, and B\&B scales better on the largest instances [2506.04274].

## 6. Complexity, tractable subclasses, and limitations

Several of the cited models formalize the computational escalation caused by additional constraints. The type-constrained diversity model proves that adding type–block constraints makes the problem NP-complete, and the distributional-constraints work notes that exact feasibility under hard constraints can be NP-complete to decide [1711.10241; 1810.04331]. These results clarify that the difficulty in UAP-C often comes less from unbalancedness itself than from quota structure, multiattribute feasibility, or logical incompatibilities.

At the same time, multiple tractable subclasses are identified. For type–block quotas, type-uniform utilities and block-uniform utilities permit polynomial-time min-cost flow formulations [1711.10241]. For distributional constraints, laminar quota systems with integer quotas admit exact feasibility via max-flow with lower and upper bounds [1810.04331]. For generalized budgeted assignment, the consecutive ones property enables polynomial-time single-bin separation for the configuration LP [2208.11832]. These are not generic simplifications; they are structural conditions under which otherwise hard UAP-C variants recover specialized exact methods.

The models also differ in how they treat feasibility. The budgeted assignment rounding explicitly guarantees capacity, item-at-most-once, and budget feasibility with probability $1$ [2208.11832]. The reinforcement-learning framework guarantees capacity and eligibility feasibility during decoding only because infeasible actions are masked out; the paper emphasizes that no repair step is needed, but it also notes limitations under very tight capacities or near infeasibility, where a pure mask may leave few actions and increase variance [2106.02856]. The mechanism-design formulations deliberately allow bounded additive violations of quotas—up to $|T|$—in order to preserve strategyproofness, ordinal efficiency, or allocative efficiency [1810.04331]. A common misunderstanding is to compare these guarantees as if they were commensurate; they apply to different objective and feasibility regimes.

Further limitations are model-specific. The reinforcement-learning experiments do not model true time windows, precedence constraints, or explicit scheduling dynamics, and the paper states that richer temporal constraints would require richer states and masks or hybrid RL+OR integration [2106.02856]. The budgeted assignment guarantees depend on the parameter $k=B/\max_l c_l$, with the bound improving for larger $k$ and reverting to the universal constant $1/8$ for small $k$ [2208.11832]. The type-constrained assignment paper states that lower quotas may cause infeasibility when the composition of the agent pool is not guaranteed ex ante [1711.10241]. The conflict-constrained paper focuses on pairwise inequality modeling and does not introduce strengthened formulations such as clique cuts within that work [2506.04274].

Open problems are stated explicitly in several sources. The distributional-constraints work asks whether the $|T|$ violation bound can be reduced under richer structural constraints, whether GPS rounding can achieve smaller per-realization violations under broader constraints, and how to handle multi-type agents or overlapping categories [1810.04331]. The diversity-quota work asks whether approximation factors better than $1/2$ are achievable in polynomial time, how to quantify LP integrality gaps under natural utility distributions, and how to analyze lotteries theoretically under quotas [1711.10241]. Collectively, these questions suggest that UAP-C remains a heterogeneous field in which exact optimization, approximation, learning-based control, and mechanism design each address only part of the constraint landscape.

Source: https://www.emergentmind.com/topics/unbalanced-assignment-problem-with-constraints-uap-c