Skip to content

2D Cutting · CSP2D: Scope and Learning Path ​

Cut rectangular products from fixed sheets or coils while satisfying orders and process requirements. Start with fixed sheets and Freeform before coils and two-/three-stage guillotine processes.

Minimum Vocabulary ​

ConceptAPIRoleKey Fields
Supply materialMaterial2InputFixed width/height for sheets; no fixed height for coils
Product and demandProduct2 / ProductDemand2InputDimensions and demand modes such as count
PatternPattern2IntermediatePlacements, coverage and optional cut tree
PlanCuttingPlan2IntermediateMaterial consumption and pattern use
ProblemCsp2dProblemInputMaterials, products, demands, kerf, process and configuration
Cutting resultCsp2dSolutionOutputPattern usage, coverage, consumed length, waste and termination

Freeform requires valid geometry; guillotine processes also need a valid cut tree. Sheet count and consumed coil length are different objective measures.

Missing Height and Cut Trees

A missing material height denotes a coil, not a zero-height sheet; each pattern still needs a segment height. A missing Freeform cut tree is valid, while guillotine patterns require a tree consistent with placements.

Entry Points ​

Kotlin and Rust Entry Points

Kotlin uses Csp2dMilp / Csp2dColumnGeneration. Rust uses Csp2dSolvers, with an internal heuristic by default and an injectable Csp2dMasterSolver. A method named MILP does not establish that the default Rust path invokes a native MILP solver.

Current implementations and configuration are not fully symmetric. Start from each language's executable case rather than treating parallel snippets as a promise of identical capabilities.

Use Csp2dMilp / solve_milp to inspect a once-generated pool; use Csp2dColumnGeneration / solve_column_generation to append patterns against residual demand. This is not certified exact dual pricing; see the configuration and switch.

Boundaries ​

  • Current scope is rectangular products, not arbitrary polygon nesting.
  • Valid coordinates do not establish process feasibility; guillotine patterns need cut-tree validation.
  • Residual-demand generation or estimated-price filtering is not an LP-dual pricing certificate.
  • Coverage obtained by a default heuristic is not a global optimality proof.

Learning Path ​

  1. Complete environment setup.
  2. Follow your first cutting plan, starting with demand counts and plan usage.
  3. Add kerf, then switch material mode or cutting process and check consumption and manufacturability separately.
  4. Compare BPP2D if you only need placement of existing items.

For LP, MILP, pricing and other algorithm terms, see the terminology guide.

Reference ​

Historical phase labels in the Kotlin module README may lag behind application source. These tutorials use public application APIs; implemented APIs and behavior belong in the verification reference, not capability claims inferred from phase labels.

Back to scenario selection

Continue Practicing ​

Next: Your First Cutting Plan. Then explore Kerf, Cutting Process and Coils. Before adapting the scenario to your application, complete the business integration checks.