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
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
WIDTH,HEIGHT
40,70
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
WIDTH,HEIGHT,ORIENTED,COPIES
21,22,1,1
31,13,1,1
9,35,1,2
30,7,1,2
11,13,1,3
13,7,1,1
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
NAME,VALUE
objective,feasibility
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
TYPE,ID,COPIES,BIN,X,Y,LX,LY,GROUP_ID
BIN,0,1,0,0,0,40,70,
ITEM,0,1,0,0,0,21,22,0
ITEM,1,1,0,9,50,31,13,0
ITEM,2,1,0,31,13,9,35,0
ITEM,2,1,0,0,29,9,35,0
ITEM,3,1,0,9,63,30,7,0
ITEM,3,1,0,0,22,30,7,0
ITEM,4,1,0,9,29,11,13,0
ITEM,4,1,0,20,29,11,13,0
ITEM,4,1,0,22,0,11,13,0
ITEM,5,1,0,9,42,13,7,0
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
WIDTH,HEIGHT
40,70
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
WIDTH,HEIGHT,ORIENTED,COPIES
21,22,1,1
31,13,1,1
9,35,1,3
30,7,1,1
11,13,1,1
10,14,1,1
14,8,1,2
13,7,1,2
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
NAME,VALUE
objective,feasibility
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
WIDTH,HEIGHT
62,55
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
WIDTH,HEIGHT,ORIENTED,COPIES
11,15,1,2
27,9,1,1
13,17,1,1
15,29,1,2
31,12,1,2
31,19,1,1
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
NAME,VALUE
objective,feasibility
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
WIDTH,HEIGHT
10,10
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
WIDTH,HEIGHT,ORIENTED,COPIES
6,4,1,1
4,6,1,1
4,4,1,1
6,6,1,1
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
NAME,VALUE
objective,feasibility
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
TYPE,ID,COPIES,BIN,X,Y,LX,LY,GROUP_ID
BIN,0,1,0,0,0,10,10,
ITEM,3,1,0,0,0,6,6,0
ITEM,1,1,0,6,0,4,6,0
ITEM,0,1,0,0,6,6,4,0
ITEM,2,1,0,6,6,4,4,0
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
WIDTH,HEIGHT
6,5
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
WIDTH,HEIGHT,ORIENTED,COPIES
1,3,0,1
4,4,0,1
3,1,1,1
1,3,1,2
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
NAME,VALUE
objective,feasibility
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
TYPE,ID,COPIES,BIN,X,Y,LX,LY,GROUP_ID
BIN,0,1,0,0,0,6,5,
ITEM,1,1,0,0,0,4,4,0
ITEM,0,1,0,0,4,3,1,0
ITEM,2,1,0,3,4,3,1,0
ITEM,3,1,0,4,0,1,3,0
ITEM,3,1,0,5,0,1,3,0
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
WIDTH,HEIGHT
10,10
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
WIDTH,HEIGHT,ORIENTED,COPIES
6,6,1,2
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
NAME,VALUE
objective,feasibility
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
WIDTH,HEIGHT
10,4
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
WIDTH,HEIGHT,ORIENTED,COPIES
4,3,1,3
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
NAME,VALUE
objective,feasibility
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
WIDTH,HEIGHT
10,3
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
WIDTH,HEIGHT,ORIENTED,COPIES
3,10,0,1
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
NAME,VALUE
objective,feasibility
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
TYPE,ID,COPIES,BIN,X,Y,LX,LY,GROUP_ID
BIN,0,1,0,0,0,10,3,
ITEM,0,1,0,0,0,10,3,0
11 changes: 11 additions & 0 deletions doc/img/rectangle_tree_search_packing_classes_obstruction.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
39 changes: 39 additions & 0 deletions doc/img/rectangle_tree_search_packing_classes_packing_class.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 @@ -32,7 +32,7 @@ A single bin

With a single bin, the problem is a single :code:`knapsack`, :code:`feasibility` or open dimension problem, and only the pattern-generating algorithms apply. The tree search of the problem type is the default; the variants are chosen from the shape of the instance:

* :code:`rectangle`: the tree search in the directions in which few items fit in a section of the bin (at most 4 on average), and otherwise the :ref:`tree search with maximal spaces <internals_rectangle_tree_search_maximal_spaces>`; the bar relaxation for the small bins (at most 100 × 100); in the :code:`exact` mode, the :ref:`Benders decomposition <internals_rectangle_benders_decomposition>` for the :code:`knapsack` objective, and the :ref:`Benders decomposition with contiguity <internals_rectangle_benders_decomposition_contiguity>` for the :code:`feasibility` objective;
* :code:`rectangle`: the tree search in the directions in which few items fit in a section of the bin (at most 4 on average), and otherwise the :ref:`tree search with maximal spaces <internals_rectangle_tree_search_maximal_spaces>`; the bar relaxation for the small bins (at most 100 × 100); in the :code:`exact` mode, the :ref:`Benders decomposition <internals_rectangle_benders_decomposition>` for the :code:`knapsack` objective, and the :ref:`Benders decomposition with contiguity <internals_rectangle_benders_decomposition_contiguity>` and the :ref:`tree search on packing classes <internals_rectangle_tree_search_packing_classes>` for the :code:`feasibility` objective;
* :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;
Expand Down
13 changes: 13 additions & 0 deletions doc/internals/rectangle.rst
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,18 @@ Its master problem also decides the x-positions of the items (contiguous relaxat

See :doc:`the detailed description <rectangle/benders_decomposition_contiguity>`.

Tree search on packing classes
---------------------------------

This algorithm solves the :code:`feasibility` objective exactly, for a single bin.

It decides, for each axis and each pair of items, whether their projections on the axis overlap or are disjoint, without fixing the positions of the items, which are only computed once these relations describe a valid packing class. Its running time doesn't depend on the size of the bin.

.. image:: ../img/rectangle_tree_search_packing_classes_packing_class.svg
:align: center

See :doc:`the detailed description <rectangle/tree_search_packing_classes>`.

Dual feasible functions
-------------------------

Expand Down Expand Up @@ -91,6 +103,7 @@ See :doc:`the detailed description <rectangle/bar_relaxation>`.
rectangle/tree_search_maximal_spaces
rectangle/benders_decomposition
rectangle/benders_decomposition_contiguity
rectangle/tree_search_packing_classes
rectangle/dual_feasible_functions
rectangle/conservative_scales
rectangle/bar_relaxation
Loading
Loading