Manuscript Offprint
arXiv:2609.17368PrecPack: An Efficient Open-Source Exact Solver for Bin Packing with Generalized Precedence Constraints
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 Wang, Zhengzhong Ricky You, Roberto Baldacci, Baichuan Mo, Hu Qin, Lijun Wei, Zhou Xu
Department of Logistics and Maritime Studies, Faculty of Business, The Hong Kong Polytechnic University, Hong Kong, China
Department of Civil Engineering, Tsinghua University, Beijing 100084, China
College of Science and Engineering, Hamad Bin Khalifa University, Doha, Qatar
School of Management, Huazhong University of Science & Technology, Wuhan, China
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
Wang et al.: PrecPack: An Efficient Open-Source Exact Solver for BPP-GP Article submitted to INFORMS Journal on Computing
the same bin and, depending on the precedence weight, for several subsequent bins. Capacity and precedence decisions are therefore inseparable, and a partial packing over the bins already fixed must retain more information than the set of items already assigned.
Formally, let be the item set, with , and let be the positive integer bin capacity. Each item has a positive integer weight . Bins are available in an unlimited number and are indexed by positive integers. Generalized precedence is represented by the acyclic digraph , where is the set of precedence arcs. Each arc carries a nonnegative integer precedence weight , the minimum required difference between the bin index of and that of . A solution is an assignment of items to bins, represented by the vector , where is the index of the bin to which item is assigned. Solution is feasible if the total weight assigned to each bin does not exceed the capacity, , , and if it satisfies the generalized precedence constraints
The objective is to find a feasible solution that minimizes , i.e., the index of the last bin. Since precedence weights larger than one may force some bins to remain empty, this index can exceed the number of nonempty bins, even in an optimal solution. Figure 1 shows an instance with 20 items and capacity , along with an optimal packing using seven bins, where the fourth bin is empty. The numbers to the left of the bins indicate their indices, from 1 at the top to 7 at the bottom. Removing the empty bin and moving subsequent bins forward would violate precedence requirements. The possibility of intermediate empty bins distinguishes BPP-GP from BPP and complicates the adaptation of existing BPP techniques.

(a) Generalized Precedence Graph

(b) Optimal Seven-Bin Solution
Figure 1 A BPP-GP Instance with n = 20 and C = 30 and an Optimal Packing with an Empty Fourth Bin
The BPP-GP generalizes two classical problems as special cases. When for every arc, predecessors and successors may share a bin, yielding the simple assembly line balancing problem of type I (SALBP-I), where items are assembly tasks, weights are processing times, bins are stations, and capacity is the prescribed cycle time (Sewell and Jacobson 2012). When for every arc, successors must occupy strictly later bins, yielding the bin packing problem with precedence constraints (BPP-P). Its applications
Wang et al.: PrecPack: An Efficient Open-Source Exact Solver for BPP-GP Article submitted to INFORMS Journal on Computing
3
include multiprocessor scheduling of unit-duration tasks with a single renewable resource (Garey et al. 1976), electronics assembly with part-before-shield requirements (Tirpak 2008), and field-programmable gate array reconfiguration for image processing (Augustine et al. 2009). BPP-GP further captures heterogeneous waiting requirements in production to preserve structural properties (Kramer et al. 2017) and in construction to let structures gain strength before further assembly (Chassiakos and Sakellaropoulos 2005).
Let be an upper bound on the optimal BPP-GP solution value, e.g., the smallest possible index of the last bin, and let be the set of bin indices. The formulation represents a solution as an ordered sequence of bins. Binary variable equals one if item is assigned to bin , and binary variable equals one if the bin in position is used, including any required intermediate empty bin. A compact BPP-GP formulation proposed by Kramer et al. (2017) is
Constraints (2b) assign each item exactly once, Constraints (2c) enforce capacity limits, and Constraints (2d) impose precedence-weight requirements. Constraints (2e) account for each bin through the last occupied one, including intermediate empty bins required by positive precedence weights. Although the compact formulation can be solved by general-purpose integer programming solvers, this approach is generally limited to proving optimality for very small instances, as shown in Section 4.3. This limited scalability motivates the development of efficient, dedicated exact solvers for BPP-GP.
1.1. Related Work and the Gap in Open-Source Exact Solvers
The literature on exact methods for SALBP-I and BPP-P provides the closest methodological background. For SALBP-I, exact algorithms have evolved from early laser and iterative-deepening searches through SALOME to cyclic best-first search (CBFS), branch-bound-and-remember (BBR), bounded dynamic programming (DP), and later improved variants. For BPP-P, research has progressed from bidirectional depth-first search (DFS) within branch-and-bound (BB) to CBFS-based BBR enumeration. In particular, both problems are also addressed by the branch-cut-and-price (BCP) method of Letelier et al. (2022).
Table 1 summarizes representative search frameworks and branching rules used in leading exact methods for SALBP-I and BPP-P; ordinary BPP and production-rate-maximization variants of SALBP-I are outside its scope. A checkmark denotes publicly downloadable application source code. This designation is distinct
Article submitted to INFORMS Journal on Computing
Table 1 Representative Exact Algorithms and Solvers for SALBP-I and BPP-P
| Problem | Solver name | Reference | Search framework | Branching or item-subset generation | Public code |
|---|---|---|---|---|---|
| SALBP-I | FABLE88 | Johnson (1988) | Laser search (DFS) | Item branching for the earliest bin | |
| OptPack91 | Nourie and Venta (1991) | Laser search (DFS) | Item branching for the earliest bin | ||
| EUREKA92 | Hoffmann (1992) | Iterative-deepening BB | Item subsets in forward/reverse runs | ||
| SALOME97 | Scholl and Klein (1997) | DFS with local lower-bound method | Bidirectional item-subset generation | ||
| SALOME99 | Scholl and Klein (1999) | DFS with local lower-bound method | Bidirectional item-subset generation | ||
| BBR12 | Sewell and Jacobson (2012) | CBFS, then breadth-first BBR | Item subsets in one chosen direction | ✓ | |
| BBR14 | Morrison et al. (2014) | CBFS, then breadth-first BBR | Item subsets in one chosen direction | ✓ | |
| I-SALOME20 | Li et al. (2020) | Modified CBFS-based BB | Bidirectional item-subset generation | ||
| I-BDP20 | Li et al. (2020) | Bounded DP with beam search | Item subsets in one chosen direction | ||
| I-BBR20 | Li et al. (2020) | Modified CBFS-based BBR | Item subsets in one chosen direction | ||
| I-BBR20' | Li et al. (2020) | Beam-search BBR | Item subsets in one chosen direction | ||
| BCP22 | Letelier et al. (2022) | BCP | Ryan-Foster item-pair branching | ||
| R-BBR23 | Álvarez-Miranda et al. (2023) | CBFS, then breadth-first BBR | Item subsets in one chosen direction | ✓ | |
| BPP-P | BB12 | Dell' Amico et al. (2012) | Bidirectional DFS-based BB | Bidirectional item-subset generation | |
| EA16 | Pereira (2016) | CBFS-based BBR | Item subsets in one chosen direction | ||
| EA17 | Kramer et al. (2017) | CBFS-based BBR | Item subsets in one chosen direction | ||
| BCP22 | Letelier et al. (2022) | BCP | Ryan-Foster item-pair branching |
Notes. I-SALOME20, I-BDP20, I-BBR20, and I-BBR20' denote ISALOME, IBDP, IBBR1, and IBBR2, respectively, in Li et al. (2020). EA17 denotes the rerun of EA16 after implementation fixes, as reported by Kramer et al. (2017). BCP22 denotes the BCP-K variant of Letelier et al. (2022), which is initialized with the best-known upper bounds obtained by Kramer et al. (2017).
from open-source distribution under an explicit license. The BBR companion package includes the standard BBR12 and backtracking BBR14 implementations, while R-BBR23 is distributed via a public repository. Dantzig-Wolfe lower bounds based on column generation have been developed for SALBP-I (Peeters and Degraeve 2006, Pereira 2015) and BPP-P (Pereira 2016). The BCP method of Letelier et al. (2022) also uses a pattern-based relaxation with precedence-implied conflicts. However, none of these methods carefully address numerical issues arising from floating-point linear programming (LP) solvers, column generation may yield invalid dual bounds, potentially leading to incorrect pruning or an incorrect declaration of optimality, and may even enter an infinite iteration loop (Baldacci et al. 2024, da Silva and Schouery 2025).
For BPP-GP, Kramer et al. (2017) introduced the problem and proposed the compact bin-indexed formulation (2), preprocessing procedures, adapted lower bounds, and the batching-move iterated local search (BM-ILS) heuristic. As discussed above, the compact model is exact but has limited computational scalability. BM-ILS can produce strong incumbents but is not an exact algorithm. Letelier et al. (2022) later developed an exact BCP method for special cases of bin packing with time lags. It can solve BPP-GP with weights in , including SALBP-I and BPP-P, but cannot directly address general BPP-GP with arbitrary precedence weights. Moreover, existing BBR methods for SALBP-I and BPP-P can be extended, but their state representations and dominance rules cannot be transferred unchanged. Under generalized precedence constraints, partial packings with the same assigned items can impose different restrictions on future bins. These restrictions must therefore be retained when comparing and remembering search states.
The methodological gap also concerns software availability. No explicitly licensed exact solver is available for arbitrary heterogeneous precedence weights. A research implementation is most useful when its mathematical state, termination statuses, independent validation procedure, and experimental protocol are inspectable. Related open-source work provides several examples. PyVRP and Alkaid-SDVRP combine high performance with documented reusable implementations (Wouda et al. 2024, Lin et al. 2026); VRP-SolverEasy exposes a sophisticated exact method through a compact interface (Errami et al. 2024); and
Wang et al.: PrecPack: An Efficient Open-Source Exact Solver for BPP-GP Article submitted to INFORMS Journal on Computing
5
RouteOpt combines exact performance with modular algorithm components and reproducible artifacts (You and Yang 2026). Addressing this gap requires an exact BPP-GP solver that combines competitive performance with reusable interfaces, independently verifiable results, and reproducible experiments.
1.2. Technical Foundations, Contributions, and Organization of This Paper
To address these gaps, we present PrecPack, a unified, efficient, open-source exact solver for BPP-GP that also specializes naturally to SALBP-I and BPP-P when all precedence weights are zero and one, respectively. It combines numerous classical and advanced techniques from the literature as follows:
• Branching, search, and dominance. Branches are defined by maximal feasible item subsets (Dell'Amico et al. 2012, Pereira 2016). The search is organized using CBFS and remembering, while redundant branches are eliminated by the Jackson and no-successors rules (Sewell and Jacobson 2012, Morrison et al. 2014). States are ordered by the one-machine priority rule, and additional dominance tests are based on the one-item-superset and directed subgraph-isomorphism rules (Pereira 2016).
• Preprocessing and primal heuristics. Precedence strengthening and item lifting tighten the precedence and capacity constraints, respectively (Kramer et al. 2017). Direction selection aims to reduce branching near the root, and structured reductions simplify the instance before search (Pereira 2016). First-fit and best-fit heuristics construct initial feasible packings, while modified Hoffmann heuristics (Hoffmann 1963, Sewell and Jacobson 2012, Morrison et al. 2014) and bounded DP (Pereira 2016) seek better incumbents.
• Lower bounds. To support search pruning and optimality proofs, we use precedence-path and window bounds (Kramer et al. 2017), one-machine scheduling bounds (Pereira 2016), the BPP-P network bound (Dell'Amico et al. 2012) computed with the DINIC algorithm (Dinic 1970), dual-feasible-function (DFF) bounds (Fekete and Schepers 2001, Boschetti and Mingozzi 2003, Haouari and Gharbi 2005, Crainic et al. 2007), and the ordinary-bin-packing lower-bound routine (BINLB) (Sewell and Jacobson 2012).
• Root relaxation. Pattern-based set covering provides a relaxation for strengthening the root lower bound (Gilmore and Gomory 1961, Lübbecke and Desrosiers 2005). Conflict-knapsack pricing identifies improving patterns that satisfy capacity and pairwise incompatibility constraints (Hifi and Michrafy 2007, Pereira 2016, Letelier et al. 2022), while a diversification strategy seeks multiple distinct improving patterns per iteration (da Silva and Schouery 2025). Fixed-point arithmetic ensures that the root lower bound used for pruning or optimality decisions is numerically valid (Baldacci et al. 2024).
Building on these foundations, this study makes the following four unique contributions:
(1) Generalized exact search. To the best of our knowledge, this study provides the first BBR-based exact method for BPP-GP with arbitrary nonnegative precedence weights and the last-bin-index objective. Its state representation retains precedence restrictions across future bins. Forced empty-bin transitions and generalized state and item dominance enable exact search under these restrictions. State-dependent precedence information is incorporated into the residual path, one-machine, and closure bounds, while pairwise conflicts strengthen BINLB and capacity tightening. Bounds are evaluated in order of computational cost, and auxiliary searches are limited to control the additional effort without compromising exactness.
Wang et al.: PrecPack: An Efficient Open-Source Exact Solver for BPP-GP Article submitted to INFORMS Journal on Computing
(2) Computational performance. In same-machine, single-thread tests with the same time limit, PrecPack proves optimality for 523 of the 525 SALBP-I benchmark instances with 100 items, versus 456 or 457 for each of three source-available BBR implementations. The average computing time over all instances is 1.79 seconds for the proposed solver, compared with 50.39 to 55.18 seconds for the three implementations. Further comparisons with published state-of-the-art results for BPP-P and BPP-GP show that PrecPack proves optimality for more instances and achieves smaller average gaps on most benchmark sets.
(3) Reusable and reliable implementation. The C++ implementation provides a common application programming interface (API) and command-line interface (CLI), with separately testable algorithmic components, independent assignment checking, and regression tests. Pruning and optimality decisions rely on integer or discrete calculations. Fixed-point arithmetic ensures the numerical validity of the root lower bound computed from column-generation dual values. Explicit statuses distinguish optimality from resource-limited termination, and the core procedures require no commercial software.
(4) Reproducible experiments. Documented instance and solution formats, resumable batch scripts, and structured results allow users to repeat the comparisons and evaluate algorithmic extensions through a common experimental workflow. Algorithmic settings and applicability rules are specified in advance for all three problem classes, without benchmark-specific algorithm selection.
The remainder of this paper is organized as follows. Section 2 presents the solution procedure, emphasizing the extended BBR search. Section 3 describes the software design, implementation, and reproducibility. Section 4 reports the computational experiments, and Section 5 gives conclusions and future research directions. The Online Supplement provides additional algorithmic details, proofs, and experimental settings.
2. The PrecPack Solver
Let LB and UB denote the best valid lower bound and the value of the best incumbent found, respectively. The design principle of PrecPack is to apply inexpensive procedures first to strengthen bounds. These procedures may prove optimality directly or reduce the work required by the subsequent complete BBR search. The overall solution procedure is summarized as follows.
• Step 1 (Input Validation, Preprocessing, and Initial Bounds): Read the instance, check the consistency of its item, capacity, and precedence data, and apply the preprocessing procedures. Set LB to the maximum of several inexpensive initial lower bounds and initialize UB with the bin count of the best feasible packing obtained by constructive heuristics (see §2.1).
• Step 2 (Preliminary Search and Incumbent Improvement): Apply additional primal heuristics, followed by a limited preliminary BBR search and, when applicable, the bounded DP heuristic, to seek a smaller UB. If the preliminary BBR search proves optimality, set LB = UB (see §2.2).
• Step 3 (One-Fewer-Bin Test and Direction Choice): Compute the earliest and latest admissible bins for each item under the candidate limit UB – 1. If any resulting interval is empty, no solution using at most UB – 1 bins exists, so set LB = UB. Otherwise, use these intervals to choose whether to retain the current precedence graph or reverse all its arcs, aiming to reduce branching in the subsequent search (see §2.3).
Wang et al.: PrecPack: An Efficient Open-Source Exact Solver for BPP-GP Article submitted to INFORMS Journal on Computing
7
• Step 4 (Root-Bound Strengthening by Column Generation): Apply column generation to a special relaxation without explicit bin positions and increase LB if a stronger lower bound is obtained (see §2.4).
• Step 5 (Complete BBR Search): Conduct a complete BBR search to improve UB and strengthen LB, stopping when optimality is proved or the configured time or memory limit is reached (see §2.5).
• Step 6 (Reconstruction, Validation, and Reporting): Restore the input item numbering, verify the feasibility of the best solution found, and report the solution, final bounds, and whether optimality was proved or the run was stopped because the time or memory limit was reached (see §2.6).
Whenever LB = UB during the solution process, optimality is proved, so the remaining steps are skipped and execution proceeds directly to Step 6. The following subsections describe these steps in detail.
2.1. Input Validation, Preprocessing, and Initial Bounds
Before preprocessing, we verify that , , for all , , for all , and that is acyclic. Multiple input arcs with the same ordered endpoints are replaced by a single arc with the maximum precedence weight. Instances that fail any of these conditions are rejected before preprocessing.
After the input passes these checks, each preprocessing round begins with the precedence-strengthening procedure of Kramer et al. (2017), which uses the current precedence and capacity constraints to derive stronger precedence relations between items, thereby strengthening the graph G. Then, the bin capacity C is additionally tightened using a conflict-aware maximum-fill calculation introduced in this study. Specifically, for any , let , and call two items compatible if the strengthened graph contains no positive-weight precedence relation between them in either direction. The tightened capacity is
and is computed by a standard BB algorithm that branches on whether to include each item and uses subset-sum upper bounds (Hifi and Michrafy 2007). Because the items assigned to any feasible bin form a pairwise-compatible subset considered in Eq. (3), the total weight of every feasible bin is at most ; thus, replacing C with preserves feasibility and optimality. Based on the tightened capacity, the item-lifting procedure of Kramer et al. (2017) and the direction rule of Pereira (2016) are then applied. Next, the items are renumbered in topological order, with ties broken by nonincreasing weight and then by the nonincreasing number of immediate successors. Thus, a complete preprocessing round applies precedence strengthening, capacity tightening, item lifting, direction selection, and item renumbering in that order. Another round starts from the updated instance if and only if at least one of these procedures changes the instance, and all five procedures are executed again. The direction rule in this loop establishes a working orientation for the remaining initialization procedures; the one-fewer-bin test in Section 2.3 may later reverse this orientation before the structured reductions and exact-search phases. The structured reductions of Pereira (2016) are outside this loop and, when every input precedence arc has weight one, are applied after the final orientation is selected.
After preprocessing, the initial lower bound LB is calculated as the maximum of the continuous BPP bound (Dell'Amico et al. 2012), the precedence-path bounds (Kramer et al. 2017), and the window-DFF
Wang et al.: PrecPack: An Efficient Open-Source Exact Solver for BPP-GP Article submitted to INFORMS Journal on Computing
bounds (Kramer et al. 2017). For an input designated as BPP-P, the longest-path maximum-flow bound of Dell'Amico et al. (2012) is additionally computed. Next, an initial upper bound is constructed using a fit-based heuristic that evaluates the preprocessed topological item order, a stable nonincreasing-weight order that retains the topological order for ties, and 20 shuffled orders. At each placement, only unassigned items whose predecessors have already been assigned are considered. For each order, one packing is constructed using first-fit and another using best-fit, with the latter permitting only feasibility-preserving exchanges. The better packing is retained, and the best solution found across all evaluated orders initializes UB. The strengthened graph is used to compute the initial bounds and in the fit-based, modified Hoffmann, and bounded DP primal heuristics, as well as in the one-fewer-bin test. In contrast, the limited preliminary BBR search, root relaxation, and complete BBR search use the original precedence relations. Excluding the additional strengthened relations in these searches prevents the maximum precedence weight from increasing and, consequently, the size and memory requirements of each search state. Our preliminary experiments also indicated better average performance with this choice.
2.2. Preliminary Search and Incumbent Improvement
If an optimality gap remains, the modified Hoffmann heuristic, adapted from Sewell and Jacobson (2012), first evaluates a set of scoring functions that combine item weight and successor information. For each scoring function, a packing is constructed one bin at a time by enumerating a capped set of capacity- and precedence-feasible item subsets for each bin and selecting the highest-scoring subset; the best resulting packing is retained. For SALBP-I, the item-subset enumeration follows Sewell and Jacobson (2012) and successively uses limits of 50, 250, 500, and 1000 subsets per bin when and a single limit of 50 when . To extend this heuristic from SALBP-I to BPP-GP, the feasibility checks used during subset enumeration are modified to enforce arbitrary nonnegative precedence weights. An item may share a bin with a predecessor only when the connecting arc has weight zero; otherwise, their bin indices must satisfy the prescribed minimum difference. A limited BBR search is then run for at most 0.05 seconds to solve easy instances. For BPP-P and BPP-GP, a bounded DP heuristic based on Pereira (2016) subsequently advances one bin per stage and retains a ranked subset of the generated successor states. To accommodate generalized precedence constraints, its state representation additionally records restrictions that remain active across future bins, distinguishing partial packings with the same assigned items but different future restrictions. The transition rules enforce the required differences between bin indices and create an empty bin when no nonempty feasible subset of items can be assigned. It keeps at most 1000 states per stage, 50 promising transitions per state, and 1000 generated item subsets per state. Let T denote the global time limit. The modified Hoffmann heuristic, the limited BBR search, and the bounded DP heuristic share an initialization budget of seconds, measured from the start of preprocessing.
2.3. One-Fewer-Bin Test and Direction Choice
To efficiently determine whether the incumbent is optimal, the one-fewer-bin test targets bins. Following the earliest/latest-bin construction of Pereira (2016), it computes a valid lower bound on
Wang et al.: PrecPack: An Efficient Open-Source Exact Solver for BPP-GP Article submitted to INFORMS Journal on Computing
9
the bin index of each item from terms based on precedence paths and the capacity needed by transitive predecessors, as well as a valid lower bound on the number of bins required after the bin containing from the corresponding successor terms. The resulting valid upper bound on its bin index is . If for some item , no solution can use at most bins, and the incumbent is therefore optimal. Otherwise, the direction is selected by comparing two products. The forward product multiplies the counts over the first at most five bins , whereas the reverse product multiplies over the last at most five bins. The working orientation is reversed only if the reverse product is smaller. For any positive integer horizon , reversing every precedence arc and mapping to defines a feasibility-preserving bijection between packings within bins under the two orientations. Thus, feasibility across all horizons, and hence the optimal bin count, remains unchanged. This choice determines only the orientation used in the subsequent reductions, root-bound strengthening, and complete BBR search.
2.4. Root Lower-Bound Strengthening by Column Generation
To further strengthen LB before the complete BBR search, we solve a set-covering relaxation without explicit bin indices by column generation. The relaxation and the subsequent BBR search use the instance obtained after preprocessing and any applicable structured reductions. If structured reductions have fixed bins outside this instance, their number is subtracted from LB and UB for these calculations and restored when reporting bounds and solutions; a nonempty remaining instance has a lower bound of at least one.
Let be the maximum sum of precedence weights over all directed paths from item to a distinct item , with if no such path exists, and let contain the endpoints and every item on a directed path from to . The relaxation uses the conflict graph , where, for distinct items , if , , or there exists such that item is reachable from item and . A pattern is an item subset that respects capacity and contains no edge in ; let be the set of all such subsets. For each , let equal one if pattern contains item and zero otherwise, let be its fractional use, and let be the bin-count variable. The position-free LP relaxation is
Relaxation (4) follows the modeling approach of Letelier et al. (2022), whose patterns incorporate pairwise incompatibilities implied by weighted precedence paths. Their BCP method applies column generation at the nodes of a BB tree and adds cycle-elimination inequalities. In contrast, we apply column generation only at the root to strengthen LB, without subsequently branching on this model. The cycle-elimination inequalities are also omitted, so pricing remains a conflict-knapsack problem. Relative to their set-partitioning
Wang et al.: PrecPack: An Efficient Open-Source Exact Solver for BPP-GP Article submitted to INFORMS Journal on Computing
formulation, we use the covering inequalities (4b), which restrict the associated dual multipliers to nonnegative values. We also minimize rather than the total number of nonempty patterns used. Constraint (4c) allows to exceed this total, accommodating the intermediate empty bins counted by the BPP-GP objective without explicitly determining their positions. Every feasible pattern belongs to : a positive-weight precedence path prevents its endpoints from sharing a bin, while placing related items and together forces all items in into that bin and therefore requires . Every feasible packing using at most UB bins induces a feasible solution to Model (4). Thus, the relaxation optimum provides a valid lower bound.
Because the set may be exponentially large, Model (4) is solved by column generation. The restricted position-free relaxation is initialized with one pattern for each nonempty bin in the incumbent solution; intermediate empty bins produce no pattern because represents the total number of bins independently of the fractional use of nonempty patterns. These initial patterns cover every item and therefore yield a feasible initial restricted relaxation. Column generation then iteratively solves the restricted relaxation and augments it with negative-reduced-cost patterns returned by the pricing problem. Specifically, let denote the profit of item in the pricing problem, equal to the dual multiplier of Constraint (4b), and let denote the dual multiplier of Constraint (4c), written as . The reduced cost of a pattern is . The bounds on affect only the dual condition associated with and therefore do not enter the reduced cost of a pattern. Because is identical for all patterns, minimizing reduced cost is equivalent to maximizing pattern profit. For each item , let be one if item is selected for the generated pattern and zero otherwise. The resulting conflict-knapsack pricing problem is as follows.
A negative-reduced-cost pattern exists only if . The problem (5) is solved by the DP-guided BB method of Hifi and Michrafy (2007). Items with positive profit are numbered 1, ..., r, placing items with no incident conflict first and items involved in a conflict last. Let and denote the profit and weight of the jth item in this order. BB processes this order backward, so undecided items always form a prefix, and conflict-free items are processed last. Ignoring conflicts, let be the maximum profit obtainable from the first j items in this order with capacity c:
with for ; the recurrence is evaluated for every and .
At a BB node with current profit v, residual capacity c, and the first j items in this order still undecided, is a valid upper bound even when some of these items conflict with selected items. When
Wang et al.: PrecPack: An Efficient Open-Source Exact Solver for BPP-GP Article submitted to INFORMS Journal on Computing
11
seeking to improve columns, a node is pruned if this bound does not exceed the larger of the best admissible pricing profit found and . Once all items involved in a conflict have been decided, the remaining items have no conflicts with each other or with selected items, so the DP value gives the exact best completion and closes the node. A heuristic pricing procedure uses the diversification strategy of da Silva and Schouery (2025) to generate a limited set of negative-reduced-cost patterns.
To prevent floating-point error from affecting the lower bound, the nonnegative dual values are scaled and rounded toward zero to obtain integer item profits, following the fixed-point principles of Baldacci et al. (2024). For lower-bound calculation, a separate pricing call maximizes the scaled profit over the full pattern set using integer arithmetic. In this integer pricing call, the pruning threshold is the best feasible profit found, not the scaled column-generation threshold. The resulting lower bound is calculated from the scaled profits and the proven pricing optimum, rather than by rounding the objective value of the restricted relaxation; the integer calculation is given in Section A.3 of the Online Supplement. Note that the column-generation procedure is valid for every instance but, based on preliminary experiments, is invoked only when . Its total budget is seconds, where is the remaining global computing time; the procedure is skipped if this budget is below 0.05 seconds.
2.5. BBR Search
The core search procedure in PrecPack extends the BBR methods developed for SALBP-I (Sewell and Jacobson 2012, Morrison et al. 2014) and the exact-search techniques developed for BPP-P (Pereira 2016) to accommodate generalized precedence constraints in BPP-GP. The search repeatedly selects a search state, assigns a feasible subset of items to the next bin, applies valid bounds and dominance rules, and stores previously explored states to avoid redundant work. The following steps summarize the procedure.
• Step 5.1 (Initialization): Create the root state (see §2.5.1), initialize the exact-state table and the depth-indexed priority queues used by CBFS, and place the root state in the queue for depth 0 (see §2.5.3).
• Step 5.2 (State Selection): Select the next open state from the priority queues using CBFS (see §2.5.3). If no open state remains, the search is exhausted, and the incumbent is proved optimal.
• Step 5.3 (Branch Generation): Enumerate the maximal feasible item subsets for the next bin, ensuring no further unassigned items can be added without violating feasibility (see §2.5.2). If some items remain unassigned and no nonempty feasible subset exists, generate the unique forced-empty-bin transition. During the enumeration process, apply item-replacement dominance rules (see §2.5.4) to eliminate dominated branches before constructing child states, thus reducing the number of states the search evaluates.
• Step 5.4 (Child Evaluation and Insertion): Construct a child state for each retained branch. If the child assigns every item, update the incumbent if its bin count is smaller than UB. Otherwise, evaluate the inexpensive capacity and DFF bounds, consult the exact-state table (see §2.5.3), apply the dominance tests (see §2.5.4), and then evaluate the more expensive residual lower bounds (see §2.5.5). Prune the child as soon as any test succeeds. If the child is not pruned, store it and add it to the queue for its depth. If the same state was previously stored at a greater depth, update that state and reinsert it at the smaller depth instead.
Wang et al.: PrecPack: An Efficient Open-Source Exact Solver for BPP-GP Article submitted to INFORMS Journal on Computing
• Step 5.5 (Continuation and Termination): Continue processing the retained branches unless the time or memory limit is reached. After processing all branches of the current state, return to Step 5.2. If the search is interrupted by reaching either limit, preserve the current incumbent and valid lower bound (see §2.5.6). Record which limit caused termination and proceed to Step 6.
The remainder of this subsection defines the BBR state for generalized precedence constraints and presents the branching, remembering, dominance, and lower-bound procedures used in these steps. It then describes search initialization and termination under resource limits.
2.5.1. State Representation for Generalized Precedence Constraints. At a bin boundary, the assigned-item set alone is sufficient to describe the remaining precedence restrictions in SALBP-I and BPP-P. However, in general BPP-GP, an assigned predecessor can keep a successor unavailable for several future bins, so the remaining separation distances must also be recorded. Consider a search state immediately before opening bin , where bins have been fixed and . Let be the assigned-item set and the unassigned-item set. Let be the largest number of future bins over which a newly imposed precedence restriction can remain active, with the inner maximum equal to zero when . For each , define . These are the items excluded from all of the next bins by a direct arc from an already assigned predecessor. When , the sets satisfy ; for notational convenience, let for every . Let be the separation tuple.
The BBR state is then , serving as the key used by the exact-state table. When all precedence weights are zero or one, and is empty, reducing the BBR state to the assigned-item set . Let denote the subset of items assigned to bin , hereafter called a load, and let . Feasibility requires , and for every , , every predecessor of connected by an arc of positive weight belongs to , and every predecessor linked by an arc of weight zero belongs to . Thus, the endpoints of a precedence arc of weight zero may share a load, while every precedence constraint with positive weight is respected. The child separation tuple is
where advances each existing restriction by one bin. The second set in (7) adds the restrictions created by the current load, while the final set difference excludes items that have already been assigned. Let be a feasible partial packing: its loads are disjoint, meet capacity and precedence constraints among assigned items, and include all predecessors of assigned items. Each load may be empty while there are unassigned items; a complete packing ends at its last nonempty bin. Hence, a load corresponds to a single bin, whereas denotes the first fixed bins. Let denote the BBR state induced by , and be the set of finite sequences of future loads that, starting with bin , assign every remaining item exactly once, satisfying all capacity and precedence constraints, and ending when the last remaining item is assigned. If no items remain, contains only the empty sequence. Proposition 1 shows that partial packings with the same BBR state admit the same feasible future-load sequences. This justifies remembering states without including the complete packing history in the state representation.
Wang et al.: PrecPack: An Efficient Open-Source Exact Solver for BPP-GP Article submitted to INFORMS Journal on Computing
13
Proposition 1 (Sufficiency of the BBR State for BPP-GP) For any two feasible partial packings P and of the same BPP-GP instance, implies .
Proof. Given in Section B.1 of the Online Supplement.
2.5.2. Maximal-Load Branching and Forced Empty Bins. Consider a BBR state S with at least one unassigned item. Let be the set of all nonempty loads feasible for the next bin, and let denote the loads in that are maximal under set inclusion. The branching set is
Precedence weights greater than one introduce a transition that does not arise in classical SALBP-I and BPP-P searches. If , the next bin must be empty; the separation tuple is updated according to Eq. (7), and the bin is counted in the objective. If , the empty load is excluded.
The principle of branching on maximal feasible loads follows Dell'Amico et al. (2012) and Pereira (2016). We extend its feasibility conditions to account for the separation tuple and introduce a forced-empty-bin transition when no nonempty load is feasible. Proposition 2 shows that these branches retain at least one minimum-length feasible future-load sequence, thereby justifying the restriction to maximal loads and forced empty bins. The procedure for enumerating maximal feasible loads, including within-bin eligibility updates, is detailed in Section A.4 of the Online Supplement.
Proposition 2 (Completeness of Generalized Branching) For any BBR state S generated by the search, let be the common set of feasible future-load sequences for partial packings that induce S, as established by Proposition 1. If , some minimum-length sequence in begins with a load in . Proof. Given in Section B.2 of the Online Supplement.
2.5.3. CBFS and Exact-State Remembering. CBFS selects the next open state. Open states are partitioned by depth, and the nonempty depth queues are visited cyclically. Within each depth, BPP-GP and its BPP-P special case use the ordering rule of Pereira (2016). For each , let be the maximum total precedence weight on a directed path starting at in the subgraph induced by , and order the unassigned items as so that . States with smaller values of are selected first, with ties first resolved in favor of the smaller value of . In particular, for SALBP-I at depth , we retain the BBR12 priority , including the coefficient 0.02 used by Sewell and Jacobson (2012). Our implementation multiplies this priority by 50d to obtain the integer value . Since states are compared within the same depth, this positive scaling preserves their order. Depth zero contains only the root. Any remaining ties are resolved by the smaller state lower bound and then by state-generation order. These rules affect only the order of state expansion, not the generated state space or exactness. For each BBR state , exact-state remembering records the smallest depth at which has been reached. When is generated at depth , it is discarded if the same state was previously reached at a depth , because Proposition 1 gives both occurrences the same
Wang et al.: PrecPack: An Efficient Open-Source Exact Solver for BPP-GP Article submitted to INFORMS Journal on Computing
feasible future-load sequences. If the previous depth satisfies , the remembered depth is reduced, the depth-dependent lower bound is recalculated, and the state is returned to the queue at depth d.
2.5.4. Dominance Rules. Beyond exact-state remembering, PrecPack applies two dominance rules between BBR states and several between feasible item subsets for the next bin to reduce the search space. Consider as an arbitrary reachable BBR state at depth d. A state is dominated by S if every future-load sequence from it can be substituted by one from S without increasing the objective value, allowing it to be discarded without losing an optimal solution. The first rule, stated in Proposition 3, extends memory-based dominance (Sewell and Jacobson 2012, Pereira 2016) to states with identical assigned items but potentially different separation tuples. Under this rule, a state can be discarded if another state is reached at no greater depth and imposes no stronger restrictions on future bins.
Proposition 3 (Separation-Tuple Dominance) Let , with , be another reachable state of the same working instance at depth . If and for every , then dominates .
Proof. Given in Section B.3 of the Online Supplement.
The second rule, stated in Proposition 4, extends the maximum-load rule of Pereira (2016) for SALBP-I and BPP-P. In these special cases, a state reached at no greater depth that has assigned the same items plus one dominates the state with fewer assigned items. For BPP-GP, this extension additionally requires the separation tuple of the dominating state to be componentwise contained in that of the dominated state.
Proposition 4 (Generalized Maximum-Load Dominance) For an item , let , with , be another reachable state of the same working instance at depth . If and for every , then dominates .
Proof. Given in Section B.4 of the Online Supplement.
The remaining rules compare feasible item subsets for the next bin. At the same state, one load dominates another if every feasible future-load sequence starting with the latter can be replaced by one starting with the former using no more bins. When all precedence weights are zero, the extended Jackson replacement and no-successors rules are applied (Sewell and Jacobson 2012, Morrison et al. 2014). When all precedence weights are one, transitive-successor containment and Pereira (2016)'s directed subgraph-isomorphism dominance are used. The latter seeks an injective mapping from the selected item's successor subgraph to the replacement item's successor subgraph, preserving every arc and mapped nonroot weight while permitting a heavier replacement root. For heterogeneous precedence weights, unweighted successor containment is inadequate since two arcs to the same successor may impose different minimum separations. The labeled-successor item-dominance rule, stated in Proposition 5, prefers assigning an item with no smaller weight and no weaker successor requirements earlier, provided that the exchange is feasible; the item left for a later bin then has no larger weight and no stronger successor requirements. The item-replacement comparison is
Wang et al.: PrecPack: An Efficient Open-Source Exact Solver for BPP-GP Article submitted to INFORMS Journal on Computing
15
extended using the direct-arc label if , and otherwise. The condition for every requires each direct-successor restriction of item to be matched by one from item with at least the same precedence weight. When applying this rule, equal weights and identical outgoing labels are resolved in favor of the smaller item index. In this case, may replace only if . This convention prevents equivalent choices from eliminating one another.
Proposition 5 (Labeled-Successor Item Dominance) Let be a feasible maximal next load at state , let , and let . Define . If neither item is reachable from the other in , , for every , is feasible at , and whenever and for every , then there exists a feasible maximal next load that dominates . Consequently, when replacements are applied only under these conditions, every discarded load is dominated by a retained load, and the branch beginning with may be discarded.
Proof. Given in Section B.5 of the Online Supplement.
2.5.5. Residual Lower Bounds. Residual (local) lower bounds prune states that cannot improve the incumbent. For a state at depth , with , define as its minimum achievable objective value. Each of the following bounds includes the fixed bins and is a valid lower bound on . The capacity and DFF bounds are examined first, followed by exact-state remembering and state dominance tests. For states that remain after these assessments, precedence-path, one-machine, closure, and bounded BINLB calculations are considered in that order. A state is discarded as soon as one of these bounds reaches UB, without evaluating the remaining bounds.
Relaxing the precedence constraints for unassigned items yields the classic capacity and DFF bounds for BPP (Fekete and Schepers 2001, Boschetti and Mingozzi 2003, Haouari and Gharbi 2005, Crainic et al. 2007). A function is dual feasible if holds for every finite multiset of positive real numbers with . Let denote the retained set of DFFs.
For each , these bounds are
At most seven DFFs are retained from a base candidate set. When all precedence weights are zero or all are one, up to eight additional DFFs are selected from an expanded candidate set; otherwise, only the base selection is used. Details are provided in Section A.1 of the Online Supplement.
To account for precedence, define for each unassigned item . This quantity counts the consecutive bins, beginning with , in which cannot be placed because of direct arcs from already assigned predecessors. Let be a valid lower bound on the offset of the bin assigned to relative to the next bin . The value retains its meaning from Section 2.5.3 as the
Wang et al.: PrecPack: An Efficient Open-Source Exact Solver for BPP-GP Article submitted to INFORMS Journal on Computing
maximum total precedence weight on a path from through unassigned successors. For every , the earliest offset and tail are calculated in topological and reverse-topological order, respectively, by
Thus, the precedence-path bound is . The BPP-P head and tail constructions of Dell'Amico et al. (2012) and Pereira (2016) use unit precedence weights, whereas Kramer et al. (2017) define weighted heads and tails at the root of BPP-GP. Equations (10) extend this weighted construction to BPP-GP through , which accounts for restrictions imposed by already assigned items.
The same and serve in place of the root head and tail quantities in the forward and reverse one-machine bounds and the predecessor/successor closure bound (Dell'Amico et al. 2012, Pereira 2016, Kramer et al. 2017). The one-machine bounds combine the number of bins required by the total weight of a subset with the requirements imposed by the earliest bin positions or remaining precedence paths of its items. Their state-dependent formulations and validity arguments are given in Section A.5 of the Online Supplement. In SALBP-I, all precedence weights and residual offsets are zero. Thus, is dominated by the capacity bound, and both one-machine bounds equal the capacity bound; therefore, these three calculations are omitted. The closure bound is also evaluated for SALBP-I because it can still be stronger: the predecessors and successors of an item may each require several bins, and the corresponding bin intervals overlap only at the bin containing that item.
The final stage combines ordinary BINLB (Sewell and Jacobson 2012) with a conflict-aware extension to test whether the unassigned items can fit into at most UB - d - 1 bins under relaxed precedence constraints. Proving infeasibility is sufficient to prune S without determining the exact optimum of the relaxation. Ordinary BINLB removes all precedence constraints, resulting in a minimum bin count represented by . The extension restricts the conflict graph from Section 2.4 to , leading to a bin-packing-with-conflicts relaxation whose optimum is denoted as . This relaxation maintains capacity restrictions and pairwise incompatibilities while ignoring bin order and the placement of any necessary empty bins.
This stage begins by checking inexpensive capacity and DFF bounds, together with a clique bound when conflicts are present; each item in a clique requires a different bin. Unlike the earlier checks on the full BBR state, these bounds also apply to the smaller remaining subsets produced during the auxiliary searches. If the initial checks do not prune S, ordinary BINLB is applied. The exact conflict-aware search is considered only when the ordinary phase completes without pruning S. Because bin order is irrelevant in this relaxation, one selected item must be included in the next bin. Maximal capacity-feasible subsets containing that item and no conflicting pair are then enumerated, thereby removing bin symmetry.
If the auxiliary search proves that the unassigned items cannot fit into at most bins, the resulting lower bound is . Otherwise, if an auxiliary optimum is obtained, the corresponding bound is or . If an auxiliary search is interrupted, only bounds already established are retained, including a previously computed ordinary optimum; an unfinished test contributes no new infeasibility conclusion. The auxiliary searches use fixed effort limits, specified in Section A.2 of the Online Supplement.
Wang et al.: PrecPack: An Efficient Open-Source Exact Solver for BPP-GP Article submitted to INFORMS Journal on Computing
17
2.5.6. Search Initialization and Resource Limits. To reduce initialization time, we perform a brief BBR search before constructing the expanded DFF set and other expensive search components. The search uses the base DFF set, with generalized item dominance and BINLB disabled, and has a time budget of 0.001 seconds. It is attempted only when expanded DFF generation is enabled and applicable, and more than 0.002 seconds remain in the current BBR budget. The procedure is shared by the 0.05-second BBR search in Section 2.2 and the complete BBR search; the short search consumes part of the corresponding budget and receives no additional time.
If the short search proves optimality, its result is returned immediately. Otherwise, if time remains in the enclosing BBR budget, only its validated incumbent is passed to a new search initialized at the root with the configured bounds and dominance rules. The stored states are not reused. If the complete BBR search is interrupted by the global time or memory limit, the current incumbent and a valid lower bound are returned, together with the reason for termination. A state remains open until its expansion is completed or its remaining branches are pruned, even after it has been removed from its priority queue. Thus, an interrupted expansion leaves the parent open to represent its ungenerated branches. Let be the set of unfinished states, including any partially expanded parent, and let be the valid lower bound entering the BBR search. For each , let denote its retained lower bound on the total number of bins, including those already fixed, as described in Section 2.5.5. When , the reported lower bound is . If search exhaustion is established, ; otherwise, if no unfinished state is available, is retained. Section 3.4 describes memory accounting.
2.6. Reconstruction, Validation, and Reporting
Upon termination of the solution procedure, the best packing is reconstructed for the original instance. Any item renumbering or bin order reversal is undone, and items removed or preassigned by structured reductions are reinstated. Contributions from fixed bins excluded from root and BBR computations are added back into their bounds. The packing is verified using the original item weights, bin capacity, and precedence constraints to ensure that every item is assigned exactly once, that no bin exceeds capacity, and that all precedence constraints are met. The objective value is recalculated as the index of the largest occupied bin. Only packings that satisfy these conditions are returned, accompanied by the final lower and upper bounds. The status report indicates whether optimality was proved or if termination occurred due to time or memory limits.
3. Software Design, Implementation, and Reproducibility
The PrecPack described above is implemented in a common C++ core, available through a stand-alone executable and a library interface. Users can solve new instances, embed the solver in larger applications, and extend its algorithmic components while reusing the tools for instance handling and solution verification.
Wang et al.: PrecPack: An Efficient Open-Source Exact Solver for BPP-GP Article submitted to INFORMS Journal on Computing
3.1. Architecture and Public Interface
The executable used by the CLI and sequential batch launcher links to the static library prepack_core and invokes the same solve API used by library clients. As illustrated in Figure 2, input/output (I/O) and assignment checking are separated from the search algorithms, allowing applications to reuse these routines. The Solver API coordinates initialization, optional root strengthening, and the BBR Driver. Root strengthening returns a lower-bound result without maintaining BBR states or determining the final termination status. All three problem classes share a single BBR implementation; fixed settings select applicable rules and simpler representations according to precedence weights rather than benchmark-set names. Section 2 specifies the corresponding applicability conditions and effort limits. Section A.7 of the Online Supplement provides the C++ identifiers corresponding to the shortened names in the figure.
The public function solve(const Instance&, const Config&) accepts an Instance containing the problem data and a Config containing the algorithmic settings and resource limits. It returns a Solution containing the assignment, bounds, status, and statistics. The function make_solver_config constructs a Config with fixed algorithmic settings and the requested resource limits. These limits must be finite and positive, including when a Config is constructed directly.
Figure 3 illustrates a call with a 300-second time limit and a limit of 24 gibibytes (GiB; bytes) on accounted BBR memory. This memory limit is passed to the API as 24576 mebibytes (MiB; bytes). The statuses OPTIMAL, TIME_LIMIT, and MEMORY_LIMIT distinguish optimality from resource-limited termination. Invalid input and execution errors produce library exceptions or nonzero CLI exit codes.
3.2. Efficient Implementation
The implementation limits memory use and avoids repeated computation. States are stored as contiguous 64-bit words, while frequently accessed fields are stored in separate arrays allocated in blocks. Unnecessary fields are omitted when the separation tuple is empty. A hash table supports state lookup, and full-state comparison prevents hash collisions from causing distinct states to be treated as equal. State lookup, grouping, reinsertion, and memory accounting are detailed in Section A.6 of the Online Supplement. Bit masks and reusable arrays support eligibility and dominance tests without reconstructing successor relations at each branch. DFF contributions are precomputed, and each child's residual sums are obtained by subtracting the contributions of its newly assigned items from the parent's sums. Auxiliary bin-packing searches also reuse allocated storage. Further details are provided in Sections A.1, A.2, and A.4 of the Online Supplement.
3.3. Reuse and Extension
Initialized with an instance and effort limits, BinPackingBound can be reused to evaluate different item subsets without invoking the complete BBR search. For a state at depth d, it receives the unassigned-item set, the global deadline, the available time budget, and the target UB – d. Subject to its effort limits, it is called at the final bound stage in Section 2.5.5, after earlier bounds and memory and dominance tests have failed to prune the state. It returns a valid lower bound on the number of additional bins and completion information. BBR adds d to this bound and takes the maximum with the existing state bound, pruning when the
Wang et al.: PrecPack: An Efficient Open-Source Exact Solver for BPP-GP Article submitted to INFORMS Journal on Computing
19

Figure 2 Component Interfaces and Principal Dependencies in PrecPack. CG: Column Generation.
const auto problem = prepack::ProblemKind::kBppGp; const auto instance = prepack::read_instance( "case.txt", std::filesystem::path{"case.graph"}, prepack::to_string(problem)); const auto config = prepack::make_solver_config(problem, 300.0, 24576); const auto result = prepack::solve(instance, config); std::cout << prepack::to_string(result.status) << " LB=" << result.lower_bound << " UB=" << result.upper_bound << '\n';
Figure 3 Core Library Call Through the Unified Interface
result reaches UB. If the call is interrupted, only established bounds are retained, including any completed ordinary-bin-packing optimum; an unfinished search does not establish infeasibility. New residual bounds can be added to this sequence according to computational cost, with the same requirements for bound validity and interruption handling. New primal heuristics similarly return assignments for independent checking before the upper bound is updated. Extending the problem definition also requires establishing state sufficiency, branching completeness, and the validity of preprocessing and assignment checks.
3.4. Execution and Reproducibility
Common .txt files store weights, capacity, and precedence arcs; SALBP-I and BPP-P assign arc weights of zero and one, respectively, whereas BPP-GP uses a paired weighted .graph file. Results are written to a compact comma-separated values (CSV) file and a separate assignment file that preserves intermediate
Wang et al.: PrecPack: An Efficient Open-Source Exact Solver for BPP-GP Article submitted to INFORMS Journal on Computing
empty bins. Sequential batch runs can be resumed. CMake builds the C++20 library and executable on macOS, Linux, and Windows. Gurobi is optional and used only for root-bound strengthening and reference tests; preprocessing, primal heuristics, complete BBR, and validation remain available without it. BBR and Gurobi each use one central processing unit (CPU) thread. Fixed orders, tie-breaking rules, and seed 1 determine algorithmic choices. Wall-clock interruption can nevertheless change the work completed across machines or builds.
One global deadline applies to all solution phases. The memory limit applies to the memory tracked for BBR, not to the resident memory of the entire process; the checks before additional memory is allocated are specified in Section A.6 of the Online Supplement. Bounds and assignments are retained upon termination as described in Section 2.6. Our MIT-licensed repository contains the source code and benchmark data. A separate replication archive will preserve the fixed source revision, inputs, settings, raw results, and table-generation scripts used in this paper, allowing subsequent software development without altering the published evidence. Section C of the Online Supplement provides the computational settings.
3.5. Verification and Regression Tests
The reusable check_assignment function checks candidate and returned assignments against an instance without relying on the changing search state. Exhaustive reference solvers for small instances complement this check by testing preprocessing, dominance, bounds, and complete BBR. Conflict-aware BINLB is compared with an independent solver for bin packing with conflicts; the BPP-P flow bound is tested on targeted examples and 80 randomized instances with brute-force optima. Optional Gurobi tests compare root bounds and reference integer-programming solutions.
Regression cases cover forced empty bins, reinsertion of states reached again at a smaller depth, hash collisions, and interrupted auxiliary searches. Interface tests cover argument parsing, configurations, data handling, CSV compatibility, batch resumption, and time-limit reporting. The GitHub Actions workflow runs Gurobi-free builds, tests, and checks of the launch scripts on all three platforms.
4. Computational Experiments
We evaluate PrecPack through same-machine comparisons with source-available exact methods and comparisons with published results across SALBP-I, BPP-P, and BPP-GP. Experiments use a MacBook Pro with an Apple M4 Pro processor and a nominal memory capacity of 48 gigabytes (GB; bytes). The C++ implementation is compiled in Release mode with Apple Clang 17.0.0 and includes support for Gurobi 13.0.2 for root-bound strengthening. All PrecPack runs use one CPU thread, seed 1, a 24 GiB limit on the memory accounted for by BBR, and the fixed algorithm settings of Section 2. In the following tables, “#I” denotes the number of instances and “#Opt” the number proved optimal. Lower-bound matches reported for BM-ILS are identified separately. For PrecPack, “Time/s” denotes the average elapsed computing time over all instances, including those not proved optimal; it includes preprocessing, initialization, root strengthening when invoked, and BBR, but excludes file I/O and the time spent launching the solver. “Gap/%” denotes the
Wang et al.: PrecPack: An Efficient Open-Source Exact Solver for BPP-GP Article submitted to INFORMS Journal on Computing
21
average of 100(UB – LB)/UB. To retain the metric used in the SALBP-I reports, Table 3 instead reports relative percentage deviation (RPD), with LB as the denominator. Published values retain their original timing definitions and reference bounds, and the two percentages are not interchangeable. A double dash denotes unavailable data; boldface marks the best displayed value within each matched group, not a normalized performance ranking. The time limits for comparisons with published results were fixed before the experiments. Section C.2 of the Online Supplement specifies the reference methods, CPU ratings, and exceptions used to assess these limits; the ratings are not used to normalize computing times.
4.1. Benchmark Instances
The Otto sets generated by Otto et al. (2013) differ in graph structure, order strength (the proportion of item pairs ordered by precedence), and item-weight distribution. The original sets include ; additional sets with were created by Kramer et al. (2017) using the same parameters. For each size, the set contains 21 classes of 25 instances, resulting in 525 instances; we refer to these groups as Otto-20, Otto-50, and so on. The same item weights, capacities, and precedence arcs define SALBP-I with , BPP-P with , and two BPP-GP sets with precedence weights drawn uniformly from or . We use these related sets to evaluate performance across problem variants and instance sizes. For SALBP-I, the original benchmark also provides a permuted Otto-50 set: each base instance is supplemented with nine random permutations of its item weights over the unchanged precedence graph, resulting in 5250 instances, including the 525 originals.
The Scholl set generated by Scholl (1993) contains 269 instances obtained by varying the bin capacities of 25 base instances with 7 to 297 items. Its SALBP-I and BPP-P versions have identical item weights, capacities, and arcs, and differ only in whether every arc has weight 0 or 1 (Dell'Amico et al. 2012). Scholl complements the systematic Otto sets with established instances of varying sizes and structures.
4.2. Same-Machine Comparison with Source-Available Exact Solvers
In the same-machine comparison, we evaluate the proposed solver against the three publicly available SALBP-I implementations identified in Table 1: standard BBR12 (Sewell and Jacobson 2012), its memory-saving backtracking implementation BBR14 (Morrison et al. 2014), and R-BBR23 (Álvarez-Miranda et al. 2023). All four implementations are compiled in Release mode and run sequentially on the same 525 Otto-100 instances, each using one thread and a nominal 350-second limit. Table 2 reports the sums of bounds across all 525 instances. “Limit/s” indicates the time limit per instance in seconds. “Nodes” reflects the average number of states generated by PrecPack and the average native node count for R-BBR23. Node counts from different implementations are not directly comparable and are reported only as descriptive statistics. Final node counts are unavailable for BBR12 and BBR14. On this set, PrecPack proves optimality for 523 out of 525 instances, exceeding each of the three baselines by 66 or 67 instances, with only two instances not proved optimal within the time limit. It also attains a greater lower bound and a smaller upper bound. The average final gap is 0.008%, compared to 0.479% to 0.774% for the baselines, and its average computing time is 1.79 seconds, versus recorded baseline times of 50.39 to 55.18 seconds.
Wang et al.: PrecPack: An Efficient Open-Source Exact Solver for BPP-GP Article submitted to INFORMS Journal on Computing
Table 2 Same-Machine Comparison on SALBP-I Instances with 100 Items
| Instance Set | #I | Solver | Limit/s | #Opt | Gap/% | Nodes | Time/s | |||
|---|---|---|---|---|---|---|---|---|---|---|
| Otto () | 100 | 525 | BBR12 | 350 | 456 | 15982 | 16117 | 0.479 | 51.35 | |
| BBR14 | 350 | 457 | 15892 | 16116 | 0.774 | 55.18 | ||||
| R-BBR23 | 350 | 456 | 15982 | 16117 | 0.479 | 1992763 | 50.39 | |||
| PrecPack (Ours) | 350 | 523 | 16105 | 16107 | 0.008 | 328880 | 1.79 |
4.3. Comparison with the Published Results
Tables 3 to 5 extend the evaluation to matched benchmark groups with published results. Where available, original reports are used, retaining the longest reported limit for each method under comparison. Section C.1 of the Online Supplement details the sources of the published results and the computational environments used. The time limits appear after method names in the tables. Tables 3 and 4 present item count and instance count as (#I), while each entry in Table 5 provides #Opt/Gap/Time for 525 instances. We interpret computing times alongside proof counts and reported gaps; a shorter average time under a reduced limit does not necessarily indicate greater speed, since unresolved instances are stopped earlier. Gaps computed with different reference lower bounds are unsuitable for direct comparison of feasible solution quality.
4.3.1. SALBP-I. Table 3 compares PrecPack with SALOME97 (Scholl and Klein 1997), BBR12 (Sewell and Jacobson 2012), BBR14 (Morrison et al. 2014), CPLEX (Kramer et al. 2017), the four improved methods studied by Li et al. (2020), and BCP22 (Letelier et al. 2022). It covers Scholl, all seven Otto base sizes, and the separate permuted Otto-50 set. Our PrecPack proves optimality for all 269 Scholl instances and all instances in the 20- and 50-item Otto groups, including the permuted Otto-50 set. At , its 523 proofs exceed the 512 to 517 reported for the improved methods and 490 for BCP22. At , it proves optimality for 330 to 444 instances within 75 seconds, compared with 0 to 71 for the CPLEX runs at 300 seconds. At , however, our solver proves optimality for 306 instances, compared with 349 or 350 for BBR14 and the improved methods under their respective longer time limits.
Table 3 Comparison with Published Results on SALBP-I
| (#I) | Scholl and Otto Base Sets, | (#I) | Otto () and Permuted Otto-50 | ||||||
|---|---|---|---|---|---|---|---|---|---|
| Solver (Limit/s) | #Opt | RPD/% | Time/s | Solver (Limit/s) | #Opt | RPD/% | Time/s | ||
| 7 to 297 (269) | BBR12 (3600) | 269 | 0.00 | 0.43 | 250 (525) | CPLEX (300) | 71 | 7.44 | 266.00 |
| I-BBR20 (900) | 269 | 0.00 | PrecPack (75) | 444 | 0.23 | 13.34 | |||
| PrecPack (350) | 269 | 0.00 | 0.30 | ||||||
| 20 (525) | CPLEX (300) | 525 | 0.00 | 0.09 | 500 (525) | CPLEX (300) | 1 | 6.94 | 300.26 |
| SALOME97 (20) | 521 | PrecPack (75) | 353 | 0.70 | 25.37 | ||||
| BBR14 (3600) | 525 | 0.00 | 0.0018 | 750 (525) | CPLEX (300) | 0 | 6.55 | 293.37 | |
| BCP22 (3600) | 525 | 0.84 | PrecPack (75) | 330 | 0.98 | 29.47 | |||
| PrecPack (1000) | 525 | 0.00 | 0.0002 | ||||||
| 50 (525) | CPLEX (300) | 482 | 0.89 | 53.85 | 1000 (525) | CPLEX (300) | 0 | 5.45 | 301.27 |
| BCP22 (3600) | 522 | SALOME97 (100) | 186 | ||||||
| PrecPack (1000) | 525 | 0.00 | 0.0023 | BBR14 (3600) | 350 | 1.21 | 1100 | ||
| I-SALOME20 (900) | 349 | 0.93 | |||||||
| I-BDP20 (900) | 350 | 0.90 | |||||||
| 100 (525) | CPLEX (300) | 306 | 3.85 | 133.36 | I-BBR20 (900) | 350 | 0.84 | ||
| SALOME97 (70) | 355 | 2.24 | I-BBR20' (900) | 350 | 0.78 | ||||
| BBR14 (3600) | 513 | 0.06 | PrecPack (350) | 306 | 1.00 | 151.20 | |||
| I-SALOME20 (900) | 512 | 0.05 | |||||||
| I-BDP20 (900) | 514 | 0.04 | 50, permuted (5250) | SALOME97 (50) | 4404 | ||||
| I-BBR20' (900) | 516 | 0.03 | BBR14 (3600) | 5250 | 0.000 | 0.21 | |||
| I-BBR20 (900) | 517 | 0.03 | PrecPack (1000) | 5250 | 0.000 | 0.0027 | |||
| BCP22 (3600) | 490 | ||||||||
| PrecPack (350) | 523 | 0.01 | 1.79 | ||||||
Article submitted to INFORMS Journal on Computing
23
4.3.2. BPP-P. Table 4 uses the Scholl results for CPLEX and BB12 from Dell'Amico et al. (2012), the EA16 results from Pereira (2016), the Otto CPLEX and EA17 results from Kramer et al. (2017), and BCP22 results from Letelier et al. (2022). For Otto, BCP22 covers , while CPLEX is the available published baseline for the larger sizes. On Otto-100, PrecPack proves optimality for 523 instances, compared with 502 for EA16, 508 for EA17, and 454 for BCP22. Its average gap is smaller than those reported for EA16 and EA17. Across the remaining Otto sizes, it proves optimal for all 20- and 50-item instances and for 278 to 426 instances in the larger groups. It matches the CPLEX proof count and gap at and improves both reported measures for all larger Otto sizes. On Scholl, however, PrecPack proves optimality for 262 of the 269 instances, compared with 266 for BB12 and all 269 for EA16.
Table 4 Comparison with Published Results on BPP-P
| Scholl and Otto Base Sets, | ||||
|---|---|---|---|---|
| (#I) | Solver (Limit/s) | #Opt | Gap/% | Time/s |
| 7 to 297 (269) | CPLEX (7200) | 188 | 4.98 | 2289.93 |
| BB12 (7200) | 266 | 0.03 | 157.20 | |
| EA16 (7200) | 269 | 0.00 | 10.94 | |
| PrecPack (1000) | 262 | 0.09 | 31.16 | |
| 20 (525) | CPLEX (300) | 525 | 0.00 | 0.05 |
| BCP22 (3600) | 525 | - | 0.18 | |
| PrecPack (75) | 525 | 0.00 | 0.0002 | |
| 50 (525) | CPLEX (300) | 457 | 1.22 | 55.10 |
| BCP22 (3600) | 501 | - | - | |
| PrecPack (75) | 525 | 0.00 | 0.0028 | |
| 100 (525) | CPLEX (300) | 325 | 4.11 | 125.17 |
| EA16 (7200) | 502 | 0.09 | 375.90 | |
| EA17 (3600) | 508 | 0.06 | 308.32 | |
| BCP22 (3600) | 454 | - | - | |
| PrecPack (1000) | 523 | 0.01 | 6.72 | |
| Otto Base Sets, | ||||
|---|---|---|---|---|
| (#I) | Solver (Limit/s) | #Opt | Gap/% | Time/s |
| 250 (525) | CPLEX (300) | 154 | 7.92 | 219.69 |
| PrecPack (75) | 426 | 0.31 | 16.41 | |
| 500 (525) | CPLEX (300) | 32 | 8.69 | 283.00 |
| PrecPack (75) | 332 | 0.82 | 30.60 | |
| 750 (525) | CPLEX (300) | 24 | 7.98 | 283.31 |
| PrecPack (75) | 283 | 1.10 | 37.76 | |
| 1000 (525) | CPLEX (300) | 6 | 6.80 | 300.31 |
| PrecPack (75) | 278 | 1.28 | 39.02 | |
4.3.3. BPP-GP. Table 5 compares PrecPack with the CPLEX and BM-ILS results reported by Kramer et al. (2017) for both sets of precedence weights and all seven sizes. BCP22 results from Letelier et al. (2022) are additionally available for weights in and . Each group contains 525 instances. CPLEX and BM-ILS use a 300-second limit, BCP22 uses 3600 seconds, and PrecPack uses 75 seconds. For the BM-ILS heuristic, #Opt counts the number of feasible solutions whose objective values match the reference lower bounds. PrecPack proves optimality for all 20- and 50-item instances in both sets, and its #Opt exceeds all available published baseline counts in every larger group. In particular, at with weights in , it proves optimality for 521 instances, compared with 491 for BCP22. At , it proves optimality for 319 instances with weights in and 247 with weights in , compared with 0 and 41 instances for CPLEX and 215 and 72 lower-bound matches for BM-ILS. These results extend the performance evidence to both sets of generalized precedence weights. For weights in at , BM-ILS reports a smaller average gap of , compared with for PrecPack; PrecPack attains the smallest displayed gap in the other 13 groups, including ties. A larger proof count can coexist with a larger group-average gap when the unresolved instances have larger gaps. These comparisons demonstrate the practical value of a unified exact solver for the three problems and identify the largest SALBP-I instances and Scholl BPP-P as areas for further improvement.
Article submitted to INFORMS Journal on Computing
Table 5 Comparison with Published Results on BPP-GP
| Entry: #Opt/Gap/TimeSolver (Limit/s) | n | |||||||
|---|---|---|---|---|---|---|---|---|
| 20 | 50 | 100 | 250 | 500 | 750 | 1000 | ||
| CPLEX (300) | 525/0.00/0.11 | 464/1.06/56.42 | 310/4.08/128.44 | 109/7.75/244.88 | 19/7.52/291.33 | 0/7.32/284.29 | 0/6.11/301.30 | |
| 525/0.00/0.01 | 489/0.70/30.02 | 364/3.92/93.13 | 250/6.65/160.85 | 131/8.52/227.23 | 87/7.94/230.48 | 41/7.25/282.18 | ||
| BM-ILS (300) | 525/0.00/46.30 | 510/0.11/76.89 | 456/0.36/99.09 | 292/2.23/141.79 | 268/1.77/159.91 | 233/1.65/177.97 | 215/0.63/193.13 | |
| 525/0.00/56.01 | 510/0.10/80.49 | 439/0.41/98.43 | 265/2.04/157.55 | 179/2.50/216.19 | 88/2.71/264.45 | 72/2.04/271.42 | ||
| BCP22 (3600) | 525/-/0.19 | 523/-/- | 491/-/- | - | - | - | - | |
| PrecPack (75) | 525/0.00/0.00 | 525/0.00/0.00 | 521/0.01/0.95 | 415/0.36/17.33 | 345/0.91/27.06 | 335/1.14/28.68 | 319/1.36/32.68 | |
| 525/0.00/0.00 | 525/0.00/0.02 | 520/0.02/1.32 | 392/0.49/20.43 | 314/1.19/33.66 | 255/1.61/42.04 | 247/1.97/43.79 | ||
5. Conclusion and Future Research Direction
This paper studied BPP-GP, a strongly -hard problem arising in numerous packing and assembly line applications with joint capacity and precedence requirements. Existing exact algorithms mainly addressed classical special cases, whereas the general problem lacked an efficient open-source exact solver. To address this gap, we developed PrecPack by extending BBR to arbitrary nonnegative precedence weights. The extensions included a state representation that retained outstanding precedence restrictions, enforced empty-bin transitions, and generalized state- and item-dominance rules. Conflict-aware residual bounds strengthened the search, while the same solution procedure specialized naturally to SALBP-I and BPP-P. Common interfaces, independent assignment checking, and reproducible batch execution make its C++ implementation reusable and verifiable, while the core solver requires no commercial software.
In same-machine, single-thread comparisons with the same time limit, PrecPack proved optimality for 523 of 525 SALBP-I benchmark instances with 100 items, compared with 456 or 457 for each of three source-available BBR implementations. Average computing times over all instances were 1.79 seconds for the proposed solver and 50.39 to 55.18 seconds for the three implementations. Further comparisons with published BPP-P and BPP-GP results showed that our solver achieved optimality for more instances and reported smaller average gaps on most matched benchmark sets.
A promising direction is to extend our open-source implementation to two-dimensional cutting stock with precedence constraints, motivated by glass production (Parreño and Alvarez-Valdes 2021). A central subproblem would be packing a single bin in two dimensions, for which the exact knapsack and orthogonal-packing methods of Wang et al. (2025) provide a starting point. Adapting the current dominance rules, lower bounds, and state representations to accommodate geometric feasibility and cutting-pattern requirements (Iori et al. 2021), while maintaining validity and computational efficiency, remains challenging.
Acknowledgments
The authors sincerely thank the maintainers of the public benchmark sets and source-available exact-algorithm implementations used in this study (Scholl 1993, Dell'Amico et al. 2012, Sewell and Jacobson 2012, Otto et al. 2013, Morrison et al. 2014, Álvarez-Miranda et al. 2023). They are especially grateful to Kramer et al. (2017) for their kind assistance and helpful responses to questions raised during the early stages of this research several years ago.
Wang et al.: PrecPack: An Efficient Open-Source Exact Solver for BPP-GP Article submitted to INFORMS Journal on Computing
25
References
Álvarez-Miranda E, Pereira J, Vilà M (2023) Analysis of the simple assembly line balancing problem complexity. Computers & Operations Research 159:106323.
Augustine J, Banerjee S, Irani S (2009) Strip packing with precedence constraints and strip packing with release times. Theoretical Computer Science 410(38–40):3792–3803.
Baldacci R, Coniglio S, Cordeau JF, Furini F (2024) A numerically exact algorithm for the bin-packing problem. INFORMS Journal on Computing 36(1):141–162.
Boschetti MA, Mingozzi A (2003) The two-dimensional finite bin packing problem. Part I: New lower bounds for the oriented case. 4OR 1(1):27–42.
Chassiakos AP, Sakellaropoulos SP (2005) Time-cost optimization of construction projects with generalized activity constraints. Journal of Construction Engineering and Management 131(10):1115–1124.
Crainic TG, Perboli G, Pezzuto M, Tadei R (2007) New bin packing fast lower bounds. Computers & Operations Research 34(11):3439–3457.
da Silva RFF, Schouery RCS (2025) Solving cutting stock problems via an extended Ryan-Foster branching scheme and fast column generation. INFORMS Journal on Computing Articles in Advance.
Dell'Amico M, Díaz Díaz JC, Iori M (2012) The bin packing problem with precedence constraints. Operations Research 60(6):1491–1504.
Dinic EA (1970) Algorithm for solution of a problem of maximum flow in a network with power estimation. Soviet Mathematics Doklady 11(5):1277–1280.
Errami N, Queiroga E, Sadykov R, Uchoa E (2024) VRPSolverEasy: A Python library for the exact solution of a rich vehicle routing problem. INFORMS Journal on Computing 36(4):956–965.
Fekete SP, Schepers J (2001) New classes of fast lower bounds for bin packing problems. Mathematical Programming 91(1):11–31.
Garey MR, Graham RL, Johnson DS, Yao ACC (1976) Resource constrained scheduling as generalized bin packing. Journal of Combinatorial Theory, Series A 21(3):257–298.
Garey MR, Johnson DS (1979) Computers and Intractability: A Guide to the Theory of NP-Completeness (W. H. Freeman), ISBN 0-7167-1044-7.
Gilmore PC, Gomory RE (1961) A linear programming approach to the cutting-stock problem. Operations Research 9(6):849–859.
Haouari M, Gharbi A (2005) Fast lifting procedures for the bin packing problem. Discrete Optimization 2(3):201–218.
Hifi M, Michrafy M (2007) Reduction strategies and exact algorithms for the disjunctively constrained knapsack problem. Computers & Operations Research 34(9):2657–2673.
Hoffmann TR (1963) Assembly line balancing with a precedence matrix. Management Science 9(4):551–562.
Hoffmann TR (1992) Eureka: A hybrid system for assembly line balancing. Management Science 38(1):39–47.
Iori M, de Lima VL, Martello S, Miyazawa FK, Monaci M (2021) Exact solution techniques for two-dimensional cutting and packing. European Journal of Operational Research 289(2):399–415.
Johnson RV (1988) Optimally balancing large assembly lines with “Fable”. Management Science 34(2):240–253.
Kramer R, Dell'Amico M, Iori M (2017) A batching-move iterated local search algorithm for the bin packing problem with generalized precedence constraints. International Journal of Production Research 55(21):6288–6304.
Letelier OR, Clautiaux F, Sadykov R (2022) Bin packing problem with time lags. INFORMS Journal on Computing 34(4):2249–2270.
Li Z, Kucukkoc I, Tang Q (2020) A comparative study of exact methods for the simple assembly line balancing problem. Soft Computing 24(15):11459–11475.
Lin W, He Z, Jiang S, Ma F, Su Z, Lü Z (2026) Alkaid-SDVRP: An efficient open-source solver for the vehicle routing problem with split deliveries. INFORMS Journal on Computing 38(1):150–164.
Lübbecke ME, Desrosiers J (2005) Selected topics in column generation. Operations Research 53(6):1007–1023.
Morrison DR, Sewell EC, Jacobson SH (2014) An application of the branch, bound, and remember algorithm to a new simple assembly line balancing dataset. European Journal of Operational Research 236(2):403–409.
Nourie FJ, Venta ER (1991) Finding optimal line balances with OptPack. Operations Research Letters 10(3):165–171.
Otto A, Otto C, Scholl A (2013) Systematic data generation and test design for solution algorithms on the example of SALBPGen for assembly line balancing. European Journal of Operational Research 228(1):33–45.
Parreño F, Alvarez-Valdes R (2021) Mathematical models for a cutting problem in the glass manufacturing industry. Omega 103:102432.
Peeters M, Degraeve Z (2006) An linear programming based lower bound for the simple assembly line balancing problem. European Journal of Operational Research 168(3):716–731.
Pereira J (2015) Empirical evaluation of lower bounding methods for the simple assembly line balancing problem. International Journal of Production Research 53(11):3327–3340.
Pereira J (2016) Procedures for the bin packing problem with precedence constraints. European Journal of Operational Research 250(3):794–806.
Scholl A (1993) Data of assembly line balancing problems. Schriften zur Quantitativen Betriebswirtschaftslehre 16/93, TH Darmstadt.
Scholl A, Klein R (1997) SALOME: A bidirectional branch-and-bound procedure for assembly line balancing. INFORMS Journal on Computing 9(4):319–334.
Scholl A, Klein R (1999) Balancing assembly lines effectively—a computational comparison. European Journal of Operational Research 114(1):50–58.
Sewell EC, Jacobson SH (2012) A branch, bound, and remember algorithm for the simple assembly line balancing problem. INFORMS Journal on Computing 24(3):433–442.
Tirpak TM (2008) Developing and deploying electronics assembly line optimization tools: A Motorola case study. Decision Making in Manufacturing and Services 2(1–2):63–78.
Wang S, Baldacci R, Liu Q, Wei L (2025) EATKG: An open-source efficient exact algorithm for the two-dimensional knapsack problem with guillotine constraints. European Journal of Operational Research 327:735–753.
Wouda NA, Lan L, Kool W (2024) PyVRP: A high-performance VRP solver package. INFORMS Journal on Computing 36(4):943–955.
You Z, Yang Y (2026) RouteOpt: An open-source modular exact solver for vehicle routing problems. INFORMS Journal on Computing Articles in Advance.
Wang et al.: PrecPack: An Efficient Open-Source Exact Solver for BPP-GP Article submitted to INFORMS Journal on Computing
Online Supplement
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
Appendix A: Additional Technical Details
A.1. DFF Candidates and Selection
This subsection describes the existing DFFs used for the BBR lower bounds in Section 2.5.5. We give the finite parameter ranges, selection criteria, and evaluation procedures in PrecPack. The candidate functions are established DFFs, not new bounds proposed here.
Let denote a normalized weight, obtained by dividing an item weight by the bin capacity; thus, item has normalized weight . The first two functions are those of Fekete and Schepers (2001). For an integer , define
For , define
The third function is the improvement proposed by Boschetti and Mingozzi (2003), in the form used by Dell'Amico et al. (2012). For , it is
Compositions of DFFs are also dual feasible (Fekete and Schepers 2001); the compositions used here apply first and then , as in Pereira (2016).
The base candidates comprise for and for , where . This uses the small integer range and item-weight thresholds discussed by Dell'Amico et al. (2012), with the half-capacity threshold rounded down in the integer implementation. The candidates are ranked by the rule below, and at most seven are retained. Thus, the base parameter rule is fixed, but the selected functions depend on the item weights and capacity.
When every precedence weight is zero or every precedence weight is one, the candidate set expands to include and for and , following the parameter range and composition order of Pereira (2016). Since , this set also includes the uncomposed . It further includes for , as used by Dell'Amico et al. (2012). These functions are valid for arbitrary precedence weights; limiting the expansion to the specified cases limits the number of DFF sums maintained for each search state without imposing a validity condition.
For ranking and evaluation, a candidate is represented by a positive integer capacity and nonnegative integer item contributions satisfying for each . The base representations are defined with .
Wang et al.: PrecPack: An Efficient Open-Source Exact Solver for BPP-GP Article submitted to INFORMS Journal on Computing
27
for and for . Expanded candidates use integer representations divided by the greatest common divisor of the capacity and all contributions; for , the pre-division capacity is . Within each set, duplicate representations of capacity and item contributions are removed. Define . Candidates are ranked first by decreasing , followed by decreasing , and then by increasing . Any remaining ties are resolved by the generation order for base candidates and the lexicographic contribution order for expanded candidates.
If base candidates are retained, the best expanded candidates are considered in ranked order. Representations already present in the retained set are skipped, and at most eight additional candidates are appended. Consequently, contains at most 15 retained DFFs in integer form. Their contributions are computed once per BBR search and are neither regenerated nor reranked at each state. For a child at depth , the residual sum is obtained by subtracting the contributions of its newly assigned items, and the bound is evaluated as using integer accumulation and ceiling division. The short BBR search in Section 2.5.6 uses only the base selection.
Residual DFF sums use 32-bit unsigned entries when the precomputed root totals establish that all residuals are representable within this range; otherwise, 64-bit entries are retained. Because assigning items only involves subtracting nonnegative contributions, this storage choice preserves all bound values.
A.2. Conflict-Aware BINLB
The conflict-aware extension of ordinary BINLB (Sewell and Jacobson 2012) solves the relaxation defined in Section 2.5.5. At a BBR state with depth , its primary function is to determine whether can be packed into at most bins. If infeasibility is proved, the BBR state is pruned without needing the exact relaxation optimum. A feasible auxiliary packing only verifies the feasibility of this relaxation; it is not used as a BPP-GP incumbent since bin order and precedence distances have been excluded.
The conflict graph remains valid for this residual relaxation. Write if item is reachable from item in the precedence graph, and recall that includes both endpoints and all intermediate items on directed paths from to . A path with positive weight prevents its endpoints from sharing a bin. If and , placing both endpoints in a single bin requires for every , violating capacity. Consequently, every conflict edge is valid. Any sequence of future loads in , once bin order and empty positions are ignored, leads to a capacity-feasible packing of that respects these conflicts. Therefore, , while since the ordinary relaxation also eliminates conflicts.
Within this test, a recursive call considers a remaining item subset and a remaining bin limit . The empty subset is feasible, whereas a nonempty subset is infeasible when . A subset with is feasible when one item is assigned per bin. Otherwise, remembered bounds are checked first. Capacity, the two DFFs and from Section A.1, and a greedy clique provide inexpensive lower bounds. The clique is constructed by scanning items in the order of nonincreasing degree in the fixed conflict graph, followed by nonincreasing weight, and then increasing identifier, including an item only if it conflicts with every item already selected. A remembered optimum of the ordinary BINLB for the same subset can further increase the lower bound. If any of these lower bounds exceeds , the call is infeasible. Otherwise, a conflict-feasible best-fit packing is constructed; if it uses at most bins, the call is feasible.
If neither test resolves the call, an anchor item is selected based on nonincreasing weight, followed by nonincreasing degree in the fixed conflict graph, and then increasing identifier. The subsequent bin must include this item. Remaining items are considered in the same order using include/exclude branching, subject to capacity and pairwise compatibility constraints. Only maximal subsets containing the anchor are kept. This approach preserves an optimal auxiliary
Wang et al.: PrecPack: An Efficient Open-Source Exact Solver for BPP-GP Article submitted to INFORMS Journal on Computing
packing because the anchor's bin can be positioned first, since the bin order is irrelevant, and a nonmaximal bin can be expanded by moving compatible items from other bins without increasing the total number of bins. A candidate load must satisfy
because the remaining bins have total capacity . During subset enumeration, a branch is discarded if the weight already selected plus the total weight of all undecided items is below this threshold. Including items that may later prove incompatible only overestimates the attainable weight, thereby preserving this pruning test's validity. For every retained load, the inexpensive bounds are checked on before recursively testing that subset with limit . One feasible child suffices to answer the call; infeasibility requires every possible child to be ruled out. The auxiliary memory stores the lower and upper bounds for each subset of items, and complete subset comparisons are performed after hashing. When a feasible test at limit is performed, the upper bound is updated to at most ; conversely, if a test proves infeasible, the lower bound is raised to at least . Later calls with different bin limits can therefore reuse the same records. The ordinary BINLB memory is queried only for completed ordinary optima. Conflict and subset masks are updated via bitwise operations, while total weights and DFF sums are adjusted by subtraction when a load is fixed.
The stage is considered only when at most 400 items remain unassigned and is limited to 50 generated loads per auxiliary state, 1000000 search nodes per call, 200000 states stored per relaxation, and a cumulative budget of 0.1 seconds. Within this budget, each conflict-aware test is further limited to 0.005 seconds and 50000 search nodes. These limits restrict the effort spent outside the main BBR search, not the validity of its bounds.
An interrupted recursive call returns no feasibility or infeasibility conclusion. Bounds and decisions already completed for other subsets remain valid. If a call is halted before completing its intended test, further conflict-aware calls for that BBR search are disabled when the ordinary phase has completed; otherwise, all subsequent BINLB calls are disabled. The main BBR search proceeds using the remaining bounds. This avoids repeatedly spending the auxiliary-search allowance on unfinished tests and does not discard any BBR branch based on an unproven result.
A.3. Integer Computation of the Root Lower Bound
This subsection specifies the integer calculation used in Section 2.4, following the fixed-point approach of Baldacci et al. (2024). Let and be the floating-point dual values with the sign convention defined there, after normalization to the objective ; negative values caused by LP tolerances are replaced by zero. The candidate integer scale is
The scaled values are truncated toward zero, giving for every and . Conversion and accumulation are checked for overflow, and the scale is reduced if necessary until . All subsequent profit sums and DP values fit within the checked integer range. A positive representable scale is required before the calculation proceeds.
Column generation and final bound calculation have distinct stopping conditions. In column generation, integer pattern profits are compared against a scaled threshold to identify improving patterns. The heuristic pricing procedure limits search effort and repeated item use across generated patterns. The scale used for column generation may be smaller than to match the numerical resolution of the restricted LP. If the pricing search finishes without returning a new pattern, a separate integer pricing call maximizes over all patterns using the verified scale . This
Wang et al.: PrecPack: An Efficient Open-Source Exact Solver for BPP-GP Article submitted to INFORMS Journal on Computing
29
step excludes neither existing patterns nor those below and does not apply the heuristic procedure's search limit or diversification restrictions. The calculation must establish the maximum pattern profit, not merely find an improving pattern. The DP and BB comparisons use integer arithmetic, and time constraints prevent acceptance of a new bound if interrupted.
Let be the proven maximum integer profit and define . The resulting lower bound is
For every pattern , . Thus, any packing with bins has : each nonempty bin contributes at most one, and intermediate empty bins only increase . Equation (A.6) therefore follows from the integrality of the objective. This argument depends on the resulting nonnegative integer profits and the proven pricing maximum, not on exact dual feasibility of the floating-point LP solution. In particular, it does not require , because the denominator rescales all pattern profits to at most one.
The ratio in Equation (A.6) is rounded upward by integer division, without conversion back to floating point, and LB is replaced by . The restricted LP objective is not rounded to obtain a pruning bound. If the integer pricing optimum has not been proved within the root-stage budget, the previously established lower bound is retained.
A.4. Maximal-Load Enumeration
The branching set in Section 2.5.2 is generated through DFS over item subsets. At a BBR state S, enumeration begins with and residual capacity C. An unassigned item is excluded from the current bin if it is part of or has an unassigned predecessor linked by a positive-weight arc. For all other items, the number of immediate predecessors linked by zero-weight arcs that are outside is tracked. An item becomes eligible when this count reaches zero. Eligible items are ordered lexicographically by dominance count (the number of extended Jackson and additional subgraph-isomorphism relations favoring the item), positional weight (its weight plus the total weight of its transitive successors), item weight, and number of transitive successors, all arranged in nonincreasing order. Remaining ties are resolved by increasing stable item identifiers. The recursive enumeration selects a capacity-feasible eligible item, inserts it into , and decreases the predecessor counts of its immediate successors linked by zero-weight arcs. Newly eligible successors are added to the end of the list of eligible items in the same order of priority. Recursion continues after the selected item's position, allowing newly eligible items to join the current bin while avoiding permutations of items that were already available. On return, , the predecessor counts, residual capacity, and accumulated DFF contributions are restored. Successors linked by positive-weight arcs are never made eligible within the current bin; their restrictions are handled when the child BBR state is formed. Reaching the end of the current recursive extension does not establish maximality, as an earlier item may have been skipped. Before retaining , the algorithm checks the entire current eligible list for an unselected item that still fits. If such an item exists, the load is discarded as nonmaximal. If no such item exists, then no strictly superset is feasible. In the acyclic precedence graph, any feasible extension would contain a first additional item whose predecessors linked by zero-weight arcs are already in . That item would pass the eligibility and capacity checks and would therefore have been found by the scan. This final check implements the maximality requirement of Equation (8).
Each maximal load is then tested against the item-replacement rules of Section 2.5.4, including the classical rules under their stated conditions, before generating a child state. If no item is initially eligible, the empty load produces the forced-empty-bin transition. An empty load is not retained merely because dominance eliminates nonempty loads. The
Wang et al.: PrecPack: An Efficient Open-Source Exact Solver for BPP-GP Article submitted to INFORMS Journal on Computing
same enumeration procedure handles arbitrary nonnegative precedence weights; zero-weight arcs permit eligibility to change within a bin, whereas positive-weight arcs defer successors to later bins.
Eligibility is recorded in flat arrays containing byte-sized status values and integer predecessor counts; bit masks represent assigned and selected subsets. For heterogeneous precedence weights, Proposition 5 is evaluated using pre-computed masks for direct successors, positive-weight successors, and precedence-weight thresholds. If all precedence weights are set to 1, the subgraph-isomorphism search is capped at 100000 nodes per item pair and 2000000 nodes in total, with periodic deadline checks. Only proved relations are retained, and replacement capacity, along with state-specific eligibility, is checked during enumeration.
A.5. State-Dependent Precedence Bounds
Consider a BBR state at depth with . The bounds below extend the root head and tail constructions of Dell'Amico et al. (2012), Pereira (2016), and Kramer et al. (2017) by incorporating restrictions imposed by already assigned items. The quantities , , and are those defined in Section 2.5.5.
In Equations (10), counts the consecutive future bins in which item remains unavailable, while predecessor terms propagate these constraints through the unassigned items. Induction in topological order shows that is a valid earliest offset, and reverse-topological induction shows that is a necessary tail after item . Consequently, each future-load sequence in requires at least additional bins for every , establishing . If all precedence weights are one, the separation tuple is empty, simplifying this to the ordinary residual longest-path bound for BPP-P.
Let and denote the unassigned items ordered by nonincreasing and nonincreasing , respectively. The state-dependent one-machine bounds are
For the forward bound, the first items in the order require at least bins, with the latest scheduled of these items retaining a tail of at least . For the reverse bound, none of the first items in the order can occur before offset , beyond which their total weight requires at least bins. Therefore, both expressions in Equation (A.7) provide a lower bound for .
For each , define the residual predecessor and successor closures as and , respectively. The state-dependent closure bound is
All items in must appear no later than the bin containing , ensuring that the prefix of the future-load sequence through that bin has length at least both and . Correspondingly, the suffix starting with that bin has length at least both and . These two bin intervals overlap only at the bin containing . By adding their required lengths and subtracting one, Equation (A.8) is established as a lower bound on once the fixed bins are included.
A.6. State Storage and Memory Accounting
For separation-tuple dominance, records are grouped by assigned-item set to avoid comparisons between unrelated states. Before a one-item-superset lookup at depth , item is omitted if one of its transitive predecessors is unassigned or if , because no state with assigned-item set can have been reached within the first
Article submitted to INFORMS Journal on Computing
31
bins. When , the exact-state table is queried directly; otherwise, the separation tuples associated with the enlarged assigned set are compared. Depths, parent identifiers, and lower bounds are stored in separate arrays, with memory allocated in contiguous blocks. Queue entries consist of a state identifier and a version number. If a state is reached at a smaller depth, its stored information and version are updated, and it is reinserted; outdated queue entries are ignored. States with an empty separation tuple omit the link used to group identical assigned sets, and when all precedence weights are zero, the duplicate assigned-set hash is also omitted.
The memory tracked by BBR includes precomputed BBR data, state storage, lookup tables, queues, temporary arrays, and auxiliary bounds. Before enlarging a state array, hash table, or queue, both the existing allocation and the storage required for any replacement are taken into account. If the required storage exceeds the limit, the search stops without discarding remembered states. Precomputed predecessor and successor masks support closure bounds, while dense masks and preallocated temporary arrays are reused by the auxiliary searches discussed in Section A.2.
A.7. C++ Identifiers in the Interface Diagram
To improve readability, Figure 2 abbreviates selected C++ type and function names. Table A.1 lists their original identifiers; all other displayed type, function, and field names are unchanged. The arrows show selected component dependencies rather than execution order or a complete call graph. File labels omit directory paths; .hpp / .cpp and .* denote the corresponding header/source pair. Command Line groups main.cpp and the cli module.
Table A.1 Display Names and C++ Identifiers in Figure 2
| Display Name | C++ Identifier |
|---|---|
| Type names | |
| Prepared Data | PreparedInstance |
| Initial Result | InitialBoundsResult |
| BBR Engine | BbrEngine |
| Bin Bound | BinPackingBound |
| Conflict Bound | ConflictBinPackingEngine |
| Root Master | PositionFreeMaster |
| Column Pricer | LongPricingSearch |
| Certification Pricer | IntegerPricingSearch |
| Function names | |
| makeConfig | make_command_line_solver_config |
| computeBounds | compute_initial_bounds |
| dffBound | compute_initial_dff_lower_bound |
| restoreAssignment | map_prepared_assignment_to_original |
| runBBR | run_branch_bound_remember |
| runRootCG | run_position_free_root_column_generation |
The Column Pricer searches for new, improving patterns, whereas the Certification Pricer computes the maximum scaled profit over the full pattern set for lower-bound calculation. Both use 64-bit integer profits, but their scaling factors and stopping conditions may differ, as detailed in Section A.3.
Appendix B: Proofs
B.1. Proof of Proposition 1
Let and be feasible partial packings satisfying . By definition, their assigned sets are closed under predecessors, so no precedence arc exists from an unassigned item to an assigned item. They share the same unassigned items and have identical fixed weights, capacity, and precedence arcs. A subset is feasible for the next bin if and only if , , each predecessor linked by a positive-weight arc to an
Wang et al.: PrecPack: An Efficient Open-Source Exact Solver for BPP-GP Article submitted to INFORMS Journal on Computing
item in is in , and each predecessor linked by a zero-weight arc is in . The condition on enforces the remaining distances from already assigned predecessors, while other precedence conditions prevent placing an item before an unassigned predecessor. Therefore, the two partial packings admit exactly the same next loads, including the empty load, while items remain.
For either partial packing, advancing from its own depth to modifies the condition on an earlier assigned predecessor to , represented by . For a newly assigned predecessor, applies, so the condition becomes . Removing all assigned items results in precisely Equation (7). Thus, a common next load generates identical child states, regardless of the two absolute depths. Induction over any finite sequence of future loads yields the same feasibility decisions and assigned sets for both partial packings. Consequently, the sequence assigns all remaining items and concludes with their final assignment from one partial packing if and only if it does so from the other. This includes the empty sequence when no items remain. As a result, .
B.2. Proof of Proposition 2
Let be a state satisfying the proposition's assumptions. It admits a finite feasible sequence of future loads: the unassigned items can be placed individually in topological order, inserting finitely many empty bins as required by the precedence weights. This is possible because every item fits in a bin, and the assigned set is closed under predecessors. Hence , and a minimum-length sequence exists, with . If , then must be empty, because any nonempty first load would belong to . Hence .
Suppose instead that . Since is finite, there exists a load satisfying , where the inclusion also applies when . Move every item in from its unique later load to the first load, while retaining all intermediate bin positions. The new first load is feasible by the definition of , and every subsequent load remains capacity-feasible because it only loses items. Incoming constraints of moved items, including constraints between moved items, are satisfied by the feasibility of . Moving an item earlier cannot violate an outgoing constraint whose successor remains in a later bin. After removing any trailing empty loads, the resulting sequence belongs to , is no longer than , and begins with . Since has minimum length, the resulting sequence also has minimum length. Thus, in either case, some minimum-length sequence in begins with a load in , proving the proposition.
B.3. Proof of Proposition 3
Consider any . Because the assigned-item sets are equal, and have the same unassigned items and predecessor relations. If the sequence is nonempty, its first load is feasible from : it avoids and hence , and all capacity and predecessor-closure conditions are unchanged. For any load feasible from both states, Equation (7) is monotone under componentwise inclusion: shifting , adding the same successor set generated by the load, and removing the same assigned items preserve inclusion in every component of the child tuple. Induction over therefore shows that the same sequence belongs to . The conclusion also holds for the empty sequence, since then neither state has unassigned items. If the sequence contains loads, the final bin counts satisfy . Hence dominates .
B.4. Proof of Proposition 4
Consider any . Item occurs in exactly one load of this sequence. Delete from that load, initially retaining all bin positions. This deletion preserves capacity. Initially, has the same assigned items as together with , and for every . The larger assigned set can only relax predecessor-membership conditions; any
Wang et al.: PrecPack: An Efficient Open-Source Exact Solver for BPP-GP Article submitted to INFORMS Journal on Computing
33
remaining distance restriction imposed by is already represented in . Therefore, the first original load with omitted satisfies the next-bin feasibility conditions at . Before the original load containing , the two sequences assign the same loads, their assigned sets differ only by , and Equation (7) preserves componentwise tuple inclusion. At the load containing , the transition from adds the restrictions generated by , whereas the transition from omits them; the inclusion is preserved, and the assigned sets then coincide. Induction proves the capacity and precedence conditions through every remaining load, including empty loads. After removing any trailing empty loads and retaining intermediate empty bins, the resulting sequence belongs to and satisfies . Since , its final objective is no larger than that of the original sequence. Thus, dominates .
B.5. Proof of Proposition 5
Because the set of feasible next loads is finite and is feasible, fix a feasible maximal next load . This choice is made independently of the future-load sequence. Let denote the sequences in whose first load is , and consider any . In this sequence, item occurs in a later bin . Replace by in the first load and replace by in its original bin . The first replacement load is feasible by assumption; the later bin remains capacity feasible because . No precedence relation joins and . Moving earlier relaxes its outgoing constraints, and the feasibility of verifies its incoming constraints at the new position. Moving later relaxes its incoming constraints. For any direct successor of , implies and . Thus, the original inequality implies that 's outgoing constraint is satisfied after is moved to that bin. All other precedence constraints are unchanged, so the swapped sequence is feasible.
Next, move every item in from its later bin into the first bin. The first bin remains feasible by the choice of ; later bins only lose weight. Arcs with both endpoints moved are satisfied by this first load, arcs entering a moved item are similarly satisfied there, and moving only the predecessor of an arc earlier cannot violate it. Remove trailing empty bins, if any, but retain intermediate empty bins. The resulting sequence is no longer than . Because the same fixed applies to every original sequence, it dominates , as claimed. For repeated application of the rule, compare loads lexicographically by , then , and finally their 0/1 item-incidence vectors in increasing item-index order. Every permitted replacement strictly increases this order, using the specified index tiebreaker when weights and labels coincide; a strict extension increases the total weight. Since the set of feasible maximal next loads is finite and the order strictly increases, following the replacements from any discarded load eventually reaches a load not discarded by this rule. By transitivity of dominance, this final load dominates the original one, establishing that the corresponding branch can be discarded without losing an optimal solution.
Appendix C: Experimental Settings
C.1. Computational Environments and Result Sources
The experiments with PrecPack were conducted using macOS 15.7.4 with compiler options -O3 -DNDEBUG -mcpu=native -flto. The Apple M4 Pro used in Section 4 has 14 cores. All processor ratings in this supplement were obtained from PassMark Software.
For the published SALBP-I comparisons, the BBR12 results are in Table 1 of Sewell and Jacobson (2012). These were obtained using one core of an Intel Core 2 Duo T7200 processor with a clock speed of 2.0 GHz, 3.25 GB of memory, and a PassMark rating of 744. The numbers of instances proved optimal and the time limits for SALOME97 are taken from Table 2 of Morrison et al. (2014) and the official companion results of Otto et al. (2013). These sources do not identify the original processor, memory, or thread count. BBR14 results come from Morrison et al. (2014) and
Wang et al.: PrecPack: An Efficient Open-Source Exact Solver for BPP-GP Article submitted to INFORMS Journal on Computing
its official supplement. These runs used one core of an Intel Core i7-930 processor at 2.8 GHz and 12 GB of memory. Average CPU times for Otto-20, the permuted Otto-50 set, and Otto-1000 exclude the time needed for search-tree memory initialization.
The results for I-SALOME20, I-BDP20, I-BBR20', and I-BBR20 come from Table 16 in Li et al. (2020), which also provides the BBR14 RPD for Otto-1000. These four improved methods use a single virtual processor and 8 GB of memory on a server equipped with Intel Xeon E5-2680 v2 processors running at 2.8 GHz. The host CPU rating does not measure the performance allocated to the virtual processor.
For Scholl BPP-P, CPLEX 12 and BB12 results come from Table 5 of Dell'Amico et al. (2012); CPLEX solves the compact model in that paper after first-fit initialization. Both use an Intel Pentium 3 GHz processor with 2 GB of memory, but the exact processor model and CPLEX thread count are unspecified. The EA16 results are from Tables 1–4 of Pereira (2016), using one core of an unspecified eight-core Intel Xeon 2.66 GHz processor with 32 GB of memory. Neither description permits a reliable single-thread CPU rating.
The CPLEX results for the Otto sets across all three problem classes and the BM-ILS results for both BPP-GP precedence-weight sets are taken from Table 5 of Kramer et al. (2017). They were obtained using a single thread of an Intel Xeon E5530 2.4 GHz processor with 24 GB of memory. CPLEX 12.4 was initialized using first-fit. The EA17 Otto-100 results come from Table 4 of Kramer et al. (2017), which reports new runs supplied by Pereira after implementation issues were fixed. These runs use a single thread on the i7-930 platform described above.
The BCP22 results for Otto SALBP-I, BPP-P, and BPP-GP with weights in and come from Table 8 of Letelier et al. (2022). Their C++ implementation uses BaPCod and CPLEX 12.8 on an Intel Xeon E5-2680 v3 processor running at 2.50 GHz with 128 GB of memory. Each run uses one thread.
C.2. Time-Limit Settings
Time limits were fixed before the reported experiments. For each benchmark group in the comparisons with published results, let denote the selected reference set against which the fixed time limit is assessed, rather than the full set of compared methods. For each , let and denote its reported time limit and identifiable single-thread CPU rating, respectively. Let denote the per-instance time limit for PrecPack, and let denote its CPU rating. The main targets of the 350- and 1000-second comparisons are competitive dedicated exact methods evaluated under longer time limits. CPLEX remains a published baseline but is excluded from these reference sets because its shorter limit would restrict those comparisons despite its weaker reported performance on the harder instances.
For Scholl BPP-P, the reported processor descriptions do not permit reliable single-thread CPU ratings, so and a fixed 1000-second limit is used. For all other groups, the reference set is nonempty and the selected limit satisfies
Table C.1 gives the time limits, CPU ratings, and calculations for the reference methods. Table C.2 specifies each benchmark group’s reference set, the resulting upper limit from Equation (C.1), and the selected time limit.
Note that CPU ratings are used to assess the fixed time limits rather than normalize computing times. They do not establish equal computational effort across different architectures, virtualized environments, or algorithms.
References
Baldacci R, Coniglio S, Cordeau JF, Furini F (2024) A numerically exact algorithm for the bin-packing problem. INFORMS Journal on Computing 36(1):141–162.
Boschetti MA, Mingozzi A (2003) The two-dimensional finite bin packing problem. Part I: New lower bounds for the oriented case. 4OR 1(1):27–42.
Dell'Amico M, Díaz Díaz JC, Iori M (2012) The bin packing problem with precedence constraints. Operations Research 60(6):1491–1504.
Article submitted to INFORMS Journal on Computing
35
Table C.1
Time-Limit Calculations for the Reference Methods
| Method | (s) | |||
|---|---|---|---|---|
| CPLEX (Otto) | 300 | 1152 | 345,600 | 75.99 |
| BBR14 | 3600 | 1271 | 4,575,600 | 1006.07 |
| EA17 | 3600 | 1271 | 4,575,600 | 1006.07 |
| I-SALOME20 | 900 | 1783 | 1,604,700 | 352.84 |
| I-BDP20 | 900 | 1783 | 1,604,700 | 352.84 |
| I-BBR20 | 900 | 1783 | 1,604,700 | 352.84 |
| I-BBR20 | 900 | 1783 | 1,604,700 | 352.84 |
| BCP22 | 3600 | 1794 | 6,458,400 | 1420.05 |
Notes. Only methods appearing in the selected reference sets are listed; . Values in the last column are rounded to two decimal places.
Table C.2
Reference Methods and Time Limits
| Problem | Benchmark set | Reference methods | Upper limit/s | Selected limit/s | |
|---|---|---|---|---|---|
| SALBP-I | Scholl | All | I-BBR20 | 352.84 | 350 |
| Otto | 20 | BBR14, BCP22 | 1006.07 | 1000 | |
| Otto base | 50 | BCP22 | 1420.05 | 1000 | |
| Otto permuted | 50 | BBR14 | 1006.07 | 1000 | |
| Otto | 100 | Improved methods, BCP22 | 352.84 | 350 | |
| Otto | 250, 500, 750 | CPLEX | 75.99 | 75 | |
| Otto | 1000 | Improved methods | 352.84 | 350 | |
| BPP-P | Scholl | All | - | 1000 | |
| Otto | 20, 50 | CPLEX, BCP22 | 75.99 | 75 | |
| Otto | 100 | EA17, BCP22 | 1006.07 | 1000 | |
| Otto | 250, 500, 750, 1000 | CPLEX | 75.99 | 75 | |
| BPP-GP | Otto, weights | 20, 50, 100 | CPLEX, BCP22 | 75.99 | 75 |
| Otto, weights | 250, 500, 750, 1000 | CPLEX | 75.99 | 75 | |
| Otto, weights | All | CPLEX | 75.99 | 75 |
Notes. The improved methods are I-SALOME20, I-BDP20, I-BBR20', and I-BBR20. The 525-instance Otto-50 SALBP-I base set inherits its 1000-second limit from the 5250-instance permuted set that contains it; this limit also satisfies Equation (C.1).
Fekete SP, Schepers J (2001) New classes of fast lower bounds for bin packing problems. Mathematical Programming 91(1):11–31.
Kramer R, Dell'Amico M, Iori M (2017) A batching-move iterated local search algorithm for the bin packing problem with generalized precedence constraints. International Journal of Production Research 55(21):6288–6304.
Letelier OR, Clautiaux F, Sadykov R (2022) Bin packing problem with time lags. INFORMS Journal on Computing 34(4):2249–2270.
Li Z, Kucukkoc I, Tang Q (2020) A comparative study of exact methods for the simple assembly line balancing problem. Soft Computing 24(15):11459–11475.
Morrison DR, Sewell EC, Jacobson SH (2014) An application of the branch, bound, and remember algorithm to a new simple assembly line balancing dataset. European Journal of Operational Research 236(2):403–409.
Otto A, Otto C, Scholl A (2013) Systematic data generation and test design for solution algorithms on the example of SALBPGen for assembly line balancing. European Journal of Operational Research 228(1):33–45.
Pereira J (2016) Procedures for the bin packing problem with precedence constraints. European Journal of Operational Research 250(3):794–806.
Sewell EC, Jacobson SH (2012) A branch, bound, and remember algorithm for the simple assembly line balancing problem. INFORMS Journal on Computing 24(3):433–442.