D1, L3 Bin Packing Algorithm
D1, L3 Bin Packing Algorithm
Heuristic Algorithms
the same width and depth but different heights into bins.
B
C
Clearly you can see that the depth and width of the bins
Height
Height
15
C(4)
G(3) H(8)
I(6)
B(7)
D(9)
A(3)
E(7)
F(9)
J(4)
D
A
F
B
H
C
B
D
FI
C
G
J
H
AI
G
J
Height
9
3
9
7
8
4
7
9
6
9
4
3
4
8
3
6
3
4
15
I(6)
C(4) B(7)
A(3)
J(4)
G(3)
Bin 1 Bin 2 Bin 3 Bin 4 Bin 5
Box
Height
15
I(6)
G(3)
A(3)
B(7)
J(4)
C(4)
13m
7m
Van
3m
Truck
12m
4m
6m
Car
Lorry
4m
11m
on to the trip.
Can all the vehicles be taken on the trip?
Box
Height
13
12
11
Box
Height
13
12
11
13
3
7
6
12
4
4
11
13
13
3
13
7
3
13
7
6
3
13
12
7
6
3
13
12
7
6
4
3
13
12
7
6
4
4
3
13
12
11
7
6
4
4
3
Box
Height
13
12
11
Height
13
12
11
First-fit decreasing
C(7)
G(4)
D(6)
D(6) F(4)
F(4)
A(13) E(12)
B(3) G(4)
A(13)
H(11)
H(11) E(12)
B(3)
Lane 1 Lane 2 lane 3
G H
Size (mb)
600 200 450 250 300 250 150 200 100 150 50
L
100
C E
D F
H G J
Size (mb)
600 450 300 250 250 200 200 150 150 100 100 50
Size (mb)
600 450 300 250 250 200 200 150 150 100 100 50
G
D
I
(250)
J
F
(250) H
A
(600) C
(200)
E
(450)
B
(300)
(200)
Disc 1 Disc 2 Disc 3 Disc 4
G J
Number
Number
D(4) E(4)
a name.
Now you can apply the first-fit decreasing algorithm.
You can now easily see the full bin combinations.
Pipe
A B C D E F G H I
K L
Length
K(2) J(3)
F(4) I(3)
H(3)
G(3) L(2)
7 6
D(4)