bin packing and cutting stock problems: mathematical ... · bin packing and cutting stock problems:...

35
Bin Packing and Cutting Stock Problems: Mathematical Models and Exact Algorithms Maxence Delorme (1) , Manuel Iori (2) , Silvano Martello (1) (1) DEI, University of Bologna, Italy, (2) DISMI, University of Modena and Reggio Emilia, Italy BOLOGNA 2015 Delorme, Iori, Martello Bin Packing and Cutting Stock Problems BOLOGNA 2015 1 / 35

Upload: builiem

Post on 02-Oct-2018

218 views

Category:

Documents


2 download

TRANSCRIPT

Bin Packing and Cutting Stock Problems: MathematicalModels and Exact Algorithms

Maxence Delorme(1), Manuel Iori(2), Silvano Martello(1)

(1) DEI, University of Bologna, Italy,(2) DISMI, University of Modena and Reggio Emilia, Italy

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

The Bin Packing Problem (BPP)

Classical Bin Packing Problem

Given a set of weighted items and an unlimited number of identical capac-itated bins, the Bin Packing Problem consists in packing all the items intothe minimum number of bins.

Bins

Delorme, Iori, Martello Bin Packing and Cutting Stock Problems BOLOGNA 2015 3 / 35

Introduction

The Bin Packing Problem (BPP)

Classical Bin Packing Problem

Given a set of weighted items and an unlimited number of identical capac-itated bins, the Bin Packing Problem consists in packing all the items intothe minimum number of bins.

Items Bins

4 43 3

2 2

9 9 9

Delorme, Iori, Martello Bin Packing and Cutting Stock Problems BOLOGNA 2015 4 / 35

Introduction

The Bin Packing Problem (BPP)

Classical Bin Packing Problem

Given a set of weighted items and an unlimited number of identical capac-itated bins, the Bin Packing Problem consists in packing all the items intothe minimum number of bins.

Items Bins

4 43 3

2 2

9

4 4

3 3

2 2

Delorme, Iori, Martello Bin Packing and Cutting Stock Problems BOLOGNA 2015 5 / 35

Introduction

The Cutting Stock Problem (CSP)

Classical Cutting Stock Problem

Given a set of order requirements, each requirement consisting in a demandand a width, and an unlimited number of identical rolls, the classical cuttingstock problem consists of determining the smallest number of rolls that haveto be cut in order to satisfy all the demands.

Bins

Delorme, Iori, Martello Bin Packing and Cutting Stock Problems BOLOGNA 2015 6 / 35

Introduction

The Cutting Stock Problem (CSP)

Classical Cutting Stock Problem

Given a set of order requirements, each requirement consisting in a demandand a width, and an unlimited number of identical rolls, the classical cuttingstock problem consists of determining the smallest number of rolls that haveto be cut in order to satisfy all the demands.

Order requirements Rolls

4 x 2

3 x 2

2 x 2

9

9

9

Delorme, Iori, Martello Bin Packing and Cutting Stock Problems BOLOGNA 2015 7 / 35

Introduction

The Cutting Stock Problem (CSP)

Classical Cutting Stock Problem

Given a set of order requirements, each requirement consisting in a demandand a width, and an unlimited number of identical rolls, the classical cuttingstock problem consists of determining the smallest number of rolls that haveto be cut in order to satisfy all the demands.

Order requirements Rolls

4 x 2

3 x 2

2 x 2

9

4

4 3

3 2

2

Delorme, Iori, Martello Bin Packing and Cutting Stock Problems BOLOGNA 2015 8 / 35

Introduction

Some applications for the BPP and the CSP

I Cutting materials in industry (wood, paper, aluminium ...)I Kantorovich, Mathematical methods of organizing and planning

production, Management Science, 1960 (originally from 1939)I Stadler, A one-dimensional cutting stock problem in the aluminium

industry and its solution, European Journal of Operational Research,1990

I Loading when 1 dimension is considered (file storage on computers,container loading ...)

I Solving more difficult problems (vehicle routing, multi-dimensionalBPP, ...)

Delorme, Iori, Martello Bin Packing and Cutting Stock Problems BOLOGNA 2015 9 / 35

Introduction

Context of our work

I BPP and CSP are more and more studied by researchersThe subject is of interest

I Many techniques can be used to solve the BPP and the CSPA survey is relevant

I All the literature instances are solvedA will to create a new computational challenge

Delorme, Iori, Martello Bin Packing and Cutting Stock Problems BOLOGNA 2015 10 / 35

Introduction

Objectives of our work

I Gather in a survey the most important articles

I Test the efficiency of some exact methods proposed in the literature(Branch-and-Bound, Branch-and-Price, Pseudo-Polynomial models...)

I Study the behaviour of those methods when the parameters of thetest instances change

I Propose new instances that are difficult to solve in practice

Delorme, Iori, Martello Bin Packing and Cutting Stock Problems BOLOGNA 2015 11 / 35

Most common exact methods for solving the BPP and the CSP

The textbook BPP model solved by ILP solver

Martello, Toth, Knapsack Problems: Algorithms and Computer Implementations, Wiley, 1990Roots in the seminal work by Kantorovich, Mathematical methods of organizing and planningproduction, Management Science, 1960 (originally from 1939)

min

m∑i=1

yi (1)

s.t.n∑j=1

wjxij ≤ cyi (i = 1, . . . ,m), (2)

m∑i=1

xij = 1 (j = 1, . . . , n), (3)

yi ∈ {0, 1} (i = 1, . . . ,m), (4)

xij ∈ {0, 1} (i = 1, . . . ,m; j = 1, . . . , n). (5)

Easy to implement, may be efficient on small instances (n ≤ 100)

Delorme, Iori, Martello Bin Packing and Cutting Stock Problems BOLOGNA 2015 12 / 35

Most common exact methods for solving the BPP and the CSP

Branch & Bound algorithms

Martello, Toth, Knapsack Problems: Algorithms and Computer Implementations, Wiley, 1990Scholl, Klein, Jurgens, BISON: a fast hybrid procedure for exactly solving the one-dimensionalBPP, Computers & Operations Research, 1997

Main idea: Explore (in a ”smart” way) through an enumeration tree all thefeasible packingsSmart 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

Avoid the use of solvers. Generally good on small instances (n ≤ 100), orwhen the preprocessing is efficient.

Delorme, Iori, Martello Bin Packing and Cutting Stock Problems BOLOGNA 2015 13 / 35

Most common exact methods for solving the BPP and the CSP

Branch & Price algorithms

Gilmore, Gomory, A linear programming approach to the CSP, Operations research, 1963Vance, Barnhart, Johnson, Nemhauser, Solving binary CSP by column generation andbranch-and-bound, Computational optimization and applications, 1994Belov, Scheithauer, A branch-and-cut-and-price algorithm for one-dimensional stock cutting andtwo-dimensional two-stage cutting, European Journal of Operational Research, 2006

Main idea: Consider the Bin Packing Problem as a Set Covering Problem

Set Covering Problem (SCP)

Given a set of elements {1, 2, ..., n} (called the universe) and a family S of m sets whose unionequals the universe, the set covering problem is to identify the smallest subfamily of S whoseunion equals the universe.

I The elements {1, 2, ..., n} are the items

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), conjecturedto 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

Shaw, A constraint for bin packing, 2004Schaus, Regin, Van Schaeren, Dullaert, Raa, Cardinality reasoning for bin-packing constraint:Application to a tank allocation problem, 2012

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.

Can be efficient on small instances (n ≤ 100) and has the advantage ofeasily allowing additional constraints.

Delorme, Iori, Martello Bin Packing and Cutting Stock Problems BOLOGNA 2015 15 / 35

Most common exact methods for solving the BPP and the CSP

Pseudo Polynomial Models solved by ILP solver

Dyckhoff. A new linear programming approach to the cutting stock problem, OperationsResearch 1981Valerio de Carvalho, Exact solution of bin-packing problems using column generation andbranch-and-bound, Annals of Operations Research 1999Cambazard, O’Sullivan, Propagating the bin packing constraint using linear programming, 2010Brandao, Pedroso, Bin Packing and Related Problems: General Arc-flow Formulation withGraph Compression, 2013

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

Pseudo Polynomial Models solved by ILP solver

Dyckhoff. A new linear programming approach to the cutting stock problem, OperationsResearch 1981Valerio de Carvalho, Exact solution of bin-packing problems using column generation andbranch-and-bound, Annals of Operations Research 1999Cambazard, O’Sullivan, Propagating the bin packing constraint using linear programming, 2010Brandao, Pedroso, Bin Packing and Related Problems: General Arc-flow Formulation withGraph Compression, 2013

Main idea: Consider a bin as a path in a graph where arcs are items

Items Full graph

4 x 2

3 x 2

2 x 2

0 1 2 3 4 5 6 7 8 9

Delorme, Iori, Martello Bin Packing and Cutting Stock Problems BOLOGNA 2015 17 / 35

Most common exact methods for solving the BPP and the CSP

Pseudo Polynomial Models solved by ILP solver

Dyckhoff. A new linear programming approach to the cutting stock problem, OperationsResearch 1981Valerio de Carvalho, Exact solution of bin-packing problems using column generation andbranch-and-bound, Annals of Operations Research 1999Cambazard, O’Sullivan, Propagating the bin packing constraint using linear programming, 2010Brandao, Pedroso, Bin Packing and Related Problems: General Arc-flow Formulation withGraph Compression, 2013

Main idea: Consider a bin as a path in a graph where arcs are items

Items Full graph

4 x 2

3 x 2

2 x 2

0 1 2 3 4 5 6 7 8 9

Delorme, Iori, Martello Bin Packing and Cutting Stock Problems BOLOGNA 2015 18 / 35

Most common exact methods for solving the BPP and the CSP

Pseudo Polynomial Models solved by ILP solver

Dyckhoff. A new linear programming approach to the cutting stock problem, OperationsResearch 1981Valerio de Carvalho, Exact solution of bin-packing problems using column generation andbranch-and-bound, Annals of Operations Research 1999Cambazard, O’Sullivan, Propagating the bin packing constraint using linear programming, 2010Brandao, Pedroso, Bin Packing and Related Problems: General Arc-flow Formulation withGraph Compression, 2013

Main idea: Consider a bin as a path in a graph where arcs are items

Items Full graph

4 x 2

3 x 2

2 x 2

0 1 2 3 4 5 6 7 8 9

Delorme, Iori, Martello Bin Packing and Cutting Stock Problems BOLOGNA 2015 19 / 35

Most common exact methods for solving the BPP and the CSP

Pseudo Polynomial Models solved by ILP solver

Dyckhoff. A new linear programming approach to the cutting stock problem, OperationsResearch 1981Valerio de Carvalho, Exact solution of bin-packing problems using column generation andbranch-and-bound, Annals of Operations Research 1999Cambazard, O’Sullivan, Propagating the bin packing constraint using linear programming, 2010Brandao, Pedroso, Bin Packing and Related Problems: General Arc-flow Formulation withGraph Compression, 2013

Main idea: Consider a bin as a path in a graph where arcs are items

Items Full graph

4 x 2

3 x 2

2 x 2

0 1 2 3 4 5 6 7 8 9

Delorme, Iori, Martello Bin Packing and Cutting Stock Problems BOLOGNA 2015 20 / 35

Most common exact methods for solving the BPP and the CSP

Pseudo Polynomial Models solved by ILP solver

Dyckhoff. A new linear programming approach to the cutting stock problem, OperationsResearch 1981Valerio de Carvalho, Exact solution of bin-packing problems using column generation andbranch-and-bound, Annals of Operations Research 1999Cambazard, O’Sullivan, Propagating the bin packing constraint using linear programming, 2010Brandao, Pedroso, Bin Packing and Related Problems: General Arc-flow Formulation withGraph Compression, 2013

Main idea: Consider a bin as a path in a graph where arcs are items

Items Full graph: 30 arcs, 10 nodes

4 x 2

3 x 2

2 x 2

0 1 2 3 4 5 6 7 8 9

Delorme, Iori, Martello Bin Packing and Cutting Stock Problems BOLOGNA 2015 21 / 35

Most common exact methods for solving the BPP and the CSP

Pseudo Polynomial Models solved by ILP solver

Dyckhoff. A new linear programming approach to the cutting stock problem, OperationsResearch 1981Valerio de Carvalho, Exact solution of bin-packing problems using column generation andbranch-and-bound, Annals of Operations Research 1999Cambazard, O’Sullivan, Propagating the bin packing constraint using linear programming, 2010Brandao, Pedroso, Bin Packing and Related Problems: General Arc-flow Formulation withGraph Compression, 2013

Main idea: Consider a bin as a path in a graph where arcs are items

Items Optimal solution

4 x 2

3 x 2

2 x 2

0 1 2 3 4 5 6 7 8 9

1 1 2

1 1

Delorme, Iori, Martello Bin Packing and Cutting Stock Problems BOLOGNA 2015 22 / 35

Most common exact methods for solving the BPP and the CSP

Pseudo Polynomial Models solved by ILP solver

Dyckhoff. A new linear programming approach to the cutting stock problem, OperationsResearch 1981Valerio de Carvalho, Exact solution of bin-packing problems using column generation andbranch-and-bound, Annals of Operations Research 1999Cambazard, O’Sullivan, Propagating the bin packing constraint using linear programming, 2010Brandao, Pedroso, Bin Packing and Related Problems: General Arc-flow Formulation withGraph Compression, 2013

Main idea: Consider a bin as a path in a graph where arcs are items

Items Reduced graph

4 x 2

3 x 2

2 x 2

0

Delorme, Iori, Martello Bin Packing and Cutting Stock Problems BOLOGNA 2015 23 / 35

Most common exact methods for solving the BPP and the CSP

Pseudo Polynomial Models solved by ILP solver

Dyckhoff. A new linear programming approach to the cutting stock problem, OperationsResearch 1981Valerio de Carvalho, Exact solution of bin-packing problems using column generation andbranch-and-bound, Annals of Operations Research 1999Cambazard, O’Sullivan, Propagating the bin packing constraint using linear programming, 2010Brandao, Pedroso, Bin Packing and Related Problems: General Arc-flow Formulation withGraph Compression, 2013

Main idea: Consider a bin as a path in a graph where arcs are items

Items Reduced graph

4 x 2

3 x 2

2 x 2

0 4 8

Delorme, Iori, Martello Bin Packing and Cutting Stock Problems BOLOGNA 2015 24 / 35

Most common exact methods for solving the BPP and the CSP

Pseudo Polynomial Models solved by ILP solver

Dyckhoff. A new linear programming approach to the cutting stock problem, OperationsResearch 1981Valerio de Carvalho, Exact solution of bin-packing problems using column generation andbranch-and-bound, Annals of Operations Research 1999Cambazard, O’Sullivan, Propagating the bin packing constraint using linear programming, 2010Brandao, Pedroso, Bin Packing and Related Problems: General Arc-flow Formulation withGraph Compression, 2013

Main idea: Consider a bin as a path in a graph where arcs are items

Items Reduced graph

4 x 2

3 x 2

2 x 2

0 3 4 6 7 8

Delorme, Iori, Martello Bin Packing and Cutting Stock Problems BOLOGNA 2015 25 / 35

Most common exact methods for solving the BPP and the CSP

Pseudo Polynomial Models solved by ILP solver

Dyckhoff. A new linear programming approach to the cutting stock problem, OperationsResearch 1981Valerio de Carvalho, Exact solution of bin-packing problems using column generation andbranch-and-bound, Annals of Operations Research 1999Cambazard, O’Sullivan, Propagating the bin packing constraint using linear programming, 2010Brandao, Pedroso, Bin Packing and Related Problems: General Arc-flow Formulation withGraph Compression, 2013

Main idea: Consider a bin as a path in a graph where arcs are items

Items Reduced graph

4 x 2

3 x 2

2 x 2

0 2 3 4 5 6 7 8 9

Delorme, Iori, Martello Bin Packing and Cutting Stock Problems BOLOGNA 2015 26 / 35

Most common exact methods for solving the BPP and the CSP

Pseudo Polynomial Models solved by ILP solver

Dyckhoff. A new linear programming approach to the cutting stock problem, OperationsResearch 1981Valerio de Carvalho, Exact solution of bin-packing problems using column generation andbranch-and-bound, Annals of Operations Research 1999Cambazard, O’Sullivan, Propagating the bin packing constraint using linear programming, 2010Brandao, Pedroso, Bin Packing and Related Problems: General Arc-flow Formulation withGraph Compression, 2013

Main idea: Consider a bin as a path in a graph where arcs are items

Items Reduced graph: 19 arcs, 9 nodes

4 x 2

3 x 2

2 x 2

0 2 3 4 5 6 7 8 9

Delorme, Iori, Martello Bin Packing and Cutting Stock Problems BOLOGNA 2015 27 / 35

Most common exact methods for solving the BPP and the CSP

Pseudo Polynomial Models solved by ILP solver

Dyckhoff. A new linear programming approach to the cutting stock problem, OperationsResearch 1981Valerio de Carvalho, Exact solution of bin-packing problems using column generation andbranch-and-bound, Annals of Operations Research 1999Cambazard, O’Sullivan, Propagating the bin packing constraint using linear programming, 2010Brandao, Pedroso, Bin Packing and Related Problems: General Arc-flow Formulation withGraph Compression, 2013

Main idea: Consider a bin as a path in a graph where arcs are items

Items Optimal solution

4 x 2

3 x 2

2 x 2

0 2 3 4 5 6 7 8 9

2 2

2

Delorme, Iori, Martello Bin Packing and Cutting Stock Problems BOLOGNA 2015 28 / 35

Most common exact methods for solving the BPP and the CSP

Pseudo Polynomial Models solved by ILP solver

Model

min z (6)

s.t. −∑

d∈δ−(e)

xde +∑

f∈δ+(e)

xef =

z if e = 0;−z for e = c;0 otherwise,

(7)

∑(d,d+wi)∈A′

xd,d+wi ≥ bi (i = 1, ...,m), (8)

xde ≥ 0 and integer (d, e) ∈ A′, (9)

where δ−(e) (resp. δ+(e)) denotes the set of arcs entering (resp. emanating from) e.

Very good when the lower bound is equal to the optimum and/or when the number ofarcs 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 28 instances from Schoenfield (2002)

I 200 instances from Schwerin and Waescher (1998).

I 17 instances from Waescher and Gau (1996).

I 160 instances from Falkenauer (1996).

I Randomly generated instances (3840)I Variable number of items: 50,...,1000

I Variable bin capacity: 50,...,1000

I Variable parameters for the distribution of the items

I 10 instances for each combination

I Augmented Non-IRUP (ANI) instances (250 + 250 Augmented IRUP (AI))I Variable number of items: 201, 402, 600, 801, and 1002

I Each have its own maximum capacity: 2 500, 10 000, 20 000, 40 000, and 80 000

I 50 instances for each of the 5 sets

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

Results for literature instances

Number of literature instances (average gap wrt lower bound) solved inless than one minute, on an Intel Xeon 3.10GHz with 8GB of RAM

I Best methods seem to be the B&P algorithm of Belov and thePseudo Polynomial models

I All instances can be solved in less than 10 minutes by BELOV

Delorme, Iori, Martello Bin Packing and Cutting Stock Problems BOLOGNA 2015 31 / 35

Computational Results

Results for randomly generated instances

Number of random instances solved in less than one minute (average gapwrt lower bound) when varying n, on an Intel Xeon 3.10GHz with 8GB ofRAM

I No change in the efficiency of the methods

I No difficulty for solving random instances even with “large” capacityand number of items

Delorme, Iori, Martello Bin Packing and Cutting Stock Problems BOLOGNA 2015 32 / 35

Computational Results

Results for ANI and AI instances

Number of difficult instances (ANI) solved in less than 1 hour (averagegap wrt lower bound), on an Intel Xeon 3.10GHz with 8GB of RAM

I No change in the efficiency of the methods

I ANI instance are indeed hard to solve

Delorme, Iori, Martello Bin Packing and Cutting Stock Problems BOLOGNA 2015 33 / 35

Computational Results

Results for a subset of instances

Number of selected instances solved [average time in seconds] usingdifferent version of CPLEX, on an Intel Xeon 2.66GHz with 24 GB of RAM

I Efficiency of pseudo-polynomial models highly depend on theperformance of the ILP solver used

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 theCSP seem to be ARCFLOW, VPSOLVER and the B&P algorithm ofBelov et al.

I The use of pseudo-polynomial models for solving the BPP becamerelevant thanks to the performance of the ILP solver

I There are some properties that make an instance difficult for the toolwe tested

I Some new BPP instances are “open” !

Delorme, Iori, Martello Bin Packing and Cutting Stock Problems BOLOGNA 2015 35 / 35