Papers
Topics
Authors
Recent
Search
2000 character limit reached

2D Demand Bin Packing: Models & Algorithms

Updated 8 July 2026
  • 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 TT and capacity CC, with each task ii represented by a rectangle of width wiw_i and height hih_i, so that the sum of heights active at any time slot does not exceed CC (Albers et al., 18 Aug 2025). A second line corresponds directly to 2-dimensional vector packing, where item ii has demand vector (si,li)(s_i,l_i) and each bin has capacities (CS,CL)(C_S,C_L) (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 A:I{1,,T}\mathcal{A}: I \to \{1,\dots,T\} such that task CC0, if started at time CC1, occupies time slots CC2, and the load profile

CC3

satisfies CC4 for every slot CC5 (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 CC6, one seeks a minimum number of sets CC7 such that every tuple is assigned to some CC8 and

CC9

After normalization, the standard assumption is ii0 and ii1 (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 ii2 is represented by an item-count vector ii3, where ii4 is the number of copies of type ii5 placed in one bin. If ii6 denotes the number of bins using pattern ii7, then total production of type ii8 is

ii9

and demand is enforced by

wiw_i0

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 wiw_i1 with capacity wiw_i2, and each task wiw_i3 as a rectangle with width wiw_i4, height wiw_i5, and area wiw_i6 (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

wiw_i7

since a single bin can contain total area at most wiw_i8 (Albers et al., 18 Aug 2025).

A central structural notion is the load profile wiw_i9. A profile is called sorted if

hih_i0

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 hih_i1-structured solution. A partial solution is hih_i2-structured if it uses at most hih_i3 bins and each bin is either hih_i4-full or has a sorted load profile. The main insertion lemma states that if there exists a hih_i5-structured solution for tasks with hih_i6 or hih_i7, then all tasks can be allocated into at most hih_i8 bins provided

hih_i9

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 CC0-approximation can exist unless CC1, because an instance with CC2 would have to be recognized exactly (Albers et al., 18 Aug 2025). The paper strengthens this for restricted families. For short tasks, defined by

CC3

there is a 2-approximation, and no CC4-approximation exists unless CC5 (Albers et al., 18 Aug 2025). For square tasks, there is likewise a 2-approximation, again matching a CC6-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 CC7, items are classified as CC8-heavy if CC9 and ii0-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

ii1

The paper proves that its linear-time in-place algorithm generates a solution with no more than

ii2

bins, where ii3 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 ii4 rectangular item types, one rectangular bin type, and lower and upper production requirements ii5 and ii6. If all feasible patterns are enumerated, the master MIP is

ii7

where ii8 is the number of bins using pattern ii9 and (si,li)(s_i,l_i)0 indicates whether pattern (si,li)(s_i,l_i)1 is used at all (Groschke et al., 1 Sep 2025). The linking and demand-range constraints are

(si,li)(s_i,l_i)2

(si,li)(s_i,l_i)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 (si,li)(s_i,l_i)4 maximizing

(si,li)(s_i,l_i)5

where (si,li)(s_i,l_i)6 and (si,li)(s_i,l_i)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 (si,li)(s_i,l_i)8 and (si,li)(s_i,l_i)9 is

(CS,CL)(C_S,C_L)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 (CS,CL)(C_S,C_L)1, and the objective is to minimize

(CS,CL)(C_S,C_L)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 (CS,CL)(C_S,C_L)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 (CS,CL)(C_S,C_L)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 (CS,CL)(C_S,C_L)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 (CS,CL)(C_S,C_L)6 bins, no described rotation in the 2D formulation, and the reported mean number of used boxes improves slightly over BRKGA, from (CS,CL)(C_S,C_L)7 to (CS,CL)(C_S,C_L)8, while latency drops from (CS,CL)(C_S,C_L)9 ms to A:I{1,,T}\mathcal{A}: I \to \{1,\dots,T\}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 A:I{1,,T}\mathcal{A}: I \to \{1,\dots,T\}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.

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 2D Demand Bin Packing.