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


Download files

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

Source Distribution

bin_packing_problem-1.0.0.zip (7.7 kB view hashes)

Uploaded Source

Built Distributions

bin_packing_problem-1.0.0-py3.5.egg (12.6 kB view hashes)

Uploaded Source

bin_packing_problem-1.0.0-py3-none-any.whl (6.9 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page