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 details)

Uploaded Source

Built Distributions

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

Uploaded Source

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

Uploaded Python 3

File details

Details for the file bin_packing_problem-1.0.0.zip.

File metadata

File hashes

Hashes for bin_packing_problem-1.0.0.zip
Algorithm Hash digest
SHA256 646876ab4ab85abb920a1fd5fbd7ca1bfd4ee60884a6bc29b9cd0b6cc3e495d6
MD5 3573a6b7d1c888debdf4e32f36d82c61
BLAKE2b-256 497095416979ca263d51a2bf39573b4256b51658cc751eb06f8b3a40afa43030

See more details on using hashes here.

File details

Details for the file bin_packing_problem-1.0.0-py3.5.egg.

File metadata

File hashes

Hashes for bin_packing_problem-1.0.0-py3.5.egg
Algorithm Hash digest
SHA256 ffec0bf9e6a9fcfb187692fddc00a9c4f28be509142420b57e54f50722d85663
MD5 f9390b82f3e55a4e2cdbff10ab625986
BLAKE2b-256 09a89924ee302c0cf5f2874cf566b56e2afdebf4ad8b7efdce55724fd3139450

See more details on using hashes here.

File details

Details for the file bin_packing_problem-1.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for bin_packing_problem-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 603b644149cad25e9fcfa665d762a92c16de6c4404bd8213cab56c95f03b7e32
MD5 ca520be43106b00b92741d8ea0afd642
BLAKE2b-256 801699b55fdd4ae248ae364a4a3cecd2201c0cede5c0001d6ea537325bda36a1

See more details on using hashes here.

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