two-dimensional three-stage cutting stock algorithm
Install requirements
pip install -r requirements.txt
Solving dataset A and dataset B
python main.py
Combining serval patterns to reduce the number of the pictures
python combine_pattern.py
pattern_generator.py
: generate best pattern combinations given itemscg.py
: column generation algorithm solve 2d cutting stock problemsettings.py
: filepaths of data and resultsutils
: serval useful classes and functions
- Generate strips by given items
- Group plenty of suboptimal segments by dynamic programming algorithm
- Use column generation algorithm creating patterns which consisted by serval segments
- Solve optimal pattern combinations by Integer Programming
- Divide batches by given data
- Group items by material for each batch
- Generate stocking layout by the procedure of solving A