2d-bin-packing

Solve 2D bin packing and cutting stock problems with heuristic and metaheuristic algorithms.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

This Skill addresses the challenge of efficiently packing rectangular items into bins or cutting them from sheets, aiming to minimize wasted material or the number of bins used.

Core Features & Use Cases

  • 2D Bin Packing: Pack items into the minimum number of identical bins.
  • Cutting Stock: Cut items from larger sheets with minimal waste.
  • Rectangle Packing: Maximize item density within a single large rectangle.
  • Use Case: You have a set of custom-sized wooden planks and need to cut them into smaller, specific pieces for a project, minimizing the leftover wood.

Quick Start

Use the 2d-bin-packing skill to pack items with dimensions [(10, 20), (30, 15), (25, 25)] into bins of size 50x50.

Frequently Asked Questions about 2d-bin-packing

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

FAQPage Schema
How do I minimize waste when cutting rectangular items from larger sheets?

To minimize waste when cutting rectangular items from larger sheets, you can apply 2D bin packing algorithms like FFDH or maximal rectangles to optimize item placement and reduce leftover material.

What is the best way to pack rectangles into a fixed number of bins?

The best way to pack rectangles into a fixed number of bins involves using heuristic methods like BFDH or metaheuristics like Genetic Algorithms to optimize density and minimize the total bin count.

Does this 2D bin packing approach support guillotine cuts for cutting stock problems?

Yes, this 2D bin packing approach supports guillotine cuts for cutting stock problems, alongside other heuristic methods like FFDH, BFDH, and maximal rectangles placement.

Can I use Genetic Algorithms for complex 2D rectangle packing scenarios?

You can use Genetic Algorithms for complex 2D rectangle packing scenarios, as well as Simulated Annealing, to find optimized layouts that maximize item density within a single large rectangle.

What algorithms are available for operations research optimization of 2D packing?

Available algorithms for operations research optimization of 2D packing include FFDH, BFDH, guillotine, maximal rectangles heuristics, and Genetic Algorithms or Simulated Annealing metaheuristics.

Do I need PuLP and NumPy to solve 2D cutting stock problems?

You need PuLP and NumPy alongside standard math and random libraries to solve 2D cutting stock problems, as they provide the necessary linear programming and numerical computation support.