Optimize Minimize
optimize_minimizeMinimize or maximize objective expressions over bounded or constrained variables using BFGS, Nelder-Mead, differential evolution, and multistart numerical optimization.
Instructions
Min/max by BFGS/Armijo, projected BFGS, safeguarded augmented Lagrangian, Nelder-Mead, seeded DE or multistart; numerical KKT certificate with second-order probes, no global guarantee. Caps: 16 names, 20 constraints, 200k evaluations/100m node operations. 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_minimize"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| seed | No | Deterministic random seed, e.g. 0; integer 0..4294967295, echoed in the result. | |
| bounds | No | JSON [lower,upper] pairs in initial-name order, e.g. '[[0,5]]'; null is unbounded; '' omits all bounds. | |
| method | No | auto, bfgs, nelder_mead, differential_evolution or multistart; auto uses smoothness, bounds and constraints. | auto |
| starts | No | Seeded starts for multistart, e.g. 16; integer 1..64; other methods require default 16. | |
| initial | No | Initial variables as name=number records, e.g. 'x=0;y=1'; semicolon/newline separated, <=16 names. | |
| maximize | No | True maximizes the supplied objective; false minimizes it. Returned objective keeps its original sign. | |
| tolerance | No | Dimensionless convergence tolerance, e.g. 1e-7; supported 1e-12..0.01. | |
| expression | No | Objective formula, e.g. '(x-1)^2'; required, <=2000 characters; minimize unless maximize is true. | |
| parameters | No | Fixed dimensionless name=number records, e.g. 'a=2'; '' omits; total variable and parameter names <=16. | |
| population | No | DE population size, e.g. 40; integer 5..200; used only by differential_evolution. | |
| 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 |
| constraints | No | Up to 20 expression <= 0, >= 0 or == 0 records, e.g. 'x+y-1<=0'; semicolon/newline separated; '' omits. | |
| generations | No | DE generations before local polishing, e.g. 200; integer 1..1000; only differential_evolution uses it. | |
| max_iterations | No | Maximum local iterations across multiplier stages, e.g. 1000; integer 1..5000. |