Proving 237/500 Optima on the Pisinger–Sigurd (MB) Benchmark

Question

Pack nn rectangles (n=20n = 20 to 100100, no rotation) into bins. There are up to 5 bin types, each with a width, a height, a cost and unlimited supply. Minimise the total bin cost. The benchmark has 10 classes × 5 sizes × 10 instances.

Two different objectives:

  • W: cost = the cost column in the file. This is Pisinger and Sigurd’s problem.
  • U: cost = bin area. The heuristic papers and the packingsolver best-known-solution file [4] use this one.

In 2005, Pisinger and Sigurd published 500 instances of this problem (the “MB” set, for both objectives), together with a branch-and-price algorithm that proved 164 of them optimal [1]. The 2021 survey of exact methods [2] still lists the rest (of objective W) as open.

Recently, Baldacci, Wang, Wei, Liu, Furini and Xu presented an exact algorithm for heterogeneous 2D bin packing at IFORS 2026 [5], and the group lists a working paper on numerically safe lower bounds [6]. I expect it to go well beyond these results. That is why this is just a blog post ;D

Results

Proven optimalWU
n=20n = 20100 / 100100 / 100
n=40n = 4083 / 10065 / 100
n=60n = 6038 / 10011 / 100
n=80n = 808 / 1007 / 100
n=100n = 1008 / 1007 / 100
Total237190

W. All 100 instances with 20 items are closed, including the 29 the survey lists as open. At n=40n = 40 we close 83. The survey lists 62 of the 100 as open, so at least 45 of those 62 are among them. At n≥60n \ge 60 we close 54, about as many as Pisinger and Sigurd did (about 55).

U. The best-known table (packingsolver, 2025) [4] uses the lower bounds of Wei et al. (2013) [3] and closes 83 instances. We close 190, 143 of them not closed in that table. Our packings are cheaper than the best known on 13 instances:

InstanceOursBest known (2025)Proven optimal
MB_C3_1192089404yes
MB_C3_171232112644yes
MB_C8_14119612119628yes
MB_C10_127311473960yes
MB_C10_145775357936yes
MB_C10_165290053632yes
MB_C10_176660266789yes
MB_C10_186500565074yes
MB_C10_207972480088yes
MB_C10_155295753382no
MB_C10_197103871412no
MB_C10_257529475460no
MB_C10_298402585000no

Methods

Just combining different kinds of brute force, I have to say.

  • A CP-SAT model with strong symmetry breaking. Bin kk may only be opened by item kk, which removes most permutations of the bins. It proves every W instance with 20 items in at most 3 s.
  • Column generation (Dantzig–Wolfe), with exact CP-SAT pricing. The fractional bound is rounded by a small integer program over bin-type counts. Benders cuts and exact feasibility checks of fixed bin counts strengthen it further.
  • Enumeration of bin-count vectors. List the bin-count vectors in order of cost, from the lower bound up, and refute each one with cheap filters, Benders cuts or a fixed-bin CP-SAT model. Once the bound is close to the optimum, only a few vectors remain.
  • A 2D orthogonal packing prover for single bins: dual-feasible-function (DFF) certificates, CP-SAT, and SAT with DRAT proofs.

A small example. MB_C2_8 (U) has 20 items with total area 507. The best known packing costs 594. The only cheaper choice of bins is a single 27×1927 \times 19 bin (area 513), so the question is whether the items fit in it, and they don’t. Any vertical line through the bin crosses items of total height at most 19, so the sum of ⌊h/2⌋\lfloor h/2 \rfloor over those items is at most 9. Summing over the 27 columns of the bin, the total of w⋅⌊h/2⌋w \cdot \lfloor h/2 \rfloor over all items can be at most 27⋅9=24327 \cdot 9 = 243. For these items it is 245.

Reproduce

git clone https://github.com/CHHC-L/2dvsbpp-optima
cd 2dvsbpp-optima
pip install -r requirements.txt
# check one packing:
python src/check_solution.py data/instances/MB_C3_11.txt results/final/solutions/MB_C3_11_area.json area
# solve one instance (40 s limit):
python src/sweep_run.py --variant weighted --time 40 MB_C1_11

The repository has a per-instance table (results/final/results.csv: LB, UB, which methods prove the LB, whether that is confirmed) and one packing per instance and variant.

Code, results and packings: github.com/CHHC-L/2dvsbpp-optima

Note

Most of the code was written by Claude Opus 5.5.

References

  1. D. Pisinger, M. Sigurd. The two-dimensional bin packing problem with variable bin sizes and costs. Discrete Optimization 2(2):154–167, 2005.
  2. M. Iori, V. L. de Lima, S. Martello, F. K. Miyazawa, M. Monaci. Exact solution techniques for two-dimensional cutting and packing. EJOR 289(2):399–415, 2021.
  3. L. Wei, W.-C. Oon, W. Zhu, A. Lim. A goal-driven approach to the 2D bin packing and variable-sized bin packing problems. EJOR 224(1):110–121, 2013.
  4. F. Fontan. packingsolver. github.com/fontanf/packingsolver (best-known values in data/rectangle/data_variable_sized_bin_packing_oriented_pisinger2005.csv).
  5. R. Baldacci, S. Wang, L. Wei, Q. Liu, F. Furini, Z. Xu. A unified exact algorithm for multiple variants of heterogeneous 2D bin packing. IFORS 2026, talk 572.
  6. S. Wang, R. Baldacci, F. Furini, L. Wei, Z. Xu. High-dimensional heterogeneous bin packing: tightened formulations, numerically safe lower bounds, and an efficient exact algorithm. Working paper, not yet public.