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
bin_packing_problem-1.0.0.zip
(7.7 kB
view hashes)
Built Distributions
Close
Hashes for bin_packing_problem-1.0.0-py3.5.egg
Algorithm | Hash digest | |
---|---|---|
SHA256 | ffec0bf9e6a9fcfb187692fddc00a9c4f28be509142420b57e54f50722d85663 |
|
MD5 | f9390b82f3e55a4e2cdbff10ab625986 |
|
BLAKE2b-256 | 09a89924ee302c0cf5f2874cf566b56e2afdebf4ad8b7efdce55724fd3139450 |
Close
Hashes for bin_packing_problem-1.0.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 603b644149cad25e9fcfa665d762a92c16de6c4404bd8213cab56c95f03b7e32 |
|
MD5 | ca520be43106b00b92741d8ea0afd642 |
|
BLAKE2b-256 | 801699b55fdd4ae248ae364a4a3cecd2201c0cede5c0001d6ea537325bda36a1 |