Skip to content

A max rectangle 2d bin packer implementation of the BestShortSideFit algorithm using Python and Bokeh

Notifications You must be signed in to change notification settings

ashish-padakannaya/Maxrects-BestShortSideFit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Implementation of a solution to the 2D bin packing algorithm with Python and Bokeh.

Install required packages

pip install -r requirements.txt

zdf1.txt contains the data set for packing. The format should be

number n of items
width W for the strip 
height H for the strip
for each item (i=0,1,......n-1):
    index i, width of item i, height of item i

Currently the dataset has {N: 580, W: 100,H: 800}

To pack and display a plot, run the file new-rect.py

python new-rect.py

The plot ouput also gets stored in a file maxrects.html

About

A max rectangle 2d bin packer implementation of the BestShortSideFit algorithm using Python and Bokeh

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages