heuristictree
Heuristic Methods for Minimizing Cut Bars and Using Leftovers from the One-dimensional Cutting Process - TREE Heuristic.
Getting Started
Dependencies
You need Python 3.8 or later to use heuristictree. You can find it at python.org.
Installation
pip install heuristictree
Features
In this heuristic, the losses of the cutting process are concentrated on the smallest number of bars possible, using a tree structure, in order to become losses (unusable) into leftovers (usable).
Example file:
1188
229 2
208 1
400 1
327 3
373 3
182 3
285 2
88 1
154 1
83 3
First line represents the size of the bar to be cut.
The other lines represent the size of each item to be cut and the cutting demand, respectively.
Example
heuristictree run <your_file.txt>
Output
The output.txt file contains the cutting patterns obtained from executing the HeuristicTree.
Contributing
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Please make sure to update tests as appropriate.
Citation
If you use this software in your work, please cite our paper.
Bressan, G.M.; Pimenta-Zanon, M.H.; Sakuray, F. A Tree-Based Heuristic for the One-Dimensional Cutting Stock Problem Optimization Using Leftovers. Materials 2023, 16, 7133. https://doi.org/10.3390/ma16227133
@article{Bressan2023,
title = {A Tree-Based Heuristic for the One-Dimensional Cutting Stock Problem Optimization Using Leftovers},
volume = {16},
ISSN = {1996-1944},
url = {http://dx.doi.org/10.3390/ma16227133},
DOI = {10.3390/ma16227133},
number = {22},
journal = {Materials},
publisher = {MDPI AG},
author = {Bressan, Glaucia Maria and Pimenta-Zanon, Matheus Henrique and Sakuray, Fabio},
year = {2023},
month = nov,
pages = {7133}
}
License
Metadata
Release files for heuristictree 1.0.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| heuristictree-1.0.3.tar.gz | 6.0 kB | Without provenance | Details for heuristictree-1.0.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| heuristictree-1.0.3-py3-none-any.whl | Python 3 | none | any | Details for heuristictree-1.0.3-py3-none-any.whl |
Total release size: 13.4 kB
Release files / heuristictree-1.0.3.tar.gz
| Download URL | heuristictree-1.0.3.tar.gz |
|---|---|
| Size | 6.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
5db88fd41d353306d506646041b29d68efa2c29dabda83bd4e667d5d698e2f83
|
|
BLAKE2b-256 checksum How to use checksums |
d0b9555a2eb4c14973a5e46e483ecb1a9b5d6079b78a576e7d90750ae91ee722
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.6.1 CPython/3.12.0 Linux/6.6.10-76060610-generic
|
Release files / heuristictree-1.0.3-py3-none-any.whl
| Download URL | heuristictree-1.0.3-py3-none-any.whl |
|---|---|
| Size | 7.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
a9a0577654fda81257cd29f0741d3d21557db63561b5d4d4165beeab08d4a856
|
|
BLAKE2b-256 checksum How to use checksums |
dad2ae4b17a90d95306e0e799e1d7131a49c1d64b1691631ac8fbb1cd7faa9c8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.6.1 CPython/3.12.0 Linux/6.6.10-76060610-generic
|
Security for heuristictree 1.0.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.