Remake a recipe from given materials
match_from_materialsRemakes a glaze recipe from only the materials listed in "have", keeping its unity formula as near as they allow, as Match with what I have does in the Glazecalc app. report.closeness says how near the new unity formula comes to the old, oxide by oxide: close (within 0.02, or 5% of a large amount such as silica's), off, or far (more than three times that), with a verdict (close, fair or poor) and a summary. report.miss and report.best are the solver's own scores, for comparing runs. Raw clay is held to 20% of the batch where that costs the match little (report.capped and allowMore say more). Test any suggestion before using it.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| have | Yes | The library names of the materials on hand. | |
| lines | Yes | The recipe's base materials (not colorants), at most 40 lines. | |
| mustUse | No | Materials on hand that must stay in. | |
| language | No | The language for any sentences in the answer, as a BCP 47 tag such as "en", "de" or "ja". Languages Glazecalc does not offer are answered in English. | |
| allowMore | No | Materials whose suggested cap to lift, as report.capped names them: raw clay is held to 20% of the batch (or the recipe's own share) where that costs the match little. |