For every set of bin packing data there exists a unique ordering which produces the optimal solution when run through the first fit algorithm. The problem lies in finding this ordering, especially on large data sets. To try and solve this, this project is a genetic algorithm solution that attempts to find as close an optimal ordering as possible.
Download the source files, compile the file Driver.java (javac Driver.java), then run the Driver file (java Driver). It will then ask you for numerous directions to run the program. Have fun!
Feel free to use this repo for academic purposes, but please cite as such:
Brian Clee. (2013). A Genetic Algorithm for the 2D Bin Packing Problem. Zenodo. 10.5281/zenodo.50229
or in BibTeX:
@misc{clee_2013,
author = {Brian Clee},
title = {A Genetic Algorithm for the 2D Bin Packing Problem},
month = mar,
year = 2013,
doi = {10.5281/zenodo.50229},
url = {http://dx.doi.org/10.5281/zenodo.50229}
}