2D Demand Bin Packing: Models & Algorithms
- 2D demand bin packing is a family of optimization problems that allocate two-dimensional demand objects to bins with capacity constraints using models like timeline-capacity, vector packing, and pattern-based formulations.
- The timeline-capacity model schedules tasks as rectangles along a timeline, ensuring that the cumulative demand does not exceed bin capacity while supporting structured approximation algorithms.
- Advanced techniques include greedy heuristics, reinforcement learning, and branch-and-price formulations, addressing NP-hard complexity and yielding practical approximation bounds.
Searching arXiv for the provided topic and key supporting papers. arXiv search query: "2D Demand Bin Packing (Albers et al., 18 Aug 2025, Groschke et al., 1 Sep 2025, Otoo et al., 2011, Wang et al., 2024, Romero et al., 2023, Polyakovskiy et al., 2017, Côté et al., 2019, Blum et al., 2012)" 2D demand bin packing denotes a family of optimization problems in which two-dimensional demand objects must be allocated to bins under packing or capacity constraints, with the objective usually expressed as minimizing the number of bins used. The literature does not employ a single canonical formalization. One line of work defines a bin as a timeline of length and capacity , with each task represented by a rectangle of width and height , so that the sum of heights active at any time slot does not exceed (Albers et al., 18 Aug 2025). A second line corresponds directly to 2-dimensional vector packing, where item has demand vector and each bin has capacities (Otoo et al., 2011). A third line treats demand through multiplicities of geometric item types, selecting feasible single-bin layouts repeatedly until lower and upper production requirements are met (Groschke et al., 1 Sep 2025). Taken together, these works indicate that “2D demand bin packing” is best viewed as an umbrella term rather than a single standardized model.
1. Formalizations and scope
In the timeline-capacity formulation, a feasible allocation of tasks into one bin is a function such that task 0, if started at time 1, occupies time slots 2, and the load profile
3
satisfies 4 for every slot 5 (Albers et al., 18 Aug 2025). This model is demand-oriented in the literal sense: width is duration and height is per-slot demand. A common misconception is to equate this directly with geometric non-overlap packing. In fact, tasks may overlap in time as long as cumulative height remains within capacity; the feasibility condition is load aggregation, not rectangle disjointness (Albers et al., 18 Aug 2025).
In 2-dimensional vector packing, the mapping is coordinate-wise. Given tuples 6, one seeks a minimum number of sets 7 such that every tuple is assigned to some 8 and
9
After normalization, the standard assumption is 0 and 1 (Otoo et al., 2011). Here “demand” is a 2-component resource requirement rather than a geometric object.
In geometric demand formulations with multiplicities, a pattern or layout 2 is represented by an item-count vector 3, where 4 is the number of copies of type 5 placed in one bin. If 6 denotes the number of bins using pattern 7, then total production of type 8 is
9
and demand is enforced by
0
This is the formulation closest to cutting-stock style demand satisfaction in geometric 2D packing (Groschke et al., 1 Sep 2025).
2. Timeline-capacity demand packing
The most explicit recent formalization of 2D Demand Bin Packing models each bin as a timeline of length 1 with capacity 2, and each task 3 as a rectangle with width 4, height 5, and area 6 (Albers et al., 18 Aug 2025). The optimization problem is to partition the task set into the minimum number of bins so that each part admits a feasible allocation. A fundamental lower bound is the area bound
7
since a single bin can contain total area at most 8 (Albers et al., 18 Aug 2025).
A central structural notion is the load profile 9. A profile is called sorted if
0
This supports the generalized First-Fit mechanism used in the paper’s approximation framework: relatively large tasks are packed into a structured partial solution, and relatively small tasks are then inserted from left to right while maintaining a monotone suffix profile (Albers et al., 18 Aug 2025).
The key abstraction is a 1-structured solution. A partial solution is 2-structured if it uses at most 3 bins and each bin is either 4-full or has a sorted load profile. The main insertion lemma states that if there exists a 5-structured solution for tasks with 6 or 7, then all tasks can be allocated into at most 8 bins provided
9
This is the unifying device behind the approximation algorithms for short tasks, square tasks, and the general case (Albers et al., 18 Aug 2025).
3. Complexity and approximation landscape
The complexity picture is sharply developed for the timeline-capacity model. Even deciding whether a given set of tasks fits in one bin is NP-hard, which immediately yields that no 0-approximation can exist unless 1, because an instance with 2 would have to be recognized exactly (Albers et al., 18 Aug 2025). The paper strengthens this for restricted families. For short tasks, defined by
3
there is a 2-approximation, and no 4-approximation exists unless 5 (Albers et al., 18 Aug 2025). For square tasks, there is likewise a 2-approximation, again matching a 6-hardness barrier in the square-bin case (Albers et al., 18 Aug 2025). For unrestricted instances, the best guarantee in that paper is a 3-approximation, leaving a gap between the factor-2 hardness barrier and the current upper bound (Albers et al., 18 Aug 2025).
The vector-packing literature provides a different but related approximation perspective. In the normalized model 7, items are classified as 8-heavy if 9 and 0-heavy otherwise, and the algorithm repeatedly balances the currently dominant coordinate by adding an item from the opposite heavy class (Otoo et al., 2011). Let
1
The paper proves that its linear-time in-place algorithm generates a solution with no more than
2
bins, where 3 is the value of an optimal solution (Otoo et al., 2011). This result is specific to the 2-dimensional vector model rather than the timeline-capacity model, but it shows that 2D demand packing admits materially different approximation structures depending on whether “2D” refers to time-demand overlap or coordinate-wise capacities.
4. Pattern-based demand satisfaction and branch-and-price
A geometric demand model with explicit multiplicities is developed through a branch-and-price formulation in which each column represents one feasible 2D single-bin layout (Groschke et al., 1 Sep 2025). There are 4 rectangular item types, one rectangular bin type, and lower and upper production requirements 5 and 6. If all feasible patterns are enumerated, the master MIP is
7
where 8 is the number of bins using pattern 9 and 0 indicates whether pattern 1 is used at all (Groschke et al., 1 Sep 2025). The linking and demand-range constraints are
2
3
This is a genuine demand-bin-packing model: demands are not individual items only, but required multiplicities covered by repeated use of feasible patterns (Groschke et al., 1 Sep 2025).
The decomposition is classical in spirit but specialized to 2D geometry. The master problem handles demand accounting; the pricing problem generates a new feasible pattern 4 maximizing
5
where 6 and 7 are dual variables associated with lower and upper demand bounds (Groschke et al., 1 Sep 2025). The difficult 2D placement constraints are therefore removed from the master and handled inside pricing. In the reported implementation, pricing is heuristic rather than exact: multiplicities are grown greedily, feasibility is checked with a bottom-left heuristic, several orderings are tried, and all positive reduced-cost columns found are added (Groschke et al., 1 Sep 2025).
A distinctive feature is the adapted Ryan-Foster branching for multiplicity-rich settings. For a fractional solution, the affinity between item types 8 and 9 is
0
Branching then either forbids cohabitation of a pair of types in future patterns or forces at least one joint occurrence via a compound item type (Groschke et al., 1 Sep 2025). This is a demand-specific strengthening that does not arise in finite-item formulations.
5. Operational enrichments and neighboring variants
Several adjacent literatures enrich 2D packing with operational constraints that are demand-like without introducing demand as a first-class mathematical object. In the two-dimensional non-oriented bin packing problem with due dates, every item must be packed, each bin completes at time 1, and the objective is to minimize
2
The paper couples assignment and geometry through an exact MIP, CP-based single-bin feasibility checks, and assignment MIPs guided by dual-feasible-function feasibility constraints, then improves solutions with random local search (Polyakovskiy et al., 2017). Although the objective is lateness rather than bin minimization, the separation between assignment and per-bin feasibility is directly relevant to demand-oriented extensions.
A logistics-oriented line extends bin packing to heterogeneous bins, item-bin eligibility restrictions, and delivery priorities. In the 2D case, items are orthogonally placed rectangles with optional 3 rotation, continuous coordinates, and relative-position binaries for non-overlap; delivery priority is imposed by fixing selected relative-position variables, and admissible-bin sets 4 encode item-bin association requirements (Romero et al., 2023). This does not introduce explicit demand variables, order quantities, or service-level penalties, but it captures operational constraints often associated with demand-serving environments.
The broader 2D geometric literature contributes structural tools rather than direct demand models. A randomized multi-start and evolutionary use of the LGFi constructive heuristic show how permutation search can exploit order sensitivity in oriented 2D bin packing under free guillotine cutting (Blum et al., 2012). A primal decomposition based on area-only assignment decisions, exact 2D feasibility checks, and no-good cuts demonstrates how geometry can be deferred to subproblems in exact algorithms (Côté et al., 2019). For skewed instances, shelf, container, and compartment decompositions lead to a 5-style guillotine bound and an APTAS, illustrating how thin-item structure collapses geometric complexity into bounded pattern spaces (Khan et al., 2021). These results are not demand formulations, but they are structurally important because demand-oriented geometric models often reuse the same shelf, configuration, and decomposition ideas.
6. Heuristics, learning-based methods, and current frontiers
Machine-learning approaches have so far treated demand mostly as an expanded finite batch rather than as a separate modeling layer. One deep reinforcement learning formulation takes a fixed offline set of rectangular objects, learns the packing order with a modified Pointer Network, and places items deterministically through a 2D height map. In the 2D experiments, there are 40 objects per instance, identical 6 bins, no described rotation in the 2D formulation, and the reported mean number of used boxes improves slightly over BRKGA, from 7 to 8, while latency drops from 9 ms to 0 ms per instance (Wang et al., 2024). This is best interpreted as a learned heuristic for a fixed known order list in which each demanded item has multiplicity one.
A different line studies online and semi-online single-bin utilization maximization with repacking. A hierarchical framework combines heuristic tree search for item choice, order, and orientation with an RL policy for placement position, and in 1 bins reaches near-perfect or perfect utilization on the reported 100% sets once repacking is enabled (Lee et al., 2 Jun 2025). This is highly relevant to incremental demand arrival, but it optimizes fill in a currently open bin rather than minimizing the number of bins.
LLM-guided heuristic generation has also been evaluated on standard 2D-BPP, using an evaluator that scores generated scripts by number of bins, utilization, and runtime, with island-based selection over six iterations (Huq et al., 26 Sep 2025). The paper is explicit that it does not model item demand quantities or customer demand fulfillment. A plausible implication is that such frameworks are reusable for demand-aware problems only after the evaluator is rewritten around multiplicity, fulfillment, or service constraints.
Across these strands, three open issues recur. First, the phrase “2D demand bin packing” remains model-dependent: it may mean timeline-capacity demand overlap, 2-dimensional vector packing, or geometric pattern selection with multiplicities. Second, the general timeline-capacity model still has a gap between its factor-2 hardness barrier and its current 3-approximation (Albers et al., 18 Aug 2025). Third, in geometric demand models, the most natural exact framework is pattern-based branch-and-price, but the reported pricing is heuristic and the LP relaxation can lose the layout-count component of the objective (Groschke et al., 1 Sep 2025). These points suggest that the field is converging on a shared set of tools—structured solutions, configuration or pattern spaces, feasibility surrogates, and decomposition—without yet converging on a single universal definition of the problem itself.