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)
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 | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distributions
File details
Details for the file bin_packing_problem-1.0.0.zip
.
File metadata
- Download URL: bin_packing_problem-1.0.0.zip
- Upload date:
- Size: 7.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 646876ab4ab85abb920a1fd5fbd7ca1bfd4ee60884a6bc29b9cd0b6cc3e495d6 |
|
MD5 | 3573a6b7d1c888debdf4e32f36d82c61 |
|
BLAKE2b-256 | 497095416979ca263d51a2bf39573b4256b51658cc751eb06f8b3a40afa43030 |
File details
Details for the file bin_packing_problem-1.0.0-py3.5.egg
.
File metadata
- Download URL: bin_packing_problem-1.0.0-py3.5.egg
- Upload date:
- Size: 12.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ffec0bf9e6a9fcfb187692fddc00a9c4f28be509142420b57e54f50722d85663 |
|
MD5 | f9390b82f3e55a4e2cdbff10ab625986 |
|
BLAKE2b-256 | 09a89924ee302c0cf5f2874cf566b56e2afdebf4ad8b7efdce55724fd3139450 |
File details
Details for the file bin_packing_problem-1.0.0-py3-none-any.whl
.
File metadata
- Download URL: bin_packing_problem-1.0.0-py3-none-any.whl
- Upload date:
- Size: 6.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 603b644149cad25e9fcfa665d762a92c16de6c4404bd8213cab56c95f03b7e32 |
|
MD5 | ca520be43106b00b92741d8ea0afd642 |
|
BLAKE2b-256 | 801699b55fdd4ae248ae364a4a3cecd2201c0cede5c0001d6ea537325bda36a1 |