Linear Cut Planner · first-plan walkthrough · companion

All companion tools

Linear Cut Planner · offline first-plan walkthrough

See where every millimetre goes.

Follow one complete numerical example: save the input, read the result, then check its files. Switch objectives to see why a cheaper bar can use more raw material.

All sample operations stay in this folder. They start no Actor run. A new plan on the platform is a separate deliberate action; read its current availability and price before starting.

Selected example · RAW contract

Minimize raw length

Use less total raw stock; break a tie with fewer bars.

1 · Prepare

Save the original input.

Two 40 mm pieces, numerical code RAIL-01. Stock: 100 mm and 120 mm, both unlimited. Kerf 1 mm; reserved end loss 2 mm at each end; reusable residual threshold 10 mm. One material and cross-section; dimensions are in millimetres.

The raw input contains no prices. Stock row 1 is 100 mm; row 2 is 120 mm.

See the complete input
{
  "partsCsv": "length,quantity,partCode\n40,2,RAIL-01\n",
  "stockCsv": "length,quantity\n100,unlimited\n120,unlimited\n",
  "unit": "mm",
  "kerf": 1,
  "trimStart": 2,
  "trimEnd": 2,
  "minReusableOffcut": 10
}

To request a new platform plan, enter your checked input in the Actor and inspect its current settings and price before Start. Saving these sample files starts no run.

2 · Read

Account for the whole bar.

Raw stock100 mm
Finished parts2 × 40 mm
Residual14 mm
Two finished pieces on one 100 mm barOriginal coordinates in millimetres: trim 0 to 2, first piece 2 to 42, kerf 42 to 43, second piece 43 to 83, kerf 83 to 84, residual 84 to 98, trim 98 to 100. Read exact values in the following table.1 · 402 · 4014100 mm raw stock · original row 1
Green: finished pieces · orange: kerf · hatched: end losses · blue-grey: residual. Coordinates start at the original bar end.
Exact original-bar intervals · mm
SegmentStart → endLength
Start loss0 → 22
Piece 1 · RAIL-012 → 4240
Kerf after 142 → 431
Piece 2 · RAIL-0143 → 8340
Kerf after 283 → 841
Residual84 → 9814
End loss98 → 1002

100 = 80 finished + 2 kerf + 4 end loss + 14 residual.

The residual meets the chosen 10 mm threshold. That numerical classification does not assess material quality or physical usability. A cut’s end is the finished piece edge, not a saw centreline.

Why this example’s complete objective is optimal

Every available bar is at least 100 mm long. One 100 mm bar fits both pieces, so 100 mm and one bar are the best raw score.

This elementary argument proves this synthetic case. It does not turn every feasible layout into an optimum.

3 · Keep & check

Keep the original and its complete outputs together.

REPORT.status: "complete" means every requested piece was placed. Geometry verification checks the supplied dimensions and balances. An optimum claim needs its stated proof; verified alone supplies none.

The raw browser checker can independently reconstruct these sample files. Select input.json and report.json, add the two optional CSVs, then check geometry. Its optional optimum check is separate.

Open raw browser checker

These included outputs were generated locally from the matching planner code and checked independently. They are synthetic examples, not platform runs or billing records. A native run’s separate STATUS output records storage and billing outcomes.

Selected example · COST contract

Minimize supplied amount

Use less supplied whole-bar amount; break ties with raw length, then bars.

1 · Prepare

Save the original input.

Two 40 mm pieces, numerical code RAIL-01. Stock: 100 mm and 120 mm, both unlimited. Kerf 1 mm; reserved end loss 2 mm at each end; reusable residual threshold 10 mm. One material and cross-section; dimensions are in millimetres.

The cost input adds objective: "acquisitionCost" and stockUnitCosts: ["10", "3"]. Amounts are decimal strings in original stock-row order. Use one common cost unit.

See the complete input
{
  "partsCsv": "length,quantity,partCode\n40,2,RAIL-01\n",
  "stockCsv": "length,quantity\n100,unlimited\n120,unlimited\n",
  "unit": "mm",
  "kerf": 1,
  "trimStart": 2,
  "trimEnd": 2,
  "minReusableOffcut": 10,
  "objective": "acquisitionCost",
  "stockUnitCosts": [
    "10",
    "3"
  ]
}

To request a new platform plan, enter your checked input in the Actor and inspect its current settings and price before Start. Saving these sample files starts no run.

2 · Read

Account for the whole bar.

Raw stock120 mm
Finished parts2 × 40 mm
Residual34 mm
Supplied amount3
Two finished pieces on one 120 mm barOriginal coordinates in millimetres: trim 0 to 2, first piece 2 to 42, kerf 42 to 43, second piece 43 to 83, kerf 83 to 84, residual 84 to 118, trim 118 to 120. Read exact values in the following table.1 · 402 · 4034120 mm raw stock · original row 2
Green: finished pieces · orange: kerf · hatched: end losses · blue-grey: residual. Coordinates start at the original bar end.
Exact original-bar intervals · mm
SegmentStart → endLength
Start loss0 → 22
Piece 1 · RAIL-012 → 4240
Kerf after 142 → 431
Piece 2 · RAIL-0143 → 8340
Kerf after 283 → 841
Residual84 → 11834
End loss118 → 1202

120 = 80 finished + 2 kerf + 4 end loss + 34 residual.

The residual meets the chosen 10 mm threshold. That numerical classification does not assess material quality or physical usability. A cut’s end is the finished piece edge, not a saw centreline.

Why this example’s complete objective is optimal

Every available bar has a supplied amount of at least 3. One 120 mm bar at amount 3 fits both pieces. The 100 mm bar costs 10, so amount 3 is best; among amount-3 solutions, 120 mm and one bar are also best.

This elementary argument proves this synthetic case. It does not turn every feasible layout into an optimum.

3 · Keep & check

Keep the original and its complete outputs together.

REPORT.status: "complete" means every requested piece was placed. Geometry verification checks the supplied dimensions and balances. An optimum claim needs its stated proof; verified alone supplies none.

The cost checker reconstructs this report, row amounts and exports with Python 3.11+ standard library. Its guide gives the exact command; source proof flags and an independent proof remain separate.

Open cost checker guide

These included outputs were generated locally from the matching planner code and checked independently. They are synthetic examples, not platform runs or billing records. A native run’s separate STATUS output records storage and billing outcomes.

Same demand, different question.

Both place the same two 40 mm pieces
ObjectiveChosen rowRaw / residual
Raw length1 · 100 mm100 / 14 mm
Supplied amount2 · 120 mm · amount 3120 / 34 mm

The longer bar has the lower supplied whole-bar amount here. These are different input contracts and objectives. This is no claim about supplier prices, labour, residual value or realized savings.

Use your own dimensions next.

Prepare raw input · Prepare cost input · All checking and repeated-job tools

Keep one material and cross-section per job. Use numerical part codes, never names or customer references. Preparation checks the model; it does not allocate a complete layout.