Economizing Cuts

Another problem is that there are 6 pipes cut in parallel, but apparently all 6 are usually different lengths (+/- 5 feet)! That makes it impossible to minimize the waste for all of the 6.
It doesn't make it impossible to minimize waste but it does make it impossible to ensure the waste will be 0.

Assume the acceptable cut length is 40-45 and the stock pipe is just two pieces at 160 and 180 ft long. The pipes could be cut into 40 ft sections and 8x40=320ft can be sold and 20ft would be scrap and the evaluation would be 340*CostOfStock/(320*SellPrice). I am assuming that all the pipe sells or cost the same and doesn't vary by length.

If the cut length is 45 ft then 7x45=315ft can be sold and 25ft will be wasted. It should be obvious that this combination is worse UNLESS 45 ft sections are worth more than 40 ft sections. Combinations of cuts between 40 and 45ft don't make much sense to try. The ratburger must not have a way of minimizing combinations and is trying lengths in between which is why his routine is sooo slow.

One could have a lot of fun with this if theratburger would ATFQs.

The way I would approach this is to pass then lengths of all the pipe to a subroutine. I would try taking a trial cut say at 40 ft. I have now 2 40ft sections of pipe. I would then pass the remaining pipe back to the same routine so it would now optimize a 120ft section of pipe and a 140ft section of pipe. At this level the same is done. Eventually there isn't enough pipe to make a cut and the lengths of the cut pipes are returned or better yet the value of ALL the cut pipe is returned to the level above which would then check to see if the valve of the pipe returned for that cut length is better than all the other cut lengths it tried. Eventually the function would return at the top level with the best value and the cuts that are necessary to achieve it but as I pointed out in a previous post, this maximizing just makes the best out of what could be a bad situation if the stock pipe lengths can't be cut economically. For instance, should subtract the cost of the stock used and the result could be negative. It would be better to be able to do the same routine and with all the available stock lengths so that picking the stock lengths was optimized too. This would minimize waste.


It seems the best that could be done would be to optimize the SHORTEST stock pipe (figuring out lengths of cuts that result in the most sellable length for the shortest stock pipe), and make the same cuts on all 6, leaving some waste on 5 of the 6 parallel pipes.

If you optimized the LONGEST stock pipe, then the other five might not be long enough for the last cut, resulting in 5 "nearly-long-enough" waste pieces.
In my example above you are right but what if there are 3 180ft pipes and 1 160ft pipe. Then optimizing for the 180ft would be best because then there is still only 25ft of waste. If you optimized for 160 ft then you would waste 3 x 20ft of pipe.

At my first job out of the navy back in 1980 my first wood optimizing program for use with edger and trimmer optimizers. It would try various combinations of 2x3, 2x4, 2x6, 2x8, 2x10, and 2x12. I had to take into account the profile of the board and length out of a board. I may need to weigh cutting a 2x3 8f ,2x12 12ft , 2x4 10ft against 5 2x4s of different lengths. Each size board had a different value. Even the kerf between the pieces had a dimension and a value and woe to the mill manager that moved a decimal point on the value of chips. You could hear the wood scream and there is nothing like watching a 20ft 4x12 get turned into chips :(
 
I am thoroughly puzzled by what this guy is doing. It is most unfortunate that this pipe production must be top secret - we can get no details of the operation. Myself I would crank out 150 feet of pipe and cut to length say 149 then crank out another length and cut. No wastage except for the cut width.

What I am also curious about is how do you handle long lengths like this and how to transport. Have seen railroads with 1/4 (?) mile long lengths of rail so guess it would be no problem for them.

Dan Bentler
 
..what if there are 3 180ft pipes and 1 160ft pipe?
Peter, I believe that Ratburger has stated that the pipe comes from a mill at 150 feet +/- 5 feet.

What is not clear to me is the range of customer order lengths. He gave an example of 39 to 43 feet.

Is the customer order always around 40 feet?

What is the shortest usable piece of left-over pipe? If the last cut results in a 10-foot piece, is that scrap or can it be sold to someone else?

Is there always a certain number of pipes cut in parallel (16 was mentioned), or can the number be controlled from 1 to 16?

Why can only 6 cuts be made on a stock pipe? Is that set by the cutting saw, or can it vary?

Known variables:
MX = Minimum Acceptable Length
MY = Maximum Acceptable Length
L1,L2,L3,L4,L5 = Available Lengths of Pipe


Find:
CL = Best Length to Cut

Define: MA = Minimum Pipe Advance Distance. This is the minimum trial increment distance to be added to the Mimium Acceptable Length for each trial. It could be 1", 6", 1 foot, or 2 feet. Smaller MA results in a greater probability of having no waste, but the larger the MA, the faster the program will run.

D = Divisor to use to find cuts with no waste for SHORTEST stock pipe.

First, determine which of L1,L2,L3,L4,L5 is the shortest. Then set L = L(x), where x is the shortest stock.

Program:
D = MX
;Comment: Do Until D > MY
Loop: L/D = A
If A is Integer, then CL = A; Goto END
Else D = D + MA; Comment: MA is picked by operator within limits.
If D < MY then Goto Loop
END

To use the above, you need a way to determine if A is a whole number. Alternatively, you can find if the fractional part is less than 0.5. The fractional part of A indicates the amount of waste (left-over out-of-spec piece). The smaller the fraction, the less waste the cut will have. As A approaches 1, the more waste a particular cut length will have.
 
Last edited:

Similar Topics

HI im using win911 V7 and am having a problem with the voice cutting out part way through the call and it stops talking when a alarm is being...
Replies
0
Views
68
I have a curious question and I can't seem to find any information on it. I'm hoping I'm just overlooking something simple. I have 4 machines...
Replies
3
Views
474
Hey folks I was wondering how one puts shortcuts on the logic display for instructions. A few weeks back another programmer added them for me...
Replies
2
Views
987
It is my understanding that an LED is considered a simple device, making its use fairly simple in an IS application. However I am running into a...
Replies
22
Views
5,931
Hello, I am pulling my hair out trying to setup Modbus Master Read/Write Commands on a Prosoft MVI56E-MCM attached to a Clogixs 1756-L82E PLC. It...
Replies
1
Views
1,583
Back
Top Bottom