chapter 3 planning and scheduling bin packing
play

Chapter 3: Planning and Scheduling Bin Packing Problem Suppose - PowerPoint PPT Presentation

Chapter 3: Planning and Scheduling Bin Packing Problem Suppose you plan to build a wall system for your books, CDs, DVDs, and stereo set. It requires 24 wooden shelves of various lengths: 6, 6, 5, 5, 5, 4, 4, 4, 4, 2, 2, 2, 2, 3, 3, 7, 7, 5,


  1. Chapter 3: Planning and Scheduling Bin Packing Problem Suppose you plan to build a wall system for your books, CDs, DVDs, and stereo set. It requires 24 wooden shelves of various lengths: 6, 6, 5, 5, 5, 4, 4, 4, 4, 2, 2, 2, 2, 3, 3, 7, 7, 5, 5, 8, 8, 4, 4, and 5 feet. The lumberyard, however, sells wood only in boards of length 9 feet. If each board costs $8, what is the minimum cost to buy sufficient wood for the wall system? We could just buy 24 boards at $8 each but this would a huge waste of lumber.

  2. Chapter 3: Planning and Scheduling Bin Packing  Bin Packing  The problem of finding the minimum number of bins into which the weight can be packed.  Find the minimum number of bins (containers) of capacity, W.  Where weights w 1 , w 2 , …, w n are packed into the bins.  Each weight of object is less than or equal to W ( w i  W ).  Instead of fixing the number of machines and finding a minimum completion time, we want to find the minimum number of machines (bins), each with a fixed capacity W .

  3. Chapter 3: Planning and Scheduling Bin Packing  Heuristic Algorithms  Methods that can be carried out quickly but cannot guarantee to produce optimal results.  Once again, there is no fast or optimal algorithm, so we will look at several methods and compare them.

  4. Chapter 3: Planning and Scheduling Bin Packing Bin Packing — Six Methods 1. Next Fit (NF) 2. Next Fit Decreasing (NFD) 3. First Fit (FF) 4. First Fit Decreasing (FFD) 5. Worse Fit (WF) 6. Worse Fit Decreasing (WFD)

  5. Chapter 3: Planning and Scheduling Bin Packing Next Fit (NF) – A new bin is opened if the weight to be packed next will not fit in the bin that is currently being filled; the current bin is then closed.

  6. Chapter 3: Planning and Scheduling Bin Packing  Next Fit (NF)  Advantages – Does not require knowledge of all the weights in advance; only need to know the remaining space in the bin.  Disadvantages – The bin packed early on may have had room for small items that come later in the list.  Best method for assembly-line packing.

  7. Example Using Next Fit Bin Packing Pack list 6, 6, 5, 5, 5, 4, 4, 4, 4, 2, 2, 2, 2, 3, 3, 7 7, 5, 5, 8, 8, 4, 4, 5

  8. Chapter 3: Planning and Scheduling Bin Packing First Fit (FF) – The next weight to be packed is placed in the lowest-numbered bin already opened into which it will fit. If it does not fit in any open bins, a new bin is opened. Worse Fit (WF) – The next weight to be packed is placed into the open bin with the largest amount of room remaining. If it does not fit in any bins, open a new bin.

  9. Chapter 3: Planning and Scheduling Bin Packing The first fit and the worst-fit would yield the same packing of bins.

  10. Chapter 3: Planning and Scheduling Bin Packing One problem with all three of these heuristics is that large weights that appear late in the list cannot be packed efficiently. Therefore, we should first sort the items to be packed in order of decreasing size, assuming that all items are known in advance.

  11. Chapter 3: Planning and Scheduling Bin Packing Decreasing-Time Heuristics (NFD, FFD, WFD) – Create the priority list by listing the tasks in order of decreasing size before the bin-packing method.

  12. Chapter 3: Planning and Scheduling Bin Packing Example Using Decreasing-Time Heuristics Pack list 8, 8, 7, 7, 6, 6, 5, 5, 5, 5, 5, 5, 4, 4, 4, 4, 4, 4, 3, 3, 2, 2, 2, 2

  13. Chapter 3: Planning and Scheduling Bin Packing A way to predict the least number of bins that must be used is to divide the total weight by the weight capacity of each bin. In the example this means find the total length of boards needed to make the 24 shelves and divide this number by 9 since this is the length of one board at the lumberyard. 110 2  12 9 9 So the minimum number of boards you have to buy is 13 boards.

Download Presentation
Download Policy: The content available on the website is offered to you 'AS IS' for your personal information and use only. It cannot be commercialized, licensed, or distributed on other websites without prior consent from the author. To download a presentation, simply click this link. If you encounter any difficulties during the download process, it's possible that the publisher has removed the file from their server.

Recommend


More recommend