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
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
634 changes: 317 additions & 317 deletions data/irregular/users/2024-08-08_solution.json

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
ID,WIDTH,HEIGHT
0,12,10
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
ID,WIDTH,HEIGHT,COPIES,ORIENTED
0,3,2,9,1
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
NAME,VALUE
objective,bin-packing-with-leftovers
leftover_mode,Area
leftover_value_type,Depth
11 changes: 11 additions & 0 deletions data/rectangle/tests/bin_packing_with_leftovers_depth/solution.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
TYPE,ID,COPIES,BIN,X,Y,LX,LY,GROUP_ID
BIN,0,1,0,0,0,12,10,
ITEM,0,1,0,0,0,3,2,0
ITEM,0,1,0,0,2,3,2,0
ITEM,0,1,0,0,4,3,2,0
ITEM,0,1,0,0,6,3,2,0
ITEM,0,1,0,0,8,3,2,0
ITEM,0,1,0,3,0,3,2,0
ITEM,0,1,0,3,2,3,2,0
ITEM,0,1,0,3,4,3,2,0
ITEM,0,1,0,3,6,3,2,0
7 changes: 5 additions & 2 deletions doc/box.rst
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ Features:
* Open dimension Y
* Open dimension Z
* Variable-sized bin packing
* Variable-sized bin packing with leftovers

* Select allowed item rotations (among the 6 possible rotations)

Expand Down Expand Up @@ -59,13 +60,15 @@ An instance is a JSON object with the following fields:
* - Field
- Description
* - ``objective``
- **Mandatory**. One of ``knapsack``, ``bin-packing``, ``bin-packing-with-leftovers``, ``open-dimension-x``, ``open-dimension-y``, ``open-dimension-z``, ``variable-sized-bin-packing``; see :ref:`objectives`
- **Mandatory**. One of ``knapsack``, ``bin-packing``, ``bin-packing-with-leftovers``, ``open-dimension-x``, ``open-dimension-y``, ``open-dimension-z``, ``variable-sized-bin-packing``, ``variable-sized-bin-packing-with-leftovers``; see :ref:`objectives`
* - ``knapsack_goal``
- For the ``knapsack`` objective, the search stops as soon as a solution reaches this profit. Default: none
* - ``knapsack_cutoff``
- For the ``knapsack`` objective, the solutions whose profit is below this value are not useful: the search stops as soon as the bound proves that no solution reaches it. Default: none
* - ``leftover_mode``
- How the leftover of the last bin is measured, for the ``bin-packing-with-leftovers`` objective: the volume of the bin minus the volume used, which is the box from the origin of the bin to the items along the dimensions of the mode, and the whole bin along the other dimensions. One of ``XYZ`` (default; the bounding box of the items), ``XY``, ``XZ``, ``YZ``, ``X`` (the length of the bin used along X, times the Y and Z dimensions of the bin), ``Y``, ``Z``
- The shape of the leftover of a bin, for the ``bin-packing-with-leftovers`` objective (see :ref:`leftovers`): the bin minus the used box, which goes from the origin of the bin to the items along the dimensions of the mode, and covers the whole bin along the other dimensions. One of ``XYZ`` (default; the used box is the bounding box of the items), ``XY``, ``XZ``, ``YZ``, ``X`` (the leftover is the box beyond the items along X), ``Y``, ``Z``, ``XYCut``, ``XZCut``, ``YZCut``, ``XYZCut`` (the leftover of the mode without ``Cut``, cut into boxes), and ``Staircase`` (the bin minus the boxes between its origin and the opposite corner of each item)
* - ``leftover_value_type``
- How the value of the leftover is computed, for the ``bin-packing-with-leftovers`` objective (see :ref:`leftovers`): ``squared-area`` (default) or ``depth``
* - ``static_stability``
- See :ref:`box-static-stability`. Default: ``false``
* - ``bin_types``
Expand Down
7 changes: 5 additions & 2 deletions doc/boxstacks.rst
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ Features:
* Open dimension X
* Open dimension Y
* Variable-sized bin packing
* Variable-sized bin packing with leftovers

* Item types

Expand Down Expand Up @@ -97,13 +98,15 @@ An instance is a JSON object with the following fields:
* - Field
- Description
* - ``objective``
- **Mandatory**. One of ``knapsack``, ``bin-packing``, ``bin-packing-with-leftovers``, ``open-dimension-x``, ``open-dimension-y``, ``variable-sized-bin-packing``; see :ref:`objectives`
- **Mandatory**. One of ``knapsack``, ``bin-packing``, ``bin-packing-with-leftovers``, ``open-dimension-x``, ``open-dimension-y``, ``variable-sized-bin-packing``, ``variable-sized-bin-packing-with-leftovers``; see :ref:`objectives`
* - ``knapsack_goal``
- For the ``knapsack`` objective, the search stops as soon as a solution reaches this profit. Default: none
* - ``knapsack_cutoff``
- For the ``knapsack`` objective, the solutions whose profit is below this value are not useful: the search stops as soon as the bound proves that no solution reaches it. Default: none
* - ``leftover_mode``
- How the leftover of the last bin is measured, for the ``bin-packing-with-leftovers`` objective: the volume of the bin minus the volume used, which is the whole height of the bin, times the rectangle from the origin of the bin to the stacks along the dimensions of the mode, and the whole bin along the other dimension. One of ``XY`` (default), ``X``, ``Y``
- The shape of the leftover of a bin, for the ``bin-packing-with-leftovers`` objective (see :ref:`leftovers`): the bin minus the used box, which covers the whole height of the bin, goes from the origin of the bin to the stacks along the dimensions of the mode, and covers the whole bin along the other dimension. One of ``XY`` (default), ``XYCut`` (the leftover of ``XY``, cut into two boxes), ``Staircase`` (the bin minus the boxes between its origin and the opposite corner of each stack, over the whole height), ``X``, ``Y``
* - ``leftover_value_type``
- How the value of the leftover is computed, for the ``bin-packing-with-leftovers`` objective (see :ref:`leftovers`): ``squared-area`` (default) or ``depth``
* - ``unloading_constraint``
- See :ref:`boxstacks-unloading-constraints`. Default: ``none``
* - ``no_check_weight_constraints``
Expand Down
104 changes: 54 additions & 50 deletions doc/examples/box/basic/output.txt
Original file line number Diff line number Diff line change
Expand Up @@ -17,68 +17,72 @@ Number of defects: 0
Total item volume: 15487000
Total item profit: 1.5487e+07
Largest item profit: 409860
Total item weight: 0
Total item weight: 1.5487e+07
Largest item copies: 20
Smallest item x: 92
Smallest item y: 43
Smallest item z: 25
Total bin volume: 4110480
Total bin weight: inf
Largest bin cost: 37368
Largest bin cost: 4.11048e+06

Time Profit # items Comment
---- ------ ------- -------
0.000 246240 1 TS g 5 d Z q 1
0.000 409860 1 TS g 4 d X q 1
0.000 492480 2 TS g 4 d X q 1
0.001 656100 2 TS g 4 d X q 1
0.001 738720 3 TS g 4 d X q 1
0.001 902340 3 TS g 4 d X q 1
0.001 1.02059e+06 4 TS g 4 d X q 1
0.001 1.13884e+06 5 TS g 4 d X q 1
0.001 1.25709e+06 6 TS g 4 d X q 1
0.001 1.37534e+06 7 TS g 4 d X q 1
0.001 1.49359e+06 8 TS g 4 d X q 1
0.001 1.57621e+06 9 TS g 4 d X q 1
0.001 1.73983e+06 9 TS g 4 d X q 1
0.002 1.85808e+06 10 TS g 4 d X q 1
0.002 1.97633e+06 11 TS g 4 d X q 1
0.002 2.09458e+06 12 TS g 4 d X q 1
0.002 2.29554e+06 6 TS g 5 d Z q 1
0.002 2.45916e+06 6 TS g 5 d Z q 1
0.002 2.7054e+06 7 TS g 5 d Z q 1
0.002 2.86902e+06 7 TS g 5 d Z q 1
0.002 2.95164e+06 8 TS g 5 d Z q 1
0.002 3.11526e+06 8 TS g 5 d Z q 1
0.002 3.23351e+06 9 TS g 5 d Z q 1
0.002 3.44241e+06 16 TS g 4 d X q 1
0.003 3.56066e+06 17 TS g 4 d X q 2
0.040 3.5704e+06 16 TS g 4 d Y q 42
0.006 246240 1 TS g 5 d Z q 1
0.008 409860 1 TS g 5 d Z q 1
0.011 656100 2 TS g 5 d Z q 1
0.014 819720 2 TS g 5 d Z q 1
0.016 1.06596e+06 3 TS g 5 d Z q 1
0.020 1.22958e+06 3 TS g 5 d Z q 1
0.023 1.47582e+06 4 TS g 5 d Z q 1
0.025 1.63944e+06 4 TS g 5 d Z q 1
0.028 1.88568e+06 5 TS g 5 d Z q 1
0.031 2.0493e+06 5 TS g 5 d Z q 1
0.033 2.29554e+06 6 TS g 5 d Z q 1
0.036 2.45916e+06 6 TS g 5 d Z q 1
0.039 2.7054e+06 7 TS g 5 d Z q 1
0.042 2.86902e+06 7 TS g 5 d Z q 1
0.046 2.95164e+06 8 TS g 5 d Z q 1
0.049 3.11526e+06 8 TS g 5 d Z q 1
0.051 3.23351e+06 9 TS g 5 d Z q 1
0.054 3.27888e+06 8 TS g 5 d X q 1
0.057 3.35176e+06 10 TS g 5 d Z q 2
0.061 3.44241e+06 16 TS g 4 d X q 1
0.064 3.56066e+06 17 TS g 4 d X q 2
0.088 3.5704e+06 16 TS g 4 d Y q 42

Final statistics
----------------
Time (s): 5.00475
Time (s): 5.00587
Is proven infeasible: 0
Primal bound: 3.5704e+06
Dual bound: 4.10987e+06
Gap: 15.1095%

Solution
--------
Number of items: 16 / 60 (26.6667%)
Item volume: 3.5704e+06 / 1.5487e+07 (23.0542%)
Item weight: 0 / 0 (-nan%)
Item profit: 3.5704e+06 / 1.5487e+07 (23.0542%)
Number of stacks: 0
Stack area: 0
Number of bins: 1 / 1 (100%)
Bin volume: 4110480 / 4110480 (100%)
Bin area: 37368 / 37368 (100%)
Bin weight: inf / inf (-nan%)
Bin cost: 37368
Waste: 516320
Waste (%): 12.6341
Full waste: 540080
Full waste (%): 13.1391
Volume load: 0.868609
Area load: 0
Weight load: 0
X max: 216
Y max: 172
Z max: 110
Number of items: 16 / 60 (26.6667%)
Item volume: 3.5704e+06 / 1.5487e+07 (23.0542%)
Item weight: 3.5704e+06 / 1.5487e+07 (23.0542%)
Item profit: 3.5704e+06 / 1.5487e+07 (23.0542%)
Number of stacks: 0
Stack area: 0
Number of bins: 1 / 1 (100%)
Bin volume: 4110480 / 4110480 (100%)
Bin area: 37368 / 37368 (100%)
Bin weight: inf / inf (-nan%)
Bin cost: 4.11048e+06
Waste: 516320
Waste (%): 12.6341
Full waste: 540080
Full waste (%): 13.1391
Volume load: 0.868609
Area load: 0
Weight load: 0
X max: 216
Y max: 172
Z max: 110
Leftover value: 5.64538e+08
Staircase leftover value: 275400
Total leftover value: 5.64538e+08
Total staircase leftover value: 275400
131 changes: 35 additions & 96 deletions doc/examples/box/box_vs_boxstacks/output.txt
Original file line number Diff line number Diff line change
Expand Up @@ -17,114 +17,53 @@ Number of defects: 0
Total item volume: 48952000000
Total item profit: 4.8952e+10
Largest item profit: 2.4e+09
Total item weight: 0
Total item weight: 4.8952e+10
Largest item copies: 12
Smallest item x: 500
Smallest item y: 400
Smallest item z: 300
Total bin volume: 54000000000
Total bin weight: inf
Largest bin cost: 1.8e+07
Largest bin cost: 5.4e+10

Time Profit # items Comment
---- ------ ------- -------
0.000 2.34e+09 1 TS g 4 d X q 1
0.004 2.4e+09 1 TS g 4 d X q 1
0.009 4.68e+09 2 TS g 4 d X q 1
0.014 4.74e+09 2 TS g 4 d X q 1
0.019 7.02e+09 3 TS g 4 d Y q 1
0.024 7.08e+09 3 TS g 4 d Y q 1
0.029 9.36e+09 4 TS g 4 d Y q 1
0.034 9.42e+09 4 TS g 4 d Y q 1
0.039 1.0218e+10 5 TS g 4 d Y q 1
0.044 1.1232e+10 5 TS g 4 d Y q 1
0.049 1.176e+10 5 TS g 4 d Y q 1
0.054 1.209e+10 6 TS g 4 d Y q 1
0.058 1.2618e+10 6 TS g 4 d Y q 1
0.064 1.2948e+10 7 TS g 4 d Y q 1
0.068 1.3476e+10 7 TS g 4 d Y q 1
0.070 1.428e+10 6 TS g 5 d Y q 1
0.075 1.662e+10 7 TS g 5 d Y q 1
0.078 1.8492e+10 8 TS g 5 d Y q 1
0.082 2.0364e+10 9 TS g 5 d Y q 1
0.086 2.2236e+10 10 TS g 5 d Y q 1
0.091 2.4108e+10 11 TS g 5 d Y q 1
0.094 2.5758e+10 12 TS g 5 d Y q 1
0.096 2.6004e+10 12 TS g 5 d X q 1
0.100 2.7408e+10 13 TS g 5 d Y q 1
0.104 2.7876e+10 13 TS g 5 d X q 1
0.108 2.9748e+10 14 TS g 5 d Y q 1
0.113 2.9868e+10 15 TS g 5 d Y q 1
0.117 3.0606e+10 15 TS g 5 d X q 1
0.121 3.1398e+10 15 TS g 5 d X q 1
0.123 3.2256e+10 16 TS g 5 d X q 1
0.126 3.3048e+10 16 TS g 5 d X q 1
0.128 3.3906e+10 17 TS g 5 d X q 1
0.132 3.4554e+10 18 TS g 5 d X q 1
0.137 3.4674e+10 19 TS g 5 d X q 1
0.140 3.4794e+10 20 TS g 5 d X q 1
0.144 3.492e+10 21 TS g 5 d X q 1
0.147 3.5568e+10 22 TS g 5 d X q 1
0.151 3.5778e+10 22 TS g 5 d X q 1
0.153 3.6426e+10 23 TS g 5 d X q 1
0.157 3.6636e+10 23 TS g 5 d X q 1
0.159 3.7284e+10 24 TS g 5 d X q 1
0.163 3.7494e+10 24 TS g 5 d X q 1
0.165 3.8142e+10 25 TS g 5 d X q 1
0.168 3.8352e+10 25 TS g 5 d X q 1
0.172 3.9e+10 26 TS g 5 d X q 1
0.175 3.921e+10 26 TS g 5 d X q 1
0.179 3.9858e+10 27 TS g 5 d X q 1
0.182 4.0068e+10 27 TS g 5 d X q 1
0.185 4.0716e+10 28 TS g 5 d X q 1
0.189 4.0926e+10 28 TS g 5 d X q 1
0.192 4.1574e+10 29 TS g 5 d X q 1
0.195 4.2222e+10 30 TS g 5 d X q 1
0.199 4.287e+10 31 TS g 5 d X q 1
0.202 4.2996e+10 32 TS g 5 d X q 1
0.207 4.3122e+10 33 TS g 5 d X q 1
0.212 4.3248e+10 34 TS g 5 d X q 1
0.217 4.3318e+10 35 TS g 5 d X q 1
0.220 4.3388e+10 36 TS g 5 d X q 1
0.222 4.3458e+10 37 TS g 5 d X q 1
0.227 4.3528e+10 38 TS g 5 d X q 1
0.232 4.3776e+10 34 TS g 5 d Z q 1
0.237 4.4176e+10 39 TS g 5 d X q 1
0.242 4.4824e+10 40 TS g 5 d X q 1
0.246 4.5472e+10 41 TS g 5 d X q 1
0.249 4.612e+10 42 TS g 5 d X q 1
0.253 4.6768e+10 43 TS g 5 d X q 1
0.257 4.6888e+10 44 TS g 5 d X q 1
0.263 4.6938e+10 44 TS g 5 d Z q 1
0.267 4.7008e+10 45 TS g 5 d X q 1
0.271 4.7656e+10 46 TS g 4 d X q 2
0.277 4.8304e+10 47 TS g 4 d X q 2
0.282 4.8952e+10 48 TS g 4 d X q 2
0.718 4.552e+10 44 TSMS n 1
0.728 4.8192e+10 40 TSMS n 4
0.729 4.8952e+10 48 TSMS n 4

Final statistics
----------------
Time (s): 10.005
Time (s): 0.735098
Is proven infeasible: 0
Primal bound: 4.8952e+10
Dual bound: 4.8952e+10
Gap: 0%

Solution
--------
Number of items: 48 / 48 (100%)
Item volume: 4.8952e+10 / 4.8952e+10 (100%)
Item weight: 0 / 0 (-nan%)
Item profit: 4.8952e+10 / 4.8952e+10 (100%)
Number of stacks: 0
Stack area: 0
Number of bins: 1 / 1 (100%)
Bin volume: 54000000000 / 54000000000 (100%)
Bin area: 18000000 / 18000000 (100%)
Bin weight: inf / inf (-nan%)
Bin cost: 1.8e+07
Waste: 5048000000
Waste (%): 9.34815
Full waste: 5048000000
Full waste (%): 9.34815
Volume load: 0.906519
Area load: 0
Weight load: 0
X max: 7500
Y max: 2400
Z max: 3000
Number of items: 48 / 48 (100%)
Item volume: 4.8952e+10 / 4.8952e+10 (100%)
Item weight: 4.8952e+10 / 4.8952e+10 (100%)
Item profit: 4.8952e+10 / 4.8952e+10 (100%)
Number of stacks: 0
Stack area: 0
Number of bins: 1 / 1 (100%)
Bin volume: 54000000000 / 54000000000 (100%)
Bin area: 18000000 / 18000000 (100%)
Bin weight: inf / inf (-nan%)
Bin cost: 5.4e+10
Waste: 5048000000
Waste (%): 9.34815
Full waste: 5048000000
Full waste (%): 9.34815
Volume load: 0.906519
Area load: 0
Weight load: 0
X max: 7500
Y max: 2400
Z max: 3000
Leftover value: 0
Staircase leftover value: 0
Total leftover value: 0
Total staircase leftover value: 0
Loading
Loading