A master coil of electrical steel is slit into narrower strips before it becomes laminations, reactor cores or transformer cores. The question every planner faces is simple: which strip widths go on one pass so that the least amount of the coil ends up as scrap?
This is a small one-dimensional cutting-stock problem. Below is a compact Python version you can adapt, plus the limits of the approach.
The constraints that matter
- Edge trim. The two outer edges of a master coil are usually trimmed off. I use one combined number for both sides (6 mm below).
- Usable width. Coil width minus trim.
- Maximum number of strips per pass. The slitter arbor only holds so many knives. Check your own machine.
- Demand per width. Each width is needed in a certain tonnage.
Because strips cut from the same coil share thickness and density, weight is proportional to width. That means width yield equals weight yield, so you can plan in millimeters and report tonnes.
Step 1: enumerate the patterns
A pattern is a combination of strip widths that fits in the usable width.
from itertools import combinations_with_replacement
from collections import Counter
def patterns(widths, coil_w, trim=6.0, max_strips=12):
usable = coil_w - trim
out = []
for n in range(1, max_strips + 1):
for combo in combinations_with_replacement(sorted(widths), n):
used = sum(combo)
if used <= usable:
out.append({
"strips": Counter(combo),
"used": used,
"scrap": coil_w - used,
"yield": used / coil_w,
})
return out
With a handful of widths and a dozen strips, the pattern count stays small, so brute force is fine.
Step 2: plan against real demand
A pattern with a high yield is useless if it produces strips nobody ordered. The planner below scores each pattern only by the strips that still have open demand, runs the best one, and repeats.
def plan(demand_t, coil_w, trim=6.0, max_strips=12):
"""demand_t: {width_mm: tonnes}. Returns [(pattern, coil_tonnes)]."""
left = dict(demand_t)
pats = patterns(list(left), coil_w, trim, max_strips)
result = []
while any(v > 1e-6 for v in left.values()):
best, best_score = None, 0
for p in pats:
useful = sum(w * c for w, c in p["strips"].items() if left[w] > 1e-6)
score = useful / coil_w
if score > best_score + 1e-9:
best, best_score = p, score
# coil tonnes to finish the most constrained open width in this pattern
t = min(left[w] / (c * w / coil_w)
for w, c in best["strips"].items() if left[w] > 1e-6)
for w, c in best["strips"].items():
left[w] = max(0.0, left[w] - t * c * w / coil_w)
result.append((best, t))
return result
Step 3: run it and read the yield
if __name__ == "__main__":
demand = {85: 12.0, 120: 8.0, 190: 5.0} # tonnes per strip width (mm)
runs = plan(demand, coil_w=1000, trim=6)
total = sum(t for _, t in runs)
good = sum(t * p["yield"] for p, t in runs)
for p, t in runs:
print(dict(p["strips"]), f'{t:.2f} t coil, yield {p["yield"]:.1%}')
print(f"coil used {total:.2f} t, strip out {good:.2f} t, "
f"overall yield {good / total:.1%}")
The output lists each pattern, how many tonnes of master coil it consumes, and the blended yield. Since the 6 mm trim is fixed, the best possible yield on a 1000 mm coil is 99.4%. Real plans land below that because widths rarely add up to the usable width exactly.
Limits of this approach
-
Greedy is not optimal. It is fast and usually close, but an integer program (for example with
scipy.optimize.milpor OR-Tools) can find a better set of patterns when the width mix is awkward. - Overrun. Once a width is fully covered, later patterns may still include it. The extra strips go to stock, so count them separately if you track inventory.
- Knife setups cost time. Every new pattern means a knife change. A plan with fewer patterns at slightly lower yield can finish sooner.
-
Min and max strip width. Very narrow strips are harder to run, and your slitter will have its own minimum. Add a filter in
patterns()if so. - Master coil choice. If you can pick between 1000 mm and 1250 mm master coils, run the planner on both and compare. A different parent width often changes yield more than any tuning of the algorithm.
Where this meets the real process
A planner only tells you what is theoretically possible. Burr height, edge quality, camber and the tolerance on strip width all depend on the slitting line itself. If you are sourcing slit electrical steel and want to see how a supplier handles custom widths and OEM orders, look at this electrical steel slitting service.
If you tweak the planner for another case (different trim, a knife limit, or an exact solver), I would be curious what you changed.
Top comments (0)