Optimize Doe
optimize_doeGenerate factorial, Box-Behnken, central composite, LHS, Sobol, or Halton designs, then fit response surfaces with ANOVA and bounded extrema for reproducible design-of-experiments studies.
Instructions
Generate factorial/fractional, Box-Behnken, central composite, LHS, Sobol or Halton designs; fit coded response surfaces with ANOVA and bounded quadratic extrema. Grammar: numbers, names, + - * / ^ (**), parentheses, whitelisted math calls; no comparisons inside expressions. Variables are plain numbers in the units you choose; the tool does not track units inside expressions.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "optimize_doe"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fit | No | Response fit: linear, interaction or quadratic, e.g. 'quadratic'; insufficient-rank designs return a structured refusal. | quadratic |
| seed | No | Deterministic random seed, e.g. 0; integer 0..4294967295, echoed in the result. | |
| alpha | No | CCD axial distance, e.g. 'rotatable' or '1.5'; numeric range 1..10. Face-centered always uses one. | rotatable |
| model | No | Model expression in natural factor units, e.g. 'x*x+y'; '' omits simulation. Exclusive with response inputs. | |
| design | No | Design, e.g. 'full_factorial'; also fractional_iii/iv/v, box_behnken, ccd_face/circumscribed/inscribed, lhs, sobol, halton. | full_factorial |
| levels | No | Full-factorial integer levels per factor, e.g. '[3,4]'; 2..10 each, at most 4096 runs; '' uses two each. | |
| factors | No | One to six factor ranges as JSON {"x":[0,10],"y":[1,3]} or records x,0,10;y,1,3. | |
| samples | No | Space-filling row count 2..4096. Sobol balance requires power-of-two rows. | |
| responses | No | Optional JSON response number list, exactly one value per generated run in original order. | |
| generators | No | Positive fractional generators on letters A..F, e.g. 'D=ABC'; '' chooses the smallest fraction meeting resolution. | |
| time_limit | No | Wall-clock budget with time units, e.g. '10 s'; supported 0.001..60 s, shared by all solver stages. | 10 s |
| center_points | No | Center replicates for factorial/response-surface designs, e.g. 3; 0..100. Space-filling designs ignore this setting. | |
| lhs_candidates | No | Maximin Latin hypercube candidates, e.g. 8; integer 1..32. Comparisons count against the shared work budget. | |
| responses_file | No | UTF-8 one-column CSV/TXT path, e.g. 'response.csv'; optional header response. '' omits; workspace read policy applies. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | ||
| data | No | Non-quantity payload (reports, listings) | |
| error | No | ||
| value | No | Primary quantity result | |
| values | No | All named quantity results (includes the primary) | |
| warnings | No | ||
| artifacts | No | ||
| provenance | Yes | What produced the result and from which inputs. | |
| review_status | No | unreviewed |