Following from #29.. Now that we are tracking the max height a bin can be (so that bins be reused), we should set maxh to the total shelf height when packing a small bin on a larger shelf.
I padded the maxh/maxw free space in black here to make it easier to see what I mean. Many lower case letters are packed on uppercase shelves. If that space is ever to be reused, maxh needs to be the size of the shelf, otherwise those slivers of space can never be reused.
Following from #29.. Now that we are tracking the max height a bin can be (so that bins be reused), we should set
maxh
to the total shelf height when packing a small bin on a larger shelf.I padded the
maxh
/maxw
free space in black here to make it easier to see what I mean. Many lower case letters are packed on uppercase shelves. If that space is ever to be reused,maxh
needs to be the size of the shelf, otherwise those slivers of space can never be reused.