Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to add "blade width" parameter in CSP #4

Open
VladKrasnozhon opened this issue May 6, 2022 · 1 comment
Open

How to add "blade width" parameter in CSP #4

VladKrasnozhon opened this issue May 6, 2022 · 1 comment

Comments

@VladKrasnozhon
Copy link

Thank you for your hard work! Your product solves the CSP problem perfectly, but I would like to know how you can add the ability to take into account the width of the cutting blade for the correct calculation. Thanks.

@fdabrandao
Copy link
Owner

Thanks for the interest in the project! I am not sure if understood correctly what you need, but I believe you have knives that are wide and solutions without taking that width in consideration may not be valid, right?

If that is the case, I think you should be able to handle that by adding the knife width to every item and to the roll width (to handle the case where the roll is cut with zero waste).

Let's say the roll width is 15, and you have items with widths 6, 4, 3, and 2. If the knife width is 1, I would transforms this in an instance with a roll width of 16 and items with widths 7, 5, 4, and 3.

A possible pattern: 7+5+4 = 16 (one item of width 6, one cut, one item of with 4, one cut, one item of width 3, one cut)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants