Papers
Topics
Authors
Recent
Search
2000 character limit reached

Box Allocation Problem (BAP)

Updated 10 July 2026
  • 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 nhn_h under two-sided bounds LhnhUhL_h \le n_h \le U_h and a fixed total sample size hnh=n\sum_h n_h=n, so as to minimize the variance of the stratified π\pi 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 nn balls into NN boxes with probabilities q1,,qNq_1,\ldots,q_N. The central quantities are the occupancy counts MrM_r and the proportions q^r=Mr/N\hat q_r=M_r/N of boxes containing exactly rr 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 LhnhUhL_h \le n_h \le U_h0 with decision variables LhnhUhL_h \le n_h \le U_h1, lower and upper bounds LhnhUhL_h \le n_h \le U_h2 and LhnhUhL_h \le n_h \le U_h3, and fixed total sample size LhnhUhL_h \le n_h \le U_h4. The feasibility conditions are

LhnhUhL_h \le n_h \le U_h5

The objective is to minimize the variance of the stratified LhnhUhL_h \le n_h \le U_h6 estimator of the population total or mean. The paper studies the generic variance form

LhnhUhL_h \le n_h \le U_h7

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

LhnhUhL_h \le n_h \le U_h8

with

LhnhUhL_h \le n_h \le U_h9

Then

hnh=n\sum_h n_h=n0

and for the mean,

hnh=n\sum_h n_h=n1

The structural properties are central. Each term hnh=n\sum_h n_h=n2 is strictly convex and strictly decreasing on hnh=n\sum_h n_h=n3, with derivative

hnh=n\sum_h n_h=n4

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

hnh=n\sum_h n_h=n5

or, in the notation of the paper,

hnh=n\sum_h n_h=n6

The active-set consistency conditions are

hnh=n\sum_h n_h=n7

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 hnh=n\sum_h n_h=n8 iterations because each iteration fixes at least one stratum. The final solution has the form

hnh=n\sum_h n_h=n9

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 π\pi0 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 π\pi1, 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 π\pi2, factories π\pi3 with factory π\pi4 as a catch-all factory, recipes π\pi5, and the order set π\pi6 for each day. The decision variable π\pi7 indicates whether order π\pi8 is assigned to factory π\pi9 on day nn0. Recipe-level assignment totals are induced by

nn1

Every order must be assigned to exactly one eligible factory: nn2 All factories except the catch-all operate at fixed daily capacity: nn3

The objective is expressed through site-level WMAPE. For consecutive days nn4, the numerator is linearized with auxiliary variables nn5: nn6 The day-nn7 denominator

nn8

is constant given the orders, so minimizing

nn9

is equivalent to minimizing

NN0

The multi-day proxy objective is therefore

NN1

or, if weighted explicitly by daily denominators,

NN2

The model admits a natural lower bound. Let

NN3

and define

NN4

By the triangle inequality,

NN5

hence

NN6

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 NN7 and WMAPE global NN8 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, NN9 balls are independently allocated to q1,,qNq_1,\ldots,q_N0 boxes with probabilities q1,,qNq_1,\ldots,q_N1, where q1,,qNq_1,\ldots,q_N2. The box occupancies q1,,qNq_1,\ldots,q_N3 follow a multinomial law, with each marginal q1,,qNq_1,\ldots,q_N4. For each q1,,qNq_1,\ldots,q_N5, the occupancy count q1,,qNq_1,\ldots,q_N6 is the number of boxes containing exactly q1,,qNq_1,\ldots,q_N7 balls, and the corresponding proportion is

q1,,qNq_1,\ldots,q_N8

These satisfy

q1,,qNq_1,\ldots,q_N9

The paper reframes the entire problem through the occupancy MrM_r0 of a uniformly randomly chosen box (Sagitov, 16 Apr 2026).

Let MrM_r1 be uniformly distributed over MrM_r2, define MrM_r3, and let

MrM_r4

Conditionally on MrM_r5, one has MrM_r6, so

MrM_r7

A central identity is

MrM_r8

Equivalently,

MrM_r9

The paper also provides exact expressions for variances and covariances by indicator decomposition. Writing q^r=Mr/N\hat q_r=M_r/N0,

q^r=Mr/N\hat q_r=M_r/N1

with

q^r=Mr/N\hat q_r=M_r/N2

For q^r=Mr/N\hat q_r=M_r/N3,

q^r=Mr/N\hat q_r=M_r/N4

Asymptotically, the analysis is expressed through the Poisson kernel

q^r=Mr/N\hat q_r=M_r/N5

and the random mean q^r=Mr/N\hat q_r=M_r/N6. Under the central-region assumptions q^r=Mr/N\hat q_r=M_r/N7, where q^r=Mr/N\hat q_r=M_r/N8, the classical leading terms become

q^r=Mr/N\hat q_r=M_r/N9

rr0

and analogous formulas hold for covariances. The paper’s main contribution is to replace these classical bounded-rr1 assumptions with the single technical condition rr2, and to provide explicit two-sided bounds on the remainder terms rr3 and rr4.

A particularly important special case is the proportion of empty boxes: rr5

rr6

with bounds

rr7

In the uniform model rr8, one obtains

rr9

and for empty boxes,

LhnhUhL_h \le n_h \le U_h00

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 LhnhUhL_h \le n_h \le U_h01 (Sagitov, 16 Apr 2026).

The acronym BAP is widely established for the Bottleneck Assignment Problem, which seeks a perfect matching LhnhUhL_h \le n_h \le U_h02 in a complete bipartite graph LhnhUhL_h \le n_h \le U_h03 minimizing the largest assigned cost: LhnhUhL_h \le n_h \le U_h04 An equivalent threshold formulation searches for the minimum LhnhUhL_h \le n_h \le U_h05 such that the graph LhnhUhL_h \le n_h \le U_h06, with

LhnhUhL_h \le n_h \le U_h07

contains a matching of size LhnhUhL_h \le n_h \le U_h08. 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 LhnhUhL_h \le n_h \le U_h09, or LhnhUhL_h \le n_h \le U_h10 when LhnhUhL_h \le n_h \le U_h11, where LhnhUhL_h \le n_h \le U_h12 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: LhnhUhL_h \le n_h \le U_h13 The paper proves a greedy fractional LhnhUhL_h \le n_h \le U_h14-approximation, a LhnhUhL_h \le n_h \le U_h15-approximation in the small-items regime, and a general-case batching result with slackness LhnhUhL_h \le n_h \le U_h16 and extension LhnhUhL_h \le n_h \le U_h17. 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 LhnhUhL_h \le n_h \le U_h18. In bus charging, products LhnhUhL_h \le n_h \le U_h19 are linearized by LhnhUhL_h \le n_h \le U_h20. 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, LhnhUhL_h \le n_h \le U_h21 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 LhnhUhL_h \le n_h \le U_h22 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.

Topic to Video (Beta)

No one has generated a video about this topic yet.

Whiteboard

No one has generated a whiteboard explanation for this topic yet.

Follow Topic

Get notified by email when new papers are published related to Box Allocation Problem (BAP).