bin-packing-problem-1.0.0
توضیحات
Provides 1D bin packing logic.
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | bin-packing-problem-1.0.0 |
| نام | bin-packing-problem |
| نسخه کتابخانه | 1.0.0 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | ibigpapa |
| ایمیل نویسنده | issues@github.url |
| آدرس صفحه اصلی | https://github.com/ibigpapa/bin_packing_problem |
| آدرس اینترنتی | https://pypi.org/project/bin-packing-problem/ |
| مجوز | MIT |
# 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)
نحوه نصب
نصب پکیج whl bin-packing-problem-1.0.0:
pip install bin-packing-problem-1.0.0.whl
نصب پکیج tar.gz bin-packing-problem-1.0.0:
pip install bin-packing-problem-1.0.0.tar.gz