Skip to main content

Provides 1D bin packing logic.

Project description

# 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

`python

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)



Project details


Release history Release notifications

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for bin-packing-problem, version 1.0.0
Filename, size File type Python version Upload date Hashes
Filename, size bin_packing_problem-1.0.0-py3.5.egg (12.6 kB) File type Egg Python version 3.5 Upload date Hashes View hashes
Filename, size bin_packing_problem-1.0.0-py3-none-any.whl (6.9 kB) File type Wheel Python version py3 Upload date Hashes View hashes
Filename, size bin_packing_problem-1.0.0.zip (7.7 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page