Repository navigation
rectangle: add the tree search on packing classes - #812
Merged
Merged
Conversation
Exact algorithm for the 'Feasibility' objective with a single bin, following Fekete, Schepers and van der Veen (2007): for each axis and each pair of items, the search decides whether their projections overlap or are disjoint, and only computes the positions once these relations form a valid packing class. Its running time doesn't depend on the size of the bin. - Propagation: pairs too long to be side by side, pairs disjoint along at least one axis, greedy cliques of disjoint pairs, induced cycles of length 4 of the interval graphs of the overlapping pairs. - Branching on the obstructions (non-comparability graphs and chains longer than the bin), with the symmetry breaking of indistinguishable items. - Run in the 'Exact' mode for the 'Feasibility' objective with a single bin. - Add the options 'benders_decomposition_subproblem_use_*' to select the algorithms solving the subproblems of the Benders decomposition. - Add the documentation page and unit tests.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds
tree_search_packing_classes, an exact algorithm for thefeasibilityobjective with a single bin, following Fekete, Schepers and van der Veen (2007). Unlike the contiguity Benders decomposition, its running time doesn't depend on the size of the bin.Algorithm
For each axis and each pair of items, the search decides whether their projections overlap or are disjoint, without fixing positions. The positions are computed at the end from transitive orientations of the graphs of the disjoint pairs (Fekete and Schepers, 2004).
It supports rotations and eligibilities. It doesn't support defects, fixed items, unloading constraints, maximum weight or resources.
Integration
exactmode for thefeasibilityobjective with a single bin, alongside the other algorithms. It can be selected with--use-tree-search-packing-classes/use_tree_search_packing_classes.benders_decomposition_subproblem_use_benders_decomposition_contiguityandbenders_decomposition_subproblem_use_tree_search_packing_classes(CLI and Python) select the algorithms solving the feasibility subproblems of the Benders decomposition. The tree search is kept to find the packings of the feasible subproblems. If neither option is set, the selection stays automatic as before.Benchmark
The benchmark used the subproblems that the Benders decomposition solves on the oriented knapsack instances (
data_knapsack_oriented.csv): 771 distinct infeasible subproblems that took more than 10 ms. Each was solved alone, in theexactmode, with a 10 s time limit:fekete1997/okp1,okp2andcung2000/CHL2.hifi1997a/A2andchristofides1977/cgcut2. There, the infeasibility comes from item lengths that can't be combined to fill the bin along an axis: the contiguity master problem proves it at its first iteration, while the packing-class search has no reasoning on coordinates until the packing class is complete.exactmode.Tests and documentation
doc/internals/rectangle/tree_search_packing_classes.rst, with figures, and an update of the algorithm selection page.