Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
447 changes: 447 additions & 0 deletions data/irregular/tests/feasibility_poly1a_five_items.json

Large diffs are not rendered by default.

489 changes: 489 additions & 0 deletions data/irregular/tests/feasibility_poly2a_five_items_feasible.json

Large diffs are not rendered by default.

456 changes: 456 additions & 0 deletions data/irregular/tests/feasibility_poly2a_five_items_infeasible.json

Large diffs are not rendered by default.

35 changes: 35 additions & 0 deletions doc/img/irregular_benders_decomposition_iteration.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
20 changes: 20 additions & 0 deletions doc/img/irregular_milp_nfp_core_widening.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
33 changes: 33 additions & 0 deletions doc/img/irregular_milp_nfp_pieces.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion doc/internals/algorithm_selection.rst
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ With a single bin, the problem is a single :code:`knapsack`, :code:`feasibility`
* :code:`rectangleguillotine`: depending on the number of stages, the cut type and the features used, the :ref:`tree search <internals_rectangleguillotine_tree_search>`, the :ref:`column generation strips <internals_rectangleguillotine_column_generation_strips>`, the :ref:`tree search with maximal spaces <internals_rectangleguillotine_tree_search_maximal_spaces>`, or the :ref:`tree search hypergraph with infinite copies <internals_rectangleguillotine_tree_search_hypergraph_infinite_copies>` when the item types have many copies;
* :code:`box`: the tree search; for the :code:`knapsack` and :code:`feasibility` objectives, only in the directions in which few items fit in a section of the bin (at most 8 on average), or the :ref:`tree search with maximal spaces <internals_box_tree_search_maximal_spaces>` if there is no such direction;
* :code:`boxstacks`: the :ref:`sequential one-dimensional / rectangle <internals_boxstacks_sequential_onedimensional_rectangle>` algorithm;
* :code:`irregular`: the tree search, or the :ref:`tree search with periodic packings <internals_irregular_tree_search_periodic_packing>` when the instance is dominated by item types with many copies (together with the tree search if fewer than 64 items fit in the bin), and the :ref:`local search <internals_irregular_local_search>` for the objectives it supports.
* :code:`irregular`: the tree search, or the :ref:`tree search with periodic packings <internals_irregular_tree_search_periodic_packing>` when the instance is dominated by item types with many copies (together with the tree search if fewer than 64 items fit in the bin), and the :ref:`local search <internals_irregular_local_search>` for the objectives it supports; in the :code:`exact` mode, the :ref:`Benders decomposition <internals_irregular_benders_decomposition>` for the :code:`knapsack` objective, and the :ref:`MILP NFP <internals_irregular_milp_nfp>` algorithm for the :code:`feasibility` objective.

Several bins
------------
Expand Down
2 changes: 1 addition & 1 deletion doc/internals/generic_algorithms/column_generation.rst
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ The pricing problems are solved with the regular algorithms of the problem type,

**Bound.** The value of the restricted master problem is not a bound until no pattern of negative reduced cost remains, which a heuristic pricing can't prove. But the algorithms of the pricing problem also return a bound on the profit of the best pattern (for example the area of the bin, or a :ref:`dual feasible function <internals_rectangle_dual_feasible_functions>` bound), which bounds the best reduced cost :math:`\bar{r}` of a pattern of each bin type. Since a solution uses at most :math:`N` bins, the value of the linear relaxation is at least the value of the restricted master problem plus :math:`N \bar{r}`: this *Lagrangian bound* is valid at each iteration. :math:`N` is the number of items or of bins, whichever is smaller; for the :code:`bin-packing` objective, the number of bins of the best solution found; for the :code:`variable-sized-bin-packing` objective, the largest number of bins whose cost doesn't exceed the cost of the best solution found.

**Exact pricing for rectangle.** For the rectangle problem type, once the column generation converges with the regular pricing, the pricing problems are solved once more with the :ref:`Benders decomposition <internals_rectangle_benders_decomposition>` (at most twice per column generation), which returns a much tighter bound on the best pattern, and proves the bound of the linear relaxation when it is exact. In the :code:`exact` mode, this Benders decomposition is itself run in :code:`exact` mode.
**Exact pricing for rectangle and irregular.** For the rectangle and irregular problem types, once the column generation converges with the regular pricing, the pricing problems are solved once more with the Benders decomposition (:ref:`rectangle <internals_rectangle_benders_decomposition>`, :ref:`irregular <internals_irregular_benders_decomposition>`, with the :ref:`MILP NFP <internals_irregular_milp_nfp>` algorithm in its subproblems) (at most twice per column generation), which returns a much tighter bound on the best pattern, and proves the bound of the linear relaxation when it is exact. In the :code:`exact` mode, this Benders decomposition is itself run in :code:`exact` mode.

Search
------
Expand Down
20 changes: 20 additions & 0 deletions doc/internals/irregular.rst
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,24 @@ It rasterizes the bins and the items onto a grid and solves the resulting placem

See :doc:`the detailed description <irregular/milp_raster>`.

Benders decomposition
------------------------

This algorithm solves the :code:`knapsack`, :code:`bin-packing` and :code:`variable-sized-bin-packing` objectives.

Its master problem assigns the items to the bins considering only their areas, as a one-dimensional problem. For each bin of its solution, a subproblem checks whether the items actually fit; if not, no-good cuts forbidding infeasible subsets of them are added to the master problem, which is solved again. With the :ref:`MILP NFP <internals_irregular_milp_nfp>` algorithm in its subproblems, the cuts are proven, so the value of the master problem is a bound, and the algorithm is exact.

See :doc:`the detailed description <irregular/benders_decomposition>`.

MILP NFP
------------

This algorithm solves the :code:`feasibility` objective with a single bin. Its main use is to prove that a set of items doesn't fit in a bin, in the subproblems of the Benders decomposition.

For each combination of rotations of the items, the non-overlap of each pair of items is modeled with the convex pieces of the complement of their no-fit polygon, in a mixed-integer linear program. The items don't fit if every program is infeasible.

See :doc:`the detailed description <irregular/milp_nfp>`.

One-dimensional bound
------------------------

Expand All @@ -90,3 +108,5 @@ Relaxes the instance to a one-dimensional problem (each bin and item type keeps
irregular/tree_search_maximal_spaces
irregular/local_search
irregular/milp_raster
irregular/benders_decomposition
irregular/milp_nfp
Loading
Loading