The optimization itself is the same 1D engine across every material. What differs is the practical detail around it — and those details are what decide whether a plan is worth cutting to.
Pipe and tube of different diameters or wall thickness aren’t interchangeable stock — run each size as its own cutting list against the stock lengths you hold in that size.
Cold saws, band saws and abrasive chop saws remove different amounts of material per cut. Measure your actual kerf on the specific saw cutting the job.
A pipe offcut is only reusable if it’s both long enough and the right diameter for a future part — set your minimum useful offcut to a length that’s realistically usable for the sizes you actually run.