I have a piece of string which I need to cut into lengths.
I need to determine the the number of cuts per lenght to minimise waste
Say the length of the string is 100mm
Example 1
I need lengths of 40mm, 20mm
I would cut 2 of 40mm & 1 of 20mm
Example 2
I need lengths of 30mm
I would cut 3 of 30mm and have 10mm waste
I never know how many lenght variables there may be
How can I do this in a module?
Thanks in advance
I need to determine the the number of cuts per lenght to minimise waste
Say the length of the string is 100mm
Example 1
I need lengths of 40mm, 20mm
I would cut 2 of 40mm & 1 of 20mm
Example 2
I need lengths of 30mm
I would cut 3 of 30mm and have 10mm waste
I never know how many lenght variables there may be
How can I do this in a module?
Thanks in advance