Check totals sweep
check_totals_sweepComputes finite-difference total derivatives at multiple step sizes, flags derivatives that change with step as numerical noise, and recommends a step before SLSQP.
Instructions
Finite-difference total derivatives at several step sizes, flagging derivatives that change with the step (numerical noise from black-box codes) and recommending a step. Run it before SLSQP.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"problem_id": "<problem_id>",
"of": "<of>",
"wrt": "<wrt>"
},
"name": "check_totals_sweep"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| of | Yes | ||
| wrt | Yes | ||
| form | No | forward | |
| steps | No | ||
| step_calc | No | abs | |
| problem_id | Yes | ||
| noise_rel_tol | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| error | No | ||
| entries | No | ||
| messages | No | ||
| any_noisy | No | ||
| captured_output | No | ||
| recommended_step | No |