Bin Packing and Cutting Stock Problems: Mathematical Models and Exact Algorithms
Bin Packing and Cutting Stock Problems: Mathematical Models and Exact Algorithms
Bin Packing and Cutting Stock Problems: Mathematical Models and Exact Algorithms
BOLOGNA 2015
Delorme, Iori, Martello Bin Packing and Cutting Stock Problems BOLOGNA 2015 1 / 35
Outline
1 Introduction
2 Most common exact methods for solving the BPP and the CSP
3 Computational Results
4 Conclusion
Delorme, Iori, Martello Bin Packing and Cutting Stock Problems BOLOGNA 2015 2 / 35
Introduction
Bins
Delorme, Iori, Martello Bin Packing and Cutting Stock Problems BOLOGNA 2015 3 / 35
Introduction
Items Bins
9 9 9
4 4
3 3
2 2
Delorme, Iori, Martello Bin Packing and Cutting Stock Problems BOLOGNA 2015 4 / 35
Introduction
Items Bins
2 2
3 3
9
4 4 4 4
3 3
2 2
Delorme, Iori, Martello Bin Packing and Cutting Stock Problems BOLOGNA 2015 5 / 35
Introduction
Bins
Delorme, Iori, Martello Bin Packing and Cutting Stock Problems BOLOGNA 2015 6 / 35
Introduction
2 x2 9
3 x2 9
4 x2 9
Delorme, Iori, Martello Bin Packing and Cutting Stock Problems BOLOGNA 2015 7 / 35
Introduction
2 x2 4 3 2
3 x2 4 3 2
4 x2 9
Delorme, Iori, Martello Bin Packing and Cutting Stock Problems BOLOGNA 2015 8 / 35
Introduction
Delorme, Iori, Martello Bin Packing and Cutting Stock Problems BOLOGNA 2015 9 / 35
Introduction
Delorme, Iori, Martello Bin Packing and Cutting Stock Problems BOLOGNA 2015 10 / 35
Introduction
Delorme, Iori, Martello Bin Packing and Cutting Stock Problems BOLOGNA 2015 11 / 35
Most common exact methods for solving the BPP and the CSP
Martello, Toth, Knapsack Problems: Algorithms and Computer Implementations, Wiley, 1990
Roots in the seminal work by Kantorovich, Mathematical methods of organizing and planning
production, Management Science, 1960 (originally from 1939)
m
X
min yi (1)
i=1
Xn
s.t. wj xij ≤ cyi (i = 1, . . . , m), (2)
j=1
m
X
xij = 1 (j = 1, . . . , n), (3)
i=1
Delorme, Iori, Martello Bin Packing and Cutting Stock Problems BOLOGNA 2015 12 / 35
Most common exact methods for solving the BPP and the CSP
Martello, Toth, Knapsack Problems: Algorithms and Computer Implementations, Wiley, 1990
Scholl, Klein, Jürgens, BISON: a fast hybrid procedure for exactly solving the one-dimensional
BPP, Computers & Operations Research, 1997
Main idea: Explore (in a ”smart” way) through an enumeration tree all the
feasible packings
Smart because:
I Use of reduction procedures
I Use of a set of specially designed Lower Bounds (L1, L2, L3 ... L6)
I Use of fast and good heuristics to get Upper Bounds
Delorme, Iori, Martello Bin Packing and Cutting Stock Problems BOLOGNA 2015 13 / 35
Most common exact methods for solving the BPP and the CSP
Main idea: Consider the Bin Packing Problem as a Set Covering Problem
I The family S is composed by every feasible bin (column generation used to generate bins)
Very good when the lower bound is equal to the optimum (true in 99% of the case), conjectured
to be at most one bin away from the optimum (called Non-IRUP).
Delorme, Iori, Martello Bin Packing and Cutting Stock Problems BOLOGNA 2015 14 / 35
Most common exact methods for solving the BPP and the CSP
Constraints Programming
Main idea: Use properties of feasible solutions to define the search domain.
Shaw did a very good job and created a constraint implemented in CPLEX.
Delorme, Iori, Martello Bin Packing and Cutting Stock Problems BOLOGNA 2015 15 / 35
Most common exact methods for solving the BPP and the CSP
Main idea: Consider a bin as a path in a graph where arcs are items
Arcs
Delorme, Iori, Martello Bin Packing and Cutting Stock Problems BOLOGNA 2015 16 / 35
Most common exact methods for solving the BPP and the CSP
Main idea: Consider a bin as a path in a graph where arcs are items
2 x2
3 x2 0 1 2 3 4 5 6 7 8 9
4 x2
Delorme, Iori, Martello Bin Packing and Cutting Stock Problems BOLOGNA 2015 17 / 35
Most common exact methods for solving the BPP and the CSP
Main idea: Consider a bin as a path in a graph where arcs are items
2 x2
3 x2 0 1 2 3 4 5 6 7 8 9
4 x2
Delorme, Iori, Martello Bin Packing and Cutting Stock Problems BOLOGNA 2015 18 / 35
Most common exact methods for solving the BPP and the CSP
Main idea: Consider a bin as a path in a graph where arcs are items
2 x2
3 x2 0 1 2 3 4 5 6 7 8 9
4 x2
Delorme, Iori, Martello Bin Packing and Cutting Stock Problems BOLOGNA 2015 19 / 35
Most common exact methods for solving the BPP and the CSP
Main idea: Consider a bin as a path in a graph where arcs are items
2 x2
3 x2 0 1 2 3 4 5 6 7 8 9
4 x2
Delorme, Iori, Martello Bin Packing and Cutting Stock Problems BOLOGNA 2015 20 / 35
Most common exact methods for solving the BPP and the CSP
Main idea: Consider a bin as a path in a graph where arcs are items
2 x2
3 x2 0 1 2 3 4 5 6 7 8 9
4 x2
Delorme, Iori, Martello Bin Packing and Cutting Stock Problems BOLOGNA 2015 21 / 35
Most common exact methods for solving the BPP and the CSP
Main idea: Consider a bin as a path in a graph where arcs are items
2 x2
1 1 2
3 x2 0 1 2 3 4 5 6 7 8 9
1 1
4 x2
Delorme, Iori, Martello Bin Packing and Cutting Stock Problems BOLOGNA 2015 22 / 35
Most common exact methods for solving the BPP and the CSP
Main idea: Consider a bin as a path in a graph where arcs are items
2 x2
3 x2 0
4 x2
Delorme, Iori, Martello Bin Packing and Cutting Stock Problems BOLOGNA 2015 23 / 35
Most common exact methods for solving the BPP and the CSP
Main idea: Consider a bin as a path in a graph where arcs are items
2 x2
3 x2 0 4 8
4 x2
Delorme, Iori, Martello Bin Packing and Cutting Stock Problems BOLOGNA 2015 24 / 35
Most common exact methods for solving the BPP and the CSP
Main idea: Consider a bin as a path in a graph where arcs are items
2 x2
3 x2 0 3 4 6 7 8
4 x2
Delorme, Iori, Martello Bin Packing and Cutting Stock Problems BOLOGNA 2015 25 / 35
Most common exact methods for solving the BPP and the CSP
Main idea: Consider a bin as a path in a graph where arcs are items
2 x2
3 x2 0 2 3 4 5 6 7 8 9
4 x2
Delorme, Iori, Martello Bin Packing and Cutting Stock Problems BOLOGNA 2015 26 / 35
Most common exact methods for solving the BPP and the CSP
Main idea: Consider a bin as a path in a graph where arcs are items
2 x2
3 x2 0 2 3 4 5 6 7 8 9
4 x2
Delorme, Iori, Martello Bin Packing and Cutting Stock Problems BOLOGNA 2015 27 / 35
Most common exact methods for solving the BPP and the CSP
Main idea: Consider a bin as a path in a graph where arcs are items
2 x2
2 2
3 x2 0 2 3 4 5 6 7 8 9
2
4 x2
Delorme, Iori, Martello Bin Packing and Cutting Stock Problems BOLOGNA 2015 28 / 35
Most common exact methods for solving the BPP and the CSP
Model
min z (6)
X X z if e = 0;
s.t. − xde + xef = −z for e = c; (7)
0 otherwise,
d∈δ − (e) f ∈δ + (e)
X
xd,d+wi ≥ bi (i = 1, ..., m), (8)
(d,d+wi )∈A0
Very good when the lower bound is equal to the optimum and/or when the number of
arcs is not too big (c < 1000) .
Delorme, Iori, Martello Bin Packing and Cutting Stock Problems BOLOGNA 2015 29 / 35
Computational Results
Instances
I Literature instances (1615)
I 1210 instances from Sholl, Klein and Juergens (1997)
I Each have its own maximum capacity: 2 500, 10 000, 20 000, 40 000, and 80 000
I An AI instance was created from each ANI instances by splitting 1 item so that the Non-IRUP is lost
Delorme, Iori, Martello Bin Packing and Cutting Stock Problems BOLOGNA 2015 30 / 35
Computational Results
Delorme, Iori, Martello Bin Packing and Cutting Stock Problems BOLOGNA 2015 31 / 35
Computational Results
Number of random instances solved in less than one minute (average gap
wrt lower bound) when varying n, on an Intel Xeon 3.10GHz with 8GB of
RAM
Delorme, Iori, Martello Bin Packing and Cutting Stock Problems BOLOGNA 2015 32 / 35
Computational Results
Delorme, Iori, Martello Bin Packing and Cutting Stock Problems BOLOGNA 2015 33 / 35
Computational Results
Delorme, Iori, Martello Bin Packing and Cutting Stock Problems BOLOGNA 2015 34 / 35
Conclusion
Conclusion
Conclusion
I According to our results, the best methods to solve the BPP and the
CSP seem to be ARCFLOW, VPSOLVER and the B&P algorithm of
Belov et al.
I The use of pseudo-polynomial models for solving the BPP became
relevant thanks to the performance of the ILP solver
I There are some properties that make an instance difficult for the tool
we tested
I Some new BPP instances are “open” !
Delorme, Iori, Martello Bin Packing and Cutting Stock Problems BOLOGNA 2015 35 / 35