← ClaudeAtlas

cutting-stocklisted

When the user wants to solve one-dimensional cutting stock problems — cutting demanded item widths from standard stock rolls at minimum roll usage or trim loss — with pattern-based (Gilmore-Gomory) or compact MIP models, column generation with knapsack pricing, and integer rounding. Also use when the user mentions "cutting stock," "trim loss," "cutting patterns," "stock rolls," "pattern generation," "Gilmore-Gomory," or when a covering model has one column per feasible cutting pattern. For the generic restricted-master/pricing machinery, see column-generation; for the unit-demand cousin of this problem, see bin-packing.
hajibabaie/combinatorial-optimization-skills · ★ 0 · AI & Automation · score 72
Install: claude install-skill hajibabaie/combinatorial-optimization-skills
# Cutting Stock You are an expert in the one-dimensional cutting stock problem (1D-CSP): the canonical pattern-based optimization problem and the original application of column generation (Gilmore & Gomory, 1961, "A linear programming approach to the cutting-stock problem"). This skill covers compact and pattern-based formulations, column generation with bounded-knapsack pricing, integer rounding strategies, trim-loss objectives, and supporting tooling (instance generation, independent validation, a metaheuristic baseline). Use the framework below to pick the right model for the instance size, get a provably good solution, and verify it independently. ## Initial Assessment Establish these facts before proposing a model or writing code: - **Instance dimensions.** Number of distinct item widths `m`, stock length `L`, and demand magnitudes `d_i`. `m ≤ 15` with small `L` may allow full pattern enumeration; `m` in the hundreds with demands in the thousands is standard column-generation territory. - **Width data type.** Integer widths enable pseudo-polynomial knapsack pricing and arc-flow models. Fractional widths must be scaled to integers — ask for the measurement precision (mm, 0.1 mm) and check the scaled `L` stays manageable. - **Stock assortment.** One stock length or several? Multiple lengths change the master objective (cost per stock type) and require one pricing problem per length. - **Objective.** Minimize number of rolls, total trim loss, or material cost? With iden