2d-cutting-stock

Solve two-dimensional cutting stock problems with guillotine and two-stage methods.

56|16|Updated Oct 18, 2025
One-click install
npx skills add https://github.com/kishorkukreja/awesome-supply-chain --skill 2d-cutting-stock
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: 2d-cutting-stock
Source: https://github.com/kishorkukreja/awesome-supply-chain/tree/main/skills/2d-cutting-stock
Command: npx skills add https://github.com/kishorkukreja/awesome-supply-chain --skill 2d-cutting-stock

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires numpy, pulp, and includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill addresses the challenge of minimizing material waste when cutting large rectangular sheets into smaller required pieces, a common problem in manufacturing and fabrication.

Core Features & Use Cases

  • Optimal Layout Generation: Calculates the most efficient way to cut standard sheets into custom-sized rectangular items.
  • Waste Minimization: Aims to reduce the amount of leftover material (trim loss) to save costs.
  • Constraint Handling: Supports various cutting methods like guillotine cuts, two-stage cutting, and considers material kerf.
  • Use Case: A furniture manufacturer needs to cut large wooden boards into smaller pieces for tabletops and legs. This Skill can determine the best cutting patterns to use the least number of boards and reduce scrap.

Quick Start

Use the 2d-cutting-stock skill to find the optimal way to cut steel plates of size 2440x1220mm into pieces measuring 800x600mm (10 needed), 1000x500mm (8 needed), 600x400mm (15 needed), and 1200x800mm (5 needed), considering a 3mm saw kerf.

Frequently Asked Questions about 2d-cutting-stock

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I optimize a 2D cutting stock layout to minimize sheet metal waste?

To optimize a 2D cutting stock layout and minimize waste, you can use this Skill to calculate the most efficient arrangement of smaller rectangular items on larger sheets. It determines optimal cutting patterns to reduce scrap and save material costs.

Can I account for saw kerf when calculating optimal sheet cutting patterns?

Yes, you can account for saw kerf when calculating optimal sheet cutting patterns by specifying the kerf width in your inputs. The Skill factors this material loss into its layout optimization to ensure final piece dimensions are accurate.

Does this cutting stock optimization tool work with Python and PuLP?

Yes, this cutting stock optimization tool works with Python and utilizes PuLP for mathematical optimization alongside NumPy for array manipulation. You need these dependencies installed to solve the layout and minimize trim loss.

What is the best way to cut standard size boards into custom rectangular pieces?

The best way to cut standard size boards into custom rectangular pieces is formulating the task as a two-dimensional cutting stock problem. This approach minimizes the number of boards used and reduces leftover scrap material.

What are the limitations of two-stage cutting for rectangular sheet optimization?

Two-stage cutting limits layouts to patterns where the sheet is first sliced into strips and then into final pieces, which may not yield the absolute minimum waste compared to unrestricted guillotine cuts. It is best suited for standardized manufacturing processes.