Optimize Root
optimize_rootFinds scalar roots and solves square nonlinear systems via bisection, Newton, secant, damped Newton, or LM, with bounds, multistart, and residual certificates for engineering calculations.
Instructions
Solve scalar roots by bisection, Newton or secant and square systems by damped Newton/LM. Up to 12 variables and 64 starts; residual certificates required. 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_root"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| scan | No | Scalar sign-change scan intervals, e.g. 100; 0 disables, 2..2000 needs bracket. | |
| seed | No | Deterministic random seed, e.g. 0; integer 0..4294967295, echoed in the result. | |
| bounds | No | Variable JSON bound pairs in initial order, e.g. '[[0,2]]'; null is unbounded. | |
| method | No | Root algorithm: auto, bisection, newton or secant, e.g. 'auto'; systems use damped Newton. | auto |
| bracket | No | Optional scalar JSON interval [lower,upper], e.g. '[0,2]'. | |
| initial | No | Initial variable records, e.g. 'x=1' or 'x=1;y=2'; at most 12 names. | |
| tolerance | No | Dimensionless convergence tolerance, e.g. 1e-7; supported 1e-12..0.01. | |
| expression | No | Residual expression, or semicolon-separated square-system residuals, e.g. 'x^2-2'. | |
| multistart | No | Seeded initial-point count, e.g. 8; 1..64, finite bounds recommended. | |
| 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 |
| max_iterations | No | Iteration cap per local root solve, e.g. 500; 1..2000. |