Skip to content

irregular: enumerate the minimal infeasible subsets bottom-up in the Benders decomposition - #845

Merged
fontanf merged 1 commit into
masterfrom
irregular-benders-bottom-up-cuts
Nov 11, 2026
Merged

fontanf merged 1 commit into
masterfrom
irregular-benders-bottom-up-cuts

Conversation

@fontanf

@fontanf fontanf commented Nov 11, 2026

Copy link
Copy Markdown
Owner

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 enumeration of the minimal infeasible subsets of each infeasible bin, in binary order over its 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 each subset proven not to fit is a minimal infeasible subset. Subsets contained in a selection known to fit (bins packed so far, subsets packed by the enumeration) are not solved. The enumeration stops after bottom_up_maximum_number_of_subproblem_solves subproblem solves (16) or bottom_up_maximum_number_of_cuts cuts (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.
  • 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 (most of the subsets of the enumeration fit).
  • TreeSearchRelativePositionsParameters::growing_subsets (OptimizeParameters::tree_search_relative_positions_growing_subsets, default true): if false, 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.
  • New parameters in 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:

Instance master this PR
han 336 s (optimal 5) 284 s (optimal 5)
jakobs2 347 s (optimal 7) 244 s (optimal 7)
poly1a 41 s (optimal 4) 38 s (optimal 4)
poly2b bound 6 bound 6
poly3b bound 6 bound 6
swimm bound 8 bound 8

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.

…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.
@fontanf
fontanf merged commit 3c31cab into master Nov 11, 2026
16 checks passed
@fontanf
fontanf deleted the irregular-benders-bottom-up-cuts branch November 11, 2026 13:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant