Skip to content

ibigpapa/bin_packing_problem

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Build Status

Bin Packing Problem

This library is a grouping of 1D approximate solutions for the BPP There is also a generic function to create variants.

Example

import random

from binpackp import NumberBin, Fit

bin_size = random.randint(10,100)

fit_these = [random.randint(1, bin_size) for _ in range(1000)]
generic_results = Fit.fit(NumberBin, bin_size, fit_these)

first_fit_results = Fit.ff(NumberBin, bin_size, fit_these)

print("General Function: ", generic_results)
print("First Fit Function: ", first_fit_results)

About

Provides 1D bin packing logic.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages