Box Allocation Problem (BAP)
- BAP is a term encompassing distinct allocation models in survey sampling, meal kit delivery, and probabilistic occupancy, each defined by specific constraints and objectives.
- In stratified sampling, RNABOX optimizes box-constrained sample sizes by partitioning strata into fixed and free sets using KKT conditions to minimize estimator variance.
- In meal kit delivery, linearization and branch-and-cut methods address complex order assignments to stabilize daily recipe allocations and meet capacity limits.
The term Box Allocation Problem (BAP) is not attached to a single canonical formulation across the literature. In the materials identified here, it denotes at least three distinct research objects: a box-constrained optimum allocation problem in stratified sampling, a temporal order-to-factory assignment problem in meal kit delivery, and a random allocation model of balls into boxes used to study occupancy proportions. In adjacent literatures, the acronym BAP also commonly denotes the Bottleneck Assignment Problem, while berth and block allocation models are sometimes interpreted through a broader “box allocation” lens. The result is a polysemous term whose meaning is determined by domain, objective, and constraint structure rather than by acronym alone (Wesołowski et al., 2023).
1. Terminological scope and domain-specific meanings
In survey methodology, the Box Allocation Problem is the problem of choosing stratum sample sizes under two-sided bounds and a fixed total sample size , so as to minimize the variance of the stratified estimator. In that setting, “box” refers to box constraints on the decision vector, and the problem is strictly convex under the variance family considered in the RNABOX paper (Wesołowski et al., 2023).
In meal kit delivery operations, the Box Allocation Problem is a mixed-integer linear optimization problem in which customer orders are assigned to production facilities over a 15-day planning horizon (LD18 to LD3). The operational objective is to minimize day-to-day recipe allocation variation at factory level while satisfying capacity limits and recipe eligibility. Here, “box” refers to meal-kit recipe boxes handled by a multi-factory network (Nguyen et al., 7 Sep 2025).
In probability and occupancy theory, the phrase is used for the multinomial allocation of balls into boxes with probabilities . The central quantities are the occupancy counts and the proportions of boxes containing exactly balls. This is not an optimization model, but it is nevertheless a mathematically standard “allocation to boxes” problem (Sagitov, 16 Apr 2026).
A common source of confusion is the separate use of BAP for the Bottleneck Assignment Problem, in which agents are matched to tasks to minimize the largest assigned cost. That formulation is a bipartite matching problem and is technically unrelated to box-constrained sample allocation or meal-kit box assignment, despite acronym overlap (Khoo et al., 2020).
2. Box Allocation Problem in stratified sampling
In stratified sampling, the Box Allocation Problem is defined over strata 0 with decision variables 1, lower and upper bounds 2 and 3, and fixed total sample size 4. The feasibility conditions are
5
The objective is to minimize the variance of the stratified 6 estimator of the population total or mean. The paper studies the generic variance form
7
which covers the case of simple random sampling without replacement in strata (Wesołowski et al., 2023).
For SRSWOR (STSI), the estimator of the total is
8
with
9
Then
0
and for the mean,
1
The structural properties are central. Each term 2 is strictly convex and strictly decreasing on 3, with derivative
4
Accordingly, the objective is strictly convex on the positive orthant, and under linear feasibility constraints the optimum exists and is unique. This permits a KKT-based characterization in which strata partition into three sets: lower-active, upper-active, and free strata.
For free strata, stationarity yields the Neyman-like form
5
or, in the notation of the paper,
6
The active-set consistency conditions are
7
These conditions motivate RNABOX, a recursive exact algorithm that generalizes the classical recursive Neyman allocation algorithm from one-sided upper bounds to two-sided box constraints. RNABOX interleaves an RNA step that resolves upper-bound activity with a lower-bound fixing step on the reduced domain. It terminates after at most 8 iterations because each iteration fixes at least one stratum. The final solution has the form
9
The paper also addresses integer implementation. RNABOX produces real-valued allocations, after which free-stratum allocations may be rounded while preserving bounds, followed by a sum-preserving repair. The reported experiments state that the variance difference between integer-optimal and rounded RNABOX solutions is negligible, with ratios “essentially 0 up to six decimals in large-scale tests.” The method is implemented in the CRAN package stratallo (Wesołowski et al., 2023).
3. Box Allocation Problem in meal kit delivery
In meal-kit operations, the Box Allocation Problem is formulated on a 15-day planning horizon (LD18 to LD3) for a multi-factory network. Each day 1, the firm allocates a mixture of real orders and simulated orders to factories. Real orders persist across days until shipment; simulated orders represent forecast demand gradually replaced by real orders. The operational goal is to stabilize the daily recipe mix at each factory so that ingredient forecasts are more accurate and food waste is reduced (Nguyen et al., 7 Sep 2025).
The key objects are days 2, factories 3 with factory 4 as a catch-all factory, recipes 5, and the order set 6 for each day. The decision variable 7 indicates whether order 8 is assigned to factory 9 on day 0. Recipe-level assignment totals are induced by
1
Every order must be assigned to exactly one eligible factory: 2 All factories except the catch-all operate at fixed daily capacity: 3
The objective is expressed through site-level WMAPE. For consecutive days 4, the numerator is linearized with auxiliary variables 5: 6 The day-7 denominator
8
is constant given the orders, so minimizing
9
is equivalent to minimizing
0
The multi-day proxy objective is therefore
1
or, if weighted explicitly by daily denominators,
2
The model admits a natural lower bound. Let
3
and define
4
By the triangle inequality,
5
hence
6
The global WMAPE is therefore a theoretical lower bound, and matching it certifies optimality in the experiments.
The computational study compares COIN-OR CBC (Branch-and-Cut) with two heuristics, Iterative Targeted Pairwise Swap (ITPS) and Tabu Search (TS), both initialized greedily. In the benchmark test with 10,000 orders over two consecutive days, CBC attains WMAPE site 7 and WMAPE global 8 in 2.89 seconds. ITPS improves an initial 0.074 to 0.054 in 19.45 seconds using 1,500 iterations, while TS improves 0.074 to 0.054 in 15.35 seconds using 500 iterations. The scalability experiments report that CBC achieves optimal solutions in under two minutes on instances up to 100,000 orders, and maintains optimality under dynamic conditions with fluctuating factory capacities and changing customer orders (Nguyen et al., 7 Sep 2025).
4. Random box allocation and occupancy analysis
In the multinomial allocation model, 9 balls are independently allocated to 0 boxes with probabilities 1, where 2. The box occupancies 3 follow a multinomial law, with each marginal 4. For each 5, the occupancy count 6 is the number of boxes containing exactly 7 balls, and the corresponding proportion is
8
These satisfy
9
The paper reframes the entire problem through the occupancy 0 of a uniformly randomly chosen box (Sagitov, 16 Apr 2026).
Let 1 be uniformly distributed over 2, define 3, and let
4
Conditionally on 5, one has 6, so
7
A central identity is
8
Equivalently,
9
The paper also provides exact expressions for variances and covariances by indicator decomposition. Writing 0,
1
with
2
For 3,
4
Asymptotically, the analysis is expressed through the Poisson kernel
5
and the random mean 6. Under the central-region assumptions 7, where 8, the classical leading terms become
9
0
and analogous formulas hold for covariances. The paper’s main contribution is to replace these classical bounded-1 assumptions with the single technical condition 2, and to provide explicit two-sided bounds on the remainder terms 3 and 4.
A particularly important special case is the proportion of empty boxes: 5
6
with bounds
7
In the uniform model 8, one obtains
9
and for empty boxes,
00
This probabilistic BAP is analytically distinct from optimization-based uses of the term. Its role is to quantify occupancy profiles, empty-box rates, singleton rates, overload probabilities, and the effect of heterogeneity in the empirical distribution of 01 (Sagitov, 16 Apr 2026).
5. Related acronyms and adjacent allocation models
The acronym BAP is widely established for the Bottleneck Assignment Problem, which seeks a perfect matching 02 in a complete bipartite graph 03 minimizing the largest assigned cost: 04 An equivalent threshold formulation searches for the minimum 05 such that the graph 06, with
07
contains a matching of size 08. The distributed algorithm pruneBAP repeatedly removes a current largest matched edge and checks augmenting-path feasibility over a pruned edge set. Its worst-case time-step complexity is 09, or 10 when 11, where 12 is the diameter of the communication graph (Khoo et al., 2020).
A different adjacent usage appears in berth allocation and position allocation for charging battery-electric buses. There, the paper explicitly starts from the classical Berth Allocation Problem (BAP) and adapts it to a Position Allocation Problem (PAP). The berth-time rectangle packing model is extended with discrete charging positions, variable charging durations, and linear battery dynamics. In the reported instance, the MILP uses 35 buses, 338 visits, a 24-hour horizon, 15 slow chargers at 30 kW, and 15 fast chargers at 911 kW; the resulting model contains approximately 7,511 continuous and 328,282 integer/binary constraints, solved with Gurobi under a 7,200-second limit (Brown et al., 2024).
A broader “box allocation” interpretation also appears in online block packing, where sequential blocks with multidimensional capacity vectors serve as boxes for arriving items or transactions. The objective is discounted welfare over time: 13 The paper proves a greedy fractional 14-approximation, a 15-approximation in the small-items regime, and a general-case batching result with slackness 16 and extension 17. This is not named “Box Allocation Problem” in the source paper, but it is an allocation-to-boxes model in the precise sense of sequential multidimensional packing (Eliezer et al., 16 Jul 2025).
These adjacent uses illustrate that BAP is best treated as a family resemblance label rather than a unique problem class. In some fields it denotes a specific optimization model; in others it identifies a structural template involving constrained assignment to boxes, blocks, positions, or bounded coordinates.
6. Algorithmic patterns, guarantees, and recurring misconceptions
Across the optimization formulations, several algorithmic motifs recur. One is active-set structure. In the stratified-sampling BAP, the KKT system induces lower-active, upper-active, and free strata, and RNABOX recursively identifies these sets. In the meal-kit BAP, capacity and eligibility sharply restrict admissible assignments, allowing strong preprocessing and rapid exact solution by branch-and-cut. A plausible implication is that both problems benefit from formulations in which combinatorial freedom is concentrated in a reduced free set rather than dispersed uniformly across all variables (Wesołowski et al., 2023).
A second recurring pattern is the use of auxiliary variables to linearize nonlinear structure. In meal-kit delivery, absolute temporal differences are linearized by 18. In bus charging, products 19 are linearized by 20. In bottleneck assignment, feasibility at a threshold is turned into augmenting-path existence within a pruned graph. These transformations differ technically, but they all replace a direct nonlinear or nonlocal objective with a sequence of tractable feasibility or linear optimization subproblems (Nguyen et al., 7 Sep 2025).
A third pattern is the presence of lower bounds or certifying surrogates. In meal-kit delivery, 21 provides an explicit lower bound. In bottleneck assignment, the threshold formulation gives a feasibility characterization of the optimum bottleneck value. In online block packing, per-block approximation guarantees compose into a global 22 welfare guarantee. This suggests that BAP-type models often admit strong certificates even when the primary decision process is operationally complex (Khoo et al., 2020).
Several misconceptions also recur. One is that “Box Allocation Problem” always refers to a single optimization problem. The surveyed literature does not support that reading. Another is that all BAPs are necessarily deterministic assignment models. The multinomial allocation model shows that a central branch of the literature is probabilistic and concerns occupancy distributions rather than optimized allocations. A third is that the acronym BAP can be interpreted without domain qualification. In practice, disambiguation is necessary because box allocation, bottleneck assignment, and berth allocation all appear under the same initials (Sagitov, 16 Apr 2026).
From an editorial standpoint, the most precise usage is therefore domain-qualified: BAP in stratified sampling, BAP in meal kit delivery, multinomial box allocation, or BAP as bottleneck assignment. That convention preserves the technical specificity of each literature while acknowledging the genuine cross-domain resemblance in constrained allocation structure.