Repository navigation
irregular: enumerate the minimal infeasible subsets bottom-up in the Benders decomposition - #845
Merged
Merged
Conversation
…Benders decomposition The minimal infeasible subsets of an infeasible bin were only searched top-down, from the infeasible subset returned by the tree search on relative positions: the largest items of the bin. The subsets made of other items were only found at later iterations, when the master problem proposed them in another bin. The subsets of the items of an infeasible bin are now enumerated bottom-up, by increasing binary order over the items sorted by decreasing area (A, B, BA, C, CA, CB, CBA, D...): a subset is only checked if all its subsets with one item less fit, so that each subset proven not to fit is a minimal infeasible subset. The subsets contained in a selection known to fit are not solved. The enumeration stops after 16 subproblem solves or 16 cuts, and falls back to the top-down search if it finds nothing. In exact mode, the subproblems are solved through the automatic selection of the algorithms, which runs the tree search on relative positions together with the algorithms which quickly find a packing when the items fit. The tree search on relative positions gets a parameter to solve the set of all the items directly, without its growing subsets of the largest items, used for the subsets of the bottom-up enumeration.
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.
Motivation
On the martinez2017 instances where the Benders decomposition is limited by its number of iterations (han, jakobs2, poly2b, poly3b), 67–88% of the iterations were caused by a cut which could have been found earlier: a subset of a bin already proven infeasible at a previous iteration. The minimal infeasible subsets were only searched top-down, from the infeasible subset returned by the tree search on relative positions, which is made of the largest items of the bin (its growing subsets of the largest items), so the subsets made of other items were only found when the master problem proposed them in another bin.
Changes
bottom_up_maximum_number_of_subproblem_solvessubproblem solves (16) orbottom_up_maximum_number_of_cutscuts (16), so all the minimal infeasible subsets of a small bin are found, and some of the ones of a large bin. If it finds nothing, the top-down search is used.TreeSearchRelativePositionsParameters::growing_subsets(OptimizeParameters::tree_search_relative_positions_growing_subsets, defaulttrue): iffalse, the set of all the items is solved directly. Used for the subsets of the bottom-up enumeration, whose subsets are already known to fit.OptimizeParameters, the CLI and the Python bindings; numbers of bottom-up checks and solves in the output of the Benders decomposition.Results
Benders decomposition, exact mode, 600 s, 4 runs in parallel:
The bottom-up enumeration alone divides the number of iterations by up to 4, but the enumeration costs about as much as it saves; the automatic selection of the algorithms in the subproblems makes the subsets which fit much cheaper to solve. With a budget of 64 solves per bin, the enumeration got stuck on instances with hard subproblems (swimm), hence the budget of 16.