Companion guide · Plain text guide

Companion guide · saved-layout price changes

Same cuts at new row prices

Recalculate the supplied acquisition amount of a saved cutting layout. Keep the geometry fixed, inspect each row effect, and preserve the original proof scope.

Start with your own saved files

  1. Keep the original cost input and complete schema 2.0/component 2.0.0, 2.1.0 or 2.1.1 report together. A raw-mode or no-plan report cannot enter this route.
  2. Use the existing row-price input preparer to reopen a copy, change only row amounts and save a separate candidate. Keep every row, code, quantity, dimension, unit and allowance unchanged.
  3. Run the local command below from the extracted folder. Open the generated Price-Workspace.html to try further row amounts, or repricing.html to read the static result.
python3 reprice_layout.py original-input.json original-report.json candidate-input.json --cost-unit units --output price-study

Add --cuts original-cuts.csv --stock original-stock.csv to check the original CSVs. Add --assess-uniform for a separate bounded equal-finished-length candidate optimum check. This produces a score and no replacement cutting coordinates.

Original proof is about original prices. A changed unused row can make a different layout cheaper while this layout’s total stays unchanged. Candidate minimum is unassessed unless the explicit independent candidate check completes. Browser edits always clear the earlier candidate proof.

Explore complete local examples

Each example includes the original input/report/CSVs, a price-only candidate, row effects, complete geometry and source hashes. These are local numerical controls, not native Actor runs, buyer quotes or observed use. Editing an example never makes it your own verified source.

StudyWhat changesFiles
cost-minimum-lostOnly an unused row gets cheaper; this total stays 3, but the candidate minimum is 1.Edit local study
Static record
Original input · Original report
Candidate input
minimum-preservedA separate check proves the layout still attains the new full objective.Edit local study
Static record
Original input · Original report
Candidate input
raw-tie-lostAmount ties at 3; a shorter raw total defeats this layout.Edit local study
Static record
Original input · Original report
Candidate input
unused-row-onlyA cheaper unused row changes the optimum without changing this amount.Edit local study
Static record
Original input · Original report
Candidate input
zero-amount-full-tie-lostZero amount still leaves raw-length ties to resolve.Edit local study
Static record
Original input · Original report
Candidate input
duplicate-length-rowsDifferent prices stay tied to original duplicate-length rows; total change is 0.Edit local study
Static record
Original input · Original report
Candidate input
decimal-inchesFour-place prices and a −0.0002 amount change.Edit local study
Static record
Original input · Original report
Candidate input
mixed-maximum500 parts / 100 codes / 20 stock rows; source cost proof does not transfer to candidate prices.Edit local study
Static record
Original input · Original report
Candidate input
unavailable-row-onlyA changed unavailable row contributes 0; all 20 rows survive.Edit local study
Static record
Original input · Original report
Candidate input
aggregate-maximum500 bars yield an exact 499999999.95 aggregate amount.Edit local study
Static record
Original input · Original report
Candidate input
bar-tie-lostAmount 2 and raw 8 tie; one bar defeats the saved two-bar layout.Edit local study
Static record
Original input · Original report
Candidate input

What the browser checks

The local Python command checked the original saved-file pair when creating a workspace. The browser changes only amounts beside the fixed stock rows, checks integer arithmetic and hashes newly exported candidate bytes. It rechecks neither an Actor REPORT nor optimality. A changed input hides the prior candidate record until you check it again. Saves and prints require current checked amounts.

The generated static record and JSON retain every original coordinate and file fingerprint. Candidate input is a separate numerical input, not a submission. The effects CSV is not an Actor cut/stock CSV. No command or page here starts a platform run.

Full command guide, scope and files

Reprice a saved cutting layout

Check how a saved acquisition-cost layout changes under different supplied whole-bar amounts. The cuts, stock rows, inventory and allowances stay fixed. This local Python 3.11+ tool uses only the standard library. It makes no network request and starts no paid job. The compatible complete source report is schema 2.0 / component 2.0.0, 2.1.0 or 2.1.1.

  1. Keep the ORIGINAL acquisition input and complete component 2.0.0, 2.1.0 or 2.1.1/schema 2.0 report. Raw-mode reports and no-plan outputs are not accepted here.
  2. Open prepare/cut-cost-input-preparation.html in a browser. Reopen a COPY of the original input, change only whole-bar amounts, check it and download a separate candidate input. Keep stock/part row order, codes, availability, dimensions, units and all allowances unchanged. Every stock row still needs an explicit price, including zero inventory. Reopening/export can change JSON formatting; the numerical Job must remain identical.
  3. Run from this extracted folder, quoting paths that contain spaces:
python3 reprice_layout.py original-input.json original-report.json candidate-input.json --cost-unit units --output price-study

Optional --cuts original-cuts.csv --stock original-stock.csv checks the ORIGINAL files against the original report. Do not supply edited/repriced CSVs. Optional --assess-uniform independently checks the candidate optimum when all finished pieces have equal length, with at most 5 million operations and 3 seconds cooperative time. It produces an objective score and no replacement layout. Mixed lengths or limits leave candidate optimality unassessed. The original certificate and source flags never prove a candidate optimum.

The common cost-unit label is declared by the caller (units, EUR, USD, GBP or CHF). Input contains no currency field. There is no conversion or independent verification of physical stock, quote validity, tax, labour, residual value, actual purchases or realized savings.

Outputs are created in one NEW directory; an existing one is refused:

Candidate minus original is a price effect on ONE unchanged layout. A decrease is not a purchase saving. A changed unused row contributes zero to this layout but may make a different layout cheaper. A zero total change does not preserve optimality; zero candidate amount alone does not prove raw-length/bar ties.

Run a complete included LOCAL study, without an Actor call:

python3 reprice_layout.py repricing/cost-minimum-lost/original-input.json repricing/cost-minimum-lost/original-report.json repricing/cost-minimum-lost/candidate-input.json --cost-unit units --assess-uniform --output my-price-study

That study changes only an unused 8-unit row from 10 to 1. The saved 10-unit layout still costs 3, but the independent candidate score is 1/8/1. It does not output a replacement cut plan. Other controls include preserved optimum, raw/bar tie changes, duplicate stock lengths, unavailable stock, decimal inches,500 parts / 100 codes / 20 stock rows, and a 499999999.95-unit aggregate amount.

All studies are LOCAL numerical examples, not native Actor runs, buyer quotes, customers, measured conversion or earned fees. File hashes bind bytes, not authorship. Keep original files. Original AI-assisted plain code and documents; MIT licence. No personal data, accounts, browser storage, tracking or inference.