arXiv:2609.17368cs.DSSep 2026

Manuscript Offprint

arXiv:2609.17368

PrecPack: An Efficient Open-Source Exact Solver for Bin Packing with Generalized Precedence Constraints

Sunkanghong Wang, Zhengzhong Ricky You, Roberto Baldacci, Baichuan Mo, Hu Qin, Lijun Wei, Zhou Xu

informs. http://pubsonline.informs.org/journal/ijoc

INFORMS JOURNAL ON COMPUTING Vol. 00, No. 0, Xxxxx 0000, pp. 000–000 ISSN 0899-1499, EISSN 1526-5528

Submitted to INFORMS Journal on Computing

PrecPack: An Efficient Open-Source Exact Solver for Bin Packing with Generalized Precedence Constraints

Sunkanghong Wanga,e^{a,e}, Zhengzhong Ricky Youb^{b}, Roberto Baldaccic^{c}, Baichuan Mob^{b}, Hu Qind^{d}, Lijun Weie,∗^{e,*}, Zhou Xua^{a}

a^{a}Department of Logistics and Maritime Studies, Faculty of Business, The Hong Kong Polytechnic University, Hong Kong, China

b^{b}Department of Civil Engineering, Tsinghua University, Beijing 100084, China

c^{c}College of Science and Engineering, Hamad Bin Khalifa University, Doha, Qatar

d^{d}School of Management, Huazhong University of Science & Technology, Wuhan, China

e^{e}Guangdong Provincial Key Laboratory of Computer Integrated Manufacturing, Guangdong University of Technology, Guangzhou, China

∗^{*}Corresponding author

Abstract. Efficient resource use in packing and assembly-line applications requires decisions that jointly account for capacity and precedence constraints. The strongly NP-hard bin packing problem with generalized precedence constraints (BPP-GP) models such decisions by minimizing the number of ordered, capacitated bins required to pack weighted items, even when precedence requirements span multiple bins. Existing exact algorithms primarily focus on classical special cases, whereas general BPP-GP has been addressed only via compact integer models and heuristics, with no efficient open-source exact solver. We present PrecPack, a unified exact solver that extends branch-bound-and-remember (BBR) to arbitrary nonnegative precedence weights and naturally specializes to the classical cases. Generalized states capture restrictions that remain active across future bins, which are addressed through branching, dominance, and conflict-aware lower bounds. Root column generation uses fixed-point arithmetic to compute numerically valid dual bounds for pruning or to prove optimality. To support reuse and verification, we provide common programming and command-line interfaces, independent assignment checking, explicit termination statuses, and reproducible batch execution; the core procedures require no commercial software. In same-machine, single-threaded comparisons on classic assembly-line benchmarks, more instances are proven optimal, and average computing times are substantially reduced relative to leading source-available BBR implementations. Further comparisons with published benchmark results for bin packing with precedence constraints and BPP-GP also show that more instances were proved optimal and that reported average gaps were smaller on most benchmark sets. PrecPack is released under the MIT License at https://github.com/Sunkanghong-Wang/PrecPack.

Funding: This work was supported by the Natural Science Foundation of China [Grants 72671084, 72271062, and 52575565], Science and Technology Projects in Guangzhou [Grant 2024A04J01019], and the Province Natural Science Fund of Guangdong [Grants 2025A1515110258, 2025A1515011297, and 2024A1515010246].

Key words: bin packing • generalized precedence constraints • assembly line balancing • open-source exact solver • branch-bound-and-remember