Complete cutting-plan technical reference

Linear Cut Planner — bar layouts with optional stock costs

Allocate straight bars, tubes or strips for one material and cross-section. Supply required lengths and available stock as CSV. Receive a complete numerical layout with cut coordinates, source rows, stock balances, CSVs and a printable diagram. Up to 500 individual parts, 100 part rows and 20 stock rows per run. A complete feasible plan can be returned without proving it is the best plan.

Start with a raw-length job

The default objective minimizes total raw stock length, then bar count. This example asks for two 40 mm parts from 100 mm stock, with a 1 mm kerf and 2 mm reserved at each end:

{
  "partsCsv": "length,quantity\n40,2\n",
  "stockCsv": "length,quantity\n100,unlimited\n",
  "unit": "mm",
  "kerf": 1,
  "trimStart": 2,
  "trimEnd": 2,
  "minReusableOffcut": 10
}

One bar holds both parts. The finished intervals are [2,42) and [43,83), with 1 mm of kerf after each; the remaining interval is [84,98), length 14 mm. The length equation is 100 = 80 finished + 2 kerf + 4 trim + 14 residual. This is a numerical example, not a machine setup or a measured stock record.

Keep the exact original input with the saved report. Use the free companion below to prepare typed input, check saved results or trace later raw jobs. These local operations start no Actor run.

Input rules

Both CSVs use length,quantity. Parts may use length,quantity,partCode, with unique codes such as LEG-01 or RAIL-02: 1–4 uppercase letters, a hyphen and 1–6 digits. Use numerical workshop codes; do not enter names, customer/order identifiers or personal data. Each decoded CSV is limited to 64 KiB. Blank data lines create no stock row.

Every stock row must retain positive usable length after end allowances, including rows with zero inventory. Final kerf is waived only when a part ends exactly at the trimmed stock end; a positive sliver smaller than a full kerf is conservatively refused. Coordinates start at the original stock end. A cut’s end is the finished part edge, not a saw centreline. The form’s samples prefill kerf 3 and reusable threshold 100; inspect actual values before starting.

Optional supplied acquisition amounts

Select objective: "acquisitionCost" and supply stockUnitCosts as decimal strings, one for every original nonblank stock row in order, including zero-inventory rows. Each amount is 0–1000000 with up to four fractional digits; no sign, exponent, whitespace, currency symbol or missing value. Explicit zero is allowed. Use one common cost unit; there is no currency conversion.

Cost mode minimizes supplied whole-bar amount, then raw length, then bar count. A cheaper supplied bar can use more material:

{
  "partsCsv": "length,quantity\n4,2\n",
  "stockCsv": "length,quantity\n8,unlimited\n10,unlimited\n",
  "unit": "mm",
  "kerf": 0,
  "trimStart": 0,
  "trimEnd": 0,
  "minReusableOffcut": 2,
  "objective": "acquisitionCost",
  "stockUnitCosts": ["10", "3"]
}

The cost objective chooses a 10 mm bar with supplied amount 3. Raw length instead prefers an 8 mm bar. Remove both added fields to use the raw default. No labour, delivery, tax, residual value, supplier quote, purchase or realized saving is assessed.

The contracts are deliberately separate:

Mode Report schema / component Input
Raw default or explicit rawLength 1.1 / 1.1.7 Raw numerical fields; no stock prices
acquisitionCost 2.0 / 2.1.1 Raw fields plus objective and every row amount

Existing raw integrations must explicitly support the cost contract before opting in. The new companion accepts saved cost components 2.0.0, 2.1.0 and 2.1.1; do not relabel saved reports or use an older 2.0.0-only checker for new files. Actor build number, report schema, component and companion version are separate.

Read the result and its proof

Check REPORT.status first. A complete plan contains every requested part and code, original source row, coordinate, allowance, residual and stock balance. Its length equation includes finished parts, kerf, trim and both residual classes. A no-plan result can mean a proved numerical shortage or an unresolved search; read the stated basis. It is not a successful zero allocation.

Cost reports retain every supplied row amount and subtotal in acquisition.stockRows; acquisition.totalCost is a decimal string. No-plan allocations, used counts and subtotals are null. search.costOptimalityProven concerns amount alone; search.optimalityProven concerns the full amount / raw-length / bar-count objective. A cost proof can leave ties unresolved. A full objective proof does not establish a unique layout. The geometry verified flag is not an optimum proof.

Equal-finished-length methods can prove the full objective up to 500 pieces. Bounded mixed searches and integer dual bounds prove some other jobs. A tight finite-stock route may recover a complete exact-fill assignment. Capacity equality alone proves no allocation: only a checked complete witness makes all finite rows mandatory and fixes amount, raw length and bars. Time, pattern, capacity and node cutoffs remain unresolved. Optional search failure preserves a checked complete seed when one exists. No universal optimum or universal infeasibility guarantee is made.

CUTS contains every part’s source, sequence, code, length, start/end and kerf. STOCK has each used bar and its residual; cost mode adds unit_cost after the original seven columns. It is the whole-bar supplied amount, not a value assigned to a part or residual. LAYOUT is a standalone grouped diagram with complete numerical tables; Print / Save as PDF retains them. The dataset has one item per delivered complete plan. STATUS separately records input, storage and billing outcomes.

Free offline companion

Open the included offline companion

Extract the whole ZIP and open Start.html. Choose the operation for your actual saved files:

Goal Local route
Prepare input Raw browser tools, or cost input with a price beside each stock row
Check one saved plan Raw browser checker, or standard-library Python cost checker
Compare saved plans Same original job, or separately checked different priced catalogues
Change row amounts on fixed cuts Saved-layout repricing and local price workspace
Prepare another raw job Recheck remaining groups; enter fresh demand and allowances
Trace repeated raw jobs Reconstruct 1–4 original jobs and every exact next-stock link

Preparation exports a new original input with canonical numerical rows; it does not preserve an earlier file’s byte hash. Necessary capacity bounds do not establish a complete cutting layout. Every price remains beside its original stock row, including duplicate lengths and zero inventory.

The cost checker needs Python 3.11+ standard library only: no installation, account, token, scientific library or network. From the cost folder:

python -m cost_report input.json report.json --cuts cuts.csv --stock stock.csv --uniform-proof --record checked-cost.html

It reconstructs geometry and amounts, checks supplied duals and can separately replay an equal-length optimum. Source flags stay distinct from independent proofs; a replay cutoff says unverified. Keep original files and hashes. The cost folder’s guides give exact commands and complete synthetic examples. The raw-only browser tools reject cost fields and unsupported producer pairs.

Same-input comparison checks both complete plans against one original job and row-price list. A lower feasible score can refute the other plan’s optimum claim without proving the preferred plan best. Cross-catalogue comparison checks each plan against its own original input: demand, codes, units and allowances must agree; both plans can be optimal in their different models. There is no cross-catalogue optimum refutation or verified currency claim.

Repricing changes row amounts while retaining the exact numerical layout, rows, quantities, codes, units and allowances. Old proofs concern old prices. An optional bounded uniform assessment supplies a separate candidate score, never replacement coordinates. Browser price edits clear the prior candidate proof. The generated workspace checks row arithmetic on previously checked geometry; it does not verify an Actor report or replay an optimum. Mixed jobs and cutoffs can leave candidate optimality unassessed. These records and their CSV roles are separate from Actor REPORT and STOCK.

Keep origins through later raw jobs

Recheck the original raw input/report, retain unused whole rows and every positive residual origin, select groups, then enter new demand and fresh allowances. Export typed next input and full lineage. This is an unapplied stock proposal, not a complete next allocation. A new Actor plan is a separate deliberate potentially paid run.

After later complete raw reports exist, use the sequence workspace to reconstruct one to four original jobs and every entire intervening link. An unused selected row can still contain known residuals; its original roots, coordinates, creation job and numerical minimum classification remain. Each used root partitions into retired parts/losses plus final known intervals. Historical residuals must not be added to terminal stock.

Unselected groups stay parked. This version follows the immediate previous export and cannot merge an older parked pool into a later input. Unlimited rows are supply assumptions with no numerical remaining quantity. Equal-length origins are assigned once in canonical source order, explicitly proposed, with positive orientation assumed. No physical bar identity, execution, inventory write, reservation, material suitability, price or optimum transfer.

The sequence browser accepts a combined original-source journal or separate original files. It offers complete JSON/four CSVs, a source-journal save, an all-roots HTML overview and a selected-root print across all its jobs. The six-page worked guide and standard-library CLI explain both routes. Stop terminates the local check; source changes invalidate old outputs and prints. Saved records do not revalidate themselves. The retained two-job view and its existing deep link remain available.

Repeated-job routes accept raw schema 1.1/components 1.1.4–1.1.7 and the legacy input or exactly validated explicit rawLength objective. Versioned explicit records bind the full decoded original input; legacy records remain supported. Cost reports, prices, unknown fields and unsupported versions reject. Nothing strips prices or edits originals to force acceptance. Per-source limits stay intact; sequence journals add separate 12 MiB / 1,000,000-value / depth-100 bounds. Hashes bind numerical values, not signatures or genuine platform origin.

Price and deliberate API use

USD 0.10 per complete feasible plan + USD 0.00005 per Actor start. No dataset-item, cost-optimization or proof fee. A complete feasible layout can be billable without an optimum proof. Invalid input or no complete layout requests no completed-plan event; a start fee can still apply. Another run can charge again.

The companion’s cost/cut_plan_client.py supports both documented contracts. Use your own APIFY_TOKEN securely in your environment. It writes durable intent before one potentially paid POST, caps that start at USD 0.11, 512 MiB and 120 seconds, and never automatically retries it. From cost:

python cut_plan_client.py start input.json my-job \
  --actor ars-technis~linear-cut-planner
python cut_plan_client.py fetch my-job

Use a new job folder. Fetch reads only the recorded run. An uncertain start response requires reconciling that run before another start; recover a known run ID with fetch recovered-job --run-id RUN_ID into a new folder. A ready marker means expected outputs were saved consistently, not independent optimality or verified billing. Read STATUS; no manual charge retry follows storage or billing uncertainty. None of the local preparation/checking routes invokes this client automatically.

Model limits and credits

One material/cross-section, straight square cuts. No defects, tolerances, clamping, miter angles, structural checks, machine code or physical suitability assessment. Residual reuse is classified by a supplied length threshold only. Review real measurements and machine allowances separately.

Original AI-assisted software, text, diagrams and synthetic examples. General packing, knapsack, branch-and-bound, cutting patterns, duality and interval accounting are classical methods. Included examples are local numerical controls, not customer records, native runs, supplier quotes or realized savings. Dependency notices and MIT-licensed local source are included. No competitor assets, personal data, tracking or hosted inference service are used.

Explicit composition of older parked known groups

The new history/ workspace adds an explicit operation; the existing sequence/ contract is unchanged. Open original base input/report pairs and legacy links or a composed-history source file. Select 1–20 complete known groups by (fromJob, groupID), enter fresh demand and all allowances, and prepare an unallocated rawLength input. Equal lengths merge into finite rows with canonical origins. A complete matching raw report must verify before an original step can be appended. All original-root intervals recheck after every step.

Four jobs total, including base and appended steps; 100 part rows/500 parts per fresh job. Unused selected origins persist once with their actual creation/minimum/path. Unselected parked groups and abstract finite/unlimited original supply remain separate. Abstract supply is not selectable in composition. Costs, saved derived frontiers, unsupported reports and a fifth job reject. The history reader also rejects negative zero, duplicates, invalid Unicode and nonfinite numbers; 12 MiB aggregate/depth 100/one-million-value limits apply. Browser work uses a disposable local worker with Stop / 20 s timeout. Editing sources clears results; selection/settings changes clear the prepared input. Save original history for full replay, not the checked record or static HTML.

Five named CSV tables preserve final origins, retired intervals, remaining groups, original source bindings and every planned bar interval. Historical residual rows are intermediate states; tables overlap and must not be added together. An empty quantity with unlimited_assumption=true is an unlimited supply assumption. CSVs are explanatory tables, not accepted history inputs. The included four-page guide and exact original local examples establish the duplicate residual-14000 keys at jobs 2/3, older parked 14 use, and a separate two-composition path ending at original-root interval [95.751,95.999). Tiny precision values are arithmetic controls, not machining settings. Nothing is observed physical inventory, a stock write, inherited proof, economic valuation or native run.

Browser cost reader and price-only check

Open the local cost reader or read its worked guide. It reconstructs complete original cost schema 2.0/component 2.0.0, 2.1.0 or 2.1.1 geometry, every original row amount and optional original CSVs. Price-only edits keep the complete original numerical job. Fresh zero-amount or finite-core arguments may prove an objective; source flags, certificates and lower-bound claims are not replayed. Unassessed is not refuted. The Python certificate/uniform routes retain different proof coverage. No local route starts an Actor.