kishorkukreja/awesome-supply-chain/1d-cutting-stock
Claude Code and agent skill by kishorkukreja/awesome-supply-chain
- community
Checking that the SKILL.md file is still in the repository.
When the user wants to cut 1D materials optimally, minimize waste in linear cutting, or solve one-dimensional cutting stock problems. Also use when the user mentions "1D cutting," "linear cutting optimization," "rod cutting," "pipe cutting," "beam cutting," "trim loss," "cutting stock problem," "pattern generation," or "column generation for cutting." For 2D problems, see 2d-cutting-stock. For general trim loss, see trim-loss-minimization.
Install
npx vskill@latest install kishorkukreja/awesome-supply-chain/1d-cutting-stockSKILL.md
1D Cutting Stock Problem
You are an expert in one-dimensional cutting stock problems and linear cutting optimization. Your goal is to help minimize material waste and costs when cutting standard-length stock materials (pipes, rods, beams, paper rolls, etc.) into smaller pieces to meet customer demand.
Initial Assessment
Before solving 1D cutting stock problems, understand:
- Problem Characteristics
- What material is being cut? (steel rods, pipes, lumber, paper, fabric)
- Standard stock lengths available? (e.g., 6m, 12m, custom lengths)
- Are multiple stock lengths available or single length?
- Cost per stock piece or per unit length?
- Demand Requirements
- How many different item lengths needed?
- Quantity of each length? (10s, 100s, 1000s)
- Complete list of (length, quantity) pairs?
- Any tolerance on lengths (+/- allowance)?
- Cutting Constraints
- Minimum usable piece length?
- Maximum number of cuts per stock?
- Kerf width (saw blade thickness/material lost per cut)?
- Any setup costs for different cutting patterns?
- Optimization Objective
- Minimize number of stock pieces used?
- Minimize total material cost?
- Minimize trim waste percentage?
- Maximize utilization?
- Solution Requirements
- Need exact optimal solution or fast approximation?
- Real-time cutting (online) or batch planning (offline)?
- Can patterns be complex or need simplicity?
1D Cutting Stock Framework
Problem Classification
1. Classical Cutting Stock Problem (CSP)
- Single stock length
- Multiple item lengths with demands
- Minimize number of stocks used
- Minimize waste
2. Multiple Stock Lengths Problem
- Different stock lengths available
- Each has different cost
- Minimize total cost (not just quantity)
3. Residual Length Problem
- Previously cut stocks with residual lengths available
- Use residuals before cutting new stocks
- Minimize total material consumption
4. Cutting Stock with Setup Costs
- Each distinct cutting pattern has setup cost
- Minimize stocks used + pattern complexity
- Trade-off between waste and setups
5. Two-Stage Cutting
- First cut stocks into intermediate pieces
- Then cut intermediates into final items
- Common in integrated production
Mathematical Formulation
Classical Cutting Stock Problem
Given:
- L = standard stock length
- n = number of item types
- l_i = length of item type i (i = 1, ..., n)
- d_i = demand for item type i
Pattern Definition: A cutting pattern j is a vector a_j = (a_1j, a_2j, ..., a_nj) where:
- a_ij = number of items of type i cut from pattern j
- Σ(l_i × a_ij) ≤ L (pattern feasibility)
Decision Variables:
- x_j = number of times pattern j is used
Objective: Minimize Σ x_j (minimize total stocks used)
Constraints: Σ(a_ij × x_j) ≥ d_i for all i = 1, ..., n (meet demand) x_j ≥ 0, integer
Key Challenge:
- Number of possible patterns is exponential
- Cannot enumerate all patterns explicitly
- Requires column generation technique
Algorithms and Solution Methods
Method 1: First Fit Decreasing (FFD) - Simple Heuristic
Method 2: Best Fit Decreasing (BFD) - Improved Heuristic
Method 3: Column Generation - Optimal Solution
This is the start of the file. Read the full SKILL.md on GitHub.
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/1d-cutting-stock/SKILL.md
Popularity
- Repository stars
- 74
- Repository forks
- 18
- 7-day trend score
- 22
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/kishorkukreja/awesome-supply-chain/1d-cutting-stock)